From da7b18602205dff504e2a4055ae9d1f664c37c93 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 6 Apr 2026 05:05:22 +0000 Subject: [PATCH 1/2] feat: added support for detecting key-value pairs in client provided metadata PiperOrigin-RevId: 895098649 Source-Link: https://github.com/googleapis/googleapis/commit/544bab0c27830b8e4d4a2c1dfc87a3b2c0cdc118 Source-Link: https://github.com/googleapis/googleapis-gen/commit/676f5fc590d577b8993aa5fa6b50f227bf35fe5a Copy-Tag: eyJwIjoiRGxwLy5Pd2xCb3QueWFtbCIsImgiOiI2NzZmNWZjNTkwZDU3N2I4OTkzYWE1ZmE2YjUwZjIyN2JmMzVmZTVhIn0= --- .../GPBMetadata/Google/Privacy/Dlp/V2/Dlp.php | 37 + .../Google/Privacy/Dlp/V2/Storage.php | 26 + .../proto/src/Google/Cloud/Dlp/V2/Action.php | 329 ++ .../Google/Cloud/Dlp/V2/Action/Deidentify.php | 439 ++ .../Dlp/V2/Action/JobNotificationEmails.php | 35 + .../PublishFindingsToCloudDataCatalog.php | 48 + .../PublishFindingsToDataplexCatalog.php | 43 + .../Dlp/V2/Action/PublishSummaryToCscc.php | 40 + .../Cloud/Dlp/V2/Action/PublishToPubSub.php | 83 + .../Dlp/V2/Action/PublishToStackdriver.php | 36 + .../Cloud/Dlp/V2/Action/SaveFindings.php | 80 + .../src/Google/Cloud/Dlp/V2/ActionDetails.php | 75 + .../Dlp/V2/ActivateJobTriggerRequest.php | 71 + .../Cloud/Dlp/V2/AdjustByImageFindings.php | 218 + .../Dlp/V2/AdjustByMatchingInfoTypes.php | 199 + .../Google/Cloud/Dlp/V2/AdjustmentRule.php | 153 + .../Dlp/V2/AllOtherDatabaseResources.php | 33 + .../Google/Cloud/Dlp/V2/AllOtherResources.php | 33 + .../Google/Cloud/Dlp/V2/AmazonS3Bucket.php | 111 + .../Cloud/Dlp/V2/AmazonS3BucketConditions.php | 109 + .../AmazonS3BucketConditions/BucketType.php | 62 + .../ObjectStorageClass.php | 83 + .../Cloud/Dlp/V2/AmazonS3BucketRegex.php | 115 + .../Dlp/V2/AnalyzeDataSourceRiskDetails.php | 372 ++ .../CategoricalStatsResult.php | 67 + .../CategoricalStatsHistogramBucket.php | 207 + .../DeltaPresenceEstimationResult.php | 96 + ...DeltaPresenceEstimationHistogramBucket.php | 215 + .../DeltaPresenceEstimationQuasiIdValues.php | 129 + .../KAnonymityResult.php | 67 + .../KAnonymityEquivalenceClass.php | 113 + .../KAnonymityHistogramBucket.php | 207 + .../KMapEstimationResult.php | 96 + .../KMapEstimationHistogramBucket.php | 214 + .../KMapEstimationQuasiIdValues.php | 101 + .../LDiversityResult.php | 67 + .../LDiversityEquivalenceClass.php | 173 + .../LDiversityHistogramBucket.php | 215 + .../NumericalStatsResult.php | 159 + .../RequestedRiskAnalysisOptions.php | 77 + .../src/Google/Cloud/Dlp/V2/AwsAccount.php | 67 + .../Google/Cloud/Dlp/V2/AwsAccountRegex.php | 71 + .../Cloud/Dlp/V2/BigQueryDiscoveryTarget.php | 210 + .../src/Google/Cloud/Dlp/V2/BigQueryField.php | 121 + .../src/Google/Cloud/Dlp/V2/BigQueryKey.php | 127 + .../Google/Cloud/Dlp/V2/BigQueryOptions.php | 369 ++ .../Dlp/V2/BigQueryOptions/SampleMethod.php | 65 + .../src/Google/Cloud/Dlp/V2/BigQueryRegex.php | 143 + .../Google/Cloud/Dlp/V2/BigQueryRegexes.php | 72 + .../Dlp/V2/BigQuerySchemaModification.php | 63 + .../src/Google/Cloud/Dlp/V2/BigQueryTable.php | 143 + .../Cloud/Dlp/V2/BigQueryTableCollection.php | 75 + .../Dlp/V2/BigQueryTableModification.php | 56 + .../Google/Cloud/Dlp/V2/BigQueryTableType.php | 69 + .../Dlp/V2/BigQueryTableTypeCollection.php | 68 + .../Cloud/Dlp/V2/BigQueryTableTypes.php | 67 + .../src/Google/Cloud/Dlp/V2/BoundingBox.php | 169 + .../Google/Cloud/Dlp/V2/BucketingConfig.php | 76 + .../Cloud/Dlp/V2/BucketingConfig/Bucket.php | 169 + .../Google/Cloud/Dlp/V2/ByteContentItem.php | 101 + .../Dlp/V2/ByteContentItem/BytesType.php | 170 + .../Cloud/Dlp/V2/CancelDlpJobRequest.php | 67 + .../Cloud/Dlp/V2/CharacterMaskConfig.php | 266 ++ .../src/Google/Cloud/Dlp/V2/CharsToIgnore.php | 112 + .../V2/CharsToIgnore/CommonCharsToIgnore.php | 82 + .../Cloud/Dlp/V2/CloudSqlDiscoveryTarget.php | 210 + .../Cloud/Dlp/V2/CloudSqlIamCredential.php | 36 + .../Cloud/Dlp/V2/CloudSqlProperties.php | 250 ++ .../V2/CloudSqlProperties/DatabaseEngine.php | 62 + .../Dlp/V2/CloudStorageDiscoveryTarget.php | 210 + .../Cloud/Dlp/V2/CloudStorageFileSet.php | 71 + .../Cloud/Dlp/V2/CloudStorageOptions.php | 332 ++ .../Dlp/V2/CloudStorageOptions/FileSet.php | 143 + .../V2/CloudStorageOptions/SampleMethod.php | 64 + .../Google/Cloud/Dlp/V2/CloudStoragePath.php | 71 + .../Google/Cloud/Dlp/V2/CloudStorageRegex.php | 112 + .../Cloud/Dlp/V2/CloudStorageRegexFileSet.php | 208 + .../Dlp/V2/CloudStorageResourceReference.php | 105 + .../proto/src/Google/Cloud/Dlp/V2/Color.php | 135 + .../Google/Cloud/Dlp/V2/ColumnDataProfile.php | 795 ++++ .../V2/ColumnDataProfile/ColumnDataType.php | 174 + .../ColumnDataProfile/ColumnPolicyState.php | 54 + .../Cloud/Dlp/V2/ColumnDataProfile/State.php | 64 + .../src/Google/Cloud/Dlp/V2/Connection.php | 186 + .../Google/Cloud/Dlp/V2/ConnectionState.php | 75 + .../src/Google/Cloud/Dlp/V2/Container.php | 354 ++ .../src/Google/Cloud/Dlp/V2/ContentItem.php | 191 + .../Google/Cloud/Dlp/V2/ContentLocation.php | 331 ++ .../Google/Cloud/Dlp/V2/ContentMetadata.php | 67 + .../src/Google/Cloud/Dlp/V2/ContentOption.php | 61 + .../Cloud/Dlp/V2/CreateConnectionRequest.php | 159 + .../V2/CreateDeidentifyTemplateRequest.php | 286 ++ .../Dlp/V2/CreateDiscoveryConfigRequest.php | 227 + .../Cloud/Dlp/V2/CreateDlpJobRequest.php | 334 ++ .../Dlp/V2/CreateInspectTemplateRequest.php | 286 ++ .../Cloud/Dlp/V2/CreateJobTriggerRequest.php | 266 ++ .../Dlp/V2/CreateStoredInfoTypeRequest.php | 286 ++ .../Dlp/V2/CryptoDeterministicConfig.php | 327 ++ .../Google/Cloud/Dlp/V2/CryptoHashConfig.php | 84 + .../src/Google/Cloud/Dlp/V2/CryptoKey.php | 146 + .../Dlp/V2/CryptoReplaceFfxFpeConfig.php | 445 ++ .../FfxCommonNativeAlphabet.php | 77 + .../Google/Cloud/Dlp/V2/CustomInfoType.php | 461 ++ .../Dlp/V2/CustomInfoType/DetectionRule.php | 78 + .../DetectionRule/HotwordRule.php | 210 + .../DetectionRule/LikelihoodAdjustment.php | 130 + .../DetectionRule/Proximity.php | 118 + .../Dlp/V2/CustomInfoType/Dictionary.php | 131 + .../V2/CustomInfoType/Dictionary/WordList.php | 75 + .../Dlp/V2/CustomInfoType/ExclusionType.php | 55 + .../MetadataKeyValueExpression.php | 106 + .../Cloud/Dlp/V2/CustomInfoType/Regex.php | 113 + .../Dlp/V2/CustomInfoType/SurrogateType.php | 40 + .../Google/Cloud/Dlp/V2/DataProfileAction.php | 252 ++ .../Dlp/V2/DataProfileAction/EventType.php | 77 + .../Cloud/Dlp/V2/DataProfileAction/Export.php | 242 + .../DataProfileAction/PubSubNotification.php | 201 + .../PubSubNotification/DetailLevel.php | 68 + .../DataProfileAction/PublishToChronicle.php | 33 + .../PublishToDataplexCatalog.php | 89 + .../PublishToSecurityCommandCenter.php | 34 + .../Dlp/V2/DataProfileAction/TagResources.php | 188 + .../TagResources/TagCondition.php | 123 + .../TagResources/TagValue.php | 84 + .../Dlp/V2/DataProfileBigQueryRowSchema.php | 142 + .../Dlp/V2/DataProfileConfigSnapshot.php | 274 ++ .../Cloud/Dlp/V2/DataProfileFinding.php | 452 ++ .../Dlp/V2/DataProfileFindingLocation.php | 128 + .../V2/DataProfileFindingRecordLocation.php | 77 + .../Cloud/Dlp/V2/DataProfileJobConfig.php | 284 ++ .../Cloud/Dlp/V2/DataProfileLocation.php | 108 + .../Dlp/V2/DataProfilePubSubCondition.php | 77 + .../ProfileScoreBucket.php | 61 + .../PubSubCondition.php | 108 + .../PubSubExpressions.php | 101 + .../PubSubLogicalOperator.php | 65 + .../Cloud/Dlp/V2/DataProfilePubSubMessage.php | 173 + .../Dlp/V2/DataProfileUpdateFrequency.php | 69 + .../src/Google/Cloud/Dlp/V2/DataRiskLevel.php | 68 + .../V2/DataRiskLevel/DataRiskLevelScore.php | 81 + .../Google/Cloud/Dlp/V2/DataSourceType.php | 87 + .../Dlp/V2/DatabaseResourceCollection.php | 76 + .../Dlp/V2/DatabaseResourceReference.php | 181 + .../Cloud/Dlp/V2/DatabaseResourceRegex.php | 188 + .../Cloud/Dlp/V2/DatabaseResourceRegexes.php | 80 + .../src/Google/Cloud/Dlp/V2/DatastoreKey.php | 77 + .../Google/Cloud/Dlp/V2/DatastoreOptions.php | 125 + .../Google/Cloud/Dlp/V2/DateShiftConfig.php | 220 + .../src/Google/Cloud/Dlp/V2/DateTime.php | 204 + .../Google/Cloud/Dlp/V2/DateTime/TimeZone.php | 71 + .../Google/Cloud/Dlp/V2/DeidentifyConfig.php | 198 + .../Cloud/Dlp/V2/DeidentifyContentRequest.php | 417 ++ .../Dlp/V2/DeidentifyContentResponse.php | 121 + .../Dlp/V2/DeidentifyDataSourceDetails.php | 122 + .../RequestedDeidentifyOptions.php | 181 + .../Dlp/V2/DeidentifyDataSourceStats.php | 135 + .../Cloud/Dlp/V2/DeidentifyTemplate.php | 282 ++ .../Cloud/Dlp/V2/DeleteConnectionRequest.php | 86 + .../V2/DeleteDeidentifyTemplateRequest.php | 96 + .../Dlp/V2/DeleteDiscoveryConfigRequest.php | 86 + .../Cloud/Dlp/V2/DeleteDlpJobRequest.php | 81 + .../V2/DeleteFileStoreDataProfileRequest.php | 81 + .../Dlp/V2/DeleteInspectTemplateRequest.php | 91 + .../Cloud/Dlp/V2/DeleteJobTriggerRequest.php | 86 + .../Dlp/V2/DeleteStoredInfoTypeRequest.php | 91 + .../Dlp/V2/DeleteTableDataProfileRequest.php | 81 + .../src/Google/Cloud/Dlp/V2/Disabled.php | 33 + .../Dlp/V2/DiscoveryBigQueryConditions.php | 204 + .../OrConditions.php | 120 + .../Cloud/Dlp/V2/DiscoveryBigQueryFilter.php | 167 + .../AllOtherBigQueryTables.php | 35 + .../Dlp/V2/DiscoveryCloudSqlConditions.php | 114 + .../DatabaseEngine.php | 68 + .../DatabaseResourceType.php | 61 + .../Cloud/Dlp/V2/DiscoveryCloudSqlFilter.php | 155 + .../V2/DiscoveryCloudSqlGenerationCadence.php | 177 + .../SchemaModifiedCadence.php | 109 + .../CloudSqlSchemaModification.php | 61 + .../V2/DiscoveryCloudStorageConditions.php | 123 + .../CloudStorageBucketAttribute.php | 73 + .../CloudStorageObjectAttribute.php | 109 + .../Dlp/V2/DiscoveryCloudStorageFilter.php | 161 + ...DiscoveryCloudStorageGenerationCadence.php | 129 + .../Google/Cloud/Dlp/V2/DiscoveryConfig.php | 616 +++ .../Dlp/V2/DiscoveryConfig/OrgConfig.php | 119 + .../Cloud/Dlp/V2/DiscoveryConfig/Status.php | 62 + .../Dlp/V2/DiscoveryFileStoreConditions.php | 173 + .../Dlp/V2/DiscoveryGenerationCadence.php | 214 + ...iscoveryInspectTemplateModifiedCadence.php | 72 + .../Dlp/V2/DiscoveryOtherCloudConditions.php | 124 + .../Dlp/V2/DiscoveryOtherCloudFilter.php | 154 + .../DiscoveryOtherCloudGenerationCadence.php | 125 + .../Dlp/V2/DiscoverySchemaModifiedCadence.php | 113 + .../Dlp/V2/DiscoveryStartingLocation.php | 109 + .../Dlp/V2/DiscoveryTableModifiedCadence.php | 113 + .../Google/Cloud/Dlp/V2/DiscoveryTarget.php | 279 ++ .../V2/DiscoveryVertexDatasetConditions.php | 130 + .../Dlp/V2/DiscoveryVertexDatasetFilter.php | 155 + ...iscoveryVertexDatasetGenerationCadence.php | 133 + .../proto/src/Google/Cloud/Dlp/V2/DlpJob.php | 492 +++ .../Google/Cloud/Dlp/V2/DlpJob/JobState.php | 93 + .../src/Google/Cloud/Dlp/V2/DlpJobType.php | 61 + .../Google/Cloud/Dlp/V2/DocumentLocation.php | 71 + .../proto/src/Google/Cloud/Dlp/V2/Domain.php | 101 + .../Google/Cloud/Dlp/V2/Domain/Category.php | 64 + .../src/Google/Cloud/Dlp/V2/Domain/Signal.php | 104 + .../src/Google/Cloud/Dlp/V2/Encloses.php | 33 + .../Google/Cloud/Dlp/V2/EncryptionStatus.php | 61 + .../src/Google/Cloud/Dlp/V2/EntityId.php | 81 + .../proto/src/Google/Cloud/Dlp/V2/Error.php | 150 + .../Cloud/Dlp/V2/Error/ErrorExtraInfo.php | 61 + .../Google/Cloud/Dlp/V2/ExcludeByHotword.php | 136 + .../Cloud/Dlp/V2/ExcludeByImageFindings.php | 158 + .../Google/Cloud/Dlp/V2/ExcludeInfoTypes.php | 95 + .../src/Google/Cloud/Dlp/V2/ExclusionRule.php | 248 ++ .../proto/src/Google/Cloud/Dlp/V2/FieldId.php | 67 + .../Cloud/Dlp/V2/FieldTransformation.php | 225 + .../Cloud/Dlp/V2/FileClusterSummary.php | 367 ++ .../Google/Cloud/Dlp/V2/FileClusterType.php | 75 + .../Cloud/Dlp/V2/FileClusterType/Cluster.php | 118 + .../Google/Cloud/Dlp/V2/FileExtensionInfo.php | 67 + .../Cloud/Dlp/V2/FileStoreCollection.php | 150 + .../Cloud/Dlp/V2/FileStoreDataProfile.php | 1143 +++++ .../Dlp/V2/FileStoreDataProfile/State.php | 64 + .../Cloud/Dlp/V2/FileStoreInfoTypeSummary.php | 77 + .../Google/Cloud/Dlp/V2/FileStoreRegex.php | 75 + .../Google/Cloud/Dlp/V2/FileStoreRegexes.php | 76 + .../src/Google/Cloud/Dlp/V2/FileType.php | 150 + .../proto/src/Google/Cloud/Dlp/V2/Finding.php | 593 +++ .../Cloud/Dlp/V2/FinishDlpJobRequest.php | 67 + .../Cloud/Dlp/V2/FixedSizeBucketingConfig.php | 196 + .../src/Google/Cloud/Dlp/V2/FullyInside.php | 33 + .../Dlp/V2/GetColumnDataProfileRequest.php | 86 + .../Cloud/Dlp/V2/GetConnectionRequest.php | 86 + .../Dlp/V2/GetDeidentifyTemplateRequest.php | 91 + .../Dlp/V2/GetDiscoveryConfigRequest.php | 86 + .../Google/Cloud/Dlp/V2/GetDlpJobRequest.php | 82 + .../Dlp/V2/GetFileStoreDataProfileRequest.php | 86 + .../Dlp/V2/GetInspectTemplateRequest.php | 91 + .../Cloud/Dlp/V2/GetJobTriggerRequest.php | 86 + .../Dlp/V2/GetProjectDataProfileRequest.php | 86 + .../Cloud/Dlp/V2/GetStoredInfoTypeRequest.php | 91 + .../Dlp/V2/GetTableDataProfileRequest.php | 86 + .../Google/Cloud/Dlp/V2/HybridContentItem.php | 122 + .../Cloud/Dlp/V2/HybridFindingDetails.php | 303 ++ .../Dlp/V2/HybridInspectDlpJobRequest.php | 130 + .../Dlp/V2/HybridInspectJobTriggerRequest.php | 130 + .../Cloud/Dlp/V2/HybridInspectResponse.php | 33 + .../Cloud/Dlp/V2/HybridInspectStatistics.php | 155 + .../src/Google/Cloud/Dlp/V2/HybridOptions.php | 240 + .../Cloud/Dlp/V2/ImageContainmentType.php | 150 + .../src/Google/Cloud/Dlp/V2/ImageLocation.php | 67 + .../Cloud/Dlp/V2/ImageTransformations.php | 67 + .../ImageTransformation.php | 198 + .../ImageTransformation/AllInfoTypes.php | 33 + .../ImageTransformation/AllText.php | 33 + .../ImageTransformation/SelectedInfoTypes.php | 71 + .../src/Google/Cloud/Dlp/V2/InfoType.php | 173 + .../Google/Cloud/Dlp/V2/InfoTypeCategory.php | 145 + .../V2/InfoTypeCategory/IndustryCategory.php | 69 + .../V2/InfoTypeCategory/LocationCategory.php | 417 ++ .../Dlp/V2/InfoTypeCategory/TypeCategory.php | 108 + .../Cloud/Dlp/V2/InfoTypeDescription.php | 447 ++ .../InfoTypeLaunchStatus.php | 68 + .../src/Google/Cloud/Dlp/V2/InfoTypeStats.php | 111 + .../Google/Cloud/Dlp/V2/InfoTypeSummary.php | 118 + .../Cloud/Dlp/V2/InfoTypeSupportedBy.php | 61 + .../Cloud/Dlp/V2/InfoTypeTransformations.php | 74 + .../InfoTypeTransformation.php | 120 + .../src/Google/Cloud/Dlp/V2/InspectConfig.php | 499 +++ .../Dlp/V2/InspectConfig/FindingLimits.php | 201 + .../FindingLimits/InfoTypeLimit.php | 124 + .../V2/InspectConfig/InfoTypeLikelihood.php | 127 + .../Cloud/Dlp/V2/InspectContentRequest.php | 287 ++ .../Cloud/Dlp/V2/InspectContentResponse.php | 77 + .../Cloud/Dlp/V2/InspectDataSourceDetails.php | 121 + .../RequestedOptions.php | 125 + .../V2/InspectDataSourceDetails/Result.php | 221 + .../Google/Cloud/Dlp/V2/InspectJobConfig.php | 197 + .../src/Google/Cloud/Dlp/V2/InspectResult.php | 121 + .../Google/Cloud/Dlp/V2/InspectTemplate.php | 283 ++ .../Google/Cloud/Dlp/V2/InspectionRule.php | 142 + .../Google/Cloud/Dlp/V2/InspectionRuleSet.php | 102 + .../src/Google/Cloud/Dlp/V2/JobTrigger.php | 442 ++ .../Google/Cloud/Dlp/V2/JobTrigger/Status.php | 71 + .../Cloud/Dlp/V2/JobTrigger/Trigger.php | 108 + .../v2/proto/src/Google/Cloud/Dlp/V2/Key.php | 150 + .../Google/Cloud/Dlp/V2/Key/PathElement.php | 171 + .../Cloud/Dlp/V2/KeyValueMetadataLabel.php | 79 + .../Cloud/Dlp/V2/KeyValueMetadataProperty.php | 101 + .../Google/Cloud/Dlp/V2/KindExpression.php | 67 + .../Cloud/Dlp/V2/KmsWrappedCryptoKey.php | 109 + .../Dlp/V2/LargeCustomDictionaryConfig.php | 169 + .../Dlp/V2/LargeCustomDictionaryStats.php | 67 + .../src/Google/Cloud/Dlp/V2/Likelihood.php | 93 + .../Dlp/V2/ListColumnDataProfilesRequest.php | 407 ++ .../Dlp/V2/ListColumnDataProfilesResponse.php | 101 + .../Cloud/Dlp/V2/ListConnectionsRequest.php | 201 + .../Cloud/Dlp/V2/ListConnectionsResponse.php | 105 + .../Dlp/V2/ListDeidentifyTemplatesRequest.php | 340 ++ .../V2/ListDeidentifyTemplatesResponse.php | 109 + .../Dlp/V2/ListDiscoveryConfigsRequest.php | 256 ++ .../Dlp/V2/ListDiscoveryConfigsResponse.php | 105 + .../Cloud/Dlp/V2/ListDlpJobsRequest.php | 472 ++ .../Cloud/Dlp/V2/ListDlpJobsResponse.php | 101 + .../V2/ListFileStoreDataProfilesRequest.php | 420 ++ .../V2/ListFileStoreDataProfilesResponse.php | 102 + .../Cloud/Dlp/V2/ListInfoTypesRequest.php | 206 + .../Cloud/Dlp/V2/ListInfoTypesResponse.php | 67 + .../Dlp/V2/ListInspectTemplatesRequest.php | 340 ++ .../Dlp/V2/ListInspectTemplatesResponse.php | 105 + .../Cloud/Dlp/V2/ListJobTriggersRequest.php | 472 ++ .../Cloud/Dlp/V2/ListJobTriggersResponse.php | 105 + .../Dlp/V2/ListProjectDataProfilesRequest.php | 353 ++ .../V2/ListProjectDataProfilesResponse.php | 101 + .../Dlp/V2/ListStoredInfoTypesRequest.php | 324 ++ .../Dlp/V2/ListStoredInfoTypesResponse.php | 105 + .../Dlp/V2/ListTableDataProfilesRequest.php | 403 ++ .../Dlp/V2/ListTableDataProfilesResponse.php | 101 + .../src/Google/Cloud/Dlp/V2/Location.php | 227 + .../Google/Cloud/Dlp/V2/LocationSupport.php | 109 + .../LocationSupport/RegionalizationScope.php | 61 + .../proto/src/Google/Cloud/Dlp/V2/Manual.php | 34 + .../src/Google/Cloud/Dlp/V2/MatchingType.php | 93 + .../Google/Cloud/Dlp/V2/MetadataLocation.php | 142 + .../src/Google/Cloud/Dlp/V2/MetadataType.php | 68 + .../Cloud/Dlp/V2/NullPercentageLevel.php | 76 + .../OtherCloudDiscoveryStartingLocation.php | 75 + .../AwsDiscoveryStartingLocation.php | 120 + .../Dlp/V2/OtherCloudDiscoveryTarget.php | 265 ++ .../Dlp/V2/OtherCloudResourceCollection.php | 75 + .../Cloud/Dlp/V2/OtherCloudResourceRegex.php | 78 + .../Dlp/V2/OtherCloudResourceRegexes.php | 80 + .../V2/OtherCloudSingleResourceReference.php | 75 + .../Cloud/Dlp/V2/OtherInfoTypeSummary.php | 153 + .../Cloud/Dlp/V2/OutputStorageConfig.php | 234 + .../V2/OutputStorageConfig/OutputSchema.php | 84 + .../proto/src/Google/Cloud/Dlp/V2/Overlap.php | 33 + .../src/Google/Cloud/Dlp/V2/PartitionId.php | 105 + .../Cloud/Dlp/V2/PrimitiveTransformation.php | 441 ++ .../src/Google/Cloud/Dlp/V2/PrivacyMetric.php | 240 + .../PrivacyMetric/CategoricalStatsConfig.php | 90 + .../DeltaPresenceEstimationConfig.php | 158 + .../Dlp/V2/PrivacyMetric/KAnonymityConfig.php | 159 + .../V2/PrivacyMetric/KMapEstimationConfig.php | 160 + .../KMapEstimationConfig/AuxiliaryTable.php | 165 + .../AuxiliaryTable/QuasiIdField.php | 112 + .../KMapEstimationConfig/TaggedField.php | 206 + .../Dlp/V2/PrivacyMetric/LDiversityConfig.php | 119 + .../V2/PrivacyMetric/NumericalStatsConfig.php | 82 + .../Cloud/Dlp/V2/ProcessingLocation.php | 123 + .../DocumentFallbackLocation.php | 127 + .../ProcessingLocation/GlobalProcessing.php | 33 + .../ImageFallbackLocation.php | 127 + .../MultiRegionProcessing.php | 34 + .../Google/Cloud/Dlp/V2/ProfileGeneration.php | 61 + .../src/Google/Cloud/Dlp/V2/ProfileStatus.php | 125 + .../Cloud/Dlp/V2/ProjectDataProfile.php | 346 ++ .../proto/src/Google/Cloud/Dlp/V2/QuasiId.php | 206 + .../src/Google/Cloud/Dlp/V2/QuoteInfo.php | 75 + .../proto/src/Google/Cloud/Dlp/V2/Range.php | 101 + .../Google/Cloud/Dlp/V2/RecordCondition.php | 78 + .../Dlp/V2/RecordCondition/Condition.php | 171 + .../Dlp/V2/RecordCondition/Conditions.php | 67 + .../Dlp/V2/RecordCondition/Expressions.php | 113 + .../Expressions/LogicalOperator.php | 58 + .../src/Google/Cloud/Dlp/V2/RecordKey.php | 146 + .../Google/Cloud/Dlp/V2/RecordLocation.php | 165 + .../Google/Cloud/Dlp/V2/RecordSuppression.php | 82 + .../Cloud/Dlp/V2/RecordTransformation.php | 155 + .../Cloud/Dlp/V2/RecordTransformations.php | 106 + .../src/Google/Cloud/Dlp/V2/RedactConfig.php | 35 + .../Cloud/Dlp/V2/RedactImageRequest.php | 418 ++ .../ImageRedactionConfig.php | 168 + .../Cloud/Dlp/V2/RedactImageResponse.php | 153 + .../Cloud/Dlp/V2/ReidentifyContentRequest.php | 417 ++ .../Dlp/V2/ReidentifyContentResponse.php | 121 + .../Google/Cloud/Dlp/V2/RelatedResource.php | 70 + .../Cloud/Dlp/V2/RelationalOperator.php | 96 + .../Cloud/Dlp/V2/ReplaceDictionaryConfig.php | 81 + .../Cloud/Dlp/V2/ReplaceValueConfig.php | 77 + .../Dlp/V2/ReplaceWithInfoTypeConfig.php | 33 + .../Cloud/Dlp/V2/ResourceVisibility.php | 71 + .../Cloud/Dlp/V2/RiskAnalysisJobConfig.php | 161 + .../Cloud/Dlp/V2/SaveToGcsFindingsOutput.php | 69 + .../src/Google/Cloud/Dlp/V2/Schedule.php | 90 + .../Cloud/Dlp/V2/SearchConnectionsRequest.php | 201 + .../Dlp/V2/SearchConnectionsResponse.php | 113 + .../Cloud/Dlp/V2/SecretManagerCredential.php | 108 + .../Cloud/Dlp/V2/SecretsDiscoveryTarget.php | 41 + .../Google/Cloud/Dlp/V2/SensitivityScore.php | 68 + .../SensitivityScoreLevel.php | 82 + .../Google/Cloud/Dlp/V2/StatisticalTable.php | 165 + .../StatisticalTable/QuasiIdentifierField.php | 120 + .../src/Google/Cloud/Dlp/V2/StorageConfig.php | 218 + .../Dlp/V2/StorageConfig/TimespanConfig.php | 356 ++ .../Cloud/Dlp/V2/StorageMetadataLabel.php | 67 + .../Google/Cloud/Dlp/V2/StoredInfoType.php | 150 + .../Cloud/Dlp/V2/StoredInfoTypeConfig.php | 211 + .../Cloud/Dlp/V2/StoredInfoTypeState.php | 78 + .../Cloud/Dlp/V2/StoredInfoTypeStats.php | 75 + .../Cloud/Dlp/V2/StoredInfoTypeVersion.php | 282 ++ .../src/Google/Cloud/Dlp/V2/StoredType.php | 123 + .../proto/src/Google/Cloud/Dlp/V2/Table.php | 103 + .../src/Google/Cloud/Dlp/V2/Table/Row.php | 67 + .../Google/Cloud/Dlp/V2/TableDataProfile.php | 1189 +++++ .../Cloud/Dlp/V2/TableDataProfile/State.php | 64 + .../src/Google/Cloud/Dlp/V2/TableLocation.php | 87 + .../src/Google/Cloud/Dlp/V2/TableOptions.php | 79 + .../Google/Cloud/Dlp/V2/TableReference.php | 144 + .../v2/proto/src/Google/Cloud/Dlp/V2/Tag.php | 159 + .../src/Google/Cloud/Dlp/V2/TagFilter.php | 123 + .../src/Google/Cloud/Dlp/V2/TagFilters.php | 71 + .../Google/Cloud/Dlp/V2/TimePartConfig.php | 68 + .../Cloud/Dlp/V2/TimePartConfig/TimePart.php | 89 + .../Cloud/Dlp/V2/TransformationConfig.php | 193 + .../Dlp/V2/TransformationContainerType.php | 68 + .../Dlp/V2/TransformationDescription.php | 224 + .../Cloud/Dlp/V2/TransformationDetails.php | 296 ++ .../V2/TransformationDetailsStorageConfig.php | 90 + .../Dlp/V2/TransformationErrorHandling.php | 115 + .../LeaveUntransformed.php | 36 + .../ThrowError.php | 33 + .../Cloud/Dlp/V2/TransformationLocation.php | 158 + .../Cloud/Dlp/V2/TransformationOverview.php | 101 + .../Dlp/V2/TransformationResultStatus.php | 115 + .../Dlp/V2/TransformationResultStatusType.php | 82 + .../Cloud/Dlp/V2/TransformationSummary.php | 321 ++ .../TransformationSummary/SummaryResult.php | 140 + .../TransformationResultCode.php | 61 + .../Cloud/Dlp/V2/TransformationType.php | 147 + .../Cloud/Dlp/V2/TransientCryptoKey.php | 88 + .../Cloud/Dlp/V2/UniquenessScoreLevel.php | 72 + .../Cloud/Dlp/V2/UnwrappedCryptoKey.php | 68 + .../Cloud/Dlp/V2/UpdateConnectionRequest.php | 174 + .../V2/UpdateDeidentifyTemplateRequest.php | 188 + .../Dlp/V2/UpdateDiscoveryConfigRequest.php | 178 + .../Dlp/V2/UpdateInspectTemplateRequest.php | 183 + .../Cloud/Dlp/V2/UpdateJobTriggerRequest.php | 178 + .../Dlp/V2/UpdateStoredInfoTypeRequest.php | 193 + .../proto/src/Google/Cloud/Dlp/V2/Value.php | 311 ++ .../Google/Cloud/Dlp/V2/ValueFrequency.php | 111 + .../Cloud/Dlp/V2/VersionDescription.php | 101 + .../Cloud/Dlp/V2/VertexDatasetCollection.php | 75 + .../Dlp/V2/VertexDatasetDiscoveryTarget.php | 210 + .../Cloud/Dlp/V2/VertexDatasetRegex.php | 71 + .../Cloud/Dlp/V2/VertexDatasetRegexes.php | 76 + .../Dlp/V2/VertexDatasetResourceReference.php | 80 + .../DlpServiceClient/activate_job_trigger.php | 73 + .../V2/DlpServiceClient/cancel_dlp_job.php | 76 + .../V2/DlpServiceClient/create_connection.php | 85 + .../create_deidentify_template.php | 96 + .../create_discovery_config.php | 91 + .../V2/DlpServiceClient/create_dlp_job.php | 95 + .../create_inspect_template.php | 96 + .../DlpServiceClient/create_job_trigger.php | 96 + .../create_stored_info_type.php | 96 + .../DlpServiceClient/deidentify_content.php | 65 + .../V2/DlpServiceClient/delete_connection.php | 70 + .../delete_deidentify_template.php | 78 + .../delete_discovery_config.php | 74 + .../V2/DlpServiceClient/delete_dlp_job.php | 76 + .../delete_file_store_data_profile.php | 74 + .../delete_inspect_template.php | 74 + .../DlpServiceClient/delete_job_trigger.php | 73 + .../delete_stored_info_type.php | 74 + .../delete_table_data_profile.php | 74 + .../V2/DlpServiceClient/finish_dlp_job.php | 70 + .../get_column_data_profile.php | 76 + .../V2/DlpServiceClient/get_connection.php | 72 + .../get_deidentify_template.php | 79 + .../DlpServiceClient/get_discovery_config.php | 76 + .../V2/DlpServiceClient/get_dlp_job.php | 76 + .../get_file_store_data_profile.php | 76 + .../DlpServiceClient/get_inspect_template.php | 76 + .../V2/DlpServiceClient/get_job_trigger.php | 75 + .../get_project_data_profile.php | 76 + .../DlpServiceClient/get_stored_info_type.php | 76 + .../get_table_data_profile.php | 76 + .../hybrid_inspect_dlp_job.php | 74 + .../hybrid_inspect_job_trigger.php | 74 + .../V2/DlpServiceClient/inspect_content.php | 67 + .../list_column_data_profiles.php | 78 + .../V2/DlpServiceClient/list_connections.php | 79 + .../list_deidentify_templates.php | 98 + .../list_discovery_configs.php | 85 + .../V2/DlpServiceClient/list_dlp_jobs.php | 96 + .../list_file_store_data_profiles.php | 78 + .../V2/DlpServiceClient/list_info_types.php | 60 + .../list_inspect_templates.php | 98 + .../V2/DlpServiceClient/list_job_triggers.php | 94 + .../list_project_data_profiles.php | 76 + .../list_stored_info_types.php | 94 + .../list_table_data_profiles.php | 78 + .../V2/DlpServiceClient/redact_image.php | 68 + .../DlpServiceClient/reidentify_content.php | 89 + .../DlpServiceClient/search_connections.php | 78 + .../V2/DlpServiceClient/update_connection.php | 78 + .../update_deidentify_template.php | 80 + .../update_discovery_config.php | 82 + .../update_inspect_template.php | 76 + .../DlpServiceClient/update_job_trigger.php | 75 + .../update_stored_info_type.php | 77 + .../Dlp/v2/src/V2/Client/DlpServiceClient.php | 2670 +++++++++++ .../Dlp/v2/src/V2/gapic_metadata.json | 293 ++ .../resources/dlp_service_client_config.json | 320 ++ .../dlp_service_descriptor_config.php | 827 ++++ .../dlp_service_rest_client_config.php | 1153 +++++ .../Unit/V2/Client/DlpServiceClientTest.php | 3892 +++++++++++++++++ 509 files changed, 79875 insertions(+) create mode 100644 owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Dlp.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Storage.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/Deidentify.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/JobNotificationEmails.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToCloudDataCatalog.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToDataplexCatalog.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishSummaryToCscc.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToPubSub.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToStackdriver.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/SaveFindings.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActionDetails.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActivateJobTriggerRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustByImageFindings.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustByMatchingInfoTypes.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustmentRule.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherDatabaseResources.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherResources.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3Bucket.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/BucketType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/ObjectStorageClass.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketRegex.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult/CategoricalStatsHistogramBucket.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationHistogramBucket.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationQuasiIdValues.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityEquivalenceClass.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityHistogramBucket.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationHistogramBucket.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationQuasiIdValues.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityEquivalenceClass.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityHistogramBucket.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/NumericalStatsResult.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/RequestedRiskAnalysisOptions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccount.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccountRegex.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryDiscoveryTarget.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryField.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryKey.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions/SampleMethod.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegex.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegexes.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQuerySchemaModification.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTable.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableCollection.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableModification.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypeCollection.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypes.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BoundingBox.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig/Bucket.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem/BytesType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CancelDlpJobRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharacterMaskConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore/CommonCharsToIgnore.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlDiscoveryTarget.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlIamCredential.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties/DatabaseEngine.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageDiscoveryTarget.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageFileSet.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/FileSet.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/SampleMethod.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStoragePath.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegex.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegexFileSet.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageResourceReference.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Color.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnDataType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnPolicyState.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/State.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Connection.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ConnectionState.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Container.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentItem.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentLocation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentMetadata.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentOption.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateConnectionRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDeidentifyTemplateRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDiscoveryConfigRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDlpJobRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateInspectTemplateRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateJobTriggerRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateStoredInfoTypeRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoDeterministicConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoHashConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoKey.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig/FfxCommonNativeAlphabet.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/HotwordRule.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/LikelihoodAdjustment.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/Proximity.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary/WordList.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/ExclusionType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/MetadataKeyValueExpression.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Regex.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/SurrogateType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/EventType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/Export.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification/DetailLevel.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToChronicle.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToDataplexCatalog.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToSecurityCommandCenter.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagCondition.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagValue.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileBigQueryRowSchema.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileConfigSnapshot.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFinding.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFindingLocation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFindingRecordLocation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileJobConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileLocation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/ProfileScoreBucket.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubCondition.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions/PubSubLogicalOperator.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubMessage.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileUpdateFrequency.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel/DataRiskLevelScore.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataSourceType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceCollection.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceReference.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegex.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegexes.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreKey.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreOptions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateShiftConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime/TimeZone.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails/RequestedDeidentifyOptions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceStats.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyTemplate.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteConnectionRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDeidentifyTemplateRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDiscoveryConfigRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDlpJobRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteFileStoreDataProfileRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteInspectTemplateRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteJobTriggerRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteStoredInfoTypeRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteTableDataProfileRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Disabled.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions/OrConditions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter/AllOtherBigQueryTables.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseEngine.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseResourceType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlFilter.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence/CloudSqlSchemaModification.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageBucketAttribute.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageObjectAttribute.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageFilter.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageGenerationCadence.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/OrgConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/Status.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryFileStoreConditions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryGenerationCadence.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryInspectTemplateModifiedCadence.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudConditions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudFilter.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudGenerationCadence.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoverySchemaModifiedCadence.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryStartingLocation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTableModifiedCadence.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTarget.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetConditions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetFilter.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetGenerationCadence.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob/JobState.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJobType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DocumentLocation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain/Category.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain/Signal.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Encloses.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EncryptionStatus.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EntityId.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error/ErrorExtraInfo.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByHotword.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByImageFindings.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeInfoTypes.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExclusionRule.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldId.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldTransformation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterSummary.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType/Cluster.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileExtensionInfo.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreCollection.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile/State.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreInfoTypeSummary.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegex.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegexes.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Finding.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FinishDlpJobRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FixedSizeBucketingConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FullyInside.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetColumnDataProfileRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetConnectionRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDeidentifyTemplateRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDiscoveryConfigRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDlpJobRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetFileStoreDataProfileRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetInspectTemplateRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetJobTriggerRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetProjectDataProfileRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetStoredInfoTypeRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetTableDataProfileRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridContentItem.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridFindingDetails.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectDlpJobRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectJobTriggerRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectStatistics.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridOptions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageContainmentType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageLocation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllInfoTypes.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllText.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/SelectedInfoTypes.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/IndustryCategory.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/LocationCategory.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/TypeCategory.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription/InfoTypeLaunchStatus.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeStats.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSummary.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSupportedBy.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations/InfoTypeTransformation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits/InfoTypeLimit.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/InfoTypeLikelihood.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/RequestedOptions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/Result.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectJobConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectResult.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectTemplate.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRule.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRuleSet.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Status.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Trigger.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key/PathElement.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KeyValueMetadataLabel.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KeyValueMetadataProperty.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KindExpression.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KmsWrappedCryptoKey.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryStats.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Likelihood.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Location.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LocationSupport.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LocationSupport/RegionalizationScope.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Manual.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MatchingType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataLocation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/NullPercentageLevel.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation/AwsDiscoveryStartingLocation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryTarget.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceCollection.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegex.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegexes.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudSingleResourceReference.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherInfoTypeSummary.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig/OutputSchema.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Overlap.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PartitionId.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrimitiveTransformation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/CategoricalStatsConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KAnonymityConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable/QuasiIdField.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/TaggedField.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/LDiversityConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/NumericalStatsConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/DocumentFallbackLocation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/GlobalProcessing.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/ImageFallbackLocation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/MultiRegionProcessing.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileGeneration.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileStatus.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProjectDataProfile.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuasiId.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuoteInfo.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Range.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Condition.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Conditions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions/LogicalOperator.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordKey.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordLocation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordSuppression.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformations.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest/ImageRedactionConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelatedResource.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelationalOperator.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceDictionaryConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceValueConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceWithInfoTypeConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ResourceVisibility.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RiskAnalysisJobConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SaveToGcsFindingsOutput.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Schedule.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsResponse.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretManagerCredential.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretsDiscoveryTarget.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore/SensitivityScoreLevel.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable/QuasiIdentifierField.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig/TimespanConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageMetadataLabel.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeState.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeStats.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeVersion.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table/Row.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile/State.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableLocation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableOptions.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableReference.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Tag.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TagFilter.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TagFilters.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig/TimePart.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationContainerType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDescription.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetails.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetailsStorageConfig.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/LeaveUntransformed.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/ThrowError.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationLocation.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationOverview.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatus.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatusType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/SummaryResult.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/TransformationResultCode.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationType.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransientCryptoKey.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UniquenessScoreLevel.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UnwrappedCryptoKey.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateConnectionRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDeidentifyTemplateRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDiscoveryConfigRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateInspectTemplateRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateJobTriggerRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateStoredInfoTypeRequest.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Value.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ValueFrequency.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VersionDescription.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetCollection.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetDiscoveryTarget.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetRegex.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetRegexes.php create mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetResourceReference.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/activate_job_trigger.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/cancel_dlp_job.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_connection.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_deidentify_template.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_discovery_config.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_dlp_job.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_inspect_template.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_job_trigger.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_stored_info_type.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/deidentify_content.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_connection.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_deidentify_template.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_discovery_config.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_dlp_job.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_file_store_data_profile.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_inspect_template.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_job_trigger.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_stored_info_type.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_table_data_profile.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/finish_dlp_job.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_column_data_profile.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_connection.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_deidentify_template.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_discovery_config.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_dlp_job.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_file_store_data_profile.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_inspect_template.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_job_trigger.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_project_data_profile.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_stored_info_type.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_table_data_profile.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_dlp_job.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_job_trigger.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/inspect_content.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_column_data_profiles.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_connections.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_deidentify_templates.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_discovery_configs.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_dlp_jobs.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_file_store_data_profiles.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_info_types.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_inspect_templates.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_job_triggers.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_project_data_profiles.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_stored_info_types.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_table_data_profiles.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/redact_image.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/reidentify_content.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/search_connections.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_connection.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_deidentify_template.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_discovery_config.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_inspect_template.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_job_trigger.php create mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_stored_info_type.php create mode 100644 owl-bot-staging/Dlp/v2/src/V2/Client/DlpServiceClient.php create mode 100644 owl-bot-staging/Dlp/v2/src/V2/gapic_metadata.json create mode 100644 owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_client_config.json create mode 100644 owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_descriptor_config.php create mode 100644 owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_rest_client_config.php create mode 100644 owl-bot-staging/Dlp/v2/tests/Unit/V2/Client/DlpServiceClientTest.php diff --git a/owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Dlp.php b/owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Dlp.php new file mode 100644 index 000000000000..12a2f070d63c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Dlp.php @@ -0,0 +1,37 @@ +internalAddGeneratedFile( + "\x0A\xCC\xBC\x05\x0A\x1Fgoogle/privacy/dlp/v2/dlp.proto\x12\x15google.privacy.dlp.v2\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A#google/privacy/dlp/v2/storage.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\x1A\x16google/type/date.proto\x1A\x1Bgoogle/type/dayofweek.proto\x1A\x1Bgoogle/type/timeofday.proto\"G\x0A\x10ExcludeInfoTypes\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\"\xA8\x01\x0A\x10ExcludeByHotword\x12B\x0A\x0Dhotword_regex\x18\x01 \x01(\x0B2+.google.privacy.dlp.v2.CustomInfoType.Regex\x12P\x0A\x09proximity\x18\x02 \x01(\x0B2=.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity\"\x9A\x01\x0A\x16ExcludeByImageFindings\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12K\x0A\x16image_containment_type\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.ImageContainmentType\"\xBB\x03\x0A\x0DExclusionRule\x12F\x0A\x0Adictionary\x18\x01 \x01(\x0B20.google.privacy.dlp.v2.CustomInfoType.DictionaryH\x00\x12<\x0A\x05regex\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.CustomInfoType.RegexH\x00\x12E\x0A\x12exclude_info_types\x18\x03 \x01(\x0B2'.google.privacy.dlp.v2.ExcludeInfoTypesH\x00\x12E\x0A\x12exclude_by_hotword\x18\x05 \x01(\x0B2'.google.privacy.dlp.v2.ExcludeByHotwordH\x00\x12R\x0A\x19exclude_by_image_findings\x18\x06 \x01(\x0B2-.google.privacy.dlp.v2.ExcludeByImageFindingsH\x00\x12:\x0A\x0Dmatching_type\x18\x04 \x01(\x0E2#.google.privacy.dlp.v2.MatchingTypeB\x06\x0A\x04type\"\xC7\x01\x0A\x19AdjustByMatchingInfoTypes\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x129\x0A\x0Emin_likelihood\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x12:\x0A\x0Dmatching_type\x18\x03 \x01(\x0E2#.google.privacy.dlp.v2.MatchingType\"\xD4\x01\x0A\x15AdjustByImageFindings\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x129\x0A\x0Emin_likelihood\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x12K\x0A\x16image_containment_type\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.ImageContainmentType\"\xB4\x02\x0A\x0EAdjustmentRule\x12Y\x0A\x1Dadjust_by_matching_info_types\x18\x01 \x01(\x0B20.google.privacy.dlp.v2.AdjustByMatchingInfoTypesH\x00\x12P\x0A\x18adjust_by_image_findings\x18\x03 \x01(\x0B2,.google.privacy.dlp.v2.AdjustByImageFindingsH\x00\x12g\x0A\x15likelihood_adjustment\x18\x02 \x01(\x0B2H.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustmentB\x0C\x0A\x0Aconditions\"\xF3\x01\x0A\x0EInspectionRule\x12W\x0A\x0Chotword_rule\x18\x01 \x01(\x0B2?.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRuleH\x00\x12>\x0A\x0Eexclusion_rule\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.ExclusionRuleH\x00\x12@\x0A\x0Fadjustment_rule\x18\x03 \x01(\x0B2%.google.privacy.dlp.v2.AdjustmentRuleH\x00B\x06\x0A\x04type\"~\x0A\x11InspectionRuleSet\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x124\x0A\x05rules\x18\x02 \x03(\x0B2%.google.privacy.dlp.v2.InspectionRule\"\xAC\x07\x0A\x0DInspectConfig\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x129\x0A\x0Emin_likelihood\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x12]\x0A\x1Cmin_likelihood_per_info_type\x18\x0B \x03(\x0B27.google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood\x12B\x0A\x06limits\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.InspectConfig.FindingLimits\x12\x15\x0A\x0Dinclude_quote\x18\x04 \x01(\x08\x12\x1A\x0A\x12exclude_info_types\x18\x05 \x01(\x08\x12@\x0A\x11custom_info_types\x18\x06 \x03(\x0B2%.google.privacy.dlp.v2.CustomInfoType\x12=\x0A\x0Fcontent_options\x18\x08 \x03(\x0E2\$.google.privacy.dlp.v2.ContentOption\x12:\x0A\x08rule_set\x18\x0A \x03(\x0B2(.google.privacy.dlp.v2.InspectionRuleSet\x1A\x83\x01\x0A\x12InfoTypeLikelihood\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x129\x0A\x0Emin_likelihood\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x1A\x91\x02\x0A\x0DFindingLimits\x12\x1D\x0A\x15max_findings_per_item\x18\x01 \x01(\x05\x12 \x0A\x18max_findings_per_request\x18\x02 \x01(\x05\x12d\x0A\x1Amax_findings_per_info_type\x18\x03 \x03(\x0B2@.google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit\x1AY\x0A\x0DInfoTypeLimit\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12\x14\x0A\x0Cmax_findings\x18\x02 \x01(\x05\"\xF9\x02\x0A\x0FByteContentItem\x12>\x0A\x04type\x18\x01 \x01(\x0E20.google.privacy.dlp.v2.ByteContentItem.BytesType\x12\x0C\x0A\x04data\x18\x02 \x01(\x0C\"\x97\x02\x0A\x09BytesType\x12\x1A\x0A\x16BYTES_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05IMAGE\x10\x06\x12\x0E\x0A\x0AIMAGE_JPEG\x10\x01\x12\x0D\x0A\x09IMAGE_BMP\x10\x02\x12\x0D\x0A\x09IMAGE_PNG\x10\x03\x12\x0D\x0A\x09IMAGE_SVG\x10\x04\x12\x0D\x0A\x09TEXT_UTF8\x10\x05\x12\x11\x0A\x0DWORD_DOCUMENT\x10\x07\x12\x07\x0A\x03PDF\x10\x08\x12\x17\x0A\x13POWERPOINT_DOCUMENT\x10\x09\x12\x12\x0A\x0EEXCEL_DOCUMENT\x10\x0A\x12\x08\x0A\x04AVRO\x10\x0B\x12\x07\x0A\x03CSV\x10\x0C\x12\x07\x0A\x03TSV\x10\x0D\x12\x09\x0A\x05AUDIO\x10\x0F\x12\x09\x0A\x05VIDEO\x10\x10\x12\x0E\x0A\x0AEXECUTABLE\x10\x11\x12\x0C\x0A\x08AI_MODEL\x10\x12\"\xD9\x01\x0A\x0BContentItem\x12\x0F\x0A\x05value\x18\x03 \x01(\x09H\x00\x12-\x0A\x05table\x18\x04 \x01(\x0B2\x1C.google.privacy.dlp.v2.TableH\x00\x12;\x0A\x09byte_item\x18\x05 \x01(\x0B2&.google.privacy.dlp.v2.ByteContentItemH\x00\x12@\x0A\x10content_metadata\x18\x06 \x01(\x0B2&.google.privacy.dlp.v2.ContentMetadataB\x0B\x0A\x09data_item\"V\x0A\x0FContentMetadata\x12C\x0A\x0Aproperties\x18\x02 \x03(\x0B2/.google.privacy.dlp.v2.KeyValueMetadataProperty\"\x9D\x01\x0A\x05Table\x12/\x0A\x07headers\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12.\x0A\x04rows\x18\x02 \x03(\x0B2 .google.privacy.dlp.v2.Table.Row\x1A3\x0A\x03Row\x12,\x0A\x06values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\"6\x0A\x18KeyValueMetadataProperty\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09\"]\x0A\x0DInspectResult\x120\x0A\x08findings\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.Finding\x12\x1A\x0A\x12findings_truncated\x18\x02 \x01(\x08\"\xDF\x05\x0A\x07Finding\x12\x0C\x0A\x04name\x18\x0E \x01(\x09\x12\x0D\x0A\x05quote\x18\x01 \x01(\x09\x122\x0A\x09info_type\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x125\x0A\x0Alikelihood\x18\x03 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x121\x0A\x08location\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.Location\x12/\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x124\x0A\x0Aquote_info\x18\x07 \x01(\x0B2 .google.privacy.dlp.v2.QuoteInfo\x125\x0A\x0Dresource_name\x18\x08 \x01(\x09B\x1E\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\x128\x0A\x0Ctrigger_name\x18\x09 \x01(\x09B\"\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\x12:\x0A\x06labels\x18\x0A \x03(\x0B2*.google.privacy.dlp.v2.Finding.LabelsEntry\x123\x0A\x0Fjob_create_time\x18\x0B \x01(\x0B2\x1A.google.protobuf.Timestamp\x120\x0A\x08job_name\x18\x0D \x01(\x09B\x1E\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\x12\x12\x0A\x0Afinding_id\x18\x0F \x01(\x09\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:[\xEAAX\x0A\x1Adlp.googleapis.com/Finding\x12:projects/{project}/locations/{location}/findings/{finding}\"\xEB\x01\x0A\x08Location\x120\x0A\x0Abyte_range\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Range\x125\x0A\x0Fcodepoint_range\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.Range\x12A\x0A\x11content_locations\x18\x07 \x03(\x0B2&.google.privacy.dlp.v2.ContentLocation\x123\x0A\x09container\x18\x08 \x01(\x0B2 .google.privacy.dlp.v2.Container\"\x97\x03\x0A\x0FContentLocation\x12\x16\x0A\x0Econtainer_name\x18\x01 \x01(\x09\x12@\x0A\x0Frecord_location\x18\x02 \x01(\x0B2%.google.privacy.dlp.v2.RecordLocationH\x00\x12>\x0A\x0Eimage_location\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.ImageLocationH\x00\x12D\x0A\x11document_location\x18\x05 \x01(\x0B2'.google.privacy.dlp.v2.DocumentLocationH\x00\x12D\x0A\x11metadata_location\x18\x08 \x01(\x0B2'.google.privacy.dlp.v2.MetadataLocationH\x00\x127\x0A\x13container_timestamp\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x19\x0A\x11container_version\x18\x07 \x01(\x09B\x0A\x0A\x08location\"\xE6\x01\x0A\x10MetadataLocation\x121\x0A\x04type\x18\x01 \x01(\x0E2#.google.privacy.dlp.v2.MetadataType\x12D\x0A\x0Dstorage_label\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.StorageMetadataLabelH\x00\x12P\x0A\x18key_value_metadata_label\x18\x04 \x01(\x0B2,.google.privacy.dlp.v2.KeyValueMetadataLabelH\x00B\x07\x0A\x05label\"#\x0A\x14StorageMetadataLabel\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\"\$\x0A\x15KeyValueMetadataLabel\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\"'\x0A\x10DocumentLocation\x12\x13\x0A\x0Bfile_offset\x18\x01 \x01(\x03\"\xB6\x01\x0A\x0ERecordLocation\x124\x0A\x0Arecord_key\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.RecordKey\x120\x0A\x08field_id\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12<\x0A\x0Etable_location\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.TableLocation\"\"\x0A\x0DTableLocation\x12\x11\x0A\x09row_index\x18\x01 \x01(\x03\"\xAC\x01\x0A\x09Container\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x12\x0A\x0Aproject_id\x18\x02 \x01(\x09\x12\x11\x0A\x09full_path\x18\x03 \x01(\x09\x12\x11\x0A\x09root_path\x18\x04 \x01(\x09\x12\x15\x0A\x0Drelative_path\x18\x05 \x01(\x09\x12/\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0F\x0A\x07version\x18\x07 \x01(\x09\"#\x0A\x05Range\x12\x0D\x0A\x05start\x18\x01 \x01(\x03\x12\x0B\x0A\x03end\x18\x02 \x01(\x03\"K\x0A\x0DImageLocation\x12:\x0A\x0Ebounding_boxes\x18\x01 \x03(\x0B2\".google.privacy.dlp.v2.BoundingBox\"G\x0A\x0BBoundingBox\x12\x0B\x0A\x03top\x18\x01 \x01(\x05\x12\x0C\x0A\x04left\x18\x02 \x01(\x05\x12\x0D\x0A\x05width\x18\x03 \x01(\x05\x12\x0E\x0A\x06height\x18\x04 \x01(\x05\"\xB3\x04\x0A\x12RedactImageRequest\x122\x0A\x06parent\x18\x01 \x01(\x09B\"\xFAA\x1F\x12\x1Ddlp.googleapis.com/DlpContent\x12\x13\x0A\x0Blocation_id\x18\x08 \x01(\x09\x12<\x0A\x0Einspect_config\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x12_\x0A\x17image_redaction_configs\x18\x05 \x03(\x0B2>.google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig\x12\x18\x0A\x10include_findings\x18\x06 \x01(\x08\x129\x0A\x09byte_item\x18\x07 \x01(\x0B2&.google.privacy.dlp.v2.ByteContentItem\x12\x18\x0A\x10inspect_template\x18\x09 \x01(\x09\x12\x1B\x0A\x13deidentify_template\x18\x0A \x01(\x09\x1A\xA8\x01\x0A\x14ImageRedactionConfig\x124\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoTypeH\x00\x12\x19\x0A\x0Fredact_all_text\x18\x02 \x01(\x08H\x00\x125\x0A\x0Fredaction_color\x18\x03 \x01(\x0B2\x1C.google.privacy.dlp.v2.ColorB\x08\x0A\x06target\"1\x0A\x05Color\x12\x0B\x0A\x03red\x18\x01 \x01(\x02\x12\x0D\x0A\x05green\x18\x02 \x01(\x02\x12\x0C\x0A\x04blue\x18\x03 \x01(\x02\"\x83\x01\x0A\x13RedactImageResponse\x12\x16\x0A\x0Eredacted_image\x18\x01 \x01(\x0C\x12\x16\x0A\x0Eextracted_text\x18\x02 \x01(\x09\x12<\x0A\x0Einspect_result\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.InspectResult\"\xD8\x02\x0A\x18DeidentifyContentRequest\x122\x0A\x06parent\x18\x01 \x01(\x09B\"\xFAA\x1F\x12\x1Ddlp.googleapis.com/DlpContent\x12B\x0A\x11deidentify_config\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.DeidentifyConfig\x12<\x0A\x0Einspect_config\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x120\x0A\x04item\x18\x04 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12\x1D\x0A\x15inspect_template_name\x18\x05 \x01(\x09\x12 \x0A\x18deidentify_template_name\x18\x06 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x07 \x01(\x09\"\x8E\x01\x0A\x19DeidentifyContentResponse\x120\x0A\x04item\x18\x01 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12?\x0A\x08overview\x18\x02 \x01(\x0B2-.google.privacy.dlp.v2.TransformationOverview\"\xDB\x02\x0A\x18ReidentifyContentRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/DlpContent\x12B\x0A\x11reidentify_config\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.DeidentifyConfig\x12<\x0A\x0Einspect_config\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x120\x0A\x04item\x18\x04 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12\x1D\x0A\x15inspect_template_name\x18\x05 \x01(\x09\x12 \x0A\x18reidentify_template_name\x18\x06 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x07 \x01(\x09\"\x8E\x01\x0A\x19ReidentifyContentResponse\x120\x0A\x04item\x18\x01 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12?\x0A\x08overview\x18\x02 \x01(\x0B2-.google.privacy.dlp.v2.TransformationOverview\"\xEF\x01\x0A\x15InspectContentRequest\x122\x0A\x06parent\x18\x01 \x01(\x09B\"\xFAA\x1F\x12\x1Ddlp.googleapis.com/DlpContent\x12<\x0A\x0Einspect_config\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x120\x0A\x04item\x18\x03 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12\x1D\x0A\x15inspect_template_name\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09\"N\x0A\x16InspectContentResponse\x124\x0A\x06result\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.InspectResult\"\xF8\x02\x0A\x13OutputStorageConfig\x125\x0A\x05table\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTableH\x00\x12?\x0A\x0Cstorage_path\x18\x05 \x01(\x0B2'.google.privacy.dlp.v2.CloudStoragePathH\x00\x12N\x0A\x0Doutput_schema\x18\x03 \x01(\x0E27.google.privacy.dlp.v2.OutputStorageConfig.OutputSchema\"\x90\x01\x0A\x0COutputSchema\x12\x1D\x0A\x19OUTPUT_SCHEMA_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DBASIC_COLUMNS\x10\x01\x12\x0F\x0A\x0BGCS_COLUMNS\x10\x02\x12\x15\x0A\x11DATASTORE_COLUMNS\x10\x03\x12\x15\x0A\x11BIG_QUERY_COLUMNS\x10\x04\x12\x0F\x0A\x0BALL_COLUMNS\x10\x05B\x06\x0A\x04type\"R\x0A\x0DInfoTypeStats\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12\x0D\x0A\x05count\x18\x02 \x01(\x03\"\xC0\x04\x0A\x18InspectDataSourceDetails\x12[\x0A\x11requested_options\x18\x02 \x01(\x0B2@.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions\x12F\x0A\x06result\x18\x03 \x01(\x0B26.google.privacy.dlp.v2.InspectDataSourceDetails.Result\x1A\x9A\x01\x0A\x10RequestedOptions\x12I\x0A\x19snapshot_inspect_template\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.InspectTemplate\x12;\x0A\x0Ajob_config\x18\x03 \x01(\x0B2'.google.privacy.dlp.v2.InspectJobConfig\x1A\xE1\x01\x0A\x06Result\x12\x17\x0A\x0Fprocessed_bytes\x18\x01 \x01(\x03\x12\x1D\x0A\x15total_estimated_bytes\x18\x02 \x01(\x03\x12=\x0A\x0Finfo_type_stats\x18\x03 \x03(\x0B2\$.google.privacy.dlp.v2.InfoTypeStats\x12\x1A\x0A\x12num_rows_processed\x18\x05 \x01(\x03\x12D\x0A\x0Chybrid_stats\x18\x07 \x01(\x0B2..google.privacy.dlp.v2.HybridInspectStatistics\"\xFF\x01\x0A\x1CDataProfileBigQueryRowSchema\x12@\x0A\x0Dtable_profile\x18\x01 \x01(\x0B2'.google.privacy.dlp.v2.TableDataProfileH\x00\x12B\x0A\x0Ecolumn_profile\x18\x02 \x01(\x0B2(.google.privacy.dlp.v2.ColumnDataProfileH\x00\x12I\x0A\x12file_store_profile\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.FileStoreDataProfileH\x00B\x0E\x0A\x0Cdata_profile\"`\x0A\x17HybridInspectStatistics\x12\x17\x0A\x0Fprocessed_count\x18\x01 \x01(\x03\x12\x15\x0A\x0Daborted_count\x18\x02 \x01(\x03\x12\x15\x0A\x0Dpending_count\x18\x03 \x01(\x03\"l\x0A\x0DActionDetails\x12P\x0A\x12deidentify_details\x18\x01 \x01(\x0B22.google.privacy.dlp.v2.DeidentifyDataSourceDetailsH\x00B\x09\x0A\x07details\"x\x0A\x19DeidentifyDataSourceStats\x12\x19\x0A\x11transformed_bytes\x18\x01 \x01(\x03\x12\x1C\x0A\x14transformation_count\x18\x02 \x01(\x03\x12\"\x0A\x1Atransformation_error_count\x18\x03 \x01(\x03\"\xF2\x03\x0A\x1BDeidentifyDataSourceDetails\x12h\x0A\x11requested_options\x18\x01 \x01(\x0B2M.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions\x12J\x0A\x10deidentify_stats\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.DeidentifyDataSourceStats\x1A\x9C\x02\x0A\x1ARequestedDeidentifyOptions\x12O\x0A\x1Csnapshot_deidentify_template\x18\x01 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\x12Z\x0A'snapshot_structured_deidentify_template\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\x12Q\x0A\x1Esnapshot_image_redact_template\x18\x03 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\"\xDF\x01\x0A\x0FLocationSupport\x12Z\x0A\x15regionalization_scope\x18\x01 \x01(\x0E2;.google.privacy.dlp.v2.LocationSupport.RegionalizationScope\x12\x11\x0A\x09locations\x18\x02 \x03(\x09\"]\x0A\x14RegionalizationScope\x12%\x0A!REGIONALIZATION_SCOPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08REGIONAL\x10\x01\x12\x10\x0A\x0CANY_LOCATION\x10\x02\"\x9B\x05\x0A\x13InfoTypeDescription\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12@\x0A\x0Csupported_by\x18\x03 \x03(\x0E2*.google.privacy.dlp.v2.InfoTypeSupportedBy\x12\x13\x0A\x0Bdescription\x18\x04 \x01(\x09\x12@\x0A\x10location_support\x18\x06 \x01(\x0B2&.google.privacy.dlp.v2.LocationSupport\x12\x0F\x0A\x07example\x18\x08 \x01(\x09\x12;\x0A\x08versions\x18\x09 \x03(\x0B2).google.privacy.dlp.v2.VersionDescription\x12;\x0A\x0Acategories\x18\x0A \x03(\x0B2'.google.privacy.dlp.v2.InfoTypeCategory\x12B\x0A\x11sensitivity_score\x18\x0B \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12\x1B\x0A\x13specific_info_types\x18\x0C \x03(\x09\x12V\x0A\x0Dlaunch_status\x18\x0D \x01(\x0E2?.google.privacy.dlp.v2.InfoTypeDescription.InfoTypeLaunchStatus\"\x82\x01\x0A\x14InfoTypeLaunchStatus\x12'\x0A#INFO_TYPE_LAUNCH_STATUS_UNSPECIFIED\x10\x00\x12\x18\x0A\x14GENERAL_AVAILABILITY\x10\x01\x12\x12\x0A\x0EPUBLIC_PREVIEW\x10\x02\x12\x13\x0A\x0FPRIVATE_PREVIEW\x10\x03\"\x90\x0A\x0A\x10InfoTypeCategory\x12U\x0A\x11location_category\x18\x01 \x01(\x0E28.google.privacy.dlp.v2.InfoTypeCategory.LocationCategoryH\x00\x12U\x0A\x11industry_category\x18\x02 \x01(\x0E28.google.privacy.dlp.v2.InfoTypeCategory.IndustryCategoryH\x00\x12M\x0A\x0Dtype_category\x18\x03 \x01(\x0E24.google.privacy.dlp.v2.InfoTypeCategory.TypeCategoryH\x00\"\xEF\x05\x0A\x10LocationCategory\x12\x18\x0A\x14LOCATION_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GLOBAL\x10\x01\x12\x0D\x0A\x09ARGENTINA\x10\x02\x12\x0B\x0A\x07ARMENIA\x103\x12\x0D\x0A\x09AUSTRALIA\x10\x03\x12\x0B\x0A\x07AUSTRIA\x105\x12\x0E\x0A\x0AAZERBAIJAN\x100\x12\x0B\x0A\x07BELARUS\x102\x12\x0B\x0A\x07BELGIUM\x10\x04\x12\x0A\x0A\x06BRAZIL\x10\x05\x12\x0A\x0A\x06CANADA\x10\x06\x12\x09\x0A\x05CHILE\x10\x07\x12\x09\x0A\x05CHINA\x10\x08\x12\x0C\x0A\x08COLOMBIA\x10\x09\x12\x0B\x0A\x07CROATIA\x10*\x12\x0B\x0A\x07CZECHIA\x104\x12\x0B\x0A\x07DENMARK\x10\x0A\x12\x0A\x0A\x06FRANCE\x10\x0B\x12\x0B\x0A\x07FINLAND\x10\x0C\x12\x0B\x0A\x07GERMANY\x10\x0D\x12\x0D\x0A\x09HONG_KONG\x10\x0E\x12\x09\x0A\x05INDIA\x10\x0F\x12\x0D\x0A\x09INDONESIA\x10\x10\x12\x0B\x0A\x07IRELAND\x10\x11\x12\x0A\x0A\x06ISRAEL\x10\x12\x12\x09\x0A\x05ITALY\x10\x13\x12\x09\x0A\x05JAPAN\x10\x14\x12\x0E\x0A\x0AKAZAKHSTAN\x10/\x12\x09\x0A\x05KOREA\x10\x15\x12\x0A\x0A\x06MEXICO\x10\x16\x12\x13\x0A\x0FTHE_NETHERLANDS\x10\x17\x12\x0F\x0A\x0BNEW_ZEALAND\x10)\x12\x0A\x0A\x06NORWAY\x10\x18\x12\x0C\x0A\x08PARAGUAY\x10\x19\x12\x08\x0A\x04PERU\x10\x1A\x12\x0A\x0A\x06POLAND\x10\x1B\x12\x0C\x0A\x08PORTUGAL\x10\x1C\x12\x0A\x0A\x06RUSSIA\x10,\x12\x0D\x0A\x09SINGAPORE\x10\x1D\x12\x10\x0A\x0CSOUTH_AFRICA\x10\x1E\x12\x09\x0A\x05SPAIN\x10\x1F\x12\x0A\x0A\x06SWEDEN\x10 \x12\x0F\x0A\x0BSWITZERLAND\x10+\x12\x0A\x0A\x06TAIWAN\x10!\x12\x0C\x0A\x08THAILAND\x10\"\x12\x0A\x0A\x06TURKEY\x10#\x12\x0B\x0A\x07UKRAINE\x10-\x12\x12\x0A\x0EUNITED_KINGDOM\x10\$\x12\x11\x0A\x0DUNITED_STATES\x10%\x12\x0B\x0A\x07URUGUAY\x10&\x12\x0E\x0A\x0AUZBEKISTAN\x10.\x12\x0D\x0A\x09VENEZUELA\x10'\x12\x0C\x0A\x08INTERNAL\x10(\"]\x0A\x10IndustryCategory\x12\x18\x0A\x14INDUSTRY_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07FINANCE\x10\x01\x12\x0A\x0A\x06HEALTH\x10\x02\x12\x16\x0A\x12TELECOMMUNICATIONS\x10\x03\"\xA1\x01\x0A\x0CTypeCategory\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03PII\x10\x01\x12\x08\x0A\x04SPII\x10\x02\x12\x0F\x0A\x0BDEMOGRAPHIC\x10\x03\x12\x0E\x0A\x0ACREDENTIAL\x10\x04\x12\x11\x0A\x0DGOVERNMENT_ID\x10\x05\x12\x0C\x0A\x08DOCUMENT\x10\x06\x12\x1A\x0A\x16CONTEXTUAL_INFORMATION\x10\x07\x12\x0A\x0A\x06CUSTOM\x10\x08B\x0A\x0A\x08category\":\x0A\x12VersionDescription\x12\x0F\x0A\x07version\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\"b\x0A\x14ListInfoTypesRequest\x12\x0E\x0A\x06parent\x18\x04 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x01 \x01(\x09\x12\x0E\x0A\x06filter\x18\x02 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x03 \x01(\x09\"W\x0A\x15ListInfoTypesResponse\x12>\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2*.google.privacy.dlp.v2.InfoTypeDescription\"\xC1\x01\x0A\x15RiskAnalysisJobConfig\x12<\x0A\x0Eprivacy_metric\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.PrivacyMetric\x12:\x0A\x0Csource_table\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12.\x0A\x07actions\x18\x03 \x03(\x0B2\x1D.google.privacy.dlp.v2.Action\"\xBC\x01\x0A\x07QuasiId\x122\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x124\x0A\x09info_type\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoTypeH\x00\x12\x14\x0A\x0Acustom_tag\x18\x03 \x01(\x09H\x00\x12*\x0A\x08inferred\x18\x04 \x01(\x0B2\x16.google.protobuf.EmptyH\x00B\x05\x0A\x03tag\"\xBE\x02\x0A\x10StatisticalTable\x128\x0A\x05table\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTableB\x03\xE0A\x02\x12T\x0A\x09quasi_ids\x18\x01 \x03(\x0B2<.google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierFieldB\x03\xE0A\x02\x12?\x0A\x12relative_frequency\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x1AY\x0A\x14QuasiIdentifierField\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12\x12\x0A\x0Acustom_tag\x18\x02 \x01(\x09\"\x93\x0F\x0A\x0DPrivacyMetric\x12[\x0A\x16numerical_stats_config\x18\x01 \x01(\x0B29.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfigH\x00\x12_\x0A\x18categorical_stats_config\x18\x02 \x01(\x0B2;.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfigH\x00\x12S\x0A\x12k_anonymity_config\x18\x03 \x01(\x0B25.google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfigH\x00\x12S\x0A\x12l_diversity_config\x18\x04 \x01(\x0B25.google.privacy.dlp.v2.PrivacyMetric.LDiversityConfigH\x00\x12\\\x0A\x17k_map_estimation_config\x18\x05 \x01(\x0B29.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfigH\x00\x12n\x0A delta_presence_estimation_config\x18\x06 \x01(\x0B2B.google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfigH\x00\x1AE\x0A\x14NumericalStatsConfig\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x1AG\x0A\x16CategoricalStatsConfig\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x1Ay\x0A\x10KAnonymityConfig\x121\x0A\x09quasi_ids\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x122\x0A\x09entity_id\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.EntityId\x1A\x82\x01\x0A\x10LDiversityConfig\x121\x0A\x09quasi_ids\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12;\x0A\x13sensitive_attribute\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x1A\x81\x06\x0A\x14KMapEstimationConfig\x12]\x0A\x09quasi_ids\x18\x01 \x03(\x0B2E.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedFieldB\x03\xE0A\x02\x12\x13\x0A\x0Bregion_code\x18\x02 \x01(\x09\x12b\x0A\x10auxiliary_tables\x18\x03 \x03(\x0B2H.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable\x1A\xC0\x01\x0A\x0BTaggedField\x122\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x124\x0A\x09info_type\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoTypeH\x00\x12\x14\x0A\x0Acustom_tag\x18\x03 \x01(\x09H\x00\x12*\x0A\x08inferred\x18\x04 \x01(\x0B2\x16.google.protobuf.EmptyH\x00B\x05\x0A\x03tag\x1A\xCD\x02\x0A\x0EAuxiliaryTable\x128\x0A\x05table\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTableB\x03\xE0A\x02\x12m\x0A\x09quasi_ids\x18\x01 \x03(\x0B2U.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdFieldB\x03\xE0A\x02\x12?\x0A\x12relative_frequency\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x1AQ\x0A\x0CQuasiIdField\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12\x12\x0A\x0Acustom_tag\x18\x02 \x01(\x09\x1A\xAF\x01\x0A\x1DDeltaPresenceEstimationConfig\x126\x0A\x09quasi_ids\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.QuasiIdB\x03\xE0A\x02\x12\x13\x0A\x0Bregion_code\x18\x02 \x01(\x09\x12A\x0A\x10auxiliary_tables\x18\x03 \x03(\x0B2'.google.privacy.dlp.v2.StatisticalTableB\x06\x0A\x04type\"\xC1\x1F\x0A\x1CAnalyzeDataSourceRiskDetails\x12F\x0A\x18requested_privacy_metric\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.PrivacyMetric\x12D\x0A\x16requested_source_table\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12j\x0A\x16numerical_stats_result\x18\x03 \x01(\x0B2H.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResultH\x00\x12n\x0A\x18categorical_stats_result\x18\x04 \x01(\x0B2J.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResultH\x00\x12b\x0A\x12k_anonymity_result\x18\x05 \x01(\x0B2D.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResultH\x00\x12b\x0A\x12l_diversity_result\x18\x06 \x01(\x0B2D.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResultH\x00\x12k\x0A\x17k_map_estimation_result\x18\x07 \x01(\x0B2H.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResultH\x00\x12}\x0A delta_presence_estimation_result\x18\x09 \x01(\x0B2Q.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResultH\x00\x12k\x0A\x11requested_options\x18\x0A \x01(\x0B2P.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions\x1A\xAF\x01\x0A\x14NumericalStatsResult\x12/\x0A\x09min_value\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x12/\x0A\x09max_value\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x125\x0A\x0Fquantile_values\x18\x04 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x1A\x8D\x03\x0A\x16CategoricalStatsResult\x12\x95\x01\x0A!value_frequency_histogram_buckets\x18\x05 \x03(\x0B2j.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket\x1A\xDA\x01\x0A\x1FCategoricalStatsHistogramBucket\x12#\x0A\x1Bvalue_frequency_lower_bound\x18\x01 \x01(\x03\x12#\x0A\x1Bvalue_frequency_upper_bound\x18\x02 \x01(\x03\x12\x13\x0A\x0Bbucket_size\x18\x03 \x01(\x03\x12<\x0A\x0Dbucket_values\x18\x04 \x03(\x0B2%.google.privacy.dlp.v2.ValueFrequency\x12\x1A\x0A\x12bucket_value_count\x18\x05 \x01(\x03\x1A\xB5\x04\x0A\x10KAnonymityResult\x12\x8B\x01\x0A#equivalence_class_histogram_buckets\x18\x05 \x03(\x0B2^.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket\x1At\x0A\x1AKAnonymityEquivalenceClass\x126\x0A\x10quasi_ids_values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x1E\x0A\x16equivalence_class_size\x18\x02 \x01(\x03\x1A\x9C\x02\x0A\x19KAnonymityHistogramBucket\x12*\x0A\"equivalence_class_size_lower_bound\x18\x01 \x01(\x03\x12*\x0A\"equivalence_class_size_upper_bound\x18\x02 \x01(\x03\x12\x13\x0A\x0Bbucket_size\x18\x03 \x01(\x03\x12v\x0A\x0Dbucket_values\x18\x04 \x03(\x0B2_.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass\x12\x1A\x0A\x12bucket_value_count\x18\x05 \x01(\x03\x1A\xB0\x05\x0A\x10LDiversityResult\x12\x93\x01\x0A+sensitive_value_frequency_histogram_buckets\x18\x05 \x03(\x0B2^.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket\x1A\xE0\x01\x0A\x1ALDiversityEquivalenceClass\x126\x0A\x10quasi_ids_values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x1E\x0A\x16equivalence_class_size\x18\x02 \x01(\x03\x12%\x0A\x1Dnum_distinct_sensitive_values\x18\x03 \x01(\x03\x12C\x0A\x14top_sensitive_values\x18\x04 \x03(\x0B2%.google.privacy.dlp.v2.ValueFrequency\x1A\xA2\x02\x0A\x19LDiversityHistogramBucket\x12-\x0A%sensitive_value_frequency_lower_bound\x18\x01 \x01(\x03\x12-\x0A%sensitive_value_frequency_upper_bound\x18\x02 \x01(\x03\x12\x13\x0A\x0Bbucket_size\x18\x03 \x01(\x03\x12v\x0A\x0Dbucket_values\x18\x04 \x03(\x0B2_.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass\x12\x1A\x0A\x12bucket_value_count\x18\x05 \x01(\x03\x1A\x95\x04\x0A\x14KMapEstimationResult\x12\x8A\x01\x0A\x1Ak_map_estimation_histogram\x18\x01 \x03(\x0B2f.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket\x1Ar\x0A\x1BKMapEstimationQuasiIdValues\x126\x0A\x10quasi_ids_values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x1B\x0A\x13estimated_anonymity\x18\x02 \x01(\x03\x1A\xFB\x01\x0A\x1DKMapEstimationHistogramBucket\x12\x15\x0A\x0Dmin_anonymity\x18\x01 \x01(\x03\x12\x15\x0A\x0Dmax_anonymity\x18\x02 \x01(\x03\x12\x13\x0A\x0Bbucket_size\x18\x05 \x01(\x03\x12{\x0A\x0Dbucket_values\x18\x06 \x03(\x0B2d.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues\x12\x1A\x0A\x12bucket_value_count\x18\x07 \x01(\x03\x1A\xE4\x04\x0A\x1DDeltaPresenceEstimationResult\x12\xA5\x01\x0A#delta_presence_estimation_histogram\x18\x01 \x03(\x0B2x.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket\x1A}\x0A\$DeltaPresenceEstimationQuasiIdValues\x126\x0A\x10quasi_ids_values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x1D\x0A\x15estimated_probability\x18\x02 \x01(\x01\x1A\x9B\x02\x0A&DeltaPresenceEstimationHistogramBucket\x12\x17\x0A\x0Fmin_probability\x18\x01 \x01(\x01\x12\x17\x0A\x0Fmax_probability\x18\x02 \x01(\x01\x12\x13\x0A\x0Bbucket_size\x18\x05 \x01(\x03\x12\x8D\x01\x0A\x0Dbucket_values\x18\x06 \x03(\x0B2v.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues\x12\x1A\x0A\x12bucket_value_count\x18\x07 \x01(\x03\x1A`\x0A\x1CRequestedRiskAnalysisOptions\x12@\x0A\x0Ajob_config\x18\x01 \x01(\x0B2,.google.privacy.dlp.v2.RiskAnalysisJobConfigB\x08\x0A\x06result\"L\x0A\x0EValueFrequency\x12+\x0A\x05value\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x0D\x0A\x05count\x18\x02 \x01(\x03\"\xB3\x02\x0A\x05Value\x12\x17\x0A\x0Dinteger_value\x18\x01 \x01(\x03H\x00\x12\x15\x0A\x0Bfloat_value\x18\x02 \x01(\x01H\x00\x12\x16\x0A\x0Cstring_value\x18\x03 \x01(\x09H\x00\x12\x17\x0A\x0Dboolean_value\x18\x04 \x01(\x08H\x00\x125\x0A\x0Ftimestamp_value\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00\x12,\x0A\x0Atime_value\x18\x06 \x01(\x0B2\x16.google.type.TimeOfDayH\x00\x12'\x0A\x0Adate_value\x18\x07 \x01(\x0B2\x11.google.type.DateH\x00\x123\x0A\x11day_of_week_value\x18\x08 \x01(\x0E2\x16.google.type.DayOfWeekH\x00B\x06\x0A\x04type\"Q\x0A\x09QuoteInfo\x124\x0A\x09date_time\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.DateTimeH\x00B\x0E\x0A\x0Cparsed_quote\"\xDF\x01\x0A\x08DateTime\x12\x1F\x0A\x04date\x18\x01 \x01(\x0B2\x11.google.type.Date\x12+\x0A\x0Bday_of_week\x18\x02 \x01(\x0E2\x16.google.type.DayOfWeek\x12\$\x0A\x04time\x18\x03 \x01(\x0B2\x16.google.type.TimeOfDay\x12;\x0A\x09time_zone\x18\x04 \x01(\x0B2(.google.privacy.dlp.v2.DateTime.TimeZone\x1A\"\x0A\x08TimeZone\x12\x16\x0A\x0Eoffset_minutes\x18\x01 \x01(\x05\"\xF2\x02\x0A\x10DeidentifyConfig\x12S\x0A\x19info_type_transformations\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.InfoTypeTransformationsH\x00\x12N\x0A\x16record_transformations\x18\x02 \x01(\x0B2,.google.privacy.dlp.v2.RecordTransformationsH\x00\x12L\x0A\x15image_transformations\x18\x04 \x01(\x0B2+.google.privacy.dlp.v2.ImageTransformationsH\x00\x12Y\x0A\x1Dtransformation_error_handling\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.TransformationErrorHandlingB\x10\x0A\x0Etransformation\"\xE5\x04\x0A\x14ImageTransformations\x12S\x0A\x0Atransforms\x18\x02 \x03(\x0B2?.google.privacy.dlp.v2.ImageTransformations.ImageTransformation\x1A\xF7\x03\x0A\x13ImageTransformation\x12p\x0A\x13selected_info_types\x18\x04 \x01(\x0B2Q.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypesH\x00\x12f\x0A\x0Eall_info_types\x18\x05 \x01(\x0B2L.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypesH\x00\x12[\x0A\x08all_text\x18\x06 \x01(\x0B2G.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllTextH\x00\x125\x0A\x0Fredaction_color\x18\x03 \x01(\x0B2\x1C.google.privacy.dlp.v2.Color\x1AM\x0A\x11SelectedInfoTypes\x128\x0A\x0Ainfo_types\x18\x05 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoTypeB\x03\xE0A\x02\x1A\x0E\x0A\x0CAllInfoTypes\x1A\x09\x0A\x07AllTextB\x08\x0A\x06target\"\x85\x02\x0A\x1BTransformationErrorHandling\x12T\x0A\x0Bthrow_error\x18\x01 \x01(\x0B2=.google.privacy.dlp.v2.TransformationErrorHandling.ThrowErrorH\x00\x12d\x0A\x13leave_untransformed\x18\x02 \x01(\x0B2E.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformedH\x00\x1A\x0C\x0A\x0AThrowError\x1A\x14\x0A\x12LeaveUntransformedB\x06\x0A\x04mode\"\xCA\x07\x0A\x17PrimitiveTransformation\x12C\x0A\x0Ereplace_config\x18\x01 \x01(\x0B2).google.privacy.dlp.v2.ReplaceValueConfigH\x00\x12<\x0A\x0Dredact_config\x18\x02 \x01(\x0B2#.google.privacy.dlp.v2.RedactConfigH\x00\x12K\x0A\x15character_mask_config\x18\x03 \x01(\x0B2*.google.privacy.dlp.v2.CharacterMaskConfigH\x00\x12Y\x0A\x1Dcrypto_replace_ffx_fpe_config\x18\x04 \x01(\x0B20.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfigH\x00\x12V\x0A\x1Bfixed_size_bucketing_config\x18\x05 \x01(\x0B2/.google.privacy.dlp.v2.FixedSizeBucketingConfigH\x00\x12B\x0A\x10bucketing_config\x18\x06 \x01(\x0B2&.google.privacy.dlp.v2.BucketingConfigH\x00\x12Y\x0A\x1Dreplace_with_info_type_config\x18\x07 \x01(\x0B20.google.privacy.dlp.v2.ReplaceWithInfoTypeConfigH\x00\x12A\x0A\x10time_part_config\x18\x08 \x01(\x0B2%.google.privacy.dlp.v2.TimePartConfigH\x00\x12E\x0A\x12crypto_hash_config\x18\x09 \x01(\x0B2'.google.privacy.dlp.v2.CryptoHashConfigH\x00\x12C\x0A\x11date_shift_config\x18\x0B \x01(\x0B2&.google.privacy.dlp.v2.DateShiftConfigH\x00\x12W\x0A\x1Bcrypto_deterministic_config\x18\x0C \x01(\x0B20.google.privacy.dlp.v2.CryptoDeterministicConfigH\x00\x12S\x0A\x19replace_dictionary_config\x18\x0D \x01(\x0B2..google.privacy.dlp.v2.ReplaceDictionaryConfigH\x00B\x10\x0A\x0Etransformation\"\xDC\x01\x0A\x0ETimePartConfig\x12G\x0A\x0Fpart_to_extract\x18\x01 \x01(\x0E2..google.privacy.dlp.v2.TimePartConfig.TimePart\"\x80\x01\x0A\x08TimePart\x12\x19\x0A\x15TIME_PART_UNSPECIFIED\x10\x00\x12\x08\x0A\x04YEAR\x10\x01\x12\x09\x0A\x05MONTH\x10\x02\x12\x10\x0A\x0CDAY_OF_MONTH\x10\x03\x12\x0F\x0A\x0BDAY_OF_WEEK\x10\x04\x12\x10\x0A\x0CWEEK_OF_YEAR\x10\x05\x12\x0F\x0A\x0BHOUR_OF_DAY\x10\x06\"H\x0A\x10CryptoHashConfig\x124\x0A\x0Acrypto_key\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.CryptoKey\"\xC0\x01\x0A\x19CryptoDeterministicConfig\x124\x0A\x0Acrypto_key\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.CryptoKey\x12<\x0A\x13surrogate_info_type\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12/\x0A\x07context\x18\x03 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\"E\x0A\x12ReplaceValueConfig\x12/\x0A\x09new_value\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\"q\x0A\x17ReplaceDictionaryConfig\x12N\x0A\x09word_list\x18\x01 \x01(\x0B29.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordListH\x00B\x06\x0A\x04type\"\x1B\x0A\x19ReplaceWithInfoTypeConfig\"\x0E\x0A\x0CRedactConfig\"\xB6\x02\x0A\x0DCharsToIgnore\x12\x1C\x0A\x12characters_to_skip\x18\x01 \x01(\x09H\x00\x12_\x0A\x1Bcommon_characters_to_ignore\x18\x02 \x01(\x0E28.google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnoreH\x00\"\x97\x01\x0A\x13CommonCharsToIgnore\x12&\x0A\"COMMON_CHARS_TO_IGNORE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07NUMERIC\x10\x01\x12\x14\x0A\x10ALPHA_UPPER_CASE\x10\x02\x12\x14\x0A\x10ALPHA_LOWER_CASE\x10\x03\x12\x0F\x0A\x0BPUNCTUATION\x10\x04\x12\x0E\x0A\x0AWHITESPACE\x10\x05B\x0C\x0A\x0Acharacters\"\xA3\x01\x0A\x13CharacterMaskConfig\x12\x19\x0A\x11masking_character\x18\x01 \x01(\x09\x12\x16\x0A\x0Enumber_to_mask\x18\x02 \x01(\x05\x12\x15\x0A\x0Dreverse_order\x18\x03 \x01(\x08\x12B\x0A\x14characters_to_ignore\x18\x04 \x03(\x0B2\$.google.privacy.dlp.v2.CharsToIgnore\"\xA4\x01\x0A\x18FixedSizeBucketingConfig\x126\x0A\x0Blower_bound\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.ValueB\x03\xE0A\x02\x126\x0A\x0Bupper_bound\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.ValueB\x03\xE0A\x02\x12\x18\x0A\x0Bbucket_size\x18\x03 \x01(\x01B\x03\xE0A\x02\"\xF0\x01\x0A\x0FBucketingConfig\x12>\x0A\x07buckets\x18\x01 \x03(\x0B2-.google.privacy.dlp.v2.BucketingConfig.Bucket\x1A\x9C\x01\x0A\x06Bucket\x12)\x0A\x03min\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x12)\x0A\x03max\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x12<\x0A\x11replacement_value\x18\x03 \x01(\x0B2\x1C.google.privacy.dlp.v2.ValueB\x03\xE0A\x02\"\xF9\x03\x0A\x19CryptoReplaceFfxFpeConfig\x129\x0A\x0Acrypto_key\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.CryptoKeyB\x03\xE0A\x02\x12/\x0A\x07context\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12c\x0A\x0Fcommon_alphabet\x18\x04 \x01(\x0E2H.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabetH\x00\x12\x19\x0A\x0Fcustom_alphabet\x18\x05 \x01(\x09H\x00\x12\x0F\x0A\x05radix\x18\x06 \x01(\x05H\x00\x12<\x0A\x13surrogate_info_type\x18\x08 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\"\x94\x01\x0A\x17FfxCommonNativeAlphabet\x12*\x0A&FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07NUMERIC\x10\x01\x12\x0F\x0A\x0BHEXADECIMAL\x10\x02\x12\x1C\x0A\x18UPPER_CASE_ALPHA_NUMERIC\x10\x03\x12\x11\x0A\x0DALPHA_NUMERIC\x10\x04B\x0A\x0A\x08alphabet\"\xD8\x01\x0A\x09CryptoKey\x12>\x0A\x09transient\x18\x01 \x01(\x0B2).google.privacy.dlp.v2.TransientCryptoKeyH\x00\x12>\x0A\x09unwrapped\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.UnwrappedCryptoKeyH\x00\x12A\x0A\x0Bkms_wrapped\x18\x03 \x01(\x0B2*.google.privacy.dlp.v2.KmsWrappedCryptoKeyH\x00B\x08\x0A\x06source\"'\x0A\x12TransientCryptoKey\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\"&\x0A\x12UnwrappedCryptoKey\x12\x10\x0A\x03key\x18\x01 \x01(\x0CB\x03\xE0A\x02\"M\x0A\x13KmsWrappedCryptoKey\x12\x18\x0A\x0Bwrapped_key\x18\x01 \x01(\x0CB\x03\xE0A\x02\x12\x1C\x0A\x0Fcrypto_key_name\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xC2\x01\x0A\x0FDateShiftConfig\x12\x1D\x0A\x10upper_bound_days\x18\x01 \x01(\x05B\x03\xE0A\x02\x12\x1D\x0A\x10lower_bound_days\x18\x02 \x01(\x05B\x03\xE0A\x02\x12/\x0A\x07context\x18\x03 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x126\x0A\x0Acrypto_key\x18\x04 \x01(\x0B2 .google.privacy.dlp.v2.CryptoKeyH\x00B\x08\x0A\x06method\"\xA5\x02\x0A\x17InfoTypeTransformations\x12c\x0A\x0Ftransformations\x18\x01 \x03(\x0B2E.google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformationB\x03\xE0A\x02\x1A\xA4\x01\x0A\x16InfoTypeTransformation\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12U\x0A\x18primitive_transformation\x18\x02 \x01(\x0B2..google.privacy.dlp.v2.PrimitiveTransformationB\x03\xE0A\x02\"\xC0\x02\x0A\x13FieldTransformation\x123\x0A\x06fields\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x129\x0A\x09condition\x18\x03 \x01(\x0B2&.google.privacy.dlp.v2.RecordCondition\x12R\x0A\x18primitive_transformation\x18\x04 \x01(\x0B2..google.privacy.dlp.v2.PrimitiveTransformationH\x00\x12S\x0A\x19info_type_transformations\x18\x05 \x01(\x0B2..google.privacy.dlp.v2.InfoTypeTransformationsH\x00B\x10\x0A\x0Etransformation\"\xA9\x01\x0A\x15RecordTransformations\x12I\x0A\x15field_transformations\x18\x01 \x03(\x0B2*.google.privacy.dlp.v2.FieldTransformation\x12E\x0A\x13record_suppressions\x18\x02 \x03(\x0B2(.google.privacy.dlp.v2.RecordSuppression\"N\x0A\x11RecordSuppression\x129\x0A\x09condition\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.RecordCondition\"\xDC\x04\x0A\x0FRecordCondition\x12G\x0A\x0Bexpressions\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.RecordCondition.Expressions\x1A\xAE\x01\x0A\x09Condition\x122\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x12@\x0A\x08operator\x18\x03 \x01(\x0E2).google.privacy.dlp.v2.RelationalOperatorB\x03\xE0A\x02\x12+\x0A\x05value\x18\x04 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x1AR\x0A\x0AConditions\x12D\x0A\x0Aconditions\x18\x01 \x03(\x0B20.google.privacy.dlp.v2.RecordCondition.Condition\x1A\xFA\x01\x0A\x0BExpressions\x12\\\x0A\x10logical_operator\x18\x01 \x01(\x0E2B.google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator\x12G\x0A\x0Aconditions\x18\x03 \x01(\x0B21.google.privacy.dlp.v2.RecordCondition.ConditionsH\x00\"<\x0A\x0FLogicalOperator\x12 \x0A\x1CLOGICAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x07\x0A\x03AND\x10\x01B\x06\x0A\x04type\"\x83\x01\x0A\x16TransformationOverview\x12\x19\x0A\x11transformed_bytes\x18\x02 \x01(\x03\x12N\x0A\x18transformation_summaries\x18\x03 \x03(\x0B2,.google.privacy.dlp.v2.TransformationSummary\"\x9F\x05\x0A\x15TransformationSummary\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12-\x0A\x05field\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12F\x0A\x0Etransformation\x18\x03 \x01(\x0B2..google.privacy.dlp.v2.PrimitiveTransformation\x12I\x0A\x15field_transformations\x18\x05 \x03(\x0B2*.google.privacy.dlp.v2.FieldTransformation\x12A\x0A\x0Frecord_suppress\x18\x06 \x01(\x0B2(.google.privacy.dlp.v2.RecordSuppression\x12K\x0A\x07results\x18\x04 \x03(\x0B2:.google.privacy.dlp.v2.TransformationSummary.SummaryResult\x12\x19\x0A\x11transformed_bytes\x18\x07 \x01(\x03\x1A\x84\x01\x0A\x0DSummaryResult\x12\x0D\x0A\x05count\x18\x01 \x01(\x03\x12S\x0A\x04code\x18\x02 \x01(\x0E2E.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode\x12\x0F\x0A\x07details\x18\x03 \x01(\x09\"^\x0A\x18TransformationResultCode\x12*\x0A&TRANSFORMATION_RESULT_CODE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07SUCCESS\x10\x01\x12\x09\x0A\x05ERROR\x10\x02\"\xB0\x01\x0A\x19TransformationDescription\x127\x0A\x04type\x18\x01 \x01(\x0E2).google.privacy.dlp.v2.TransformationType\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x11\x0A\x09condition\x18\x03 \x01(\x09\x122\x0A\x09info_type\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\"\xC6\x02\x0A\x15TransformationDetails\x12\x15\x0A\x0Dresource_name\x18\x01 \x01(\x09\x12\x16\x0A\x0Econtainer_name\x18\x02 \x01(\x09\x12H\x0A\x0Etransformation\x18\x03 \x03(\x0B20.google.privacy.dlp.v2.TransformationDescription\x12I\x0A\x0Estatus_details\x18\x04 \x01(\x0B21.google.privacy.dlp.v2.TransformationResultStatus\x12\x19\x0A\x11transformed_bytes\x18\x05 \x01(\x03\x12N\x0A\x17transformation_location\x18\x06 \x01(\x0B2-.google.privacy.dlp.v2.TransformationLocation\"\xD9\x01\x0A\x16TransformationLocation\x12\x14\x0A\x0Afinding_id\x18\x01 \x01(\x09H\x00\x12L\x0A\x15record_transformation\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.RecordTransformationH\x00\x12J\x0A\x0Econtainer_type\x18\x03 \x01(\x0E22.google.privacy.dlp.v2.TransformationContainerTypeB\x0F\x0A\x0Dlocation_type\"\x9C\x01\x0A\x14RecordTransformation\x120\x0A\x08field_id\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x127\x0A\x13container_timestamp\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x19\x0A\x11container_version\x18\x03 \x01(\x09\"\x94\x01\x0A\x1ATransformationResultStatus\x12Q\x0A\x12result_status_type\x18\x01 \x01(\x0E25.google.privacy.dlp.v2.TransformationResultStatusType\x12#\x0A\x07details\x18\x02 \x01(\x0B2\x12.google.rpc.Status\"c\x0A\"TransformationDetailsStorageConfig\x125\x0A\x05table\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTableH\x00B\x06\x0A\x04type\"U\x0A\x08Schedule\x12?\x0A\x1Arecurrence_period_duration\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationH\x00B\x08\x0A\x06option\"\x08\x0A\x06Manual\"\xC2\x04\x0A\x0FInspectTemplate\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12<\x0A\x0Einspect_config\x18\x06 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig:\xC6\x02\xEAA\xC2\x02\x0A\"dlp.googleapis.com/InspectTemplate\x12@organizations/{organization}/inspectTemplates/{inspect_template}\x126projects/{project}/inspectTemplates/{inspect_template}\x12Uorganizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}\x12Kprojects/{project}/locations/{location}/inspectTemplates/{inspect_template}\"\xE6\x04\x0A\x12DeidentifyTemplate\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12B\x0A\x11deidentify_config\x18\x06 \x01(\x0B2'.google.privacy.dlp.v2.DeidentifyConfig:\xE1\x02\xEAA\xDD\x02\x0A%dlp.googleapis.com/DeidentifyTemplate\x12Forganizations/{organization}/deidentifyTemplates/{deidentify_template}\x12\x0A\x0Binspect_job\x18\x04 \x01(\x0B2'.google.privacy.dlp.v2.InspectJobConfigH\x00\x12;\x0A\x08triggers\x18\x05 \x03(\x0B2).google.privacy.dlp.v2.JobTrigger.Trigger\x121\x0A\x06errors\x18\x06 \x03(\x0B2\x1C.google.privacy.dlp.v2.ErrorB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x126\x0A\x0Dlast_run_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12=\x0A\x06status\x18\x0A \x01(\x0E2(.google.privacy.dlp.v2.JobTrigger.StatusB\x03\xE0A\x02\x1Az\x0A\x07Trigger\x123\x0A\x08schedule\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.ScheduleH\x00\x12/\x0A\x06manual\x18\x02 \x01(\x0B2\x1D.google.privacy.dlp.v2.ManualH\x00B\x09\x0A\x07trigger\"H\x0A\x06Status\x12\x16\x0A\x12STATUS_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07HEALTHY\x10\x01\x12\x0A\x0A\x06PAUSED\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03:\x94\x01\xEAA\x90\x01\x0A\x1Ddlp.googleapis.com/JobTrigger\x12,projects/{project}/jobTriggers/{job_trigger}\x12Aprojects/{project}/locations/{location}/jobTriggers/{job_trigger}B\x05\x0A\x03job\"\x82\x0A\x0A\x06Action\x12C\x0A\x0Dsave_findings\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.Action.SaveFindingsH\x00\x12@\x0A\x07pub_sub\x18\x02 \x01(\x0B2-.google.privacy.dlp.v2.Action.PublishToPubSubH\x00\x12U\x0A\x17publish_summary_to_cscc\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.Action.PublishSummaryToCsccH\x00\x12u\x0A&publish_findings_to_cloud_data_catalog\x18\x05 \x01(\x0B2?.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogB\x02\x18\x01H\x00\x12n\x0A\$publish_findings_to_dataplex_catalog\x18\x0A \x01(\x0B2>.google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalogH\x00\x12>\x0A\x0Adeidentify\x18\x07 \x01(\x0B2(.google.privacy.dlp.v2.Action.DeidentifyH\x00\x12V\x0A\x17job_notification_emails\x18\x08 \x01(\x0B23.google.privacy.dlp.v2.Action.JobNotificationEmailsH\x00\x12T\x0A\x16publish_to_stackdriver\x18\x09 \x01(\x0B22.google.privacy.dlp.v2.Action.PublishToStackdriverH\x00\x1AQ\x0A\x0CSaveFindings\x12A\x0A\x0Doutput_config\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.OutputStorageConfig\x1A \x0A\x0FPublishToPubSub\x12\x0D\x0A\x05topic\x18\x01 \x01(\x09\x1A\x16\x0A\x14PublishSummaryToCscc\x1A#\x0A!PublishFindingsToCloudDataCatalog\x1A\"\x0A PublishFindingsToDataplexCatalog\x1A\xB3\x02\x0A\x0ADeidentify\x12J\x0A\x15transformation_config\x18\x07 \x01(\x0B2+.google.privacy.dlp.v2.TransformationConfig\x12h\x0A%transformation_details_storage_config\x18\x03 \x01(\x0B29.google.privacy.dlp.v2.TransformationDetailsStorageConfig\x12#\x0A\x14cloud_storage_output\x18\x09 \x01(\x09B\x03\xE0A\x02H\x00\x12@\x0A\x17file_types_to_transform\x18\x08 \x03(\x0E2\x1F.google.privacy.dlp.v2.FileTypeB\x08\x0A\x06output\x1A\x17\x0A\x15JobNotificationEmails\x1A\x16\x0A\x14PublishToStackdriverB\x08\x0A\x06action\"z\x0A\x14TransformationConfig\x12\x1B\x0A\x13deidentify_template\x18\x01 \x01(\x09\x12&\x0A\x1Estructured_deidentify_template\x18\x02 \x01(\x09\x12\x1D\x0A\x15image_redact_template\x18\x04 \x01(\x09\"\xCB\x01\x0A\x1CCreateInspectTemplateRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"dlp.googleapis.com/InspectTemplate\x12E\x0A\x10inspect_template\x18\x02 \x01(\x0B2&.google.privacy.dlp.v2.InspectTemplateB\x03\xE0A\x02\x12\x13\x0A\x0Btemplate_id\x18\x03 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\"\xCB\x01\x0A\x1CUpdateInspectTemplateRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/InspectTemplate\x12@\x0A\x10inspect_template\x18\x02 \x01(\x0B2&.google.privacy.dlp.v2.InspectTemplate\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"U\x0A\x19GetInspectTemplateRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/InspectTemplate\"\xA7\x01\x0A\x1BListInspectTemplatesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"dlp.googleapis.com/InspectTemplate\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09\"z\x0A\x1CListInspectTemplatesResponse\x12A\x0A\x11inspect_templates\x18\x01 \x03(\x0B2&.google.privacy.dlp.v2.InspectTemplate\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"X\x0A\x1CDeleteInspectTemplateRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/InspectTemplate\"\xB6\x01\x0A\x17CreateJobTriggerRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/JobTrigger\x12;\x0A\x0Bjob_trigger\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.JobTriggerB\x03\xE0A\x02\x12\x12\x0A\x0Atrigger_id\x18\x03 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\"P\x0A\x19ActivateJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\"\xB7\x01\x0A\x17UpdateJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\x126\x0A\x0Bjob_trigger\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.JobTrigger\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"K\x0A\x14GetJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\"\xB4\x01\x0A\x1CCreateDiscoveryConfigRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"dlp.googleapis.com/DiscoveryConfig\x12E\x0A\x10discovery_config\x18\x02 \x01(\x0B2&.google.privacy.dlp.v2.DiscoveryConfigB\x03\xE0A\x02\x12\x11\x0A\x09config_id\x18\x03 \x01(\x09\"\xD0\x01\x0A\x1CUpdateDiscoveryConfigRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/DiscoveryConfig\x12E\x0A\x10discovery_config\x18\x02 \x01(\x0B2&.google.privacy.dlp.v2.DiscoveryConfigB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"U\x0A\x19GetDiscoveryConfigRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/DiscoveryConfig\"\x92\x01\x0A\x1BListDiscoveryConfigsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"dlp.googleapis.com/DiscoveryConfig\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\"z\x0A\x1CListDiscoveryConfigsResponse\x12A\x0A\x11discovery_configs\x18\x01 \x03(\x0B2&.google.privacy.dlp.v2.DiscoveryConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"X\x0A\x1CDeleteDiscoveryConfigRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/DiscoveryConfig\"\xF6\x01\x0A\x13CreateDlpJobRequest\x121\x0A\x06parent\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x12\x19dlp.googleapis.com/DlpJob\x12>\x0A\x0Binspect_job\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.InspectJobConfigH\x00\x12@\x0A\x08risk_job\x18\x03 \x01(\x0B2,.google.privacy.dlp.v2.RiskAnalysisJobConfigH\x00\x12\x0E\x0A\x06job_id\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09B\x05\x0A\x03job\"\xDE\x01\x0A\x16ListJobTriggersRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/JobTrigger\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\x12/\x0A\x04type\x18\x06 \x01(\x0E2!.google.privacy.dlp.v2.DlpJobType\x12\x13\x0A\x0Blocation_id\x18\x07 \x01(\x09\"k\x0A\x17ListJobTriggersResponse\x127\x0A\x0Cjob_triggers\x18\x01 \x03(\x0B2!.google.privacy.dlp.v2.JobTrigger\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"N\x0A\x17DeleteJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\"\xDD\x01\x0A\x10InspectJobConfig\x12<\x0A\x0Estorage_config\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.StorageConfig\x12<\x0A\x0Einspect_config\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x12\x1D\x0A\x15inspect_template_name\x18\x03 \x01(\x09\x12.\x0A\x07actions\x18\x04 \x03(\x0B2\x1D.google.privacy.dlp.v2.Action\"\xF2\x0D\x0A\x11DataProfileAction\x12F\x0A\x0Bexport_data\x18\x01 \x01(\x0B2/.google.privacy.dlp.v2.DataProfileAction.ExportH\x00\x12[\x0A\x14pub_sub_notification\x18\x02 \x01(\x0B2;.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationH\x00\x12[\x0A\x14publish_to_chronicle\x18\x03 \x01(\x0B2;.google.privacy.dlp.v2.DataProfileAction.PublishToChronicleH\x00\x12a\x0A\x0Epublish_to_scc\x18\x04 \x01(\x0B2G.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenterH\x00\x12N\x0A\x0Dtag_resources\x18\x08 \x01(\x0B25.google.privacy.dlp.v2.DataProfileAction.TagResourcesH\x00\x12h\x0A\x1Bpublish_to_dataplex_catalog\x18\x09 \x01(\x0B2A.google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalogH\x00\x1A\x8A\x01\x0A\x06Export\x12;\x0A\x0Dprofile_table\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12C\x0A\x15sample_findings_table\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x1A\x82\x03\x0A\x12PubSubNotification\x12\x0D\x0A\x05topic\x18\x01 \x01(\x09\x12A\x0A\x05event\x18\x02 \x01(\x0E22.google.privacy.dlp.v2.DataProfileAction.EventType\x12K\x0A\x10pubsub_condition\x18\x03 \x01(\x0B21.google.privacy.dlp.v2.DataProfilePubSubCondition\x12b\x0A\x11detail_of_message\x18\x04 \x01(\x0E2G.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel\"i\x0A\x0BDetailLevel\x12\x1C\x0A\x18DETAIL_LEVEL_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DTABLE_PROFILE\x10\x01\x12\x11\x0A\x0DRESOURCE_NAME\x10\x02\x12\x16\x0A\x12FILE_STORE_PROFILE\x10\x03\x1A\x14\x0A\x12PublishToChronicle\x1A \x0A\x1EPublishToSecurityCommandCenter\x1A:\x0A\x18PublishToDataplexCatalog\x12\x1E\x0A\x16lower_data_risk_to_low\x18\x01 \x01(\x08\x1A\xB6\x03\x0A\x0CTagResources\x12Z\x0A\x0Etag_conditions\x18\x01 \x03(\x0B2B.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition\x12L\x0A\x1Aprofile_generations_to_tag\x18\x02 \x03(\x0E2(.google.privacy.dlp.v2.ProfileGeneration\x12\x1E\x0A\x16lower_data_risk_to_low\x18\x03 \x01(\x08\x1A\xA9\x01\x0A\x0CTagCondition\x12K\x0A\x03tag\x18\x01 \x01(\x0B2>.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue\x12D\x0A\x11sensitivity_score\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScoreH\x00B\x06\x0A\x04type\x1A0\x0A\x08TagValue\x12\x1A\x0A\x10namespaced_value\x18\x01 \x01(\x09H\x00B\x08\x0A\x06format\"u\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BNEW_PROFILE\x10\x01\x12\x13\x0A\x0FCHANGED_PROFILE\x10\x02\x12\x13\x0A\x0FSCORE_INCREASED\x10\x03\x12\x11\x0A\x0DERROR_CHANGED\x10\x04B\x08\x0A\x06action\"\xDD\x03\x0A\x12DataProfileFinding\x12\x0D\x0A\x05quote\x18\x01 \x01(\x09\x121\x0A\x08infotype\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x124\x0A\x0Aquote_info\x18\x03 \x01(\x0B2 .google.privacy.dlp.v2.QuoteInfo\x12\"\x0A\x1Adata_profile_resource_name\x18\x04 \x01(\x09\x12\x12\x0A\x0Afinding_id\x18\x05 \x01(\x09\x12-\x0A\x09timestamp\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12C\x0A\x08location\x18\x07 \x01(\x0B21.google.privacy.dlp.v2.DataProfileFindingLocation\x12F\x0A\x13resource_visibility\x18\x08 \x01(\x0E2).google.privacy.dlp.v2.ResourceVisibility\x12\x1A\x0A\x12full_resource_name\x18\x09 \x01(\x09\x12?\x0A\x10data_source_type\x18\x0A \x01(\x0B2%.google.privacy.dlp.v2.DataSourceType\"\xB7\x01\x0A\x1ADataProfileFindingLocation\x12\x16\x0A\x0Econtainer_name\x18\x01 \x01(\x09\x12g\x0A\$data_profile_finding_record_location\x18\x02 \x01(\x0B27.google.privacy.dlp.v2.DataProfileFindingRecordLocationH\x00B\x18\x0A\x16location_extra_details\"Q\x0A DataProfileFindingRecordLocation\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\"\xAE\x02\x0A\x14DataProfileJobConfig\x12<\x0A\x08location\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.DataProfileLocation\x12\x12\x0A\x0Aproject_id\x18\x05 \x01(\x09\x12a\x0A\x1Dother_cloud_starting_location\x18\x08 \x01(\x0B2:.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation\x12\x19\x0A\x11inspect_templates\x18\x07 \x03(\x09\x12F\x0A\x14data_profile_actions\x18\x06 \x03(\x0B2(.google.privacy.dlp.v2.DataProfileAction\"[\x0A\x0DBigQueryRegex\x12\x18\x0A\x10project_id_regex\x18\x01 \x01(\x09\x12\x18\x0A\x10dataset_id_regex\x18\x02 \x01(\x09\x12\x16\x0A\x0Etable_id_regex\x18\x03 \x01(\x09\"I\x0A\x0FBigQueryRegexes\x126\x0A\x08patterns\x18\x01 \x03(\x0B2\$.google.privacy.dlp.v2.BigQueryRegex\"M\x0A\x12BigQueryTableTypes\x127\x0A\x05types\x18\x01 \x03(\x0E2(.google.privacy.dlp.v2.BigQueryTableType\"\x0A\x0A\x08Disabled\"Q\x0A\x13DataProfileLocation\x12\x19\x0A\x0Forganization_id\x18\x01 \x01(\x03H\x00\x12\x13\x0A\x09folder_id\x18\x02 \x01(\x03H\x00B\x0A\x0A\x08location\"\xEB\x07\x0A\x0FDiscoveryConfig\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x0B \x01(\x09\x12D\x0A\x0Aorg_config\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig\x12a\x0A\x1Dother_cloud_starting_location\x18\x0C \x01(\x0B2:.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation\x12\x19\x0A\x11inspect_templates\x18\x03 \x03(\x09\x129\x0A\x07actions\x18\x04 \x03(\x0B2(.google.privacy.dlp.v2.DataProfileAction\x127\x0A\x07targets\x18\x05 \x03(\x0B2&.google.privacy.dlp.v2.DiscoveryTarget\x121\x0A\x06errors\x18\x06 \x03(\x0B2\x1C.google.privacy.dlp.v2.ErrorB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x126\x0A\x0Dlast_run_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12B\x0A\x06status\x18\x0A \x01(\x0E2-.google.privacy.dlp.v2.DiscoveryConfig.StatusB\x03\xE0A\x02\x12K\x0A\x13processing_location\x18\x0D \x01(\x0B2).google.privacy.dlp.v2.ProcessingLocationB\x03\xE0A\x01\x1Ac\x0A\x09OrgConfig\x12B\x0A\x08location\x18\x01 \x01(\x0B20.google.privacy.dlp.v2.DiscoveryStartingLocation\x12\x12\x0A\x0Aproject_id\x18\x02 \x01(\x09\"9\x0A\x06Status\x12\x16\x0A\x12STATUS_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0A\x0A\x06PAUSED\x10\x02:t\xEAAq\x0A\"dlp.googleapis.com/DiscoveryConfig\x12Kprojects/{project}/locations/{location}/discoveryConfigs/{discovery_config}\"\xF6\x03\x0A\x0FDiscoveryTarget\x12J\x0A\x10big_query_target\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.BigQueryDiscoveryTargetH\x00\x12J\x0A\x10cloud_sql_target\x18\x02 \x01(\x0B2..google.privacy.dlp.v2.CloudSqlDiscoveryTargetH\x00\x12G\x0A\x0Esecrets_target\x18\x03 \x01(\x0B2-.google.privacy.dlp.v2.SecretsDiscoveryTargetH\x00\x12R\x0A\x14cloud_storage_target\x18\x04 \x01(\x0B22.google.privacy.dlp.v2.CloudStorageDiscoveryTargetH\x00\x12N\x0A\x12other_cloud_target\x18\x05 \x01(\x0B20.google.privacy.dlp.v2.OtherCloudDiscoveryTargetH\x00\x12T\x0A\x15vertex_dataset_target\x18\x07 \x01(\x0B23.google.privacy.dlp.v2.VertexDatasetDiscoveryTargetH\x00B\x08\x0A\x06target\"\xAE\x02\x0A\x17BigQueryDiscoveryTarget\x12C\x0A\x06filter\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.DiscoveryBigQueryFilterB\x03\xE0A\x02\x12F\x0A\x0Aconditions\x18\x02 \x01(\x0B22.google.privacy.dlp.v2.DiscoveryBigQueryConditions\x12D\x0A\x07cadence\x18\x03 \x01(\x0B21.google.privacy.dlp.v2.DiscoveryGenerationCadenceH\x00\x123\x0A\x08disabled\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledH\x00B\x0B\x0A\x09frequency\"\xA0\x02\x0A\x17DiscoveryBigQueryFilter\x12@\x0A\x06tables\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.BigQueryTableCollectionH\x00\x12]\x0A\x0Cother_tables\x18\x02 \x01(\x0B2E.google.privacy.dlp.v2.DiscoveryBigQueryFilter.AllOtherBigQueryTablesH\x00\x12@\x0A\x0Ftable_reference\x18\x03 \x01(\x0B2%.google.privacy.dlp.v2.TableReferenceH\x00\x1A\x18\x0A\x16AllOtherBigQueryTablesB\x08\x0A\x06filter\"g\x0A\x17BigQueryTableCollection\x12A\x0A\x0Finclude_regexes\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.BigQueryRegexesH\x00B\x09\x0A\x07pattern\"\x98\x03\x0A\x1BDiscoveryBigQueryConditions\x121\x0A\x0Dcreated_after\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12:\x0A\x05types\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.BigQueryTableTypesH\x00\x12M\x0A\x0Ftype_collection\x18\x03 \x01(\x0E22.google.privacy.dlp.v2.BigQueryTableTypeCollectionH\x00\x12V\x0A\x0Dor_conditions\x18\x04 \x01(\x0B2?.google.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions\x1AQ\x0A\x0COrConditions\x12\x15\x0A\x0Dmin_row_count\x18\x01 \x01(\x05\x12*\x0A\x07min_age\x18\x02 \x01(\x0B2\x19.google.protobuf.DurationB\x10\x0A\x0Eincluded_types\"\x83\x03\x0A\x1ADiscoveryGenerationCadence\x12V\x0A\x17schema_modified_cadence\x18\x01 \x01(\x0B25.google.privacy.dlp.v2.DiscoverySchemaModifiedCadence\x12T\x0A\x16table_modified_cadence\x18\x02 \x01(\x0B24.google.privacy.dlp.v2.DiscoveryTableModifiedCadence\x12i\x0A!inspect_template_modified_cadence\x18\x03 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\x12L\x0A\x11refresh_frequency\x18\x04 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"\xA6\x01\x0A\x1DDiscoveryTableModifiedCadence\x12?\x0A\x05types\x18\x01 \x03(\x0E20.google.privacy.dlp.v2.BigQueryTableModification\x12D\x0A\x09frequency\x18\x02 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"\xA8\x01\x0A\x1EDiscoverySchemaModifiedCadence\x12@\x0A\x05types\x18\x01 \x03(\x0E21.google.privacy.dlp.v2.BigQuerySchemaModification\x12D\x0A\x09frequency\x18\x02 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"o\x0A'DiscoveryInspectTemplateModifiedCadence\x12D\x0A\x09frequency\x18\x01 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"\xBF\x02\x0A\x17CloudSqlDiscoveryTarget\x12C\x0A\x06filter\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.DiscoveryCloudSqlFilterB\x03\xE0A\x02\x12F\x0A\x0Aconditions\x18\x02 \x01(\x0B22.google.privacy.dlp.v2.DiscoveryCloudSqlConditions\x12W\x0A\x12generation_cadence\x18\x03 \x01(\x0B29.google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadenceH\x00\x123\x0A\x08disabled\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledH\x00B\x09\x0A\x07cadence\"\x89\x02\x0A\x17DiscoveryCloudSqlFilter\x12G\x0A\x0Acollection\x18\x01 \x01(\x0B21.google.privacy.dlp.v2.DatabaseResourceCollectionH\x00\x12B\x0A\x06others\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.AllOtherDatabaseResourcesH\x00\x12W\x0A\x1Bdatabase_resource_reference\x18\x03 \x01(\x0B20.google.privacy.dlp.v2.DatabaseResourceReferenceH\x00B\x08\x0A\x06filter\"r\x0A\x1ADatabaseResourceCollection\x12I\x0A\x0Finclude_regexes\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.DatabaseResourceRegexesH\x00B\x09\x0A\x07pattern\"Y\x0A\x17DatabaseResourceRegexes\x12>\x0A\x08patterns\x18\x01 \x03(\x0B2,.google.privacy.dlp.v2.DatabaseResourceRegex\"\x87\x01\x0A\x15DatabaseResourceRegex\x12\x18\x0A\x10project_id_regex\x18\x01 \x01(\x09\x12\x16\x0A\x0Einstance_regex\x18\x02 \x01(\x09\x12\x16\x0A\x0Edatabase_regex\x18\x03 \x01(\x09\x12\$\x0A\x1Cdatabase_resource_name_regex\x18\x04 \x01(\x09\"\x1B\x0A\x19AllOtherDatabaseResources\"\x82\x01\x0A\x19DatabaseResourceReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08instance\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08database\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11database_resource\x18\x04 \x01(\x09B\x03\xE0A\x02\"\xDA\x03\x0A\x1BDiscoveryCloudSqlConditions\x12`\x0A\x10database_engines\x18\x01 \x03(\x0E2A.google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngineB\x03\xE0A\x01\x12V\x0A\x05types\x18\x03 \x03(\x0E2G.google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType\"n\x0A\x0EDatabaseEngine\x12\x1F\x0A\x1BDATABASE_ENGINE_UNSPECIFIED\x10\x00\x12\"\x0A\x1EALL_SUPPORTED_DATABASE_ENGINES\x10\x01\x12\x09\x0A\x05MYSQL\x10\x02\x12\x0C\x0A\x08POSTGRES\x10\x03\"\x90\x01\x0A\x14DatabaseResourceType\x12&\x0A\"DATABASE_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12.\x0A*DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES\x10\x01\x12 \x0A\x1CDATABASE_RESOURCE_TYPE_TABLE\x10\x02\"\x97\x05\x0A\"DiscoveryCloudSqlGenerationCadence\x12p\x0A\x17schema_modified_cadence\x18\x01 \x01(\x0B2O.google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence\x12L\x0A\x11refresh_frequency\x18\x02 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\x12i\x0A!inspect_template_modified_cadence\x18\x03 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\x1A\xC5\x02\x0A\x15SchemaModifiedCadence\x12y\x0A\x05types\x18\x01 \x03(\x0E2j.google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.CloudSqlSchemaModification\x12D\x0A\x09frequency\x18\x02 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"k\x0A\x1ACloudSqlSchemaModification\x12'\x0A#SQL_SCHEMA_MODIFICATION_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BNEW_COLUMNS\x10\x01\x12\x13\x0A\x0FREMOVED_COLUMNS\x10\x02\"\x18\x0A\x16SecretsDiscoveryTarget\"\xDB\x02\x0A\x1BCloudStorageDiscoveryTarget\x12G\x0A\x06filter\x18\x01 \x01(\x0B22.google.privacy.dlp.v2.DiscoveryCloudStorageFilterB\x03\xE0A\x02\x12L\x0A\x0Aconditions\x18\x04 \x01(\x0B23.google.privacy.dlp.v2.DiscoveryFileStoreConditionsB\x03\xE0A\x01\x12`\x0A\x12generation_cadence\x18\x02 \x01(\x0B2=.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadenceB\x03\xE0A\x01H\x00\x128\x0A\x08disabled\x18\x03 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledB\x03\xE0A\x01H\x00B\x09\x0A\x07cadence\"\x96\x02\x0A\x1BDiscoveryCloudStorageFilter\x12E\x0A\x0Acollection\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.FileStoreCollectionB\x03\xE0A\x01H\x00\x12e\x0A cloud_storage_resource_reference\x18\x02 \x01(\x0B24.google.privacy.dlp.v2.CloudStorageResourceReferenceB\x03\xE0A\x01H\x00\x12?\x0A\x06others\x18d \x01(\x0B2(.google.privacy.dlp.v2.AllOtherResourcesB\x03\xE0A\x01H\x00B\x08\x0A\x06filter\"\xA7\x01\x0A\x13FileStoreCollection\x12G\x0A\x0Finclude_regexes\x18\x01 \x01(\x0B2'.google.privacy.dlp.v2.FileStoreRegexesB\x03\xE0A\x01H\x00\x12<\x0A\x0Cinclude_tags\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.TagFiltersB\x03\xE0A\x01B\x09\x0A\x07pattern\"P\x0A\x10FileStoreRegexes\x12<\x0A\x08patterns\x18\x01 \x03(\x0B2%.google.privacy.dlp.v2.FileStoreRegexB\x03\xE0A\x02\"p\x0A\x0EFileStoreRegex\x12L\x0A\x13cloud_storage_regex\x18\x01 \x01(\x0B2(.google.privacy.dlp.v2.CloudStorageRegexB\x03\xE0A\x01H\x00B\x10\x0A\x0Eresource_regex\"R\x0A\x11CloudStorageRegex\x12\x1D\x0A\x10project_id_regex\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11bucket_name_regex\x18\x02 \x01(\x09B\x03\xE0A\x01\"R\x0A\x1DCloudStorageResourceReference\x12\x18\x0A\x0Bbucket_name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Aproject_id\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xEB\x01\x0A&DiscoveryCloudStorageGenerationCadence\x12Q\x0A\x11refresh_frequency\x18\x01 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequencyB\x03\xE0A\x01\x12n\x0A!inspect_template_modified_cadence\x18\x02 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceB\x03\xE0A\x01\"\x9B\x05\x0A\x1FDiscoveryCloudStorageConditions\x12{\x0A\x1Aincluded_object_attributes\x18\x01 \x03(\x0E2R.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttributeB\x03\xE0A\x02\x12{\x0A\x1Aincluded_bucket_attributes\x18\x02 \x03(\x0E2R.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttributeB\x03\xE0A\x02\"\xE3\x01\x0A\x1BCloudStorageObjectAttribute\x12.\x0A*CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ALL_SUPPORTED_OBJECTS\x10\x01\x12\x0C\x0A\x08STANDARD\x10\x02\x12\x0C\x0A\x08NEARLINE\x10\x03\x12\x0C\x0A\x08COLDLINE\x10\x04\x12\x0B\x0A\x07ARCHIVE\x10\x05\x12\x0C\x0A\x08REGIONAL\x10\x06\x12\x12\x0A\x0EMULTI_REGIONAL\x10\x07\x12 \x0A\x1CDURABLE_REDUCED_AVAILABILITY\x10\x08\"\x97\x01\x0A\x1BCloudStorageBucketAttribute\x12.\x0A*CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ALL_SUPPORTED_BUCKETS\x10\x01\x12\x16\x0A\x12AUTOCLASS_DISABLED\x10\x02\x12\x15\x0A\x11AUTOCLASS_ENABLED\x10\x03\"\xF6\x01\x0A\x1CDiscoveryFileStoreConditions\x126\x0A\x0Dcreated_after\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12/\x0A\x07min_age\x18\x02 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01\x12_\x0A\x18cloud_storage_conditions\x18\x03 \x01(\x0B26.google.privacy.dlp.v2.DiscoveryCloudStorageConditionsB\x03\xE0A\x01H\x00B\x0C\x0A\x0Aconditions\"\x92\x03\x0A\x19OtherCloudDiscoveryTarget\x12D\x0A\x10data_source_type\x18\x01 \x01(\x0B2%.google.privacy.dlp.v2.DataSourceTypeB\x03\xE0A\x02\x12E\x0A\x06filter\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.DiscoveryOtherCloudFilterB\x03\xE0A\x02\x12M\x0A\x0Aconditions\x18\x03 \x01(\x0B24.google.privacy.dlp.v2.DiscoveryOtherCloudConditionsB\x03\xE0A\x01\x12Y\x0A\x12generation_cadence\x18\x04 \x01(\x0B2;.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadenceH\x00\x123\x0A\x08disabled\x18\x05 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledH\x00B\x09\x0A\x07cadence\"\x86\x02\x0A\x19DiscoveryOtherCloudFilter\x12I\x0A\x0Acollection\x18\x01 \x01(\x0B23.google.privacy.dlp.v2.OtherCloudResourceCollectionH\x00\x12S\x0A\x0Fsingle_resource\x18\x02 \x01(\x0B28.google.privacy.dlp.v2.OtherCloudSingleResourceReferenceH\x00\x12?\x0A\x06others\x18d \x01(\x0B2(.google.privacy.dlp.v2.AllOtherResourcesB\x03\xE0A\x01H\x00B\x08\x0A\x06filter\"v\x0A\x1COtherCloudResourceCollection\x12K\x0A\x0Finclude_regexes\x18\x01 \x01(\x0B20.google.privacy.dlp.v2.OtherCloudResourceRegexesH\x00B\x09\x0A\x07pattern\"]\x0A\x19OtherCloudResourceRegexes\x12@\x0A\x08patterns\x18\x01 \x03(\x0B2..google.privacy.dlp.v2.OtherCloudResourceRegex\"y\x0A\x17OtherCloudResourceRegex\x12L\x0A\x16amazon_s3_bucket_regex\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.AmazonS3BucketRegexH\x00B\x10\x0A\x0Eresource_regex\"0\x0A\x0FAwsAccountRegex\x12\x1D\x0A\x10account_id_regex\x18\x01 \x01(\x09B\x03\xE0A\x01\"x\x0A\x13AmazonS3BucketRegex\x12A\x0A\x11aws_account_regex\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.AwsAccountRegex\x12\x1E\x0A\x11bucket_name_regex\x18\x02 \x01(\x09B\x03\xE0A\x01\"r\x0A!OtherCloudSingleResourceReference\x12A\x0A\x10amazon_s3_bucket\x18\x01 \x01(\x0B2%.google.privacy.dlp.v2.AmazonS3BucketH\x00B\x0A\x0A\x08resource\"%\x0A\x0AAwsAccount\x12\x17\x0A\x0Aaccount_id\x18\x01 \x01(\x09B\x03\xE0A\x02\"b\x0A\x0EAmazonS3Bucket\x126\x0A\x0Baws_account\x18\x01 \x01(\x0B2!.google.privacy.dlp.v2.AwsAccount\x12\x18\x0A\x0Bbucket_name\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xB1\x01\x0A\x1DDiscoveryOtherCloudConditions\x12*\x0A\x07min_age\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\x12V\x0A\x1Bamazon_s3_bucket_conditions\x18\x02 \x01(\x0B2/.google.privacy.dlp.v2.AmazonS3BucketConditionsH\x00B\x0C\x0A\x0Aconditions\"\xD9\x03\x0A\x18AmazonS3BucketConditions\x12U\x0A\x0Cbucket_types\x18\x01 \x03(\x0E2:.google.privacy.dlp.v2.AmazonS3BucketConditions.BucketTypeB\x03\xE0A\x01\x12g\x0A\x16object_storage_classes\x18\x02 \x03(\x0E2B.google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClassB\x03\xE0A\x01\"T\x0A\x0ABucketType\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x16\x0A\x12TYPE_ALL_SUPPORTED\x10\x01\x12\x18\x0A\x14TYPE_GENERAL_PURPOSE\x10\x02\"\xA6\x01\x0A\x12ObjectStorageClass\x12\x0F\x0A\x0BUNSPECIFIED\x10\x00\x12\x19\x0A\x15ALL_SUPPORTED_CLASSES\x10\x01\x12\x0C\x0A\x08STANDARD\x10\x02\x12\x1E\x0A\x1ASTANDARD_INFREQUENT_ACCESS\x10\x04\x12\x1D\x0A\x19GLACIER_INSTANT_RETRIEVAL\x10\x06\x12\x17\x0A\x13INTELLIGENT_TIERING\x10\x07\"\xE9\x01\x0A\$DiscoveryOtherCloudGenerationCadence\x12Q\x0A\x11refresh_frequency\x18\x01 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequencyB\x03\xE0A\x01\x12n\x0A!inspect_template_modified_cadence\x18\x02 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceB\x03\xE0A\x01\"W\x0A\x19DiscoveryStartingLocation\x12\x19\x0A\x0Forganization_id\x18\x01 \x01(\x03H\x00\x12\x13\x0A\x09folder_id\x18\x02 \x01(\x03H\x00B\x0A\x0A\x08location\"\x87\x02\x0A#OtherCloudDiscoveryStartingLocation\x12o\x0A\x0Caws_location\x18\x01 \x01(\x0B2W.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation.AwsDiscoveryStartingLocationH\x00\x1Ac\x0A\x1CAwsDiscoveryStartingLocation\x12\x14\x0A\x0Aaccount_id\x18\x02 \x01(\x09H\x00\x12\$\x0A\x1Aall_asset_inventory_assets\x18\x03 \x01(\x08H\x00B\x07\x0A\x05scopeB\x0A\x0A\x08location\"\x13\x0A\x11AllOtherResources\"\xD3\x02\x0A\x1CVertexDatasetDiscoveryTarget\x12H\x0A\x06filter\x18\x01 \x01(\x0B23.google.privacy.dlp.v2.DiscoveryVertexDatasetFilterB\x03\xE0A\x02\x12K\x0A\x0Aconditions\x18\x02 \x01(\x0B27.google.privacy.dlp.v2.DiscoveryVertexDatasetConditions\x12\\\x0A\x12generation_cadence\x18\x03 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryVertexDatasetGenerationCadenceH\x00\x123\x0A\x08disabled\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledH\x00B\x09\x0A\x07cadence\"\x8E\x02\x0A\x1CDiscoveryVertexDatasetFilter\x12D\x0A\x0Acollection\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.VertexDatasetCollectionH\x00\x12b\x0A!vertex_dataset_resource_reference\x18\x02 \x01(\x0B25.google.privacy.dlp.v2.VertexDatasetResourceReferenceH\x00\x12:\x0A\x06others\x18d \x01(\x0B2(.google.privacy.dlp.v2.AllOtherResourcesH\x00B\x08\x0A\x06filter\"s\x0A\x17VertexDatasetCollection\x12M\x0A\x16vertex_dataset_regexes\x18\x01 \x01(\x0B2+.google.privacy.dlp.v2.VertexDatasetRegexesH\x00B\x09\x0A\x07pattern\"X\x0A\x14VertexDatasetRegexes\x12@\x0A\x08patterns\x18\x01 \x03(\x0B2).google.privacy.dlp.v2.VertexDatasetRegexB\x03\xE0A\x02\".\x0A\x12VertexDatasetRegex\x12\x18\x0A\x10project_id_regex\x18\x01 \x01(\x09\"D\x0A\x1EVertexDatasetResourceReference\x12\"\x0A\x15dataset_resource_name\x18\x01 \x01(\x09B\x03\xE0A\x02\"\x81\x01\x0A DiscoveryVertexDatasetConditions\x121\x0A\x0Dcreated_after\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12*\x0A\x07min_age\x18\x02 \x01(\x0B2\x19.google.protobuf.Duration\"\xE2\x01\x0A'DiscoveryVertexDatasetGenerationCadence\x12L\x0A\x11refresh_frequency\x18\x01 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\x12i\x0A!inspect_template_modified_cadence\x18\x02 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\"\xDC\x06\x0A\x06DlpJob\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12/\x0A\x04type\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.DlpJobType\x125\x0A\x05state\x18\x03 \x01(\x0E2&.google.privacy.dlp.v2.DlpJob.JobState\x12K\x0A\x0Crisk_details\x18\x04 \x01(\x0B23.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetailsH\x00\x12J\x0A\x0Finspect_details\x18\x05 \x01(\x0B2/.google.privacy.dlp.v2.InspectDataSourceDetailsH\x00\x12/\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12.\x0A\x0Astart_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\x121\x0A\x0Dlast_modified\x18\x0F \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x18\x0A\x10job_trigger_name\x18\x0A \x01(\x09\x12,\x0A\x06errors\x18\x0B \x03(\x0B2\x1C.google.privacy.dlp.v2.Error\x12<\x0A\x0Eaction_details\x18\x0C \x03(\x0B2\$.google.privacy.dlp.v2.ActionDetails\"o\x0A\x08JobState\x12\x19\x0A\x15JOB_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PENDING\x10\x01\x12\x0B\x0A\x07RUNNING\x10\x02\x12\x08\x0A\x04DONE\x10\x03\x12\x0C\x0A\x08CANCELED\x10\x04\x12\x0A\x0A\x06FAILED\x10\x05\x12\x0A\x0A\x06ACTIVE\x10\x06:\x7F\xEAA|\x0A\x19dlp.googleapis.com/DlpJob\x12\$projects/{project}/dlpJobs/{dlp_job}\x129projects/{project}/locations/{location}/dlpJobs/{dlp_job}B\x09\x0A\x07details\"C\x0A\x10GetDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\"\xD6\x01\x0A\x12ListDlpJobsRequest\x121\x0A\x06parent\x18\x04 \x01(\x09B!\xE0A\x02\xFAA\x1B\x12\x19dlp.googleapis.com/DlpJob\x12\x0E\x0A\x06filter\x18\x01 \x01(\x09\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12/\x0A\x04type\x18\x05 \x01(\x0E2!.google.privacy.dlp.v2.DlpJobType\x12\x10\x0A\x08order_by\x18\x06 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x07 \x01(\x09\"[\x0A\x13ListDlpJobsResponse\x12+\x0A\x04jobs\x18\x01 \x03(\x0B2\x1D.google.privacy.dlp.v2.DlpJob\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"F\x0A\x13CancelDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\"F\x0A\x13FinishDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\"F\x0A\x13DeleteDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\"\xD7\x01\x0A\x1FCreateDeidentifyTemplateRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%dlp.googleapis.com/DeidentifyTemplate\x12K\x0A\x13deidentify_template\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplateB\x03\xE0A\x02\x12\x13\x0A\x0Btemplate_id\x18\x03 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\"\xD7\x01\x0A\x1FUpdateDeidentifyTemplateRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/DeidentifyTemplate\x12F\x0A\x13deidentify_template\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"[\x0A\x1CGetDeidentifyTemplateRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/DeidentifyTemplate\"\xAD\x01\x0A\x1EListDeidentifyTemplatesRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%dlp.googleapis.com/DeidentifyTemplate\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09\"\x83\x01\x0A\x1FListDeidentifyTemplatesResponse\x12G\x0A\x14deidentify_templates\x18\x01 \x03(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"^\x0A\x1FDeleteDeidentifyTemplateRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/DeidentifyTemplate\"\xF4\x01\x0A\x1BLargeCustomDictionaryConfig\x12<\x0A\x0Boutput_path\x18\x01 \x01(\x0B2'.google.privacy.dlp.v2.CloudStoragePath\x12L\x0A\x16cloud_storage_file_set\x18\x02 \x01(\x0B2*.google.privacy.dlp.v2.CloudStorageFileSetH\x00\x12?\x0A\x0Fbig_query_field\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryFieldH\x00B\x08\x0A\x06source\"8\x0A\x1ALargeCustomDictionaryStats\x12\x1A\x0A\x12approx_num_phrases\x18\x01 \x01(\x03\"\xA6\x02\x0A\x14StoredInfoTypeConfig\x12\x14\x0A\x0Cdisplay_name\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12U\x0A\x17large_custom_dictionary\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.LargeCustomDictionaryConfigH\x00\x12F\x0A\x0Adictionary\x18\x04 \x01(\x0B20.google.privacy.dlp.v2.CustomInfoType.DictionaryH\x00\x12<\x0A\x05regex\x18\x05 \x01(\x0B2+.google.privacy.dlp.v2.CustomInfoType.RegexH\x00B\x06\x0A\x04type\"s\x0A\x13StoredInfoTypeStats\x12T\x0A\x17large_custom_dictionary\x18\x01 \x01(\x0B21.google.privacy.dlp.v2.LargeCustomDictionaryStatsH\x00B\x06\x0A\x04type\"\xA9\x02\x0A\x15StoredInfoTypeVersion\x12;\x0A\x06config\x18\x01 \x01(\x0B2+.google.privacy.dlp.v2.StoredInfoTypeConfig\x12/\x0A\x0Bcreate_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x129\x0A\x05state\x18\x03 \x01(\x0E2*.google.privacy.dlp.v2.StoredInfoTypeState\x12,\x0A\x06errors\x18\x04 \x03(\x0B2\x1C.google.privacy.dlp.v2.Error\x129\x0A\x05stats\x18\x05 \x01(\x0B2*.google.privacy.dlp.v2.StoredInfoTypeStats\"\xF1\x03\x0A\x0EStoredInfoType\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12E\x0A\x0Fcurrent_version\x18\x02 \x01(\x0B2,.google.privacy.dlp.v2.StoredInfoTypeVersion\x12F\x0A\x10pending_versions\x18\x03 \x03(\x0B2,.google.privacy.dlp.v2.StoredInfoTypeVersion:\xC1\x02\xEAA\xBD\x02\x0A!dlp.googleapis.com/StoredInfoType\x12?organizations/{organization}/storedInfoTypes/{stored_info_type}\x125projects/{project}/storedInfoTypes/{stored_info_type}\x12Torganizations/{organization}/locations/{location}/storedInfoTypes/{stored_info_type}\x12Jprojects/{project}/locations/{location}/storedInfoTypes/{stored_info_type}\"\xCC\x01\x0A\x1BCreateStoredInfoTypeRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x12!dlp.googleapis.com/StoredInfoType\x12@\x0A\x06config\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.StoredInfoTypeConfigB\x03\xE0A\x02\x12\x1B\x0A\x13stored_info_type_id\x18\x03 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\"\xC4\x01\x0A\x1BUpdateStoredInfoTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dlp.googleapis.com/StoredInfoType\x12;\x0A\x06config\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.StoredInfoTypeConfig\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"S\x0A\x18GetStoredInfoTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dlp.googleapis.com/StoredInfoType\"\xA5\x01\x0A\x1AListStoredInfoTypesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x12!dlp.googleapis.com/StoredInfoType\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09\"x\x0A\x1BListStoredInfoTypesResponse\x12@\x0A\x11stored_info_types\x18\x01 \x03(\x0B2%.google.privacy.dlp.v2.StoredInfoType\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"V\x0A\x1BDeleteStoredInfoTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dlp.googleapis.com/StoredInfoType\"\x94\x01\x0A\x1EHybridInspectJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\x12=\x0A\x0Bhybrid_item\x18\x03 \x01(\x0B2(.google.privacy.dlp.v2.HybridContentItem\"\x8C\x01\x0A\x1AHybridInspectDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\x12=\x0A\x0Bhybrid_item\x18\x03 \x01(\x0B2(.google.privacy.dlp.v2.HybridContentItem\"\x8B\x01\x0A\x11HybridContentItem\x120\x0A\x04item\x18\x01 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12D\x0A\x0Ffinding_details\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.HybridFindingDetails\"\xB0\x02\x0A\x14HybridFindingDetails\x12;\x0A\x11container_details\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.Container\x12\x13\x0A\x0Bfile_offset\x18\x02 \x01(\x03\x12\x12\x0A\x0Arow_offset\x18\x03 \x01(\x03\x12:\x0A\x0Dtable_options\x18\x04 \x01(\x0B2#.google.privacy.dlp.v2.TableOptions\x12G\x0A\x06labels\x18\x05 \x03(\x0B27.google.privacy.dlp.v2.HybridFindingDetails.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x17\x0A\x15HybridInspectResponse\"\xC3\x01\x0A\x14ImageContainmentType\x123\x0A\x08encloses\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.EnclosesH\x00\x12:\x0A\x0Cfully_inside\x18\x02 \x01(\x0B2\".google.privacy.dlp.v2.FullyInsideH\x00\x122\x0A\x08overlaps\x18\x03 \x01(\x0B2\x1E.google.privacy.dlp.v2.OverlapH\x00B\x06\x0A\x04type\"\x09\x0A\x07Overlap\"\x0A\x0A\x08Encloses\"\x0D\x0A\x0BFullyInside\"\xA8\x01\x0A\x1EListProjectDataProfilesRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%dlp.googleapis.com/ProjectDataProfile\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\"\x84\x01\x0A\x1FListProjectDataProfilesResponse\x12H\x0A\x15project_data_profiles\x18\x01 \x03(\x0B2).google.privacy.dlp.v2.ProjectDataProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA4\x01\x0A\x1CListTableDataProfilesRequest\x12;\x0A\x06parent\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x12#dlp.googleapis.com/TableDataProfile\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\"~\x0A\x1DListTableDataProfilesResponse\x12D\x0A\x13table_data_profiles\x18\x01 \x03(\x0B2'.google.privacy.dlp.v2.TableDataProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA6\x01\x0A\x1DListColumnDataProfilesRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$dlp.googleapis.com/ColumnDataProfile\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\"\x81\x01\x0A\x1EListColumnDataProfilesResponse\x12F\x0A\x14column_data_profiles\x18\x01 \x03(\x0B2(.google.privacy.dlp.v2.ColumnDataProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xCB\x01\x0A\x0DDataRiskLevel\x12F\x0A\x05score\x18\x01 \x01(\x0E27.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore\"r\x0A\x12DataRiskLevelScore\x12\x1A\x0A\x16RISK_SCORE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08RISK_LOW\x10\x0A\x12\x10\x0A\x0CRISK_UNKNOWN\x10\x0C\x12\x11\x0A\x0DRISK_MODERATE\x10\x14\x12\x0D\x0A\x09RISK_HIGH\x10\x1E\"\xDC\x04\x0A\x12ProjectDataProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x12\x0A\x0Aproject_id\x18\x02 \x01(\x09\x12:\x0A\x16profile_last_generated\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12B\x0A\x11sensitivity_score\x18\x04 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x05 \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12<\x0A\x0Eprofile_status\x18\x07 \x01(\x0B2\$.google.privacy.dlp.v2.ProfileStatus\x12 \x0A\x18table_data_profile_count\x18\x09 \x01(\x03\x12%\x0A\x1Dfile_store_data_profile_count\x18\x0A \x01(\x03:\xDD\x01\xEAA\xD9\x01\x0A%dlp.googleapis.com/ProjectDataProfile\x12\\organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}\x12Rprojects/{project}/locations/{location}/projectDataProfiles/{project_data_profile}\"\xC9\x02\x0A\x19DataProfileConfigSnapshot\x12<\x0A\x0Einspect_config\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x12I\x0A\x10data_profile_job\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.DataProfileJobConfigB\x02\x18\x01\x12@\x0A\x10discovery_config\x18\x04 \x01(\x0B2&.google.privacy.dlp.v2.DiscoveryConfig\x12\x1D\x0A\x15inspect_template_name\x18\x05 \x01(\x09\x12B\x0A\x1Einspect_template_modified_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\x93\x0E\x0A\x10TableDataProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12?\x0A\x10data_source_type\x18\$ \x01(\x0B2%.google.privacy.dlp.v2.DataSourceType\x12\x1C\x0A\x14project_data_profile\x18\x02 \x01(\x09\x12\x1A\x0A\x12dataset_project_id\x18\x18 \x01(\x09\x12\x18\x0A\x10dataset_location\x18\x1D \x01(\x09\x12\x12\x0A\x0Adataset_id\x18\x19 \x01(\x09\x12\x10\x0A\x08table_id\x18\x1A \x01(\x09\x12\x15\x0A\x0Dfull_resource\x18\x03 \x01(\x09\x12<\x0A\x0Eprofile_status\x18\x15 \x01(\x0B2\$.google.privacy.dlp.v2.ProfileStatus\x12<\x0A\x05state\x18\x16 \x01(\x0E2-.google.privacy.dlp.v2.TableDataProfile.State\x12B\x0A\x11sensitivity_score\x18\x05 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x06 \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12D\x0A\x14predicted_info_types\x18\x1B \x03(\x0B2&.google.privacy.dlp.v2.InfoTypeSummary\x12E\x0A\x10other_info_types\x18\x1C \x03(\x0B2+.google.privacy.dlp.v2.OtherInfoTypeSummary\x12I\x0A\x0Fconfig_snapshot\x18\x07 \x01(\x0B20.google.privacy.dlp.v2.DataProfileConfigSnapshot\x126\x0A\x12last_modified_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\x123\x0A\x0Fexpiration_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x1C\x0A\x14scanned_column_count\x18\x0A \x01(\x03\x12\x1B\x0A\x13failed_column_count\x18\x0B \x01(\x03\x12\x18\x0A\x10table_size_bytes\x18\x0C \x01(\x03\x12\x11\x0A\x09row_count\x18\x0D \x01(\x03\x12B\x0A\x11encryption_status\x18\x0E \x01(\x0E2'.google.privacy.dlp.v2.EncryptionStatus\x12F\x0A\x13resource_visibility\x18\x0F \x01(\x0E2).google.privacy.dlp.v2.ResourceVisibility\x12:\x0A\x16profile_last_generated\x18\x10 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12T\x0A\x0Fresource_labels\x18\x11 \x03(\x0B2;.google.privacy.dlp.v2.TableDataProfile.ResourceLabelsEntry\x12/\x0A\x0Bcreate_time\x18\x17 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12C\x0A\x15sample_findings_table\x18% \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12(\x0A\x04tags\x18' \x03(\x0B2\x1A.google.privacy.dlp.v2.Tag\x12A\x0A\x11related_resources\x18) \x03(\x0B2&.google.privacy.dlp.v2.RelatedResource\x12.\x0A\x07domains\x18/ \x03(\x0B2\x1D.google.privacy.dlp.v2.Domain\x1A5\x0A\x13ResourceLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"5\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x08\x0A\x04DONE\x10\x02:\xD3\x01\xEAA\xCF\x01\x0A#dlp.googleapis.com/TableDataProfile\x12Xorganizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}\x12Nprojects/{project}/locations/{location}/tableDataProfiles/{table_data_profile}\"b\x0A\x0DProfileStatus\x12\"\x0A\x06status\x18\x01 \x01(\x0B2\x12.google.rpc.Status\x12-\x0A\x09timestamp\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"g\x0A\x0FInfoTypeSummary\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12 \x0A\x14estimated_prevalence\x18\x02 \x01(\x05B\x02\x18\x01\"\x88\x01\x0A\x14OtherInfoTypeSummary\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12\x1C\x0A\x14estimated_prevalence\x18\x02 \x01(\x05\x12\x1E\x0A\x16excluded_from_analysis\x18\x03 \x01(\x08\"\xC9\x0D\x0A\x11ColumnDataProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12<\x0A\x0Eprofile_status\x18\x11 \x01(\x0B2\$.google.privacy.dlp.v2.ProfileStatus\x12=\x0A\x05state\x18\x12 \x01(\x0E2..google.privacy.dlp.v2.ColumnDataProfile.State\x12:\x0A\x16profile_last_generated\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x1A\x0A\x12table_data_profile\x18\x04 \x01(\x09\x12\x1B\x0A\x13table_full_resource\x18\x05 \x01(\x09\x12\x1A\x0A\x12dataset_project_id\x18\x13 \x01(\x09\x12\x18\x0A\x10dataset_location\x18\x14 \x01(\x09\x12\x12\x0A\x0Adataset_id\x18\x15 \x01(\x09\x12\x10\x0A\x08table_id\x18\x16 \x01(\x09\x12\x0E\x0A\x06column\x18\x06 \x01(\x09\x12B\x0A\x11sensitivity_score\x18\x07 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x08 \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12@\x0A\x10column_info_type\x18\x09 \x01(\x0B2&.google.privacy.dlp.v2.InfoTypeSummary\x12B\x0A\x0Dother_matches\x18\x0A \x03(\x0B2+.google.privacy.dlp.v2.OtherInfoTypeSummary\x12M\x0A\x19estimated_null_percentage\x18\x17 \x01(\x0E2*.google.privacy.dlp.v2.NullPercentageLevel\x12O\x0A\x1Aestimated_uniqueness_score\x18\x18 \x01(\x0E2+.google.privacy.dlp.v2.UniquenessScoreLevel\x12\x17\x0A\x0Ffree_text_score\x18\x0D \x01(\x01\x12L\x0A\x0Bcolumn_type\x18\x0E \x01(\x0E27.google.privacy.dlp.v2.ColumnDataProfile.ColumnDataType\x12P\x0A\x0Cpolicy_state\x18\x0F \x01(\x0E2:.google.privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState\"5\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x08\x0A\x04DONE\x10\x02\"\xFF\x02\x0A\x0EColumnDataType\x12 \x0A\x1CCOLUMN_DATA_TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0ATYPE_INT64\x10\x01\x12\x0D\x0A\x09TYPE_BOOL\x10\x02\x12\x10\x0A\x0CTYPE_FLOAT64\x10\x03\x12\x0F\x0A\x0BTYPE_STRING\x10\x04\x12\x0E\x0A\x0ATYPE_BYTES\x10\x05\x12\x12\x0A\x0ETYPE_TIMESTAMP\x10\x06\x12\x0D\x0A\x09TYPE_DATE\x10\x07\x12\x0D\x0A\x09TYPE_TIME\x10\x08\x12\x11\x0A\x0DTYPE_DATETIME\x10\x09\x12\x12\x0A\x0ETYPE_GEOGRAPHY\x10\x0A\x12\x10\x0A\x0CTYPE_NUMERIC\x10\x0B\x12\x0F\x0A\x0BTYPE_RECORD\x10\x0C\x12\x13\x0A\x0FTYPE_BIGNUMERIC\x10\x0D\x12\x0D\x0A\x09TYPE_JSON\x10\x0E\x12\x11\x0A\x0DTYPE_INTERVAL\x10\x0F\x12\x13\x0A\x0FTYPE_RANGE_DATE\x10\x10\x12\x17\x0A\x13TYPE_RANGE_DATETIME\x10\x11\x12\x18\x0A\x14TYPE_RANGE_TIMESTAMP\x10\x12\"R\x0A\x11ColumnPolicyState\x12#\x0A\x1FCOLUMN_POLICY_STATE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14COLUMN_POLICY_TAGGED\x10\x01:\xD8\x01\xEAA\xD4\x01\x0A\$dlp.googleapis.com/ColumnDataProfile\x12Zorganizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}\x12Pprojects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}\"\xE8\x0E\x0A\x14FileStoreDataProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12?\x0A\x10data_source_type\x18\x02 \x01(\x0B2%.google.privacy.dlp.v2.DataSourceType\x12\x1C\x0A\x14project_data_profile\x18\x03 \x01(\x09\x12\x12\x0A\x0Aproject_id\x18\x04 \x01(\x09\x12\x1B\x0A\x13file_store_location\x18\x05 \x01(\x09\x12\x1E\x0A\x16data_storage_locations\x18\x13 \x03(\x09\x12\x15\x0A\x0Dlocation_type\x18\x14 \x01(\x09\x12\x17\x0A\x0Ffile_store_path\x18\x06 \x01(\x09\x12\x15\x0A\x0Dfull_resource\x18\x18 \x01(\x09\x12I\x0A\x0Fconfig_snapshot\x18\x07 \x01(\x0B20.google.privacy.dlp.v2.DataProfileConfigSnapshot\x12<\x0A\x0Eprofile_status\x18\x08 \x01(\x0B2\$.google.privacy.dlp.v2.ProfileStatus\x12@\x0A\x05state\x18\x09 \x01(\x0E21.google.privacy.dlp.v2.FileStoreDataProfile.State\x12:\x0A\x16profile_last_generated\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\x12F\x0A\x13resource_visibility\x18\x0B \x01(\x0E2).google.privacy.dlp.v2.ResourceVisibility\x12B\x0A\x11sensitivity_score\x18\x0C \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x0D \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12/\x0A\x0Bcreate_time\x18\x0E \x01(\x0B2\x1A.google.protobuf.Timestamp\x126\x0A\x12last_modified_time\x18\x0F \x01(\x0B2\x1A.google.protobuf.Timestamp\x12I\x0A\x16file_cluster_summaries\x18\x10 \x03(\x0B2).google.privacy.dlp.v2.FileClusterSummary\x12`\x0A\x13resource_attributes\x18\x11 \x03(\x0B2C.google.privacy.dlp.v2.FileStoreDataProfile.ResourceAttributesEntry\x12X\x0A\x0Fresource_labels\x18\x12 \x03(\x0B2?.google.privacy.dlp.v2.FileStoreDataProfile.ResourceLabelsEntry\x12W\x0A\x1Efile_store_info_type_summaries\x18\x15 \x03(\x0B2/.google.privacy.dlp.v2.FileStoreInfoTypeSummary\x12C\x0A\x15sample_findings_table\x18\x16 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12\x1B\x0A\x13file_store_is_empty\x18\x17 \x01(\x08\x12(\x0A\x04tags\x18\x19 \x03(\x0B2\x1A.google.privacy.dlp.v2.Tag\x12A\x0A\x11related_resources\x18\x1A \x03(\x0B2&.google.privacy.dlp.v2.RelatedResource\x12.\x0A\x07domains\x18\x1B \x03(\x0B2\x1D.google.privacy.dlp.v2.Domain\x1AW\x0A\x17ResourceAttributesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12+\x0A\x05value\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value:\x028\x01\x1A5\x0A\x13ResourceLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"5\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x08\x0A\x04DONE\x10\x02:\xE9\x01\xEAA\xE5\x01\x0A'dlp.googleapis.com/FileStoreDataProfile\x12aorganizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}\x12Wprojects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}\"?\x0A\x03Tag\x12\x1C\x0A\x14namespaced_tag_value\x18\x01 \x01(\x09\x12\x0B\x0A\x03key\x18\x02 \x01(\x09\x12\x0D\x0A\x05value\x18\x03 \x01(\x09\"H\x0A\x0ATagFilters\x12:\x0A\x0Btag_filters\x18\x01 \x03(\x0B2 .google.privacy.dlp.v2.TagFilterB\x03\xE0A\x02\"S\x0A\x09TagFilter\x12\x1E\x0A\x14namespaced_tag_value\x18\x01 \x01(\x09H\x00\x12\x1C\x0A\x12namespaced_tag_key\x18\x02 \x01(\x09H\x00B\x08\x0A\x06format\"(\x0A\x0FRelatedResource\x12\x15\x0A\x0Dfull_resource\x18\x01 \x01(\x09\"N\x0A\x18FileStoreInfoTypeSummary\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\"+\x0A\x11FileExtensionInfo\x12\x16\x0A\x0Efile_extension\x18\x01 \x01(\x09\"\x8C\x04\x0A\x12FileClusterSummary\x12A\x0A\x11file_cluster_type\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.FileClusterType\x12W\x0A\x1Efile_store_info_type_summaries\x18\x02 \x03(\x0B2/.google.privacy.dlp.v2.FileStoreInfoTypeSummary\x12B\x0A\x11sensitivity_score\x18\x03 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x04 \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12,\x0A\x06errors\x18\x06 \x03(\x0B2\x1C.google.privacy.dlp.v2.Error\x12I\x0A\x17file_extensions_scanned\x18\x07 \x03(\x0B2(.google.privacy.dlp.v2.FileExtensionInfo\x12F\x0A\x14file_extensions_seen\x18\x08 \x03(\x0B2(.google.privacy.dlp.v2.FileExtensionInfo\x12\x16\x0A\x0Eno_files_exist\x18\x09 \x01(\x08\"[\x0A\x1CGetProjectDataProfileRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/ProjectDataProfile\"]\x0A\x1EGetFileStoreDataProfileRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/ProjectDataProfile\"\xC0\x01\x0A ListFileStoreDataProfilesRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'dlp.googleapis.com/FileStoreDataProfile\x12\x17\x0A\x0Apage_token\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x8B\x01\x0A!ListFileStoreDataProfilesResponse\x12M\x0A\x18file_store_data_profiles\x18\x01 \x03(\x0B2+.google.privacy.dlp.v2.FileStoreDataProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"b\x0A!DeleteFileStoreDataProfileRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'dlp.googleapis.com/FileStoreDataProfile\"W\x0A\x1AGetTableDataProfileRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dlp.googleapis.com/TableDataProfile\"Y\x0A\x1BGetColumnDataProfileRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dlp.googleapis.com/ColumnDataProfile\"\xEA\x05\x0A\x1ADataProfilePubSubCondition\x12X\x0A\x0Bexpressions\x18\x01 \x01(\x0B2C.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions\x1A\xE9\x01\x0A\x0FPubSubCondition\x12b\x0A\x12minimum_risk_score\x18\x01 \x01(\x0E2D.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucketH\x00\x12i\x0A\x19minimum_sensitivity_score\x18\x02 \x01(\x0E2D.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucketH\x00B\x07\x0A\x05value\x1A\xAB\x02\x0A\x11PubSubExpressions\x12s\x0A\x10logical_operator\x18\x01 \x01(\x0E2Y.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator\x12U\x0A\x0Aconditions\x18\x02 \x03(\x0B2A.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition\"J\x0A\x15PubSubLogicalOperator\x12 \x0A\x1CLOGICAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x06\x0A\x02OR\x10\x01\x12\x07\x0A\x03AND\x10\x02\"X\x0A\x12ProfileScoreBucket\x12\$\x0A PROFILE_SCORE_BUCKET_UNSPECIFIED\x10\x00\x12\x08\x0A\x04HIGH\x10\x01\x12\x12\x0A\x0EMEDIUM_OR_HIGH\x10\x02\"\xE0\x01\x0A\x18DataProfilePubSubMessage\x128\x0A\x07profile\x18\x01 \x01(\x0B2'.google.privacy.dlp.v2.TableDataProfile\x12G\x0A\x12file_store_profile\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.FileStoreDataProfile\x12A\x0A\x05event\x18\x02 \x01(\x0E22.google.privacy.dlp.v2.DataProfileAction.EventType\"\x8C\x01\x0A\x17CreateConnectionRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/Connection\x12:\x0A\x0Aconnection\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.ConnectionB\x03\xE0A\x02\"K\x0A\x14GetConnectionRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/Connection\"\x95\x01\x0A\x16ListConnectionsRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/Connection\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x97\x01\x0A\x18SearchConnectionsRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/Connection\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"j\x0A\x17ListConnectionsResponse\x126\x0A\x0Bconnections\x18\x01 \x03(\x0B2!.google.privacy.dlp.v2.Connection\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"l\x0A\x19SearchConnectionsResponse\x126\x0A\x0Bconnections\x18\x01 \x03(\x0B2!.google.privacy.dlp.v2.Connection\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xC0\x01\x0A\x17UpdateConnectionRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/Connection\x12:\x0A\x0Aconnection\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.ConnectionB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"N\x0A\x17DeleteConnectionRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/Connection\"\x90\x03\x0A\x0AConnection\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12:\x0A\x05state\x18\x02 \x01(\x0E2&.google.privacy.dlp.v2.ConnectionStateB\x03\xE0A\x02\x121\x0A\x06errors\x18\x03 \x03(\x0B2\x1C.google.privacy.dlp.v2.ErrorB\x03\xE0A\x03\x12>\x0A\x09cloud_sql\x18\x04 \x01(\x0B2).google.privacy.dlp.v2.CloudSqlPropertiesH\x00:\xB1\x01\xEAA\xAD\x01\x0A\x1Ddlp.googleapis.com/Connection\x12@projects/{project}/locations/{location}/connections/{connection}\x12Jorganizations/{organization}/locations/{location}/connections/{connection}B\x0C\x0A\x0Aproperties\"[\x0A\x17SecretManagerCredential\x12\x15\x0A\x08username\x18\x01 \x01(\x09B\x03\xE0A\x02\x12)\x0A\x1Cpassword_secret_version_name\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x17\x0A\x15CloudSqlIamCredential\"\xB5\x03\x0A\x12CloudSqlProperties\x12\x1F\x0A\x0Fconnection_name\x18\x01 \x01(\x09B\x06\xE0A\x05\xE0A\x01\x12K\x0A\x11username_password\x18\x02 \x01(\x0B2..google.privacy.dlp.v2.SecretManagerCredentialH\x00\x12E\x0A\x0Dcloud_sql_iam\x18\x03 \x01(\x0B2,.google.privacy.dlp.v2.CloudSqlIamCredentialH\x00\x12\x1C\x0A\x0Fmax_connections\x18\x04 \x01(\x05B\x03\xE0A\x02\x12V\x0A\x0Fdatabase_engine\x18\x07 \x01(\x0E28.google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngineB\x03\xE0A\x02\"f\x0A\x0EDatabaseEngine\x12\x1B\x0A\x17DATABASE_ENGINE_UNKNOWN\x10\x00\x12\x19\x0A\x15DATABASE_ENGINE_MYSQL\x10\x01\x12\x1C\x0A\x18DATABASE_ENGINE_POSTGRES\x10\x02B\x0C\x0A\x0Acredential\"Z\x0A\x1DDeleteTableDataProfileRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dlp.googleapis.com/TableDataProfile\"%\x0A\x0EDataSourceType\x12\x13\x0A\x0Bdata_source\x18\x01 \x01(\x09\"\xF4\x02\x0A\x0FFileClusterType\x12A\x0A\x07cluster\x18\x01 \x01(\x0E2..google.privacy.dlp.v2.FileClusterType.ClusterH\x00\"\x88\x02\x0A\x07Cluster\x12\x17\x0A\x13CLUSTER_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FCLUSTER_UNKNOWN\x10\x01\x12\x10\x0A\x0CCLUSTER_TEXT\x10\x02\x12\x1B\x0A\x17CLUSTER_STRUCTURED_DATA\x10\x03\x12\x17\x0A\x13CLUSTER_SOURCE_CODE\x10\x04\x12\x19\x0A\x15CLUSTER_RICH_DOCUMENT\x10\x05\x12\x11\x0A\x0DCLUSTER_IMAGE\x10\x06\x12\x13\x0A\x0FCLUSTER_ARCHIVE\x10\x07\x12\x16\x0A\x12CLUSTER_MULTIMEDIA\x10\x08\x12\x16\x0A\x12CLUSTER_EXECUTABLE\x10\x09\x12\x14\x0A\x10CLUSTER_AI_MODEL\x10\x0AB\x13\x0A\x11file_cluster_type\"\xB6\x05\x0A\x12ProcessingLocation\x12`\x0A\x17image_fallback_location\x18\x01 \x01(\x0B2?.google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation\x12f\x0A\x1Adocument_fallback_location\x18\x02 \x01(\x0B2B.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation\x1A\x17\x0A\x15MultiRegionProcessing\x1A\x12\x0A\x10GlobalProcessing\x1A\xD1\x01\x0A\x15ImageFallbackLocation\x12`\x0A\x17multi_region_processing\x18d \x01(\x0B2?.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing\x12V\x0A\x11global_processing\x18\xC8\x01 \x01(\x0B2:.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing\x1A\xD4\x01\x0A\x18DocumentFallbackLocation\x12`\x0A\x17multi_region_processing\x18d \x01(\x0B2?.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing\x12V\x0A\x11global_processing\x18\xC8\x01 \x01(\x0B2:.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing\"K\x0A\x17SaveToGcsFindingsOutput\x120\x0A\x08findings\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.Finding\"\xC6\x02\x0A\x06Domain\x128\x0A\x08category\x18\x01 \x01(\x0E2&.google.privacy.dlp.v2.Domain.Category\x125\x0A\x07signals\x18\x02 \x03(\x0E2\$.google.privacy.dlp.v2.Domain.Signal\"6\x0A\x08Category\x12\x18\x0A\x14CATEGORY_UNSPECIFIED\x10\x00\x12\x06\x0A\x02AI\x10\x01\x12\x08\x0A\x04CODE\x10\x02\"\x92\x01\x0A\x06Signal\x12\x16\x0A\x12SIGNAL_UNSPECIFIED\x10\x00\x12\x09\x0A\x05MODEL\x10\x01\x12\x12\x0A\x0ETEXT_EMBEDDING\x10\x02\x12\x0D\x0A\x09EMBEDDING\x10\x07\x12\x11\x0A\x0DVERTEX_PLUGIN\x10\x03\x12\x11\x0A\x0DVECTOR_PLUGIN\x10\x04\x12\x0F\x0A\x0BSOURCE_CODE\x10\x05\x12\x0B\x0A\x07SERVICE\x10\x06*\xA0\x01\x0A\x1ETransformationResultStatusType\x12\x1A\x0A\x16STATE_TYPE_UNSPECIFIED\x10\x00\x12\x15\x0A\x11INVALID_TRANSFORM\x10\x01\x12\"\x0A\x1EBIGQUERY_MAX_ROW_SIZE_EXCEEDED\x10\x02\x12\x1A\x0A\x16METADATA_UNRETRIEVABLE\x10\x03\x12\x0B\x0A\x07SUCCESS\x10\x04*\x7F\x0A\x1BTransformationContainerType\x12\x1F\x0A\x1BTRANSFORM_UNKNOWN_CONTAINER\x10\x00\x12\x12\x0A\x0ETRANSFORM_BODY\x10\x01\x12\x16\x0A\x12TRANSFORM_METADATA\x10\x02\x12\x13\x0A\x0FTRANSFORM_TABLE\x10\x03*\xE0\x02\x0A\x12TransformationType\x12#\x0A\x1FTRANSFORMATION_TYPE_UNSPECIFIED\x10\x00\x12\x16\x0A\x12RECORD_SUPPRESSION\x10\x01\x12\x11\x0A\x0DREPLACE_VALUE\x10\x02\x12\x16\x0A\x12REPLACE_DICTIONARY\x10\x0F\x12\x0A\x0A\x06REDACT\x10\x03\x12\x12\x0A\x0ECHARACTER_MASK\x10\x04\x12\x1A\x0A\x16CRYPTO_REPLACE_FFX_FPE\x10\x05\x12\x18\x0A\x14FIXED_SIZE_BUCKETING\x10\x06\x12\x0D\x0A\x09BUCKETING\x10\x07\x12\x1A\x0A\x16REPLACE_WITH_INFO_TYPE\x10\x08\x12\x0D\x0A\x09TIME_PART\x10\x09\x12\x0F\x0A\x0BCRYPTO_HASH\x10\x0A\x12\x0E\x0A\x0ADATE_SHIFT\x10\x0C\x12\x1F\x0A\x1BCRYPTO_DETERMINISTIC_CONFIG\x10\x0D\x12\x10\x0A\x0CREDACT_IMAGE\x10\x0E*r\x0A\x11ProfileGeneration\x12\"\x0A\x1EPROFILE_GENERATION_UNSPECIFIED\x10\x00\x12\x1A\x0A\x16PROFILE_GENERATION_NEW\x10\x01\x12\x1D\x0A\x19PROFILE_GENERATION_UPDATE\x10\x02*\x96\x01\x0A\x1BBigQueryTableTypeCollection\x12\$\x0A BIG_QUERY_COLLECTION_UNSPECIFIED\x10\x00\x12\"\x0A\x1EBIG_QUERY_COLLECTION_ALL_TYPES\x10\x01\x12-\x0A)BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES\x10\x02*\xA8\x01\x0A\x11BigQueryTableType\x12\$\x0A BIG_QUERY_TABLE_TYPE_UNSPECIFIED\x10\x00\x12\x1E\x0A\x1ABIG_QUERY_TABLE_TYPE_TABLE\x10\x01\x12*\x0A&BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE\x10\x02\x12!\x0A\x1DBIG_QUERY_TABLE_TYPE_SNAPSHOT\x10\x03*\x94\x01\x0A\x1ADataProfileUpdateFrequency\x12 \x0A\x1CUPDATE_FREQUENCY_UNSPECIFIED\x10\x00\x12\x1A\x0A\x16UPDATE_FREQUENCY_NEVER\x10\x01\x12\x1A\x0A\x16UPDATE_FREQUENCY_DAILY\x10\x02\x12\x1C\x0A\x18UPDATE_FREQUENCY_MONTHLY\x10\x04*]\x0A\x19BigQueryTableModification\x12\"\x0A\x1ETABLE_MODIFICATION_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18TABLE_MODIFIED_TIMESTAMP\x10\x01*u\x0A\x1ABigQuerySchemaModification\x12#\x0A\x1FSCHEMA_MODIFICATION_UNSPECIFIED\x10\x00\x12\x16\x0A\x12SCHEMA_NEW_COLUMNS\x10\x01\x12\x1A\x0A\x16SCHEMA_REMOVED_COLUMNS\x10\x02*\xBB\x01\x0A\x12RelationalOperator\x12#\x0A\x1FRELATIONAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08EQUAL_TO\x10\x01\x12\x10\x0A\x0CNOT_EQUAL_TO\x10\x02\x12\x10\x0A\x0CGREATER_THAN\x10\x03\x12\x0D\x0A\x09LESS_THAN\x10\x04\x12\x1A\x0A\x16GREATER_THAN_OR_EQUALS\x10\x05\x12\x17\x0A\x13LESS_THAN_OR_EQUALS\x10\x06\x12\x0A\x0A\x06EXISTS\x10\x07*\xAE\x01\x0A\x0CMatchingType\x12\x1D\x0A\x19MATCHING_TYPE_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18MATCHING_TYPE_FULL_MATCH\x10\x01\x12\x1F\x0A\x1BMATCHING_TYPE_PARTIAL_MATCH\x10\x02\x12\x1F\x0A\x1BMATCHING_TYPE_INVERSE_MATCH\x10\x03\x12\x1F\x0A\x1BMATCHING_TYPE_RULE_SPECIFIC\x10\x04*M\x0A\x0DContentOption\x12\x17\x0A\x13CONTENT_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CCONTENT_TEXT\x10\x01\x12\x11\x0A\x0DCONTENT_IMAGE\x10\x02*v\x0A\x0CMetadataType\x12\x1C\x0A\x18METADATATYPE_UNSPECIFIED\x10\x00\x12\x14\x0A\x10STORAGE_METADATA\x10\x02\x12\x14\x0A\x10CONTENT_METADATA\x10\x03\x12\x1C\x0A\x18CLIENT_PROVIDED_METADATA\x10\x04*P\x0A\x13InfoTypeSupportedBy\x12\x19\x0A\x15ENUM_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07INSPECT\x10\x01\x12\x11\x0A\x0DRISK_ANALYSIS\x10\x02*R\x0A\x0ADlpJobType\x12\x1C\x0A\x18DLP_JOB_TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINSPECT_JOB\x10\x01\x12\x15\x0A\x11RISK_ANALYSIS_JOB\x10\x02*n\x0A\x13StoredInfoTypeState\x12&\x0A\"STORED_INFO_TYPE_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PENDING\x10\x01\x12\x09\x0A\x05READY\x10\x02\x12\x0A\x0A\x06FAILED\x10\x03\x12\x0B\x0A\x07INVALID\x10\x04*\xA3\x01\x0A\x12ResourceVisibility\x12#\x0A\x1FRESOURCE_VISIBILITY_UNSPECIFIED\x10\x00\x12\x1E\x0A\x1ARESOURCE_VISIBILITY_PUBLIC\x10\x0A\x12\$\x0A RESOURCE_VISIBILITY_INCONCLUSIVE\x10\x0F\x12\"\x0A\x1ERESOURCE_VISIBILITY_RESTRICTED\x10\x14*u\x0A\x10EncryptionStatus\x12!\x0A\x1DENCRYPTION_STATUS_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19ENCRYPTION_GOOGLE_MANAGED\x10\x01\x12\x1F\x0A\x1BENCRYPTION_CUSTOMER_MANAGED\x10\x02*\xA9\x01\x0A\x13NullPercentageLevel\x12%\x0A!NULL_PERCENTAGE_LEVEL_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18NULL_PERCENTAGE_VERY_LOW\x10\x01\x12\x17\x0A\x13NULL_PERCENTAGE_LOW\x10\x02\x12\x1A\x0A\x16NULL_PERCENTAGE_MEDIUM\x10\x03\x12\x18\x0A\x14NULL_PERCENTAGE_HIGH\x10\x04*\x90\x01\x0A\x14UniquenessScoreLevel\x12&\x0A\"UNIQUENESS_SCORE_LEVEL_UNSPECIFIED\x10\x00\x12\x18\x0A\x14UNIQUENESS_SCORE_LOW\x10\x01\x12\x1B\x0A\x17UNIQUENESS_SCORE_MEDIUM\x10\x02\x12\x19\x0A\x15UNIQUENESS_SCORE_HIGH\x10\x03*f\x0A\x0FConnectionState\x12 \x0A\x1CCONNECTION_STATE_UNSPECIFIED\x10\x00\x12\x17\x0A\x13MISSING_CREDENTIALS\x10\x01\x12\x0D\x0A\x09AVAILABLE\x10\x02\x12\x09\x0A\x05ERROR\x10\x032\xDDv\x0A\x0ADlpService\x12\xDB\x01\x0A\x0EInspectContent\x12,.google.privacy.dlp.v2.InspectContentRequest\x1A-.google.privacy.dlp.v2.InspectContentResponse\"l\x82\xD3\xE4\x93\x02f\"'/v2/{parent=projects/*}/content:inspect:\x01*Z8\"3/v2/{parent=projects/*/locations/*}/content:inspect:\x01*\x12\xCC\x01\x0A\x0BRedactImage\x12).google.privacy.dlp.v2.RedactImageRequest\x1A*.google.privacy.dlp.v2.RedactImageResponse\"f\x82\xD3\xE4\x93\x02`\"\$/v2/{parent=projects/*}/image:redact:\x01*Z5\"0/v2/{parent=projects/*/locations/*}/image:redact:\x01*\x12\xEA\x01\x0A\x11DeidentifyContent\x12/.google.privacy.dlp.v2.DeidentifyContentRequest\x1A0.google.privacy.dlp.v2.DeidentifyContentResponse\"r\x82\xD3\xE4\x93\x02l\"*/v2/{parent=projects/*}/content:deidentify:\x01*Z;\"6/v2/{parent=projects/*/locations/*}/content:deidentify:\x01*\x12\xEA\x01\x0A\x11ReidentifyContent\x12/.google.privacy.dlp.v2.ReidentifyContentRequest\x1A0.google.privacy.dlp.v2.ReidentifyContentResponse\"r\x82\xD3\xE4\x93\x02l\"*/v2/{parent=projects/*}/content:reidentify:\x01*Z;\"6/v2/{parent=projects/*/locations/*}/content:reidentify:\x01*\x12\x99\x02\x0A\x0DListInfoTypes\x12+.google.privacy.dlp.v2.ListInfoTypesRequest\x1A,.google.privacy.dlp.v2.ListInfoTypesResponse\"\xAC\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\x9C\x01\x12\x0D/v2/infoTypesZ\$\x12\"/v2/{parent=locations/*}/infoTypesZ/\x12-/v2/{parent=projects/*/locations/*}/infoTypesZ4\x122/v2/{parent=organizations/*/locations/*}/infoTypes\x12\xF4\x02\x0A\x15CreateInspectTemplate\x123.google.privacy.dlp.v2.CreateInspectTemplateRequest\x1A&.google.privacy.dlp.v2.InspectTemplate\"\xFD\x01\xDAA\x17parent,inspect_template\x82\xD3\xE4\x93\x02\xDC\x01\"4/v2/{parent=projects/*/locations/*}/inspectTemplates:\x01*Z>\"9/v2/{parent=organizations/*/locations/*}/inspectTemplates:\x01*Z-\"(/v2/{parent=projects/*}/inspectTemplates:\x01*Z2\"-/v2/{parent=organizations/*}/inspectTemplates:\x01*\x12\xFE\x02\x0A\x15UpdateInspectTemplate\x123.google.privacy.dlp.v2.UpdateInspectTemplateRequest\x1A&.google.privacy.dlp.v2.InspectTemplate\"\x87\x02\xDAA!name,inspect_template,update_mask\x82\xD3\xE4\x93\x02\xDC\x0124/v2/{name=projects/*/locations/*/inspectTemplates/*}:\x01*Z>29/v2/{name=organizations/*/locations/*/inspectTemplates/*}:\x01*Z-2(/v2/{name=projects/*/inspectTemplates/*}:\x01*Z22-/v2/{name=organizations/*/inspectTemplates/*}:\x01*\x12\xCF\x02\x0A\x12GetInspectTemplate\x120.google.privacy.dlp.v2.GetInspectTemplateRequest\x1A&.google.privacy.dlp.v2.InspectTemplate\"\xDE\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xD0\x01\x124/v2/{name=projects/*/locations/*/inspectTemplates/*}Z;\x129/v2/{name=organizations/*/locations/*/inspectTemplates/*}Z*\x12(/v2/{name=projects/*/inspectTemplates/*}Z/\x12-/v2/{name=organizations/*/inspectTemplates/*}\x12\xE2\x02\x0A\x14ListInspectTemplates\x122.google.privacy.dlp.v2.ListInspectTemplatesRequest\x1A3.google.privacy.dlp.v2.ListInspectTemplatesResponse\"\xE0\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xD0\x01\x124/v2/{parent=projects/*/locations/*}/inspectTemplatesZ;\x129/v2/{parent=organizations/*/locations/*}/inspectTemplatesZ*\x12(/v2/{parent=projects/*}/inspectTemplatesZ/\x12-/v2/{parent=organizations/*}/inspectTemplates\x12\xC5\x02\x0A\x15DeleteInspectTemplate\x123.google.privacy.dlp.v2.DeleteInspectTemplateRequest\x1A\x16.google.protobuf.Empty\"\xDE\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xD0\x01*4/v2/{name=projects/*/locations/*/inspectTemplates/*}Z;*9/v2/{name=organizations/*/locations/*/inspectTemplates/*}Z**(/v2/{name=projects/*/inspectTemplates/*}Z/*-/v2/{name=organizations/*/inspectTemplates/*}\x12\x8C\x03\x0A\x18CreateDeidentifyTemplate\x126.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest\x1A).google.privacy.dlp.v2.DeidentifyTemplate\"\x8C\x02\xDAA\x1Aparent,deidentify_template\x82\xD3\xE4\x93\x02\xE8\x01\"0/v2/{parent=organizations/*}/deidentifyTemplates:\x01*ZA\"\x12\x12*\"9/v2/{parent=organizations/*/locations/*}/discoveryConfigs:\x01*\x12\x9A\x02\x0A\x15UpdateDiscoveryConfig\x123.google.privacy.dlp.v2.UpdateDiscoveryConfigRequest\x1A&.google.privacy.dlp.v2.DiscoveryConfig\"\xA3\x01\xDAA!name,discovery_config,update_mask\x82\xD3\xE4\x93\x02y24/v2/{name=projects/*/locations/*/discoveryConfigs/*}:\x01*Z>29/v2/{name=organizations/*/locations/*/discoveryConfigs/*}:\x01*\x12\xF1\x01\x0A\x12GetDiscoveryConfig\x120.google.privacy.dlp.v2.GetDiscoveryConfigRequest\x1A&.google.privacy.dlp.v2.DiscoveryConfig\"\x80\x01\xDAA\x04name\x82\xD3\xE4\x93\x02s\x124/v2/{name=projects/*/locations/*/discoveryConfigs/*}Z;\x129/v2/{name=organizations/*/locations/*/discoveryConfigs/*}\x12\x84\x02\x0A\x14ListDiscoveryConfigs\x122.google.privacy.dlp.v2.ListDiscoveryConfigsRequest\x1A3.google.privacy.dlp.v2.ListDiscoveryConfigsResponse\"\x82\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02s\x124/v2/{parent=projects/*/locations/*}/discoveryConfigsZ;\x129/v2/{parent=organizations/*/locations/*}/discoveryConfigs\x12\xE7\x01\x0A\x15DeleteDiscoveryConfig\x123.google.privacy.dlp.v2.DeleteDiscoveryConfigRequest\x1A\x16.google.protobuf.Empty\"\x80\x01\xDAA\x04name\x82\xD3\xE4\x93\x02s*4/v2/{name=projects/*/locations/*/discoveryConfigs/*}Z;*9/v2/{name=organizations/*/locations/*/discoveryConfigs/*}\x12\xDF\x01\x0A\x0CCreateDlpJob\x12*.google.privacy.dlp.v2.CreateDlpJobRequest\x1A\x1D.google.privacy.dlp.v2.DlpJob\"\x83\x01\xDAA\x12parent,inspect_job\xDAA\x0Fparent,risk_job\x82\xD3\xE4\x93\x02V\"\x1F/v2/{parent=projects/*}/dlpJobs:\x01*Z0\"+/v2/{parent=projects/*/locations/*}/dlpJobs:\x01*\x12\xFB\x01\x0A\x0BListDlpJobs\x12).google.privacy.dlp.v2.ListDlpJobsRequest\x1A*.google.privacy.dlp.v2.ListDlpJobsResponse\"\x94\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\x84\x01\x12\x1F/v2/{parent=projects/*}/dlpJobsZ-\x12+/v2/{parent=projects/*/locations/*}/dlpJobsZ2\x120/v2/{parent=organizations/*/locations/*}/dlpJobs\x12\xB2\x01\x0A\x09GetDlpJob\x12'.google.privacy.dlp.v2.GetDlpJobRequest\x1A\x1D.google.privacy.dlp.v2.DlpJob\"]\xDAA\x04name\x82\xD3\xE4\x93\x02P\x12\x1F/v2/{name=projects/*/dlpJobs/*}Z-\x12+/v2/{name=projects/*/locations/*/dlpJobs/*}\x12\xB1\x01\x0A\x0CDeleteDlpJob\x12*.google.privacy.dlp.v2.DeleteDlpJobRequest\x1A\x16.google.protobuf.Empty\"]\xDAA\x04name\x82\xD3\xE4\x93\x02P*\x1F/v2/{name=projects/*/dlpJobs/*}Z-*+/v2/{name=projects/*/locations/*/dlpJobs/*}\x12\xBE\x01\x0A\x0CCancelDlpJob\x12*.google.privacy.dlp.v2.CancelDlpJobRequest\x1A\x16.google.protobuf.Empty\"j\x82\xD3\xE4\x93\x02d\"&/v2/{name=projects/*/dlpJobs/*}:cancel:\x01*Z7\"2/v2/{name=projects/*/locations/*/dlpJobs/*}:cancel:\x01*\x12\xE3\x02\x0A\x14CreateStoredInfoType\x122.google.privacy.dlp.v2.CreateStoredInfoTypeRequest\x1A%.google.privacy.dlp.v2.StoredInfoType\"\xEF\x01\xDAA\x0Dparent,config\x82\xD3\xE4\x93\x02\xD8\x01\",/v2/{parent=organizations/*}/storedInfoTypes:\x01*Z=\"8/v2/{parent=organizations/*/locations/*}/storedInfoTypes:\x01*Z,\"'/v2/{parent=projects/*}/storedInfoTypes:\x01*Z8\"3/v2/{parent=projects/*/locations/*}/storedInfoTypes:\x01*\x12\xED\x02\x0A\x14UpdateStoredInfoType\x122.google.privacy.dlp.v2.UpdateStoredInfoTypeRequest\x1A%.google.privacy.dlp.v2.StoredInfoType\"\xF9\x01\xDAA\x17name,config,update_mask\x82\xD3\xE4\x93\x02\xD8\x012,/v2/{name=organizations/*/storedInfoTypes/*}:\x01*Z=28/v2/{name=organizations/*/locations/*/storedInfoTypes/*}:\x01*Z,2'/v2/{name=projects/*/storedInfoTypes/*}:\x01*Z823/v2/{name=projects/*/locations/*/storedInfoTypes/*}:\x01*\x12\xC8\x02\x0A\x11GetStoredInfoType\x12/.google.privacy.dlp.v2.GetStoredInfoTypeRequest\x1A%.google.privacy.dlp.v2.StoredInfoType\"\xDA\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xCC\x01\x12,/v2/{name=organizations/*/storedInfoTypes/*}Z:\x128/v2/{name=organizations/*/locations/*/storedInfoTypes/*}Z)\x12'/v2/{name=projects/*/storedInfoTypes/*}Z5\x123/v2/{name=projects/*/locations/*/storedInfoTypes/*}\x12\xDB\x02\x0A\x13ListStoredInfoTypes\x121.google.privacy.dlp.v2.ListStoredInfoTypesRequest\x1A2.google.privacy.dlp.v2.ListStoredInfoTypesResponse\"\xDC\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xCC\x01\x12,/v2/{parent=organizations/*}/storedInfoTypesZ:\x128/v2/{parent=organizations/*/locations/*}/storedInfoTypesZ)\x12'/v2/{parent=projects/*}/storedInfoTypesZ5\x123/v2/{parent=projects/*/locations/*}/storedInfoTypes\x12\xBF\x02\x0A\x14DeleteStoredInfoType\x122.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest\x1A\x16.google.protobuf.Empty\"\xDA\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xCC\x01*,/v2/{name=organizations/*/storedInfoTypes/*}Z:*8/v2/{name=organizations/*/locations/*/storedInfoTypes/*}Z)*'/v2/{name=projects/*/storedInfoTypes/*}Z5*3/v2/{name=projects/*/locations/*/storedInfoTypes/*}\x12\x93\x02\x0A\x17ListProjectDataProfiles\x125.google.privacy.dlp.v2.ListProjectDataProfilesRequest\x1A6.google.privacy.dlp.v2.ListProjectDataProfilesResponse\"\x88\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02y\x12/v2/{parent=organizations/*/locations/*}/fileStoreDataProfilesZ;\x129/v2/{parent=projects/*/locations/*}/fileStoreDataProfiles\x12\x8A\x02\x0A\x17GetFileStoreDataProfile\x125.google.privacy.dlp.v2.GetFileStoreDataProfileRequest\x1A+.google.privacy.dlp.v2.FileStoreDataProfile\"\x8A\x01\xDAA\x04name\x82\xD3\xE4\x93\x02}\x12>/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}Z;\x129/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}\x12\xFB\x01\x0A\x1ADeleteFileStoreDataProfile\x128.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest\x1A\x16.google.protobuf.Empty\"\x8A\x01\xDAA\x04name\x82\xD3\xE4\x93\x02}*>/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}Z;*9/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}\x12\xF6\x01\x0A\x13GetTableDataProfile\x121.google.privacy.dlp.v2.GetTableDataProfileRequest\x1A'.google.privacy.dlp.v2.TableDataProfile\"\x82\x01\xDAA\x04name\x82\xD3\xE4\x93\x02u\x12:/v2/{name=organizations/*/locations/*/tableDataProfiles/*}Z7\x125/v2/{name=projects/*/locations/*/tableDataProfiles/*}\x12\xFB\x01\x0A\x14GetColumnDataProfile\x122.google.privacy.dlp.v2.GetColumnDataProfileRequest\x1A(.google.privacy.dlp.v2.ColumnDataProfile\"\x84\x01\xDAA\x04name\x82\xD3\xE4\x93\x02w\x12;/v2/{name=organizations/*/locations/*/columnDataProfiles/*}Z8\x126/v2/{name=projects/*/locations/*/columnDataProfiles/*}\x12\xEB\x01\x0A\x16DeleteTableDataProfile\x124.google.privacy.dlp.v2.DeleteTableDataProfileRequest\x1A\x16.google.protobuf.Empty\"\x82\x01\xDAA\x04name\x82\xD3\xE4\x93\x02u*:/v2/{name=organizations/*/locations/*/tableDataProfiles/*}Z7*5/v2/{name=projects/*/locations/*/tableDataProfiles/*}\x12\xC3\x01\x0A\x13HybridInspectDlpJob\x121.google.privacy.dlp.v2.HybridInspectDlpJobRequest\x1A,.google.privacy.dlp.v2.HybridInspectResponse\"K\xDAA\x04name\x82\xD3\xE4\x93\x02>\"9/v2/{name=projects/*/locations/*/dlpJobs/*}:hybridInspect:\x01*\x12\x91\x01\x0A\x0CFinishDlpJob\x12*.google.privacy.dlp.v2.FinishDlpJobRequest\x1A\x16.google.protobuf.Empty\"=\x82\xD3\xE4\x93\x027\"2/v2/{name=projects/*/locations/*/dlpJobs/*}:finish:\x01*\x12\xF2\x01\x0A\x10CreateConnection\x12..google.privacy.dlp.v2.CreateConnectionRequest\x1A!.google.privacy.dlp.v2.Connection\"\x8A\x01\xDAA\x12parent, connection\x82\xD3\xE4\x93\x02o\"//v2/{parent=projects/*/locations/*}/connections:\x01*Z9\"4/v2/{parent=organizations/*/locations/*}/connections:\x01*\x12\xD7\x01\x0A\x0DGetConnection\x12+.google.privacy.dlp.v2.GetConnectionRequest\x1A!.google.privacy.dlp.v2.Connection\"v\xDAA\x04name\x82\xD3\xE4\x93\x02i\x12//v2/{name=projects/*/locations/*/connections/*}Z6\x124/v2/{name=organizations/*/locations/*/connections/*}\x12\xEA\x01\x0A\x0FListConnections\x12-.google.privacy.dlp.v2.ListConnectionsRequest\x1A..google.privacy.dlp.v2.ListConnectionsResponse\"x\xDAA\x06parent\x82\xD3\xE4\x93\x02i\x12//v2/{parent=projects/*/locations/*}/connectionsZ6\x124/v2/{parent=organizations/*/locations/*}/connections\x12\xFF\x01\x0A\x11SearchConnections\x12/.google.privacy.dlp.v2.SearchConnectionsRequest\x1A0.google.privacy.dlp.v2.SearchConnectionsResponse\"\x86\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02w\x126/v2/{parent=projects/*/locations/*}/connections:searchZ=\x12;/v2/{parent=organizations/*/locations/*}/connections:search\x12\xD2\x01\x0A\x10DeleteConnection\x12..google.privacy.dlp.v2.DeleteConnectionRequest\x1A\x16.google.protobuf.Empty\"v\xDAA\x04name\x82\xD3\xE4\x93\x02i*//v2/{name=projects/*/locations/*/connections/*}Z6*4/v2/{name=organizations/*/locations/*/connections/*}\x12\xE3\x01\x0A\x10UpdateConnection\x12..google.privacy.dlp.v2.UpdateConnectionRequest\x1A!.google.privacy.dlp.v2.Connection\"|\xDAA\x04name\x82\xD3\xE4\x93\x02o2//v2/{name=projects/*/locations/*/connections/*}:\x01*Z924/v2/{name=organizations/*/locations/*/connections/*}:\x01*\x1AF\xCAA\x12dlp.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xEB\x02\x0A\x19com.google.privacy.dlp.v2B\x08DlpProtoP\x01Z)cloud.google.com/go/dlp/apiv2/dlppb;dlppb\xAA\x02\x13Google.Cloud.Dlp.V2\xCA\x02\x13Google\\Cloud\\Dlp\\V2\xEA\x02\x16Google::Cloud::Dlp::V2\xEAAr\x0A\x1Ddlp.googleapis.com/DlpContent\x12\x1Dprojects/{project}/dlpContent\x122projects/{project}/locations/{location}/dlpContent\xEAA\\\x0A'dlp.googleapis.com/OrganizationLocation\x121organizations/{organization}/locations/{location}b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Storage.php b/owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Storage.php new file mode 100644 index 000000000000..1c4a7581467b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Storage.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xCC-\x0A#google/privacy/dlp/v2/storage.proto\x12\x15google.privacy.dlp.v2\x1A\x1Fgoogle/protobuf/timestamp.proto\"m\x0A\x08InfoType\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0F\x0A\x07version\x18\x02 \x01(\x09\x12B\x0A\x11sensitivity_score\x18\x03 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\"\xFB\x01\x0A\x10SensitivityScore\x12L\x0A\x05score\x18\x01 \x01(\x0E2=.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel\"\x98\x01\x0A\x15SensitivityScoreLevel\x12!\x0A\x1DSENSITIVITY_SCORE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FSENSITIVITY_LOW\x10\x0A\x12\x17\x0A\x13SENSITIVITY_UNKNOWN\x10\x0C\x12\x18\x0A\x14SENSITIVITY_MODERATE\x10\x14\x12\x14\x0A\x10SENSITIVITY_HIGH\x10\x1E\"K\x0A\x0AStoredType\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xBD\x0D\x0A\x0ECustomInfoType\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x125\x0A\x0Alikelihood\x18\x06 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x12F\x0A\x0Adictionary\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.CustomInfoType.DictionaryH\x00\x12<\x0A\x05regex\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.CustomInfoType.RegexH\x00\x12M\x0A\x0Esurrogate_type\x18\x04 \x01(\x0B23.google.privacy.dlp.v2.CustomInfoType.SurrogateTypeH\x00\x128\x0A\x0Bstored_type\x18\x05 \x01(\x0B2!.google.privacy.dlp.v2.StoredTypeH\x00\x12i\x0A\x1Dmetadata_key_value_expression\x18\x0A \x01(\x0B2@.google.privacy.dlp.v2.CustomInfoType.MetadataKeyValueExpressionH\x00\x12L\x0A\x0Fdetection_rules\x18\x07 \x03(\x0B23.google.privacy.dlp.v2.CustomInfoType.DetectionRule\x12K\x0A\x0Eexclusion_type\x18\x08 \x01(\x0E23.google.privacy.dlp.v2.CustomInfoType.ExclusionType\x12B\x0A\x11sensitivity_score\x18\x09 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x1A\xC8\x01\x0A\x0ADictionary\x12N\x0A\x09word_list\x18\x01 \x01(\x0B29.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordListH\x00\x12E\x0A\x12cloud_storage_path\x18\x03 \x01(\x0B2'.google.privacy.dlp.v2.CloudStoragePathH\x00\x1A\x19\x0A\x08WordList\x12\x0D\x0A\x05words\x18\x01 \x03(\x09B\x08\x0A\x06source\x1A/\x0A\x05Regex\x12\x0F\x0A\x07pattern\x18\x01 \x01(\x09\x12\x15\x0A\x0Dgroup_indexes\x18\x02 \x03(\x05\x1A\x0F\x0A\x0DSurrogateType\x1AD\x0A\x1AMetadataKeyValueExpression\x12\x11\x0A\x09key_regex\x18\x01 \x01(\x09\x12\x13\x0A\x0Bvalue_regex\x18\x02 \x01(\x09\x1A\xBE\x04\x0A\x0DDetectionRule\x12W\x0A\x0Chotword_rule\x18\x01 \x01(\x0B2?.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRuleH\x00\x1A8\x0A\x09Proximity\x12\x15\x0A\x0Dwindow_before\x18\x01 \x01(\x05\x12\x14\x0A\x0Cwindow_after\x18\x02 \x01(\x05\x1A\x82\x01\x0A\x14LikelihoodAdjustment\x12=\x0A\x10fixed_likelihood\x18\x01 \x01(\x0E2!.google.privacy.dlp.v2.LikelihoodH\x00\x12\x1D\x0A\x13relative_likelihood\x18\x02 \x01(\x05H\x00B\x0C\x0A\x0Aadjustment\x1A\x8C\x02\x0A\x0BHotwordRule\x12B\x0A\x0Dhotword_regex\x18\x01 \x01(\x0B2+.google.privacy.dlp.v2.CustomInfoType.Regex\x12P\x0A\x09proximity\x18\x02 \x01(\x0B2=.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity\x12g\x0A\x15likelihood_adjustment\x18\x03 \x01(\x0B2H.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustmentB\x06\x0A\x04type\"K\x0A\x0DExclusionType\x12\x1E\x0A\x1AEXCLUSION_TYPE_UNSPECIFIED\x10\x00\x12\x1A\x0A\x16EXCLUSION_TYPE_EXCLUDE\x10\x01B\x06\x0A\x04type\"\x17\x0A\x07FieldId\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\"7\x0A\x0BPartitionId\x12\x12\x0A\x0Aproject_id\x18\x02 \x01(\x09\x12\x14\x0A\x0Cnamespace_id\x18\x04 \x01(\x09\"\x1E\x0A\x0EKindExpression\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\"\x81\x01\x0A\x10DatastoreOptions\x128\x0A\x0Cpartition_id\x18\x01 \x01(\x0B2\".google.privacy.dlp.v2.PartitionId\x123\x0A\x04kind\x18\x02 \x01(\x0B2%.google.privacy.dlp.v2.KindExpression\"]\x0A\x18CloudStorageRegexFileSet\x12\x13\x0A\x0Bbucket_name\x18\x01 \x01(\x09\x12\x15\x0A\x0Dinclude_regex\x18\x02 \x03(\x09\x12\x15\x0A\x0Dexclude_regex\x18\x03 \x03(\x09\"\xEC\x03\x0A\x13CloudStorageOptions\x12D\x0A\x08file_set\x18\x01 \x01(\x0B22.google.privacy.dlp.v2.CloudStorageOptions.FileSet\x12\x1C\x0A\x14bytes_limit_per_file\x18\x04 \x01(\x03\x12\$\x0A\x1Cbytes_limit_per_file_percent\x18\x08 \x01(\x05\x123\x0A\x0Afile_types\x18\x05 \x03(\x0E2\x1F.google.privacy.dlp.v2.FileType\x12N\x0A\x0Dsample_method\x18\x06 \x01(\x0E27.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod\x12\x1B\x0A\x13files_limit_percent\x18\x07 \x01(\x05\x1A_\x0A\x07FileSet\x12\x0B\x0A\x03url\x18\x01 \x01(\x09\x12G\x0A\x0Eregex_file_set\x18\x02 \x01(\x0B2/.google.privacy.dlp.v2.CloudStorageRegexFileSet\"H\x0A\x0CSampleMethod\x12\x1D\x0A\x19SAMPLE_METHOD_UNSPECIFIED\x10\x00\x12\x07\x0A\x03TOP\x10\x01\x12\x10\x0A\x0CRANDOM_START\x10\x02\"\"\x0A\x13CloudStorageFileSet\x12\x0B\x0A\x03url\x18\x01 \x01(\x09\" \x0A\x10CloudStoragePath\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\"\xC4\x03\x0A\x0FBigQueryOptions\x12=\x0A\x0Ftable_reference\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12:\x0A\x12identifying_fields\x18\x02 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12\x12\x0A\x0Arows_limit\x18\x03 \x01(\x03\x12\x1A\x0A\x12rows_limit_percent\x18\x06 \x01(\x05\x12J\x0A\x0Dsample_method\x18\x04 \x01(\x0E23.google.privacy.dlp.v2.BigQueryOptions.SampleMethod\x127\x0A\x0Fexcluded_fields\x18\x05 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x127\x0A\x0Fincluded_fields\x18\x07 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\"H\x0A\x0CSampleMethod\x12\x1D\x0A\x19SAMPLE_METHOD_UNSPECIFIED\x10\x00\x12\x07\x0A\x03TOP\x10\x01\x12\x10\x0A\x0CRANDOM_START\x10\x02\"\xDA\x04\x0A\x0DStorageConfig\x12D\x0A\x11datastore_options\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.DatastoreOptionsH\x00\x12K\x0A\x15cloud_storage_options\x18\x03 \x01(\x0B2*.google.privacy.dlp.v2.CloudStorageOptionsH\x00\x12C\x0A\x11big_query_options\x18\x04 \x01(\x0B2&.google.privacy.dlp.v2.BigQueryOptionsH\x00\x12>\x0A\x0Ehybrid_options\x18\x09 \x01(\x0B2\$.google.privacy.dlp.v2.HybridOptionsH\x00\x12L\x0A\x0Ftimespan_config\x18\x06 \x01(\x0B23.google.privacy.dlp.v2.StorageConfig.TimespanConfig\x1A\xDA\x01\x0A\x0ETimespanConfig\x12.\x0A\x0Astart_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x127\x0A\x0Ftimestamp_field\x18\x03 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x121\x0A)enable_auto_population_of_timespan_config\x18\x04 \x01(\x08B\x06\x0A\x04type\"\xF6\x01\x0A\x0DHybridOptions\x12\x13\x0A\x0Bdescription\x18\x01 \x01(\x09\x12#\x0A\x1Brequired_finding_label_keys\x18\x02 \x03(\x09\x12@\x0A\x06labels\x18\x03 \x03(\x0B20.google.privacy.dlp.v2.HybridOptions.LabelsEntry\x12:\x0A\x0Dtable_options\x18\x04 \x01(\x0B2#.google.privacy.dlp.v2.TableOptions\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"`\x0A\x0BBigQueryKey\x12=\x0A\x0Ftable_reference\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12\x12\x0A\x0Arow_number\x18\x02 \x01(\x03\">\x0A\x0CDatastoreKey\x12.\x0A\x0Aentity_key\x18\x01 \x01(\x0B2\x1A.google.privacy.dlp.v2.Key\"\xBB\x01\x0A\x03Key\x128\x0A\x0Cpartition_id\x18\x01 \x01(\x0B2\".google.privacy.dlp.v2.PartitionId\x124\x0A\x04path\x18\x02 \x03(\x0B2&.google.privacy.dlp.v2.Key.PathElement\x1AD\x0A\x0BPathElement\x12\x0C\x0A\x04kind\x18\x01 \x01(\x09\x12\x0C\x0A\x02id\x18\x02 \x01(\x03H\x00\x12\x0E\x0A\x04name\x18\x03 \x01(\x09H\x00B\x09\x0A\x07id_type\"\xA1\x01\x0A\x09RecordKey\x12<\x0A\x0Ddatastore_key\x18\x02 \x01(\x0B2#.google.privacy.dlp.v2.DatastoreKeyH\x00\x12;\x0A\x0Dbig_query_key\x18\x03 \x01(\x0B2\".google.privacy.dlp.v2.BigQueryKeyH\x00\x12\x11\x0A\x09id_values\x18\x05 \x03(\x09B\x06\x0A\x04type\"I\x0A\x0DBigQueryTable\x12\x12\x0A\x0Aproject_id\x18\x01 \x01(\x09\x12\x12\x0A\x0Adataset_id\x18\x02 \x01(\x09\x12\x10\x0A\x08table_id\x18\x03 \x01(\x09\"J\x0A\x0ETableReference\x12\x12\x0A\x0Adataset_id\x18\x01 \x01(\x09\x12\x10\x0A\x08table_id\x18\x02 \x01(\x09\x12\x12\x0A\x0Aproject_id\x18\x03 \x01(\x09\"s\x0A\x0DBigQueryField\x123\x0A\x05table\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12-\x0A\x05field\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\"9\x0A\x08EntityId\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\"J\x0A\x0CTableOptions\x12:\x0A\x12identifying_fields\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId*t\x0A\x0ALikelihood\x12\x1A\x0A\x16LIKELIHOOD_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DVERY_UNLIKELY\x10\x01\x12\x0C\x0A\x08UNLIKELY\x10\x02\x12\x0C\x0A\x08POSSIBLE\x10\x03\x12\x0A\x0A\x06LIKELY\x10\x04\x12\x0F\x0A\x0BVERY_LIKELY\x10\x05*\x9A\x01\x0A\x08FileType\x12\x19\x0A\x15FILE_TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BBINARY_FILE\x10\x01\x12\x0D\x0A\x09TEXT_FILE\x10\x02\x12\x09\x0A\x05IMAGE\x10\x03\x12\x08\x0A\x04WORD\x10\x05\x12\x07\x0A\x03PDF\x10\x06\x12\x08\x0A\x04AVRO\x10\x07\x12\x07\x0A\x03CSV\x10\x08\x12\x07\x0A\x03TSV\x10\x09\x12\x0E\x0A\x0APOWERPOINT\x10\x0B\x12\x09\x0A\x05EXCEL\x10\x0CB\x99\x01\x0A\x19com.google.privacy.dlp.v2B\x0ADlpStorageP\x01Z)cloud.google.com/go/dlp/apiv2/dlppb;dlppb\xAA\x02\x13Google.Cloud.Dlp.V2\xCA\x02\x13Google\\Cloud\\Dlp\\V2\xEA\x02\x16Google::Cloud::Dlp::V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action.php new file mode 100644 index 000000000000..cf63a0d472fd --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action.php @@ -0,0 +1,329 @@ +google.privacy.dlp.v2.Action + */ +class Action extends \Google\Protobuf\Internal\Message +{ + protected $action; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Action\SaveFindings $save_findings + * Save resulting findings in a provided location. + * @type \Google\Cloud\Dlp\V2\Action\PublishToPubSub $pub_sub + * Publish a notification to a Pub/Sub topic. + * @type \Google\Cloud\Dlp\V2\Action\PublishSummaryToCscc $publish_summary_to_cscc + * Publish summary to Cloud Security Command Center (Alpha). + * @type \Google\Cloud\Dlp\V2\Action\PublishFindingsToCloudDataCatalog $publish_findings_to_cloud_data_catalog + * Deprecated because Data Catalog is being turned down. Use + * publish_findings_to_dataplex_catalog to publish findings to Dataplex + * Universal Catalog. + * @type \Google\Cloud\Dlp\V2\Action\PublishFindingsToDataplexCatalog $publish_findings_to_dataplex_catalog + * Publish findings as an aspect to Dataplex Universal Catalog. + * @type \Google\Cloud\Dlp\V2\Action\Deidentify $deidentify + * Create a de-identified copy of the input data. + * @type \Google\Cloud\Dlp\V2\Action\JobNotificationEmails $job_notification_emails + * Sends an email when the job completes. The email goes to IAM project + * owners and technical [Essential + * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). + * @type \Google\Cloud\Dlp\V2\Action\PublishToStackdriver $publish_to_stackdriver + * Enable Stackdriver metric dlp.googleapis.com/finding_count. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Save resulting findings in a provided location. + * + * Generated from protobuf field .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1; + * @return \Google\Cloud\Dlp\V2\Action\SaveFindings|null + */ + public function getSaveFindings() + { + return $this->readOneof(1); + } + + public function hasSaveFindings() + { + return $this->hasOneof(1); + } + + /** + * Save resulting findings in a provided location. + * + * Generated from protobuf field .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1; + * @param \Google\Cloud\Dlp\V2\Action\SaveFindings $var + * @return $this + */ + public function setSaveFindings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\SaveFindings::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Publish a notification to a Pub/Sub topic. + * + * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2; + * @return \Google\Cloud\Dlp\V2\Action\PublishToPubSub|null + */ + public function getPubSub() + { + return $this->readOneof(2); + } + + public function hasPubSub() + { + return $this->hasOneof(2); + } + + /** + * Publish a notification to a Pub/Sub topic. + * + * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2; + * @param \Google\Cloud\Dlp\V2\Action\PublishToPubSub $var + * @return $this + */ + public function setPubSub($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\PublishToPubSub::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Publish summary to Cloud Security Command Center (Alpha). + * + * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3; + * @return \Google\Cloud\Dlp\V2\Action\PublishSummaryToCscc|null + */ + public function getPublishSummaryToCscc() + { + return $this->readOneof(3); + } + + public function hasPublishSummaryToCscc() + { + return $this->hasOneof(3); + } + + /** + * Publish summary to Cloud Security Command Center (Alpha). + * + * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3; + * @param \Google\Cloud\Dlp\V2\Action\PublishSummaryToCscc $var + * @return $this + */ + public function setPublishSummaryToCscc($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\PublishSummaryToCscc::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Deprecated because Data Catalog is being turned down. Use + * publish_findings_to_dataplex_catalog to publish findings to Dataplex + * Universal Catalog. + * + * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; + * @return \Google\Cloud\Dlp\V2\Action\PublishFindingsToCloudDataCatalog|null + * @deprecated + */ + public function getPublishFindingsToCloudDataCatalog() + { + if ($this->hasOneof(5)) { + @trigger_error('publish_findings_to_cloud_data_catalog is deprecated.', E_USER_DEPRECATED); + } + return $this->readOneof(5); + } + + public function hasPublishFindingsToCloudDataCatalog() + { + if ($this->hasOneof(5)) { + @trigger_error('publish_findings_to_cloud_data_catalog is deprecated.', E_USER_DEPRECATED); + } + return $this->hasOneof(5); + } + + /** + * Deprecated because Data Catalog is being turned down. Use + * publish_findings_to_dataplex_catalog to publish findings to Dataplex + * Universal Catalog. + * + * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; + * @param \Google\Cloud\Dlp\V2\Action\PublishFindingsToCloudDataCatalog $var + * @return $this + * @deprecated + */ + public function setPublishFindingsToCloudDataCatalog($var) + { + @trigger_error('publish_findings_to_cloud_data_catalog is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\PublishFindingsToCloudDataCatalog::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Publish findings as an aspect to Dataplex Universal Catalog. + * + * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog publish_findings_to_dataplex_catalog = 10; + * @return \Google\Cloud\Dlp\V2\Action\PublishFindingsToDataplexCatalog|null + */ + public function getPublishFindingsToDataplexCatalog() + { + return $this->readOneof(10); + } + + public function hasPublishFindingsToDataplexCatalog() + { + return $this->hasOneof(10); + } + + /** + * Publish findings as an aspect to Dataplex Universal Catalog. + * + * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog publish_findings_to_dataplex_catalog = 10; + * @param \Google\Cloud\Dlp\V2\Action\PublishFindingsToDataplexCatalog $var + * @return $this + */ + public function setPublishFindingsToDataplexCatalog($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\PublishFindingsToDataplexCatalog::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Create a de-identified copy of the input data. + * + * Generated from protobuf field .google.privacy.dlp.v2.Action.Deidentify deidentify = 7; + * @return \Google\Cloud\Dlp\V2\Action\Deidentify|null + */ + public function getDeidentify() + { + return $this->readOneof(7); + } + + public function hasDeidentify() + { + return $this->hasOneof(7); + } + + /** + * Create a de-identified copy of the input data. + * + * Generated from protobuf field .google.privacy.dlp.v2.Action.Deidentify deidentify = 7; + * @param \Google\Cloud\Dlp\V2\Action\Deidentify $var + * @return $this + */ + public function setDeidentify($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\Deidentify::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Sends an email when the job completes. The email goes to IAM project + * owners and technical [Essential + * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). + * + * Generated from protobuf field .google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8; + * @return \Google\Cloud\Dlp\V2\Action\JobNotificationEmails|null + */ + public function getJobNotificationEmails() + { + return $this->readOneof(8); + } + + public function hasJobNotificationEmails() + { + return $this->hasOneof(8); + } + + /** + * Sends an email when the job completes. The email goes to IAM project + * owners and technical [Essential + * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). + * + * Generated from protobuf field .google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8; + * @param \Google\Cloud\Dlp\V2\Action\JobNotificationEmails $var + * @return $this + */ + public function setJobNotificationEmails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\JobNotificationEmails::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Enable Stackdriver metric dlp.googleapis.com/finding_count. + * + * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9; + * @return \Google\Cloud\Dlp\V2\Action\PublishToStackdriver|null + */ + public function getPublishToStackdriver() + { + return $this->readOneof(9); + } + + public function hasPublishToStackdriver() + { + return $this->hasOneof(9); + } + + /** + * Enable Stackdriver metric dlp.googleapis.com/finding_count. + * + * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9; + * @param \Google\Cloud\Dlp\V2\Action\PublishToStackdriver $var + * @return $this + */ + public function setPublishToStackdriver($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\PublishToStackdriver::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * @return string + */ + public function getAction() + { + return $this->whichOneof("action"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/Deidentify.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/Deidentify.php new file mode 100644 index 000000000000..702c3b87d728 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/Deidentify.php @@ -0,0 +1,439 @@ +google.privacy.dlp.v2.Action.Deidentify + */ +class Deidentify extends \Google\Protobuf\Internal\Message +{ + /** + * User specified deidentify templates and configs for structured, + * unstructured, and image files. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationConfig transformation_config = 7; + */ + protected $transformation_config = null; + /** + * Config for storing transformation details. + * This field specifies the configuration for storing detailed metadata + * about each transformation performed during a de-identification process. + * The metadata is stored separately from the de-identified content itself + * and provides a granular record of both successful transformations and any + * failures that occurred. + * Enabling this configuration is essential for users who need to access + * comprehensive information about the status, outcome, and specifics of + * each transformation. The details are captured in the + * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] + * message for each operation. + * Key use cases: + * * **Auditing and compliance** + * * Provides a verifiable audit trail of de-identification activities, + * which is crucial for meeting regulatory requirements and internal + * data governance policies. + * * Logs what data was transformed, what transformations were applied, + * when they occurred, and their success status. This helps + * demonstrate accountability and due diligence in protecting + * sensitive data. + * * **Troubleshooting and debugging** + * * Offers detailed error messages and context if a transformation + * fails. This information is useful for diagnosing and resolving + * issues in the de-identification pipeline. + * * Helps pinpoint the exact location and nature of failures, speeding + * up the debugging process. + * * **Process verification and quality assurance** + * * Allows users to confirm that de-identification rules and + * transformations were applied correctly and consistently across + * the dataset as intended. + * * Helps in verifying the effectiveness of the chosen + * de-identification strategies. + * * **Data lineage and impact analysis** + * * Creates a record of how data elements were modified, contributing + * to data lineage. This is useful for understanding the provenance + * of de-identified data. + * * Aids in assessing the potential impact of de-identification choices + * on downstream analytical processes or data usability. + * * **Reporting and operational insights** + * * You can analyze the metadata stored in a queryable BigQuery table + * to generate reports on transformation success rates, common + * error types, processing volumes (e.g., transformedBytes), and the + * types of transformations applied. + * * These insights can inform optimization of de-identification + * configurations and resource planning. + * To take advantage of these benefits, set this configuration. The stored + * details include a description of the transformation, success or + * error codes, error messages, the number of bytes transformed, the + * location of the transformed content, and identifiers for the job and + * source data. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; + */ + protected $transformation_details_storage_config = null; + /** + * List of user-specified file type groups to transform. If specified, only + * the files with these file types are transformed. If empty, all + * supported files are transformed. Supported types may be automatically + * added over time. Any unsupported file types that are set in this field + * are excluded from de-identification. An error is recorded for each + * unsupported file in the TransformationDetails output table. Currently the + * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; + */ + private $file_types_to_transform; + protected $output; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\TransformationConfig $transformation_config + * User specified deidentify templates and configs for structured, + * unstructured, and image files. + * @type \Google\Cloud\Dlp\V2\TransformationDetailsStorageConfig $transformation_details_storage_config + * Config for storing transformation details. + * This field specifies the configuration for storing detailed metadata + * about each transformation performed during a de-identification process. + * The metadata is stored separately from the de-identified content itself + * and provides a granular record of both successful transformations and any + * failures that occurred. + * Enabling this configuration is essential for users who need to access + * comprehensive information about the status, outcome, and specifics of + * each transformation. The details are captured in the + * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] + * message for each operation. + * Key use cases: + * * **Auditing and compliance** + * * Provides a verifiable audit trail of de-identification activities, + * which is crucial for meeting regulatory requirements and internal + * data governance policies. + * * Logs what data was transformed, what transformations were applied, + * when they occurred, and their success status. This helps + * demonstrate accountability and due diligence in protecting + * sensitive data. + * * **Troubleshooting and debugging** + * * Offers detailed error messages and context if a transformation + * fails. This information is useful for diagnosing and resolving + * issues in the de-identification pipeline. + * * Helps pinpoint the exact location and nature of failures, speeding + * up the debugging process. + * * **Process verification and quality assurance** + * * Allows users to confirm that de-identification rules and + * transformations were applied correctly and consistently across + * the dataset as intended. + * * Helps in verifying the effectiveness of the chosen + * de-identification strategies. + * * **Data lineage and impact analysis** + * * Creates a record of how data elements were modified, contributing + * to data lineage. This is useful for understanding the provenance + * of de-identified data. + * * Aids in assessing the potential impact of de-identification choices + * on downstream analytical processes or data usability. + * * **Reporting and operational insights** + * * You can analyze the metadata stored in a queryable BigQuery table + * to generate reports on transformation success rates, common + * error types, processing volumes (e.g., transformedBytes), and the + * types of transformations applied. + * * These insights can inform optimization of de-identification + * configurations and resource planning. + * To take advantage of these benefits, set this configuration. The stored + * details include a description of the transformation, success or + * error codes, error messages, the number of bytes transformed, the + * location of the transformed content, and identifiers for the job and + * source data. + * @type string $cloud_storage_output + * Required. User settable Cloud Storage bucket and folders to store + * de-identified files. This field must be set for Cloud Storage + * deidentification. The output Cloud Storage bucket must be different + * from the input bucket. De-identified files will overwrite files in the + * output path. + * Form of: gs://bucket/folder/ or gs://bucket + * @type int[] $file_types_to_transform + * List of user-specified file type groups to transform. If specified, only + * the files with these file types are transformed. If empty, all + * supported files are transformed. Supported types may be automatically + * added over time. Any unsupported file types that are set in this field + * are excluded from de-identification. An error is recorded for each + * unsupported file in the TransformationDetails output table. Currently the + * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * User specified deidentify templates and configs for structured, + * unstructured, and image files. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationConfig transformation_config = 7; + * @return \Google\Cloud\Dlp\V2\TransformationConfig|null + */ + public function getTransformationConfig() + { + return $this->transformation_config; + } + + public function hasTransformationConfig() + { + return isset($this->transformation_config); + } + + public function clearTransformationConfig() + { + unset($this->transformation_config); + } + + /** + * User specified deidentify templates and configs for structured, + * unstructured, and image files. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationConfig transformation_config = 7; + * @param \Google\Cloud\Dlp\V2\TransformationConfig $var + * @return $this + */ + public function setTransformationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationConfig::class); + $this->transformation_config = $var; + + return $this; + } + + /** + * Config for storing transformation details. + * This field specifies the configuration for storing detailed metadata + * about each transformation performed during a de-identification process. + * The metadata is stored separately from the de-identified content itself + * and provides a granular record of both successful transformations and any + * failures that occurred. + * Enabling this configuration is essential for users who need to access + * comprehensive information about the status, outcome, and specifics of + * each transformation. The details are captured in the + * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] + * message for each operation. + * Key use cases: + * * **Auditing and compliance** + * * Provides a verifiable audit trail of de-identification activities, + * which is crucial for meeting regulatory requirements and internal + * data governance policies. + * * Logs what data was transformed, what transformations were applied, + * when they occurred, and their success status. This helps + * demonstrate accountability and due diligence in protecting + * sensitive data. + * * **Troubleshooting and debugging** + * * Offers detailed error messages and context if a transformation + * fails. This information is useful for diagnosing and resolving + * issues in the de-identification pipeline. + * * Helps pinpoint the exact location and nature of failures, speeding + * up the debugging process. + * * **Process verification and quality assurance** + * * Allows users to confirm that de-identification rules and + * transformations were applied correctly and consistently across + * the dataset as intended. + * * Helps in verifying the effectiveness of the chosen + * de-identification strategies. + * * **Data lineage and impact analysis** + * * Creates a record of how data elements were modified, contributing + * to data lineage. This is useful for understanding the provenance + * of de-identified data. + * * Aids in assessing the potential impact of de-identification choices + * on downstream analytical processes or data usability. + * * **Reporting and operational insights** + * * You can analyze the metadata stored in a queryable BigQuery table + * to generate reports on transformation success rates, common + * error types, processing volumes (e.g., transformedBytes), and the + * types of transformations applied. + * * These insights can inform optimization of de-identification + * configurations and resource planning. + * To take advantage of these benefits, set this configuration. The stored + * details include a description of the transformation, success or + * error codes, error messages, the number of bytes transformed, the + * location of the transformed content, and identifiers for the job and + * source data. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; + * @return \Google\Cloud\Dlp\V2\TransformationDetailsStorageConfig|null + */ + public function getTransformationDetailsStorageConfig() + { + return $this->transformation_details_storage_config; + } + + public function hasTransformationDetailsStorageConfig() + { + return isset($this->transformation_details_storage_config); + } + + public function clearTransformationDetailsStorageConfig() + { + unset($this->transformation_details_storage_config); + } + + /** + * Config for storing transformation details. + * This field specifies the configuration for storing detailed metadata + * about each transformation performed during a de-identification process. + * The metadata is stored separately from the de-identified content itself + * and provides a granular record of both successful transformations and any + * failures that occurred. + * Enabling this configuration is essential for users who need to access + * comprehensive information about the status, outcome, and specifics of + * each transformation. The details are captured in the + * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] + * message for each operation. + * Key use cases: + * * **Auditing and compliance** + * * Provides a verifiable audit trail of de-identification activities, + * which is crucial for meeting regulatory requirements and internal + * data governance policies. + * * Logs what data was transformed, what transformations were applied, + * when they occurred, and their success status. This helps + * demonstrate accountability and due diligence in protecting + * sensitive data. + * * **Troubleshooting and debugging** + * * Offers detailed error messages and context if a transformation + * fails. This information is useful for diagnosing and resolving + * issues in the de-identification pipeline. + * * Helps pinpoint the exact location and nature of failures, speeding + * up the debugging process. + * * **Process verification and quality assurance** + * * Allows users to confirm that de-identification rules and + * transformations were applied correctly and consistently across + * the dataset as intended. + * * Helps in verifying the effectiveness of the chosen + * de-identification strategies. + * * **Data lineage and impact analysis** + * * Creates a record of how data elements were modified, contributing + * to data lineage. This is useful for understanding the provenance + * of de-identified data. + * * Aids in assessing the potential impact of de-identification choices + * on downstream analytical processes or data usability. + * * **Reporting and operational insights** + * * You can analyze the metadata stored in a queryable BigQuery table + * to generate reports on transformation success rates, common + * error types, processing volumes (e.g., transformedBytes), and the + * types of transformations applied. + * * These insights can inform optimization of de-identification + * configurations and resource planning. + * To take advantage of these benefits, set this configuration. The stored + * details include a description of the transformation, success or + * error codes, error messages, the number of bytes transformed, the + * location of the transformed content, and identifiers for the job and + * source data. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; + * @param \Google\Cloud\Dlp\V2\TransformationDetailsStorageConfig $var + * @return $this + */ + public function setTransformationDetailsStorageConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationDetailsStorageConfig::class); + $this->transformation_details_storage_config = $var; + + return $this; + } + + /** + * Required. User settable Cloud Storage bucket and folders to store + * de-identified files. This field must be set for Cloud Storage + * deidentification. The output Cloud Storage bucket must be different + * from the input bucket. De-identified files will overwrite files in the + * output path. + * Form of: gs://bucket/folder/ or gs://bucket + * + * Generated from protobuf field string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCloudStorageOutput() + { + return $this->readOneof(9); + } + + public function hasCloudStorageOutput() + { + return $this->hasOneof(9); + } + + /** + * Required. User settable Cloud Storage bucket and folders to store + * de-identified files. This field must be set for Cloud Storage + * deidentification. The output Cloud Storage bucket must be different + * from the input bucket. De-identified files will overwrite files in the + * output path. + * Form of: gs://bucket/folder/ or gs://bucket + * + * Generated from protobuf field string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCloudStorageOutput($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * List of user-specified file type groups to transform. If specified, only + * the files with these file types are transformed. If empty, all + * supported files are transformed. Supported types may be automatically + * added over time. Any unsupported file types that are set in this field + * are excluded from de-identification. An error is recorded for each + * unsupported file in the TransformationDetails output table. Currently the + * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; + * @return RepeatedField + */ + public function getFileTypesToTransform() + { + return $this->file_types_to_transform; + } + + /** + * List of user-specified file type groups to transform. If specified, only + * the files with these file types are transformed. If empty, all + * supported files are transformed. Supported types may be automatically + * added over time. Any unsupported file types that are set in this field + * are excluded from de-identification. An error is recorded for each + * unsupported file in the TransformationDetails output table. Currently the + * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; + * @param int[] $var + * @return $this + */ + public function setFileTypesToTransform($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\FileType::class); + $this->file_types_to_transform = $arr; + + return $this; + } + + /** + * @return string + */ + public function getOutput() + { + return $this->whichOneof("output"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/JobNotificationEmails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/JobNotificationEmails.php new file mode 100644 index 000000000000..721a816a485f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/JobNotificationEmails.php @@ -0,0 +1,35 @@ +google.privacy.dlp.v2.Action.JobNotificationEmails + */ +class JobNotificationEmails extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToCloudDataCatalog.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToCloudDataCatalog.php new file mode 100644 index 000000000000..38870781dae8 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToCloudDataCatalog.php @@ -0,0 +1,48 @@ +google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog + */ +class PublishFindingsToCloudDataCatalog extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToDataplexCatalog.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToDataplexCatalog.php new file mode 100644 index 000000000000..5d1d0659239a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToDataplexCatalog.php @@ -0,0 +1,43 @@ +google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog + */ +class PublishFindingsToDataplexCatalog extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishSummaryToCscc.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishSummaryToCscc.php new file mode 100644 index 000000000000..9fdbed69984b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishSummaryToCscc.php @@ -0,0 +1,40 @@ +google.privacy.dlp.v2.Action.PublishSummaryToCscc + */ +class PublishSummaryToCscc extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToPubSub.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToPubSub.php new file mode 100644 index 000000000000..27416c4022a2 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToPubSub.php @@ -0,0 +1,83 @@ +google.privacy.dlp.v2.Action.PublishToPubSub + */ +class PublishToPubSub extends \Google\Protobuf\Internal\Message +{ + /** + * Cloud Pub/Sub topic to send notifications to. The topic must have given + * publishing access rights to the DLP API service account executing + * the long running DlpJob sending the notifications. + * Format is projects/{project}/topics/{topic}. + * + * Generated from protobuf field string topic = 1; + */ + protected $topic = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $topic + * Cloud Pub/Sub topic to send notifications to. The topic must have given + * publishing access rights to the DLP API service account executing + * the long running DlpJob sending the notifications. + * Format is projects/{project}/topics/{topic}. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Cloud Pub/Sub topic to send notifications to. The topic must have given + * publishing access rights to the DLP API service account executing + * the long running DlpJob sending the notifications. + * Format is projects/{project}/topics/{topic}. + * + * Generated from protobuf field string topic = 1; + * @return string + */ + public function getTopic() + { + return $this->topic; + } + + /** + * Cloud Pub/Sub topic to send notifications to. The topic must have given + * publishing access rights to the DLP API service account executing + * the long running DlpJob sending the notifications. + * Format is projects/{project}/topics/{topic}. + * + * Generated from protobuf field string topic = 1; + * @param string $var + * @return $this + */ + public function setTopic($var) + { + GPBUtil::checkString($var, True); + $this->topic = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToStackdriver.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToStackdriver.php new file mode 100644 index 000000000000..42315ba5a80f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToStackdriver.php @@ -0,0 +1,36 @@ +google.privacy.dlp.v2.Action.PublishToStackdriver + */ +class PublishToStackdriver extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/SaveFindings.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/SaveFindings.php new file mode 100644 index 000000000000..23c3b4652499 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/SaveFindings.php @@ -0,0 +1,80 @@ +google.privacy.dlp.v2.Action.SaveFindings + */ +class SaveFindings extends \Google\Protobuf\Internal\Message +{ + /** + * Location to store findings outside of DLP. + * + * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig output_config = 1; + */ + protected $output_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\OutputStorageConfig $output_config + * Location to store findings outside of DLP. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Location to store findings outside of DLP. + * + * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig output_config = 1; + * @return \Google\Cloud\Dlp\V2\OutputStorageConfig|null + */ + public function getOutputConfig() + { + return $this->output_config; + } + + public function hasOutputConfig() + { + return isset($this->output_config); + } + + public function clearOutputConfig() + { + unset($this->output_config); + } + + /** + * Location to store findings outside of DLP. + * + * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig output_config = 1; + * @param \Google\Cloud\Dlp\V2\OutputStorageConfig $var + * @return $this + */ + public function setOutputConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OutputStorageConfig::class); + $this->output_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActionDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActionDetails.php new file mode 100644 index 000000000000..9e36c1cb3316 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActionDetails.php @@ -0,0 +1,75 @@ +google.privacy.dlp.v2.ActionDetails + */ +class ActionDetails extends \Google\Protobuf\Internal\Message +{ + protected $details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails $deidentify_details + * Outcome of a de-identification action. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Outcome of a de-identification action. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceDetails deidentify_details = 1; + * @return \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails|null + */ + public function getDeidentifyDetails() + { + return $this->readOneof(1); + } + + public function hasDeidentifyDetails() + { + return $this->hasOneof(1); + } + + /** + * Outcome of a de-identification action. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceDetails deidentify_details = 1; + * @param \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails $var + * @return $this + */ + public function setDeidentifyDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getDetails() + { + return $this->whichOneof("details"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActivateJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActivateJobTriggerRequest.php new file mode 100644 index 000000000000..cedc5fc7b665 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActivateJobTriggerRequest.php @@ -0,0 +1,71 @@ +google.privacy.dlp.v2.ActivateJobTriggerRequest + */ +class ActivateJobTriggerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the trigger to activate, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the trigger to activate, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the trigger to activate, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the trigger to activate, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustByImageFindings.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustByImageFindings.php new file mode 100644 index 000000000000..887dd6ba17b0 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustByImageFindings.php @@ -0,0 +1,218 @@ +google.privacy.dlp.v2.AdjustByImageFindings + */ +class AdjustByImageFindings extends \Google\Protobuf\Internal\Message +{ + /** + * A list of image-supported infoTypes—excluding [document + * infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to + * be used as context for the adjustment rule. Sensitive Data Protection + * adjusts the likelihood of an image finding if its bounding box has the + * specified spatial relationship (defined by `image_containment_type`) with a + * finding of an infoType in this list. + * For example, you can create a rule to adjust the likelihood of a + * `US_PASSPORT` finding if it is enclosed by a finding of + * `OBJECT_TYPE/PERSON/PASSPORT`. To configure this, set `US_PASSPORT` in + * `InspectionRuleSet.info_types`. Add an `adjustment_rule` with an + * `adjust_by_image_findings.info_types` that contains + * `OBJECT_TYPE/PERSON/PASSPORT` and `image_containment_type` set + * to `encloses`. In this case, the likelihood of the `US_PASSPORT` finding is + * adjusted, but the likelihood of the `OBJECT_TYPE/PERSON/PASSPORT` + * finding is not. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + private $info_types; + /** + * Required. Minimum likelihood of the + * `adjust_by_image_findings.info_types` finding. If the likelihood is + * lower than this value, Sensitive Data Protection doesn't adjust the + * likelihood of the `InspectionRuleSet.info_types` finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; + */ + protected $min_likelihood = 0; + /** + * Specifies the required spatial relationship between the bounding boxes + * of the target finding and the context infoType findings. + * + * Generated from protobuf field .google.privacy.dlp.v2.ImageContainmentType image_containment_type = 3; + */ + protected $image_containment_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoType[] $info_types + * A list of image-supported infoTypes—excluding [document + * infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to + * be used as context for the adjustment rule. Sensitive Data Protection + * adjusts the likelihood of an image finding if its bounding box has the + * specified spatial relationship (defined by `image_containment_type`) with a + * finding of an infoType in this list. + * For example, you can create a rule to adjust the likelihood of a + * `US_PASSPORT` finding if it is enclosed by a finding of + * `OBJECT_TYPE/PERSON/PASSPORT`. To configure this, set `US_PASSPORT` in + * `InspectionRuleSet.info_types`. Add an `adjustment_rule` with an + * `adjust_by_image_findings.info_types` that contains + * `OBJECT_TYPE/PERSON/PASSPORT` and `image_containment_type` set + * to `encloses`. In this case, the likelihood of the `US_PASSPORT` finding is + * adjusted, but the likelihood of the `OBJECT_TYPE/PERSON/PASSPORT` + * finding is not. + * @type int $min_likelihood + * Required. Minimum likelihood of the + * `adjust_by_image_findings.info_types` finding. If the likelihood is + * lower than this value, Sensitive Data Protection doesn't adjust the + * likelihood of the `InspectionRuleSet.info_types` finding. + * @type \Google\Cloud\Dlp\V2\ImageContainmentType $image_containment_type + * Specifies the required spatial relationship between the bounding boxes + * of the target finding and the context infoType findings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A list of image-supported infoTypes—excluding [document + * infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to + * be used as context for the adjustment rule. Sensitive Data Protection + * adjusts the likelihood of an image finding if its bounding box has the + * specified spatial relationship (defined by `image_containment_type`) with a + * finding of an infoType in this list. + * For example, you can create a rule to adjust the likelihood of a + * `US_PASSPORT` finding if it is enclosed by a finding of + * `OBJECT_TYPE/PERSON/PASSPORT`. To configure this, set `US_PASSPORT` in + * `InspectionRuleSet.info_types`. Add an `adjustment_rule` with an + * `adjust_by_image_findings.info_types` that contains + * `OBJECT_TYPE/PERSON/PASSPORT` and `image_containment_type` set + * to `encloses`. In this case, the likelihood of the `US_PASSPORT` finding is + * adjusted, but the likelihood of the `OBJECT_TYPE/PERSON/PASSPORT` + * finding is not. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoType> + */ + public function getInfoTypes() + { + return $this->info_types; + } + + /** + * A list of image-supported infoTypes—excluding [document + * infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to + * be used as context for the adjustment rule. Sensitive Data Protection + * adjusts the likelihood of an image finding if its bounding box has the + * specified spatial relationship (defined by `image_containment_type`) with a + * finding of an infoType in this list. + * For example, you can create a rule to adjust the likelihood of a + * `US_PASSPORT` finding if it is enclosed by a finding of + * `OBJECT_TYPE/PERSON/PASSPORT`. To configure this, set `US_PASSPORT` in + * `InspectionRuleSet.info_types`. Add an `adjustment_rule` with an + * `adjust_by_image_findings.info_types` that contains + * `OBJECT_TYPE/PERSON/PASSPORT` and `image_containment_type` set + * to `encloses`. In this case, the likelihood of the `US_PASSPORT` finding is + * adjusted, but the likelihood of the `OBJECT_TYPE/PERSON/PASSPORT` + * finding is not. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + * @param \Google\Cloud\Dlp\V2\InfoType[] $var + * @return $this + */ + public function setInfoTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_types = $arr; + + return $this; + } + + /** + * Required. Minimum likelihood of the + * `adjust_by_image_findings.info_types` finding. If the likelihood is + * lower than this value, Sensitive Data Protection doesn't adjust the + * likelihood of the `InspectionRuleSet.info_types` finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; + * @return int + */ + public function getMinLikelihood() + { + return $this->min_likelihood; + } + + /** + * Required. Minimum likelihood of the + * `adjust_by_image_findings.info_types` finding. If the likelihood is + * lower than this value, Sensitive Data Protection doesn't adjust the + * likelihood of the `InspectionRuleSet.info_types` finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; + * @param int $var + * @return $this + */ + public function setMinLikelihood($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); + $this->min_likelihood = $var; + + return $this; + } + + /** + * Specifies the required spatial relationship between the bounding boxes + * of the target finding and the context infoType findings. + * + * Generated from protobuf field .google.privacy.dlp.v2.ImageContainmentType image_containment_type = 3; + * @return \Google\Cloud\Dlp\V2\ImageContainmentType|null + */ + public function getImageContainmentType() + { + return $this->image_containment_type; + } + + public function hasImageContainmentType() + { + return isset($this->image_containment_type); + } + + public function clearImageContainmentType() + { + unset($this->image_containment_type); + } + + /** + * Specifies the required spatial relationship between the bounding boxes + * of the target finding and the context infoType findings. + * + * Generated from protobuf field .google.privacy.dlp.v2.ImageContainmentType image_containment_type = 3; + * @param \Google\Cloud\Dlp\V2\ImageContainmentType $var + * @return $this + */ + public function setImageContainmentType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageContainmentType::class); + $this->image_containment_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustByMatchingInfoTypes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustByMatchingInfoTypes.php new file mode 100644 index 000000000000..b70cb8de3d0d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustByMatchingInfoTypes.php @@ -0,0 +1,199 @@ +google.privacy.dlp.v2.AdjustByMatchingInfoTypes + */ +class AdjustByMatchingInfoTypes extends \Google\Protobuf\Internal\Message +{ + /** + * Sensitive Data Protection adjusts the likelihood of a finding if that + * finding also matches one of these infoTypes. + * For example, you can create a rule to adjust the likelihood of a + * `PHONE_NUMBER` finding if the string is found within a document that is + * classified as `DOCUMENT_TYPE/HR/RESUME`. To configure this, set + * `PHONE_NUMBER` in `InspectionRuleSet.info_types`. Add an `adjustment_rule` + * with an `adjust_by_matching_info_types.info_types` that contains + * `DOCUMENT_TYPE/HR/RESUME`. In this case, the likelihood of the + * `PHONE_NUMBER` finding is adjusted, but the likelihood of the + * `DOCUMENT_TYPE/HR/RESUME` finding is not. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + private $info_types; + /** + * Required. Minimum likelihood of the + * `adjust_by_matching_info_types.info_types` finding. If the likelihood is + * lower than this value, Sensitive Data Protection doesn't adjust the + * likelihood of the `InspectionRuleSet.info_types` finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; + */ + protected $min_likelihood = 0; + /** + * How the adjustment rule is applied. + * Only `MATCHING_TYPE_PARTIAL_MATCH` is supported: + * - Partial match: adjusts the findings of infoTypes specified in the + * inspection rule when they have a nonempty intersection with a finding of an + * infoType specified in this adjustment rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.MatchingType matching_type = 3; + */ + protected $matching_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoType[] $info_types + * Sensitive Data Protection adjusts the likelihood of a finding if that + * finding also matches one of these infoTypes. + * For example, you can create a rule to adjust the likelihood of a + * `PHONE_NUMBER` finding if the string is found within a document that is + * classified as `DOCUMENT_TYPE/HR/RESUME`. To configure this, set + * `PHONE_NUMBER` in `InspectionRuleSet.info_types`. Add an `adjustment_rule` + * with an `adjust_by_matching_info_types.info_types` that contains + * `DOCUMENT_TYPE/HR/RESUME`. In this case, the likelihood of the + * `PHONE_NUMBER` finding is adjusted, but the likelihood of the + * `DOCUMENT_TYPE/HR/RESUME` finding is not. + * @type int $min_likelihood + * Required. Minimum likelihood of the + * `adjust_by_matching_info_types.info_types` finding. If the likelihood is + * lower than this value, Sensitive Data Protection doesn't adjust the + * likelihood of the `InspectionRuleSet.info_types` finding. + * @type int $matching_type + * How the adjustment rule is applied. + * Only `MATCHING_TYPE_PARTIAL_MATCH` is supported: + * - Partial match: adjusts the findings of infoTypes specified in the + * inspection rule when they have a nonempty intersection with a finding of an + * infoType specified in this adjustment rule. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Sensitive Data Protection adjusts the likelihood of a finding if that + * finding also matches one of these infoTypes. + * For example, you can create a rule to adjust the likelihood of a + * `PHONE_NUMBER` finding if the string is found within a document that is + * classified as `DOCUMENT_TYPE/HR/RESUME`. To configure this, set + * `PHONE_NUMBER` in `InspectionRuleSet.info_types`. Add an `adjustment_rule` + * with an `adjust_by_matching_info_types.info_types` that contains + * `DOCUMENT_TYPE/HR/RESUME`. In this case, the likelihood of the + * `PHONE_NUMBER` finding is adjusted, but the likelihood of the + * `DOCUMENT_TYPE/HR/RESUME` finding is not. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoType> + */ + public function getInfoTypes() + { + return $this->info_types; + } + + /** + * Sensitive Data Protection adjusts the likelihood of a finding if that + * finding also matches one of these infoTypes. + * For example, you can create a rule to adjust the likelihood of a + * `PHONE_NUMBER` finding if the string is found within a document that is + * classified as `DOCUMENT_TYPE/HR/RESUME`. To configure this, set + * `PHONE_NUMBER` in `InspectionRuleSet.info_types`. Add an `adjustment_rule` + * with an `adjust_by_matching_info_types.info_types` that contains + * `DOCUMENT_TYPE/HR/RESUME`. In this case, the likelihood of the + * `PHONE_NUMBER` finding is adjusted, but the likelihood of the + * `DOCUMENT_TYPE/HR/RESUME` finding is not. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + * @param \Google\Cloud\Dlp\V2\InfoType[] $var + * @return $this + */ + public function setInfoTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_types = $arr; + + return $this; + } + + /** + * Required. Minimum likelihood of the + * `adjust_by_matching_info_types.info_types` finding. If the likelihood is + * lower than this value, Sensitive Data Protection doesn't adjust the + * likelihood of the `InspectionRuleSet.info_types` finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; + * @return int + */ + public function getMinLikelihood() + { + return $this->min_likelihood; + } + + /** + * Required. Minimum likelihood of the + * `adjust_by_matching_info_types.info_types` finding. If the likelihood is + * lower than this value, Sensitive Data Protection doesn't adjust the + * likelihood of the `InspectionRuleSet.info_types` finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; + * @param int $var + * @return $this + */ + public function setMinLikelihood($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); + $this->min_likelihood = $var; + + return $this; + } + + /** + * How the adjustment rule is applied. + * Only `MATCHING_TYPE_PARTIAL_MATCH` is supported: + * - Partial match: adjusts the findings of infoTypes specified in the + * inspection rule when they have a nonempty intersection with a finding of an + * infoType specified in this adjustment rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.MatchingType matching_type = 3; + * @return int + */ + public function getMatchingType() + { + return $this->matching_type; + } + + /** + * How the adjustment rule is applied. + * Only `MATCHING_TYPE_PARTIAL_MATCH` is supported: + * - Partial match: adjusts the findings of infoTypes specified in the + * inspection rule when they have a nonempty intersection with a finding of an + * infoType specified in this adjustment rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.MatchingType matching_type = 3; + * @param int $var + * @return $this + */ + public function setMatchingType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\MatchingType::class); + $this->matching_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustmentRule.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustmentRule.php new file mode 100644 index 000000000000..33453fde9e52 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustmentRule.php @@ -0,0 +1,153 @@ +google.privacy.dlp.v2.AdjustmentRule + */ +class AdjustmentRule extends \Google\Protobuf\Internal\Message +{ + /** + * Likelihood adjustment to apply to the infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 2; + */ + protected $likelihood_adjustment = null; + protected $conditions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\AdjustByMatchingInfoTypes $adjust_by_matching_info_types + * Set of infoTypes for which findings would affect this rule. + * @type \Google\Cloud\Dlp\V2\AdjustByImageFindings $adjust_by_image_findings + * AdjustmentRule condition for image findings. + * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment $likelihood_adjustment + * Likelihood adjustment to apply to the infoType. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Set of infoTypes for which findings would affect this rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.AdjustByMatchingInfoTypes adjust_by_matching_info_types = 1; + * @return \Google\Cloud\Dlp\V2\AdjustByMatchingInfoTypes|null + */ + public function getAdjustByMatchingInfoTypes() + { + return $this->readOneof(1); + } + + public function hasAdjustByMatchingInfoTypes() + { + return $this->hasOneof(1); + } + + /** + * Set of infoTypes for which findings would affect this rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.AdjustByMatchingInfoTypes adjust_by_matching_info_types = 1; + * @param \Google\Cloud\Dlp\V2\AdjustByMatchingInfoTypes $var + * @return $this + */ + public function setAdjustByMatchingInfoTypes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AdjustByMatchingInfoTypes::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * AdjustmentRule condition for image findings. + * + * Generated from protobuf field .google.privacy.dlp.v2.AdjustByImageFindings adjust_by_image_findings = 3; + * @return \Google\Cloud\Dlp\V2\AdjustByImageFindings|null + */ + public function getAdjustByImageFindings() + { + return $this->readOneof(3); + } + + public function hasAdjustByImageFindings() + { + return $this->hasOneof(3); + } + + /** + * AdjustmentRule condition for image findings. + * + * Generated from protobuf field .google.privacy.dlp.v2.AdjustByImageFindings adjust_by_image_findings = 3; + * @param \Google\Cloud\Dlp\V2\AdjustByImageFindings $var + * @return $this + */ + public function setAdjustByImageFindings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AdjustByImageFindings::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Likelihood adjustment to apply to the infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 2; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment|null + */ + public function getLikelihoodAdjustment() + { + return $this->likelihood_adjustment; + } + + public function hasLikelihoodAdjustment() + { + return isset($this->likelihood_adjustment); + } + + public function clearLikelihoodAdjustment() + { + unset($this->likelihood_adjustment); + } + + /** + * Likelihood adjustment to apply to the infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 2; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment $var + * @return $this + */ + public function setLikelihoodAdjustment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment::class); + $this->likelihood_adjustment = $var; + + return $this; + } + + /** + * @return string + */ + public function getConditions() + { + return $this->whichOneof("conditions"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherDatabaseResources.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherDatabaseResources.php new file mode 100644 index 000000000000..3db18488e8be --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherDatabaseResources.php @@ -0,0 +1,33 @@ +google.privacy.dlp.v2.AllOtherDatabaseResources + */ +class AllOtherDatabaseResources extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherResources.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherResources.php new file mode 100644 index 000000000000..df5aae5afb5a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherResources.php @@ -0,0 +1,33 @@ +google.privacy.dlp.v2.AllOtherResources + */ +class AllOtherResources extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3Bucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3Bucket.php new file mode 100644 index 000000000000..10f70f5d141f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3Bucket.php @@ -0,0 +1,111 @@ +google.privacy.dlp.v2.AmazonS3Bucket + */ +class AmazonS3Bucket extends \Google\Protobuf\Internal\Message +{ + /** + * The AWS account. + * + * Generated from protobuf field .google.privacy.dlp.v2.AwsAccount aws_account = 1; + */ + protected $aws_account = null; + /** + * Required. The bucket name. + * + * Generated from protobuf field string bucket_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $bucket_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\AwsAccount $aws_account + * The AWS account. + * @type string $bucket_name + * Required. The bucket name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The AWS account. + * + * Generated from protobuf field .google.privacy.dlp.v2.AwsAccount aws_account = 1; + * @return \Google\Cloud\Dlp\V2\AwsAccount|null + */ + public function getAwsAccount() + { + return $this->aws_account; + } + + public function hasAwsAccount() + { + return isset($this->aws_account); + } + + public function clearAwsAccount() + { + unset($this->aws_account); + } + + /** + * The AWS account. + * + * Generated from protobuf field .google.privacy.dlp.v2.AwsAccount aws_account = 1; + * @param \Google\Cloud\Dlp\V2\AwsAccount $var + * @return $this + */ + public function setAwsAccount($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AwsAccount::class); + $this->aws_account = $var; + + return $this; + } + + /** + * Required. The bucket name. + * + * Generated from protobuf field string bucket_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getBucketName() + { + return $this->bucket_name; + } + + /** + * Required. The bucket name. + * + * Generated from protobuf field string bucket_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setBucketName($var) + { + GPBUtil::checkString($var, True); + $this->bucket_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions.php new file mode 100644 index 000000000000..9344c00f5db1 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions.php @@ -0,0 +1,109 @@ +google.privacy.dlp.v2.AmazonS3BucketConditions + */ +class AmazonS3BucketConditions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Bucket types that should be profiled. + * Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $bucket_types; + /** + * Optional. Object classes that should be profiled. + * Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $object_storage_classes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int[] $bucket_types + * Optional. Bucket types that should be profiled. + * Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified. + * @type int[] $object_storage_classes + * Optional. Object classes that should be profiled. + * Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Bucket types that should be profiled. + * Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getBucketTypes() + { + return $this->bucket_types; + } + + /** + * Optional. Bucket types that should be profiled. + * Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int[] $var + * @return $this + */ + public function setBucketTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\AmazonS3BucketConditions\BucketType::class); + $this->bucket_types = $arr; + + return $this; + } + + /** + * Optional. Object classes that should be profiled. + * Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getObjectStorageClasses() + { + return $this->object_storage_classes; + } + + /** + * Optional. Object classes that should be profiled. + * Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int[] $var + * @return $this + */ + public function setObjectStorageClasses($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\AmazonS3BucketConditions\ObjectStorageClass::class); + $this->object_storage_classes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/BucketType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/BucketType.php new file mode 100644 index 000000000000..96827e556d7b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/BucketType.php @@ -0,0 +1,62 @@ +google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType + */ +class BucketType +{ + /** + * Unused. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * All supported classes. + * + * Generated from protobuf enum TYPE_ALL_SUPPORTED = 1; + */ + const TYPE_ALL_SUPPORTED = 1; + /** + * A general purpose Amazon S3 bucket. + * + * Generated from protobuf enum TYPE_GENERAL_PURPOSE = 2; + */ + const TYPE_GENERAL_PURPOSE = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::TYPE_ALL_SUPPORTED => 'TYPE_ALL_SUPPORTED', + self::TYPE_GENERAL_PURPOSE => 'TYPE_GENERAL_PURPOSE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/ObjectStorageClass.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/ObjectStorageClass.php new file mode 100644 index 000000000000..08ee4771da3d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/ObjectStorageClass.php @@ -0,0 +1,83 @@ +google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass + */ +class ObjectStorageClass +{ + /** + * Unused. + * + * Generated from protobuf enum UNSPECIFIED = 0; + */ + const UNSPECIFIED = 0; + /** + * All supported classes. + * + * Generated from protobuf enum ALL_SUPPORTED_CLASSES = 1; + */ + const ALL_SUPPORTED_CLASSES = 1; + /** + * Standard object class. + * + * Generated from protobuf enum STANDARD = 2; + */ + const STANDARD = 2; + /** + * Standard - infrequent access object class. + * + * Generated from protobuf enum STANDARD_INFREQUENT_ACCESS = 4; + */ + const STANDARD_INFREQUENT_ACCESS = 4; + /** + * Glacier - instant retrieval object class. + * + * Generated from protobuf enum GLACIER_INSTANT_RETRIEVAL = 6; + */ + const GLACIER_INSTANT_RETRIEVAL = 6; + /** + * Objects in the S3 Intelligent-Tiering access tiers. + * + * Generated from protobuf enum INTELLIGENT_TIERING = 7; + */ + const INTELLIGENT_TIERING = 7; + + private static $valueToName = [ + self::UNSPECIFIED => 'UNSPECIFIED', + self::ALL_SUPPORTED_CLASSES => 'ALL_SUPPORTED_CLASSES', + self::STANDARD => 'STANDARD', + self::STANDARD_INFREQUENT_ACCESS => 'STANDARD_INFREQUENT_ACCESS', + self::GLACIER_INSTANT_RETRIEVAL => 'GLACIER_INSTANT_RETRIEVAL', + self::INTELLIGENT_TIERING => 'INTELLIGENT_TIERING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketRegex.php new file mode 100644 index 000000000000..2752309e0291 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketRegex.php @@ -0,0 +1,115 @@ +google.privacy.dlp.v2.AmazonS3BucketRegex + */ +class AmazonS3BucketRegex extends \Google\Protobuf\Internal\Message +{ + /** + * The AWS account regex. + * + * Generated from protobuf field .google.privacy.dlp.v2.AwsAccountRegex aws_account_regex = 1; + */ + protected $aws_account_regex = null; + /** + * Optional. Regex to test the bucket name against. + * If empty, all buckets match. + * + * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $bucket_name_regex = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\AwsAccountRegex $aws_account_regex + * The AWS account regex. + * @type string $bucket_name_regex + * Optional. Regex to test the bucket name against. + * If empty, all buckets match. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The AWS account regex. + * + * Generated from protobuf field .google.privacy.dlp.v2.AwsAccountRegex aws_account_regex = 1; + * @return \Google\Cloud\Dlp\V2\AwsAccountRegex|null + */ + public function getAwsAccountRegex() + { + return $this->aws_account_regex; + } + + public function hasAwsAccountRegex() + { + return isset($this->aws_account_regex); + } + + public function clearAwsAccountRegex() + { + unset($this->aws_account_regex); + } + + /** + * The AWS account regex. + * + * Generated from protobuf field .google.privacy.dlp.v2.AwsAccountRegex aws_account_regex = 1; + * @param \Google\Cloud\Dlp\V2\AwsAccountRegex $var + * @return $this + */ + public function setAwsAccountRegex($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AwsAccountRegex::class); + $this->aws_account_regex = $var; + + return $this; + } + + /** + * Optional. Regex to test the bucket name against. + * If empty, all buckets match. + * + * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getBucketNameRegex() + { + return $this->bucket_name_regex; + } + + /** + * Optional. Regex to test the bucket name against. + * If empty, all buckets match. + * + * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setBucketNameRegex($var) + { + GPBUtil::checkString($var, True); + $this->bucket_name_regex = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails.php new file mode 100644 index 000000000000..065a2e0277c0 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails.php @@ -0,0 +1,372 @@ +google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails + */ +class AnalyzeDataSourceRiskDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Privacy metric to compute. + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric requested_privacy_metric = 1; + */ + protected $requested_privacy_metric = null; + /** + * Input dataset to compute metrics over. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable requested_source_table = 2; + */ + protected $requested_source_table = null; + /** + * The configuration used for this job. + * + * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions requested_options = 10; + */ + protected $requested_options = null; + protected $result; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\PrivacyMetric $requested_privacy_metric + * Privacy metric to compute. + * @type \Google\Cloud\Dlp\V2\BigQueryTable $requested_source_table + * Input dataset to compute metrics over. + * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\NumericalStatsResult $numerical_stats_result + * Numerical stats result + * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult $categorical_stats_result + * Categorical stats result + * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult $k_anonymity_result + * K-anonymity result + * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult $l_diversity_result + * L-divesity result + * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult $k_map_estimation_result + * K-map result + * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult $delta_presence_estimation_result + * Delta-presence result + * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\RequestedRiskAnalysisOptions $requested_options + * The configuration used for this job. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Privacy metric to compute. + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric requested_privacy_metric = 1; + * @return \Google\Cloud\Dlp\V2\PrivacyMetric|null + */ + public function getRequestedPrivacyMetric() + { + return $this->requested_privacy_metric; + } + + public function hasRequestedPrivacyMetric() + { + return isset($this->requested_privacy_metric); + } + + public function clearRequestedPrivacyMetric() + { + unset($this->requested_privacy_metric); + } + + /** + * Privacy metric to compute. + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric requested_privacy_metric = 1; + * @param \Google\Cloud\Dlp\V2\PrivacyMetric $var + * @return $this + */ + public function setRequestedPrivacyMetric($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric::class); + $this->requested_privacy_metric = $var; + + return $this; + } + + /** + * Input dataset to compute metrics over. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable requested_source_table = 2; + * @return \Google\Cloud\Dlp\V2\BigQueryTable|null + */ + public function getRequestedSourceTable() + { + return $this->requested_source_table; + } + + public function hasRequestedSourceTable() + { + return isset($this->requested_source_table); + } + + public function clearRequestedSourceTable() + { + unset($this->requested_source_table); + } + + /** + * Input dataset to compute metrics over. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable requested_source_table = 2; + * @param \Google\Cloud\Dlp\V2\BigQueryTable $var + * @return $this + */ + public function setRequestedSourceTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); + $this->requested_source_table = $var; + + return $this; + } + + /** + * Numerical stats result + * + * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult numerical_stats_result = 3; + * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\NumericalStatsResult|null + */ + public function getNumericalStatsResult() + { + return $this->readOneof(3); + } + + public function hasNumericalStatsResult() + { + return $this->hasOneof(3); + } + + /** + * Numerical stats result + * + * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult numerical_stats_result = 3; + * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\NumericalStatsResult $var + * @return $this + */ + public function setNumericalStatsResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\NumericalStatsResult::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Categorical stats result + * + * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult categorical_stats_result = 4; + * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult|null + */ + public function getCategoricalStatsResult() + { + return $this->readOneof(4); + } + + public function hasCategoricalStatsResult() + { + return $this->hasOneof(4); + } + + /** + * Categorical stats result + * + * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult categorical_stats_result = 4; + * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult $var + * @return $this + */ + public function setCategoricalStatsResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * K-anonymity result + * + * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult k_anonymity_result = 5; + * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult|null + */ + public function getKAnonymityResult() + { + return $this->readOneof(5); + } + + public function hasKAnonymityResult() + { + return $this->hasOneof(5); + } + + /** + * K-anonymity result + * + * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult k_anonymity_result = 5; + * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult $var + * @return $this + */ + public function setKAnonymityResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * L-divesity result + * + * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult l_diversity_result = 6; + * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult|null + */ + public function getLDiversityResult() + { + return $this->readOneof(6); + } + + public function hasLDiversityResult() + { + return $this->hasOneof(6); + } + + /** + * L-divesity result + * + * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult l_diversity_result = 6; + * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult $var + * @return $this + */ + public function setLDiversityResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * K-map result + * + * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult k_map_estimation_result = 7; + * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult|null + */ + public function getKMapEstimationResult() + { + return $this->readOneof(7); + } + + public function hasKMapEstimationResult() + { + return $this->hasOneof(7); + } + + /** + * K-map result + * + * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult k_map_estimation_result = 7; + * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult $var + * @return $this + */ + public function setKMapEstimationResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Delta-presence result + * + * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult delta_presence_estimation_result = 9; + * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult|null + */ + public function getDeltaPresenceEstimationResult() + { + return $this->readOneof(9); + } + + public function hasDeltaPresenceEstimationResult() + { + return $this->hasOneof(9); + } + + /** + * Delta-presence result + * + * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult delta_presence_estimation_result = 9; + * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult $var + * @return $this + */ + public function setDeltaPresenceEstimationResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * The configuration used for this job. + * + * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions requested_options = 10; + * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\RequestedRiskAnalysisOptions|null + */ + public function getRequestedOptions() + { + return $this->requested_options; + } + + public function hasRequestedOptions() + { + return isset($this->requested_options); + } + + public function clearRequestedOptions() + { + unset($this->requested_options); + } + + /** + * The configuration used for this job. + * + * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions requested_options = 10; + * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\RequestedRiskAnalysisOptions $var + * @return $this + */ + public function setRequestedOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\RequestedRiskAnalysisOptions::class); + $this->requested_options = $var; + + return $this; + } + + /** + * @return string + */ + public function getResult() + { + return $this->whichOneof("result"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult.php new file mode 100644 index 000000000000..f402c62d1137 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult + */ +class CategoricalStatsResult extends \Google\Protobuf\Internal\Message +{ + /** + * Histogram of value frequencies in the column. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket value_frequency_histogram_buckets = 5; + */ + private $value_frequency_histogram_buckets; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult\CategoricalStatsHistogramBucket[] $value_frequency_histogram_buckets + * Histogram of value frequencies in the column. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Histogram of value frequencies in the column. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket value_frequency_histogram_buckets = 5; + * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult\CategoricalStatsHistogramBucket> + */ + public function getValueFrequencyHistogramBuckets() + { + return $this->value_frequency_histogram_buckets; + } + + /** + * Histogram of value frequencies in the column. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket value_frequency_histogram_buckets = 5; + * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult\CategoricalStatsHistogramBucket[] $var + * @return $this + */ + public function setValueFrequencyHistogramBuckets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult\CategoricalStatsHistogramBucket::class); + $this->value_frequency_histogram_buckets = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult/CategoricalStatsHistogramBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult/CategoricalStatsHistogramBucket.php new file mode 100644 index 000000000000..4bbe2da9172f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult/CategoricalStatsHistogramBucket.php @@ -0,0 +1,207 @@ +google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket + */ +class CategoricalStatsHistogramBucket extends \Google\Protobuf\Internal\Message +{ + /** + * Lower bound on the value frequency of the values in this bucket. + * + * Generated from protobuf field int64 value_frequency_lower_bound = 1; + */ + protected $value_frequency_lower_bound = 0; + /** + * Upper bound on the value frequency of the values in this bucket. + * + * Generated from protobuf field int64 value_frequency_upper_bound = 2; + */ + protected $value_frequency_upper_bound = 0; + /** + * Total number of values in this bucket. + * + * Generated from protobuf field int64 bucket_size = 3; + */ + protected $bucket_size = 0; + /** + * Sample of value frequencies in this bucket. The total number of + * values returned per bucket is capped at 20. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency bucket_values = 4; + */ + private $bucket_values; + /** + * Total number of distinct values in this bucket. + * + * Generated from protobuf field int64 bucket_value_count = 5; + */ + protected $bucket_value_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $value_frequency_lower_bound + * Lower bound on the value frequency of the values in this bucket. + * @type int|string $value_frequency_upper_bound + * Upper bound on the value frequency of the values in this bucket. + * @type int|string $bucket_size + * Total number of values in this bucket. + * @type \Google\Cloud\Dlp\V2\ValueFrequency[] $bucket_values + * Sample of value frequencies in this bucket. The total number of + * values returned per bucket is capped at 20. + * @type int|string $bucket_value_count + * Total number of distinct values in this bucket. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Lower bound on the value frequency of the values in this bucket. + * + * Generated from protobuf field int64 value_frequency_lower_bound = 1; + * @return int|string + */ + public function getValueFrequencyLowerBound() + { + return $this->value_frequency_lower_bound; + } + + /** + * Lower bound on the value frequency of the values in this bucket. + * + * Generated from protobuf field int64 value_frequency_lower_bound = 1; + * @param int|string $var + * @return $this + */ + public function setValueFrequencyLowerBound($var) + { + GPBUtil::checkInt64($var); + $this->value_frequency_lower_bound = $var; + + return $this; + } + + /** + * Upper bound on the value frequency of the values in this bucket. + * + * Generated from protobuf field int64 value_frequency_upper_bound = 2; + * @return int|string + */ + public function getValueFrequencyUpperBound() + { + return $this->value_frequency_upper_bound; + } + + /** + * Upper bound on the value frequency of the values in this bucket. + * + * Generated from protobuf field int64 value_frequency_upper_bound = 2; + * @param int|string $var + * @return $this + */ + public function setValueFrequencyUpperBound($var) + { + GPBUtil::checkInt64($var); + $this->value_frequency_upper_bound = $var; + + return $this; + } + + /** + * Total number of values in this bucket. + * + * Generated from protobuf field int64 bucket_size = 3; + * @return int|string + */ + public function getBucketSize() + { + return $this->bucket_size; + } + + /** + * Total number of values in this bucket. + * + * Generated from protobuf field int64 bucket_size = 3; + * @param int|string $var + * @return $this + */ + public function setBucketSize($var) + { + GPBUtil::checkInt64($var); + $this->bucket_size = $var; + + return $this; + } + + /** + * Sample of value frequencies in this bucket. The total number of + * values returned per bucket is capped at 20. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency bucket_values = 4; + * @return RepeatedField<\Google\Cloud\Dlp\V2\ValueFrequency> + */ + public function getBucketValues() + { + return $this->bucket_values; + } + + /** + * Sample of value frequencies in this bucket. The total number of + * values returned per bucket is capped at 20. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency bucket_values = 4; + * @param \Google\Cloud\Dlp\V2\ValueFrequency[] $var + * @return $this + */ + public function setBucketValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ValueFrequency::class); + $this->bucket_values = $arr; + + return $this; + } + + /** + * Total number of distinct values in this bucket. + * + * Generated from protobuf field int64 bucket_value_count = 5; + * @return int|string + */ + public function getBucketValueCount() + { + return $this->bucket_value_count; + } + + /** + * Total number of distinct values in this bucket. + * + * Generated from protobuf field int64 bucket_value_count = 5; + * @param int|string $var + * @return $this + */ + public function setBucketValueCount($var) + { + GPBUtil::checkInt64($var); + $this->bucket_value_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult.php new file mode 100644 index 000000000000..3ec3508bd91f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult.php @@ -0,0 +1,96 @@ +google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult + */ +class DeltaPresenceEstimationResult extends \Google\Protobuf\Internal\Message +{ + /** + * The intervals [min_probability, max_probability) do not overlap. If a + * value doesn't correspond to any such interval, the associated frequency + * is zero. For example, the following records: + * {min_probability: 0, max_probability: 0.1, frequency: 17} + * {min_probability: 0.2, max_probability: 0.3, frequency: 42} + * {min_probability: 0.3, max_probability: 0.4, frequency: 99} + * mean that there are no record with an estimated probability in [0.1, 0.2) + * nor larger or equal to 0.4. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket delta_presence_estimation_histogram = 1; + */ + private $delta_presence_estimation_histogram; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationHistogramBucket[] $delta_presence_estimation_histogram + * The intervals [min_probability, max_probability) do not overlap. If a + * value doesn't correspond to any such interval, the associated frequency + * is zero. For example, the following records: + * {min_probability: 0, max_probability: 0.1, frequency: 17} + * {min_probability: 0.2, max_probability: 0.3, frequency: 42} + * {min_probability: 0.3, max_probability: 0.4, frequency: 99} + * mean that there are no record with an estimated probability in [0.1, 0.2) + * nor larger or equal to 0.4. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The intervals [min_probability, max_probability) do not overlap. If a + * value doesn't correspond to any such interval, the associated frequency + * is zero. For example, the following records: + * {min_probability: 0, max_probability: 0.1, frequency: 17} + * {min_probability: 0.2, max_probability: 0.3, frequency: 42} + * {min_probability: 0.3, max_probability: 0.4, frequency: 99} + * mean that there are no record with an estimated probability in [0.1, 0.2) + * nor larger or equal to 0.4. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket delta_presence_estimation_histogram = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationHistogramBucket> + */ + public function getDeltaPresenceEstimationHistogram() + { + return $this->delta_presence_estimation_histogram; + } + + /** + * The intervals [min_probability, max_probability) do not overlap. If a + * value doesn't correspond to any such interval, the associated frequency + * is zero. For example, the following records: + * {min_probability: 0, max_probability: 0.1, frequency: 17} + * {min_probability: 0.2, max_probability: 0.3, frequency: 42} + * {min_probability: 0.3, max_probability: 0.4, frequency: 99} + * mean that there are no record with an estimated probability in [0.1, 0.2) + * nor larger or equal to 0.4. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket delta_presence_estimation_histogram = 1; + * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationHistogramBucket[] $var + * @return $this + */ + public function setDeltaPresenceEstimationHistogram($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationHistogramBucket::class); + $this->delta_presence_estimation_histogram = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationHistogramBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationHistogramBucket.php new file mode 100644 index 000000000000..39ea9ada22ec --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationHistogramBucket.php @@ -0,0 +1,215 @@ +google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket + */ +class DeltaPresenceEstimationHistogramBucket extends \Google\Protobuf\Internal\Message +{ + /** + * Between 0 and 1. + * + * Generated from protobuf field double min_probability = 1; + */ + protected $min_probability = 0.0; + /** + * Always greater than or equal to min_probability. + * + * Generated from protobuf field double max_probability = 2; + */ + protected $max_probability = 0.0; + /** + * Number of records within these probability bounds. + * + * Generated from protobuf field int64 bucket_size = 5; + */ + protected $bucket_size = 0; + /** + * Sample of quasi-identifier tuple values in this bucket. The total + * number of classes returned per bucket is capped at 20. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues bucket_values = 6; + */ + private $bucket_values; + /** + * Total number of distinct quasi-identifier tuple values in this bucket. + * + * Generated from protobuf field int64 bucket_value_count = 7; + */ + protected $bucket_value_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $min_probability + * Between 0 and 1. + * @type float $max_probability + * Always greater than or equal to min_probability. + * @type int|string $bucket_size + * Number of records within these probability bounds. + * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationQuasiIdValues[] $bucket_values + * Sample of quasi-identifier tuple values in this bucket. The total + * number of classes returned per bucket is capped at 20. + * @type int|string $bucket_value_count + * Total number of distinct quasi-identifier tuple values in this bucket. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Between 0 and 1. + * + * Generated from protobuf field double min_probability = 1; + * @return float + */ + public function getMinProbability() + { + return $this->min_probability; + } + + /** + * Between 0 and 1. + * + * Generated from protobuf field double min_probability = 1; + * @param float $var + * @return $this + */ + public function setMinProbability($var) + { + GPBUtil::checkDouble($var); + $this->min_probability = $var; + + return $this; + } + + /** + * Always greater than or equal to min_probability. + * + * Generated from protobuf field double max_probability = 2; + * @return float + */ + public function getMaxProbability() + { + return $this->max_probability; + } + + /** + * Always greater than or equal to min_probability. + * + * Generated from protobuf field double max_probability = 2; + * @param float $var + * @return $this + */ + public function setMaxProbability($var) + { + GPBUtil::checkDouble($var); + $this->max_probability = $var; + + return $this; + } + + /** + * Number of records within these probability bounds. + * + * Generated from protobuf field int64 bucket_size = 5; + * @return int|string + */ + public function getBucketSize() + { + return $this->bucket_size; + } + + /** + * Number of records within these probability bounds. + * + * Generated from protobuf field int64 bucket_size = 5; + * @param int|string $var + * @return $this + */ + public function setBucketSize($var) + { + GPBUtil::checkInt64($var); + $this->bucket_size = $var; + + return $this; + } + + /** + * Sample of quasi-identifier tuple values in this bucket. The total + * number of classes returned per bucket is capped at 20. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues bucket_values = 6; + * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationQuasiIdValues> + */ + public function getBucketValues() + { + return $this->bucket_values; + } + + /** + * Sample of quasi-identifier tuple values in this bucket. The total + * number of classes returned per bucket is capped at 20. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues bucket_values = 6; + * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationQuasiIdValues[] $var + * @return $this + */ + public function setBucketValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationQuasiIdValues::class); + $this->bucket_values = $arr; + + return $this; + } + + /** + * Total number of distinct quasi-identifier tuple values in this bucket. + * + * Generated from protobuf field int64 bucket_value_count = 7; + * @return int|string + */ + public function getBucketValueCount() + { + return $this->bucket_value_count; + } + + /** + * Total number of distinct quasi-identifier tuple values in this bucket. + * + * Generated from protobuf field int64 bucket_value_count = 7; + * @param int|string $var + * @return $this + */ + public function setBucketValueCount($var) + { + GPBUtil::checkInt64($var); + $this->bucket_value_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationQuasiIdValues.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationQuasiIdValues.php new file mode 100644 index 000000000000..fcb9a8d1f843 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationQuasiIdValues.php @@ -0,0 +1,129 @@ +google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues + */ +class DeltaPresenceEstimationQuasiIdValues extends \Google\Protobuf\Internal\Message +{ + /** + * The quasi-identifier values. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; + */ + private $quasi_ids_values; + /** + * The estimated probability that a given individual sharing these + * quasi-identifier values is in the dataset. This value, typically + * called δ, is the ratio between the number of records in the dataset + * with these quasi-identifier values, and the total number of individuals + * (inside *and* outside the dataset) with these quasi-identifier values. + * For example, if there are 15 individuals in the dataset who share the + * same quasi-identifier values, and an estimated 100 people in the entire + * population with these values, then δ is 0.15. + * + * Generated from protobuf field double estimated_probability = 2; + */ + protected $estimated_probability = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Value[] $quasi_ids_values + * The quasi-identifier values. + * @type float $estimated_probability + * The estimated probability that a given individual sharing these + * quasi-identifier values is in the dataset. This value, typically + * called δ, is the ratio between the number of records in the dataset + * with these quasi-identifier values, and the total number of individuals + * (inside *and* outside the dataset) with these quasi-identifier values. + * For example, if there are 15 individuals in the dataset who share the + * same quasi-identifier values, and an estimated 100 people in the entire + * population with these values, then δ is 0.15. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The quasi-identifier values. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Value> + */ + public function getQuasiIdsValues() + { + return $this->quasi_ids_values; + } + + /** + * The quasi-identifier values. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; + * @param \Google\Cloud\Dlp\V2\Value[] $var + * @return $this + */ + public function setQuasiIdsValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); + $this->quasi_ids_values = $arr; + + return $this; + } + + /** + * The estimated probability that a given individual sharing these + * quasi-identifier values is in the dataset. This value, typically + * called δ, is the ratio between the number of records in the dataset + * with these quasi-identifier values, and the total number of individuals + * (inside *and* outside the dataset) with these quasi-identifier values. + * For example, if there are 15 individuals in the dataset who share the + * same quasi-identifier values, and an estimated 100 people in the entire + * population with these values, then δ is 0.15. + * + * Generated from protobuf field double estimated_probability = 2; + * @return float + */ + public function getEstimatedProbability() + { + return $this->estimated_probability; + } + + /** + * The estimated probability that a given individual sharing these + * quasi-identifier values is in the dataset. This value, typically + * called δ, is the ratio between the number of records in the dataset + * with these quasi-identifier values, and the total number of individuals + * (inside *and* outside the dataset) with these quasi-identifier values. + * For example, if there are 15 individuals in the dataset who share the + * same quasi-identifier values, and an estimated 100 people in the entire + * population with these values, then δ is 0.15. + * + * Generated from protobuf field double estimated_probability = 2; + * @param float $var + * @return $this + */ + public function setEstimatedProbability($var) + { + GPBUtil::checkDouble($var); + $this->estimated_probability = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult.php new file mode 100644 index 000000000000..b75dd1ee5e7b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult + */ +class KAnonymityResult extends \Google\Protobuf\Internal\Message +{ + /** + * Histogram of k-anonymity equivalence classes. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket equivalence_class_histogram_buckets = 5; + */ + private $equivalence_class_histogram_buckets; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityHistogramBucket[] $equivalence_class_histogram_buckets + * Histogram of k-anonymity equivalence classes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Histogram of k-anonymity equivalence classes. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket equivalence_class_histogram_buckets = 5; + * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityHistogramBucket> + */ + public function getEquivalenceClassHistogramBuckets() + { + return $this->equivalence_class_histogram_buckets; + } + + /** + * Histogram of k-anonymity equivalence classes. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket equivalence_class_histogram_buckets = 5; + * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityHistogramBucket[] $var + * @return $this + */ + public function setEquivalenceClassHistogramBuckets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityHistogramBucket::class); + $this->equivalence_class_histogram_buckets = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityEquivalenceClass.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityEquivalenceClass.php new file mode 100644 index 000000000000..0f01902fec4c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityEquivalenceClass.php @@ -0,0 +1,113 @@ +google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass + */ +class KAnonymityEquivalenceClass extends \Google\Protobuf\Internal\Message +{ + /** + * Set of values defining the equivalence class. One value per + * quasi-identifier column in the original KAnonymity metric message. + * The order is always the same as the original request. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; + */ + private $quasi_ids_values; + /** + * Size of the equivalence class, for example number of rows with the + * above set of values. + * + * Generated from protobuf field int64 equivalence_class_size = 2; + */ + protected $equivalence_class_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Value[] $quasi_ids_values + * Set of values defining the equivalence class. One value per + * quasi-identifier column in the original KAnonymity metric message. + * The order is always the same as the original request. + * @type int|string $equivalence_class_size + * Size of the equivalence class, for example number of rows with the + * above set of values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Set of values defining the equivalence class. One value per + * quasi-identifier column in the original KAnonymity metric message. + * The order is always the same as the original request. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Value> + */ + public function getQuasiIdsValues() + { + return $this->quasi_ids_values; + } + + /** + * Set of values defining the equivalence class. One value per + * quasi-identifier column in the original KAnonymity metric message. + * The order is always the same as the original request. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; + * @param \Google\Cloud\Dlp\V2\Value[] $var + * @return $this + */ + public function setQuasiIdsValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); + $this->quasi_ids_values = $arr; + + return $this; + } + + /** + * Size of the equivalence class, for example number of rows with the + * above set of values. + * + * Generated from protobuf field int64 equivalence_class_size = 2; + * @return int|string + */ + public function getEquivalenceClassSize() + { + return $this->equivalence_class_size; + } + + /** + * Size of the equivalence class, for example number of rows with the + * above set of values. + * + * Generated from protobuf field int64 equivalence_class_size = 2; + * @param int|string $var + * @return $this + */ + public function setEquivalenceClassSize($var) + { + GPBUtil::checkInt64($var); + $this->equivalence_class_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityHistogramBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityHistogramBucket.php new file mode 100644 index 000000000000..a87ca465ee0f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityHistogramBucket.php @@ -0,0 +1,207 @@ +google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket + */ +class KAnonymityHistogramBucket extends \Google\Protobuf\Internal\Message +{ + /** + * Lower bound on the size of the equivalence classes in this bucket. + * + * Generated from protobuf field int64 equivalence_class_size_lower_bound = 1; + */ + protected $equivalence_class_size_lower_bound = 0; + /** + * Upper bound on the size of the equivalence classes in this bucket. + * + * Generated from protobuf field int64 equivalence_class_size_upper_bound = 2; + */ + protected $equivalence_class_size_upper_bound = 0; + /** + * Total number of equivalence classes in this bucket. + * + * Generated from protobuf field int64 bucket_size = 3; + */ + protected $bucket_size = 0; + /** + * Sample of equivalence classes in this bucket. The total number of + * classes returned per bucket is capped at 20. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass bucket_values = 4; + */ + private $bucket_values; + /** + * Total number of distinct equivalence classes in this bucket. + * + * Generated from protobuf field int64 bucket_value_count = 5; + */ + protected $bucket_value_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $equivalence_class_size_lower_bound + * Lower bound on the size of the equivalence classes in this bucket. + * @type int|string $equivalence_class_size_upper_bound + * Upper bound on the size of the equivalence classes in this bucket. + * @type int|string $bucket_size + * Total number of equivalence classes in this bucket. + * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityEquivalenceClass[] $bucket_values + * Sample of equivalence classes in this bucket. The total number of + * classes returned per bucket is capped at 20. + * @type int|string $bucket_value_count + * Total number of distinct equivalence classes in this bucket. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Lower bound on the size of the equivalence classes in this bucket. + * + * Generated from protobuf field int64 equivalence_class_size_lower_bound = 1; + * @return int|string + */ + public function getEquivalenceClassSizeLowerBound() + { + return $this->equivalence_class_size_lower_bound; + } + + /** + * Lower bound on the size of the equivalence classes in this bucket. + * + * Generated from protobuf field int64 equivalence_class_size_lower_bound = 1; + * @param int|string $var + * @return $this + */ + public function setEquivalenceClassSizeLowerBound($var) + { + GPBUtil::checkInt64($var); + $this->equivalence_class_size_lower_bound = $var; + + return $this; + } + + /** + * Upper bound on the size of the equivalence classes in this bucket. + * + * Generated from protobuf field int64 equivalence_class_size_upper_bound = 2; + * @return int|string + */ + public function getEquivalenceClassSizeUpperBound() + { + return $this->equivalence_class_size_upper_bound; + } + + /** + * Upper bound on the size of the equivalence classes in this bucket. + * + * Generated from protobuf field int64 equivalence_class_size_upper_bound = 2; + * @param int|string $var + * @return $this + */ + public function setEquivalenceClassSizeUpperBound($var) + { + GPBUtil::checkInt64($var); + $this->equivalence_class_size_upper_bound = $var; + + return $this; + } + + /** + * Total number of equivalence classes in this bucket. + * + * Generated from protobuf field int64 bucket_size = 3; + * @return int|string + */ + public function getBucketSize() + { + return $this->bucket_size; + } + + /** + * Total number of equivalence classes in this bucket. + * + * Generated from protobuf field int64 bucket_size = 3; + * @param int|string $var + * @return $this + */ + public function setBucketSize($var) + { + GPBUtil::checkInt64($var); + $this->bucket_size = $var; + + return $this; + } + + /** + * Sample of equivalence classes in this bucket. The total number of + * classes returned per bucket is capped at 20. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass bucket_values = 4; + * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityEquivalenceClass> + */ + public function getBucketValues() + { + return $this->bucket_values; + } + + /** + * Sample of equivalence classes in this bucket. The total number of + * classes returned per bucket is capped at 20. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass bucket_values = 4; + * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityEquivalenceClass[] $var + * @return $this + */ + public function setBucketValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityEquivalenceClass::class); + $this->bucket_values = $arr; + + return $this; + } + + /** + * Total number of distinct equivalence classes in this bucket. + * + * Generated from protobuf field int64 bucket_value_count = 5; + * @return int|string + */ + public function getBucketValueCount() + { + return $this->bucket_value_count; + } + + /** + * Total number of distinct equivalence classes in this bucket. + * + * Generated from protobuf field int64 bucket_value_count = 5; + * @param int|string $var + * @return $this + */ + public function setBucketValueCount($var) + { + GPBUtil::checkInt64($var); + $this->bucket_value_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult.php new file mode 100644 index 000000000000..c8513592a472 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult.php @@ -0,0 +1,96 @@ +google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult + */ +class KMapEstimationResult extends \Google\Protobuf\Internal\Message +{ + /** + * The intervals [min_anonymity, max_anonymity] do not overlap. If a value + * doesn't correspond to any such interval, the associated frequency is + * zero. For example, the following records: + * {min_anonymity: 1, max_anonymity: 1, frequency: 17} + * {min_anonymity: 2, max_anonymity: 3, frequency: 42} + * {min_anonymity: 5, max_anonymity: 10, frequency: 99} + * mean that there are no record with an estimated anonymity of 4, 5, or + * larger than 10. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket k_map_estimation_histogram = 1; + */ + private $k_map_estimation_histogram; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationHistogramBucket[] $k_map_estimation_histogram + * The intervals [min_anonymity, max_anonymity] do not overlap. If a value + * doesn't correspond to any such interval, the associated frequency is + * zero. For example, the following records: + * {min_anonymity: 1, max_anonymity: 1, frequency: 17} + * {min_anonymity: 2, max_anonymity: 3, frequency: 42} + * {min_anonymity: 5, max_anonymity: 10, frequency: 99} + * mean that there are no record with an estimated anonymity of 4, 5, or + * larger than 10. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The intervals [min_anonymity, max_anonymity] do not overlap. If a value + * doesn't correspond to any such interval, the associated frequency is + * zero. For example, the following records: + * {min_anonymity: 1, max_anonymity: 1, frequency: 17} + * {min_anonymity: 2, max_anonymity: 3, frequency: 42} + * {min_anonymity: 5, max_anonymity: 10, frequency: 99} + * mean that there are no record with an estimated anonymity of 4, 5, or + * larger than 10. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket k_map_estimation_histogram = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationHistogramBucket> + */ + public function getKMapEstimationHistogram() + { + return $this->k_map_estimation_histogram; + } + + /** + * The intervals [min_anonymity, max_anonymity] do not overlap. If a value + * doesn't correspond to any such interval, the associated frequency is + * zero. For example, the following records: + * {min_anonymity: 1, max_anonymity: 1, frequency: 17} + * {min_anonymity: 2, max_anonymity: 3, frequency: 42} + * {min_anonymity: 5, max_anonymity: 10, frequency: 99} + * mean that there are no record with an estimated anonymity of 4, 5, or + * larger than 10. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket k_map_estimation_histogram = 1; + * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationHistogramBucket[] $var + * @return $this + */ + public function setKMapEstimationHistogram($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationHistogramBucket::class); + $this->k_map_estimation_histogram = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationHistogramBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationHistogramBucket.php new file mode 100644 index 000000000000..ea3c2d161bcd --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationHistogramBucket.php @@ -0,0 +1,214 @@ +google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket + */ +class KMapEstimationHistogramBucket extends \Google\Protobuf\Internal\Message +{ + /** + * Always positive. + * + * Generated from protobuf field int64 min_anonymity = 1; + */ + protected $min_anonymity = 0; + /** + * Always greater than or equal to min_anonymity. + * + * Generated from protobuf field int64 max_anonymity = 2; + */ + protected $max_anonymity = 0; + /** + * Number of records within these anonymity bounds. + * + * Generated from protobuf field int64 bucket_size = 5; + */ + protected $bucket_size = 0; + /** + * Sample of quasi-identifier tuple values in this bucket. The total + * number of classes returned per bucket is capped at 20. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues bucket_values = 6; + */ + private $bucket_values; + /** + * Total number of distinct quasi-identifier tuple values in this bucket. + * + * Generated from protobuf field int64 bucket_value_count = 7; + */ + protected $bucket_value_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $min_anonymity + * Always positive. + * @type int|string $max_anonymity + * Always greater than or equal to min_anonymity. + * @type int|string $bucket_size + * Number of records within these anonymity bounds. + * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationQuasiIdValues[] $bucket_values + * Sample of quasi-identifier tuple values in this bucket. The total + * number of classes returned per bucket is capped at 20. + * @type int|string $bucket_value_count + * Total number of distinct quasi-identifier tuple values in this bucket. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Always positive. + * + * Generated from protobuf field int64 min_anonymity = 1; + * @return int|string + */ + public function getMinAnonymity() + { + return $this->min_anonymity; + } + + /** + * Always positive. + * + * Generated from protobuf field int64 min_anonymity = 1; + * @param int|string $var + * @return $this + */ + public function setMinAnonymity($var) + { + GPBUtil::checkInt64($var); + $this->min_anonymity = $var; + + return $this; + } + + /** + * Always greater than or equal to min_anonymity. + * + * Generated from protobuf field int64 max_anonymity = 2; + * @return int|string + */ + public function getMaxAnonymity() + { + return $this->max_anonymity; + } + + /** + * Always greater than or equal to min_anonymity. + * + * Generated from protobuf field int64 max_anonymity = 2; + * @param int|string $var + * @return $this + */ + public function setMaxAnonymity($var) + { + GPBUtil::checkInt64($var); + $this->max_anonymity = $var; + + return $this; + } + + /** + * Number of records within these anonymity bounds. + * + * Generated from protobuf field int64 bucket_size = 5; + * @return int|string + */ + public function getBucketSize() + { + return $this->bucket_size; + } + + /** + * Number of records within these anonymity bounds. + * + * Generated from protobuf field int64 bucket_size = 5; + * @param int|string $var + * @return $this + */ + public function setBucketSize($var) + { + GPBUtil::checkInt64($var); + $this->bucket_size = $var; + + return $this; + } + + /** + * Sample of quasi-identifier tuple values in this bucket. The total + * number of classes returned per bucket is capped at 20. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues bucket_values = 6; + * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationQuasiIdValues> + */ + public function getBucketValues() + { + return $this->bucket_values; + } + + /** + * Sample of quasi-identifier tuple values in this bucket. The total + * number of classes returned per bucket is capped at 20. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues bucket_values = 6; + * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationQuasiIdValues[] $var + * @return $this + */ + public function setBucketValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationQuasiIdValues::class); + $this->bucket_values = $arr; + + return $this; + } + + /** + * Total number of distinct quasi-identifier tuple values in this bucket. + * + * Generated from protobuf field int64 bucket_value_count = 7; + * @return int|string + */ + public function getBucketValueCount() + { + return $this->bucket_value_count; + } + + /** + * Total number of distinct quasi-identifier tuple values in this bucket. + * + * Generated from protobuf field int64 bucket_value_count = 7; + * @param int|string $var + * @return $this + */ + public function setBucketValueCount($var) + { + GPBUtil::checkInt64($var); + $this->bucket_value_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationQuasiIdValues.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationQuasiIdValues.php new file mode 100644 index 000000000000..5a00480aeae1 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationQuasiIdValues.php @@ -0,0 +1,101 @@ +google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues + */ +class KMapEstimationQuasiIdValues extends \Google\Protobuf\Internal\Message +{ + /** + * The quasi-identifier values. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; + */ + private $quasi_ids_values; + /** + * The estimated anonymity for these quasi-identifier values. + * + * Generated from protobuf field int64 estimated_anonymity = 2; + */ + protected $estimated_anonymity = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Value[] $quasi_ids_values + * The quasi-identifier values. + * @type int|string $estimated_anonymity + * The estimated anonymity for these quasi-identifier values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The quasi-identifier values. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Value> + */ + public function getQuasiIdsValues() + { + return $this->quasi_ids_values; + } + + /** + * The quasi-identifier values. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; + * @param \Google\Cloud\Dlp\V2\Value[] $var + * @return $this + */ + public function setQuasiIdsValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); + $this->quasi_ids_values = $arr; + + return $this; + } + + /** + * The estimated anonymity for these quasi-identifier values. + * + * Generated from protobuf field int64 estimated_anonymity = 2; + * @return int|string + */ + public function getEstimatedAnonymity() + { + return $this->estimated_anonymity; + } + + /** + * The estimated anonymity for these quasi-identifier values. + * + * Generated from protobuf field int64 estimated_anonymity = 2; + * @param int|string $var + * @return $this + */ + public function setEstimatedAnonymity($var) + { + GPBUtil::checkInt64($var); + $this->estimated_anonymity = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult.php new file mode 100644 index 000000000000..f283792e67ac --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult + */ +class LDiversityResult extends \Google\Protobuf\Internal\Message +{ + /** + * Histogram of l-diversity equivalence class sensitive value frequencies. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket sensitive_value_frequency_histogram_buckets = 5; + */ + private $sensitive_value_frequency_histogram_buckets; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityHistogramBucket[] $sensitive_value_frequency_histogram_buckets + * Histogram of l-diversity equivalence class sensitive value frequencies. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Histogram of l-diversity equivalence class sensitive value frequencies. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket sensitive_value_frequency_histogram_buckets = 5; + * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityHistogramBucket> + */ + public function getSensitiveValueFrequencyHistogramBuckets() + { + return $this->sensitive_value_frequency_histogram_buckets; + } + + /** + * Histogram of l-diversity equivalence class sensitive value frequencies. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket sensitive_value_frequency_histogram_buckets = 5; + * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityHistogramBucket[] $var + * @return $this + */ + public function setSensitiveValueFrequencyHistogramBuckets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityHistogramBucket::class); + $this->sensitive_value_frequency_histogram_buckets = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityEquivalenceClass.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityEquivalenceClass.php new file mode 100644 index 000000000000..c15ec2a422d4 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityEquivalenceClass.php @@ -0,0 +1,173 @@ +google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass + */ +class LDiversityEquivalenceClass extends \Google\Protobuf\Internal\Message +{ + /** + * Quasi-identifier values defining the k-anonymity equivalence + * class. The order is always the same as the original request. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; + */ + private $quasi_ids_values; + /** + * Size of the k-anonymity equivalence class. + * + * Generated from protobuf field int64 equivalence_class_size = 2; + */ + protected $equivalence_class_size = 0; + /** + * Number of distinct sensitive values in this equivalence class. + * + * Generated from protobuf field int64 num_distinct_sensitive_values = 3; + */ + protected $num_distinct_sensitive_values = 0; + /** + * Estimated frequencies of top sensitive values. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency top_sensitive_values = 4; + */ + private $top_sensitive_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Value[] $quasi_ids_values + * Quasi-identifier values defining the k-anonymity equivalence + * class. The order is always the same as the original request. + * @type int|string $equivalence_class_size + * Size of the k-anonymity equivalence class. + * @type int|string $num_distinct_sensitive_values + * Number of distinct sensitive values in this equivalence class. + * @type \Google\Cloud\Dlp\V2\ValueFrequency[] $top_sensitive_values + * Estimated frequencies of top sensitive values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Quasi-identifier values defining the k-anonymity equivalence + * class. The order is always the same as the original request. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Value> + */ + public function getQuasiIdsValues() + { + return $this->quasi_ids_values; + } + + /** + * Quasi-identifier values defining the k-anonymity equivalence + * class. The order is always the same as the original request. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; + * @param \Google\Cloud\Dlp\V2\Value[] $var + * @return $this + */ + public function setQuasiIdsValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); + $this->quasi_ids_values = $arr; + + return $this; + } + + /** + * Size of the k-anonymity equivalence class. + * + * Generated from protobuf field int64 equivalence_class_size = 2; + * @return int|string + */ + public function getEquivalenceClassSize() + { + return $this->equivalence_class_size; + } + + /** + * Size of the k-anonymity equivalence class. + * + * Generated from protobuf field int64 equivalence_class_size = 2; + * @param int|string $var + * @return $this + */ + public function setEquivalenceClassSize($var) + { + GPBUtil::checkInt64($var); + $this->equivalence_class_size = $var; + + return $this; + } + + /** + * Number of distinct sensitive values in this equivalence class. + * + * Generated from protobuf field int64 num_distinct_sensitive_values = 3; + * @return int|string + */ + public function getNumDistinctSensitiveValues() + { + return $this->num_distinct_sensitive_values; + } + + /** + * Number of distinct sensitive values in this equivalence class. + * + * Generated from protobuf field int64 num_distinct_sensitive_values = 3; + * @param int|string $var + * @return $this + */ + public function setNumDistinctSensitiveValues($var) + { + GPBUtil::checkInt64($var); + $this->num_distinct_sensitive_values = $var; + + return $this; + } + + /** + * Estimated frequencies of top sensitive values. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency top_sensitive_values = 4; + * @return RepeatedField<\Google\Cloud\Dlp\V2\ValueFrequency> + */ + public function getTopSensitiveValues() + { + return $this->top_sensitive_values; + } + + /** + * Estimated frequencies of top sensitive values. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency top_sensitive_values = 4; + * @param \Google\Cloud\Dlp\V2\ValueFrequency[] $var + * @return $this + */ + public function setTopSensitiveValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ValueFrequency::class); + $this->top_sensitive_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityHistogramBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityHistogramBucket.php new file mode 100644 index 000000000000..02702056d1a6 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityHistogramBucket.php @@ -0,0 +1,215 @@ +google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket + */ +class LDiversityHistogramBucket extends \Google\Protobuf\Internal\Message +{ + /** + * Lower bound on the sensitive value frequencies of the equivalence + * classes in this bucket. + * + * Generated from protobuf field int64 sensitive_value_frequency_lower_bound = 1; + */ + protected $sensitive_value_frequency_lower_bound = 0; + /** + * Upper bound on the sensitive value frequencies of the equivalence + * classes in this bucket. + * + * Generated from protobuf field int64 sensitive_value_frequency_upper_bound = 2; + */ + protected $sensitive_value_frequency_upper_bound = 0; + /** + * Total number of equivalence classes in this bucket. + * + * Generated from protobuf field int64 bucket_size = 3; + */ + protected $bucket_size = 0; + /** + * Sample of equivalence classes in this bucket. The total number of + * classes returned per bucket is capped at 20. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass bucket_values = 4; + */ + private $bucket_values; + /** + * Total number of distinct equivalence classes in this bucket. + * + * Generated from protobuf field int64 bucket_value_count = 5; + */ + protected $bucket_value_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $sensitive_value_frequency_lower_bound + * Lower bound on the sensitive value frequencies of the equivalence + * classes in this bucket. + * @type int|string $sensitive_value_frequency_upper_bound + * Upper bound on the sensitive value frequencies of the equivalence + * classes in this bucket. + * @type int|string $bucket_size + * Total number of equivalence classes in this bucket. + * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityEquivalenceClass[] $bucket_values + * Sample of equivalence classes in this bucket. The total number of + * classes returned per bucket is capped at 20. + * @type int|string $bucket_value_count + * Total number of distinct equivalence classes in this bucket. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Lower bound on the sensitive value frequencies of the equivalence + * classes in this bucket. + * + * Generated from protobuf field int64 sensitive_value_frequency_lower_bound = 1; + * @return int|string + */ + public function getSensitiveValueFrequencyLowerBound() + { + return $this->sensitive_value_frequency_lower_bound; + } + + /** + * Lower bound on the sensitive value frequencies of the equivalence + * classes in this bucket. + * + * Generated from protobuf field int64 sensitive_value_frequency_lower_bound = 1; + * @param int|string $var + * @return $this + */ + public function setSensitiveValueFrequencyLowerBound($var) + { + GPBUtil::checkInt64($var); + $this->sensitive_value_frequency_lower_bound = $var; + + return $this; + } + + /** + * Upper bound on the sensitive value frequencies of the equivalence + * classes in this bucket. + * + * Generated from protobuf field int64 sensitive_value_frequency_upper_bound = 2; + * @return int|string + */ + public function getSensitiveValueFrequencyUpperBound() + { + return $this->sensitive_value_frequency_upper_bound; + } + + /** + * Upper bound on the sensitive value frequencies of the equivalence + * classes in this bucket. + * + * Generated from protobuf field int64 sensitive_value_frequency_upper_bound = 2; + * @param int|string $var + * @return $this + */ + public function setSensitiveValueFrequencyUpperBound($var) + { + GPBUtil::checkInt64($var); + $this->sensitive_value_frequency_upper_bound = $var; + + return $this; + } + + /** + * Total number of equivalence classes in this bucket. + * + * Generated from protobuf field int64 bucket_size = 3; + * @return int|string + */ + public function getBucketSize() + { + return $this->bucket_size; + } + + /** + * Total number of equivalence classes in this bucket. + * + * Generated from protobuf field int64 bucket_size = 3; + * @param int|string $var + * @return $this + */ + public function setBucketSize($var) + { + GPBUtil::checkInt64($var); + $this->bucket_size = $var; + + return $this; + } + + /** + * Sample of equivalence classes in this bucket. The total number of + * classes returned per bucket is capped at 20. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass bucket_values = 4; + * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityEquivalenceClass> + */ + public function getBucketValues() + { + return $this->bucket_values; + } + + /** + * Sample of equivalence classes in this bucket. The total number of + * classes returned per bucket is capped at 20. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass bucket_values = 4; + * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityEquivalenceClass[] $var + * @return $this + */ + public function setBucketValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityEquivalenceClass::class); + $this->bucket_values = $arr; + + return $this; + } + + /** + * Total number of distinct equivalence classes in this bucket. + * + * Generated from protobuf field int64 bucket_value_count = 5; + * @return int|string + */ + public function getBucketValueCount() + { + return $this->bucket_value_count; + } + + /** + * Total number of distinct equivalence classes in this bucket. + * + * Generated from protobuf field int64 bucket_value_count = 5; + * @param int|string $var + * @return $this + */ + public function setBucketValueCount($var) + { + GPBUtil::checkInt64($var); + $this->bucket_value_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/NumericalStatsResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/NumericalStatsResult.php new file mode 100644 index 000000000000..36dce1413141 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/NumericalStatsResult.php @@ -0,0 +1,159 @@ +google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult + */ +class NumericalStatsResult extends \Google\Protobuf\Internal\Message +{ + /** + * Minimum value appearing in the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value min_value = 1; + */ + protected $min_value = null; + /** + * Maximum value appearing in the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value max_value = 2; + */ + protected $max_value = null; + /** + * List of 99 values that partition the set of field values into 100 equal + * sized buckets. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quantile_values = 4; + */ + private $quantile_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Value $min_value + * Minimum value appearing in the column. + * @type \Google\Cloud\Dlp\V2\Value $max_value + * Maximum value appearing in the column. + * @type \Google\Cloud\Dlp\V2\Value[] $quantile_values + * List of 99 values that partition the set of field values into 100 equal + * sized buckets. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Minimum value appearing in the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value min_value = 1; + * @return \Google\Cloud\Dlp\V2\Value|null + */ + public function getMinValue() + { + return $this->min_value; + } + + public function hasMinValue() + { + return isset($this->min_value); + } + + public function clearMinValue() + { + unset($this->min_value); + } + + /** + * Minimum value appearing in the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value min_value = 1; + * @param \Google\Cloud\Dlp\V2\Value $var + * @return $this + */ + public function setMinValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); + $this->min_value = $var; + + return $this; + } + + /** + * Maximum value appearing in the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value max_value = 2; + * @return \Google\Cloud\Dlp\V2\Value|null + */ + public function getMaxValue() + { + return $this->max_value; + } + + public function hasMaxValue() + { + return isset($this->max_value); + } + + public function clearMaxValue() + { + unset($this->max_value); + } + + /** + * Maximum value appearing in the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value max_value = 2; + * @param \Google\Cloud\Dlp\V2\Value $var + * @return $this + */ + public function setMaxValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); + $this->max_value = $var; + + return $this; + } + + /** + * List of 99 values that partition the set of field values into 100 equal + * sized buckets. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quantile_values = 4; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Value> + */ + public function getQuantileValues() + { + return $this->quantile_values; + } + + /** + * List of 99 values that partition the set of field values into 100 equal + * sized buckets. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quantile_values = 4; + * @param \Google\Cloud\Dlp\V2\Value[] $var + * @return $this + */ + public function setQuantileValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); + $this->quantile_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/RequestedRiskAnalysisOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/RequestedRiskAnalysisOptions.php new file mode 100644 index 000000000000..e4920b48b193 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/RequestedRiskAnalysisOptions.php @@ -0,0 +1,77 @@ +google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions + */ +class RequestedRiskAnalysisOptions extends \Google\Protobuf\Internal\Message +{ + /** + * The job config for the risk job. + * + * Generated from protobuf field .google.privacy.dlp.v2.RiskAnalysisJobConfig job_config = 1; + */ + protected $job_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $job_config + * The job config for the risk job. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The job config for the risk job. + * + * Generated from protobuf field .google.privacy.dlp.v2.RiskAnalysisJobConfig job_config = 1; + * @return \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig|null + */ + public function getJobConfig() + { + return $this->job_config; + } + + public function hasJobConfig() + { + return isset($this->job_config); + } + + public function clearJobConfig() + { + unset($this->job_config); + } + + /** + * The job config for the risk job. + * + * Generated from protobuf field .google.privacy.dlp.v2.RiskAnalysisJobConfig job_config = 1; + * @param \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $var + * @return $this + */ + public function setJobConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig::class); + $this->job_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccount.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccount.php new file mode 100644 index 000000000000..c03278aec88a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccount.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.AwsAccount + */ +class AwsAccount extends \Google\Protobuf\Internal\Message +{ + /** + * Required. AWS account ID. + * + * Generated from protobuf field string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $account_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $account_id + * Required. AWS account ID. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. AWS account ID. + * + * Generated from protobuf field string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAccountId() + { + return $this->account_id; + } + + /** + * Required. AWS account ID. + * + * Generated from protobuf field string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAccountId($var) + { + GPBUtil::checkString($var, True); + $this->account_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccountRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccountRegex.php new file mode 100644 index 000000000000..f797c48c4a7c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccountRegex.php @@ -0,0 +1,71 @@ +google.privacy.dlp.v2.AwsAccountRegex + */ +class AwsAccountRegex extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Regex to test the AWS account ID against. + * If empty, all accounts match. + * + * Generated from protobuf field string account_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $account_id_regex = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $account_id_regex + * Optional. Regex to test the AWS account ID against. + * If empty, all accounts match. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Regex to test the AWS account ID against. + * If empty, all accounts match. + * + * Generated from protobuf field string account_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAccountIdRegex() + { + return $this->account_id_regex; + } + + /** + * Optional. Regex to test the AWS account ID against. + * If empty, all accounts match. + * + * Generated from protobuf field string account_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAccountIdRegex($var) + { + GPBUtil::checkString($var, True); + $this->account_id_regex = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryDiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryDiscoveryTarget.php new file mode 100644 index 000000000000..bbeb9f95e9d6 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryDiscoveryTarget.php @@ -0,0 +1,210 @@ +google.privacy.dlp.v2.BigQueryDiscoveryTarget + */ +class BigQueryDiscoveryTarget extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The tables the discovery cadence applies to. The first target + * with a matching filter will be the one to apply to a table. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $filter = null; + /** + * In addition to matching the filter, these conditions must be true + * before a profile is generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions conditions = 2; + */ + protected $conditions = null; + protected $frequency; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter $filter + * Required. The tables the discovery cadence applies to. The first target + * with a matching filter will be the one to apply to a table. + * @type \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions $conditions + * In addition to matching the filter, these conditions must be true + * before a profile is generated. + * @type \Google\Cloud\Dlp\V2\DiscoveryGenerationCadence $cadence + * How often and when to update profiles. New tables that match both the + * filter and conditions are scanned as quickly as possible depending on + * system capacity. + * @type \Google\Cloud\Dlp\V2\Disabled $disabled + * Tables that match this filter will not have profiles created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. The tables the discovery cadence applies to. The first target + * with a matching filter will be the one to apply to a table. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter|null + */ + public function getFilter() + { + return $this->filter; + } + + public function hasFilter() + { + return isset($this->filter); + } + + public function clearFilter() + { + unset($this->filter); + } + + /** + * Required. The tables the discovery cadence applies to. The first target + * with a matching filter will be the one to apply to a table. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter::class); + $this->filter = $var; + + return $this; + } + + /** + * In addition to matching the filter, these conditions must be true + * before a profile is generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions conditions = 2; + * @return \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions|null + */ + public function getConditions() + { + return $this->conditions; + } + + public function hasConditions() + { + return isset($this->conditions); + } + + public function clearConditions() + { + unset($this->conditions); + } + + /** + * In addition to matching the filter, these conditions must be true + * before a profile is generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions conditions = 2; + * @param \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions $var + * @return $this + */ + public function setConditions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions::class); + $this->conditions = $var; + + return $this; + } + + /** + * How often and when to update profiles. New tables that match both the + * filter and conditions are scanned as quickly as possible depending on + * system capacity. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryGenerationCadence cadence = 3; + * @return \Google\Cloud\Dlp\V2\DiscoveryGenerationCadence|null + */ + public function getCadence() + { + return $this->readOneof(3); + } + + public function hasCadence() + { + return $this->hasOneof(3); + } + + /** + * How often and when to update profiles. New tables that match both the + * filter and conditions are scanned as quickly as possible depending on + * system capacity. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryGenerationCadence cadence = 3; + * @param \Google\Cloud\Dlp\V2\DiscoveryGenerationCadence $var + * @return $this + */ + public function setCadence($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryGenerationCadence::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Tables that match this filter will not have profiles created. + * + * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 4; + * @return \Google\Cloud\Dlp\V2\Disabled|null + */ + public function getDisabled() + { + return $this->readOneof(4); + } + + public function hasDisabled() + { + return $this->hasOneof(4); + } + + /** + * Tables that match this filter will not have profiles created. + * + * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 4; + * @param \Google\Cloud\Dlp\V2\Disabled $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Disabled::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getFrequency() + { + return $this->whichOneof("frequency"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryField.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryField.php new file mode 100644 index 000000000000..0df9f89d23e2 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryField.php @@ -0,0 +1,121 @@ +google.privacy.dlp.v2.BigQueryField + */ +class BigQueryField extends \Google\Protobuf\Internal\Message +{ + /** + * Source table of the field. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; + */ + protected $table = null; + /** + * Designated field in the BigQuery table. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; + */ + protected $field = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\BigQueryTable $table + * Source table of the field. + * @type \Google\Cloud\Dlp\V2\FieldId $field + * Designated field in the BigQuery table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Source table of the field. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; + * @return \Google\Cloud\Dlp\V2\BigQueryTable|null + */ + public function getTable() + { + return $this->table; + } + + public function hasTable() + { + return isset($this->table); + } + + public function clearTable() + { + unset($this->table); + } + + /** + * Source table of the field. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; + * @param \Google\Cloud\Dlp\V2\BigQueryTable $var + * @return $this + */ + public function setTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); + $this->table = $var; + + return $this; + } + + /** + * Designated field in the BigQuery table. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getField() + { + return $this->field; + } + + public function hasField() + { + return isset($this->field); + } + + public function clearField() + { + unset($this->field); + } + + /** + * Designated field in the BigQuery table. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->field = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryKey.php new file mode 100644 index 000000000000..ab72006a93e5 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryKey.php @@ -0,0 +1,127 @@ +google.privacy.dlp.v2.BigQueryKey + */ +class BigQueryKey extends \Google\Protobuf\Internal\Message +{ + /** + * Complete BigQuery table reference. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; + */ + protected $table_reference = null; + /** + * Row number inferred at the time the table was scanned. This value is + * nondeterministic, cannot be queried, and may be null for inspection + * jobs. To locate findings within a table, specify + * `inspect_job.storage_config.big_query_options.identifying_fields` in + * `CreateDlpJobRequest`. + * + * Generated from protobuf field int64 row_number = 2; + */ + protected $row_number = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\BigQueryTable $table_reference + * Complete BigQuery table reference. + * @type int|string $row_number + * Row number inferred at the time the table was scanned. This value is + * nondeterministic, cannot be queried, and may be null for inspection + * jobs. To locate findings within a table, specify + * `inspect_job.storage_config.big_query_options.identifying_fields` in + * `CreateDlpJobRequest`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Complete BigQuery table reference. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; + * @return \Google\Cloud\Dlp\V2\BigQueryTable|null + */ + public function getTableReference() + { + return $this->table_reference; + } + + public function hasTableReference() + { + return isset($this->table_reference); + } + + public function clearTableReference() + { + unset($this->table_reference); + } + + /** + * Complete BigQuery table reference. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; + * @param \Google\Cloud\Dlp\V2\BigQueryTable $var + * @return $this + */ + public function setTableReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); + $this->table_reference = $var; + + return $this; + } + + /** + * Row number inferred at the time the table was scanned. This value is + * nondeterministic, cannot be queried, and may be null for inspection + * jobs. To locate findings within a table, specify + * `inspect_job.storage_config.big_query_options.identifying_fields` in + * `CreateDlpJobRequest`. + * + * Generated from protobuf field int64 row_number = 2; + * @return int|string + */ + public function getRowNumber() + { + return $this->row_number; + } + + /** + * Row number inferred at the time the table was scanned. This value is + * nondeterministic, cannot be queried, and may be null for inspection + * jobs. To locate findings within a table, specify + * `inspect_job.storage_config.big_query_options.identifying_fields` in + * `CreateDlpJobRequest`. + * + * Generated from protobuf field int64 row_number = 2; + * @param int|string $var + * @return $this + */ + public function setRowNumber($var) + { + GPBUtil::checkInt64($var); + $this->row_number = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions.php new file mode 100644 index 000000000000..68c3dc5a2d72 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions.php @@ -0,0 +1,369 @@ +google.privacy.dlp.v2.BigQueryOptions + */ +class BigQueryOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Complete BigQuery table reference. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; + */ + protected $table_reference = null; + /** + * Table fields that may uniquely identify a row within the table. When + * `actions.saveFindings.outputConfig.table` is specified, the values of + * columns specified here are available in the output table under + * `location.content_locations.record_location.record_key.id_values`. Nested + * fields such as `person.birthdate.year` are allowed. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; + */ + private $identifying_fields; + /** + * Max number of rows to scan. If the table has more rows than this value, the + * rest of the rows are omitted. If not set, or if set to 0, all rows will be + * scanned. Only one of rows_limit and rows_limit_percent can be specified. + * Cannot be used in conjunction with TimespanConfig. + * + * Generated from protobuf field int64 rows_limit = 3; + */ + protected $rows_limit = 0; + /** + * Max percentage of rows to scan. The rest are omitted. The number of rows + * scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and + * 100 means no limit. Defaults to 0. Only one of rows_limit and + * rows_limit_percent can be specified. Cannot be used in conjunction with + * TimespanConfig. + * Caution: A [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) + * is causing the `rowsLimitPercent` field to behave unexpectedly. We + * recommend using `rowsLimit` instead. + * + * Generated from protobuf field int32 rows_limit_percent = 6; + */ + protected $rows_limit_percent = 0; + /** + * How to sample the data. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; + */ + protected $sample_method = 0; + /** + * References to fields excluded from scanning. This allows you to skip + * inspection of entire columns which you know have no findings. + * When inspecting a table, we recommend that you inspect all columns. + * Otherwise, findings might be affected because hints from excluded columns + * will not be used. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId excluded_fields = 5; + */ + private $excluded_fields; + /** + * Limit scanning only to these fields. + * When inspecting a table, we recommend that you inspect all columns. + * Otherwise, findings might be affected because hints from excluded columns + * will not be used. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId included_fields = 7; + */ + private $included_fields; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\BigQueryTable $table_reference + * Complete BigQuery table reference. + * @type \Google\Cloud\Dlp\V2\FieldId[] $identifying_fields + * Table fields that may uniquely identify a row within the table. When + * `actions.saveFindings.outputConfig.table` is specified, the values of + * columns specified here are available in the output table under + * `location.content_locations.record_location.record_key.id_values`. Nested + * fields such as `person.birthdate.year` are allowed. + * @type int|string $rows_limit + * Max number of rows to scan. If the table has more rows than this value, the + * rest of the rows are omitted. If not set, or if set to 0, all rows will be + * scanned. Only one of rows_limit and rows_limit_percent can be specified. + * Cannot be used in conjunction with TimespanConfig. + * @type int $rows_limit_percent + * Max percentage of rows to scan. The rest are omitted. The number of rows + * scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and + * 100 means no limit. Defaults to 0. Only one of rows_limit and + * rows_limit_percent can be specified. Cannot be used in conjunction with + * TimespanConfig. + * Caution: A [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) + * is causing the `rowsLimitPercent` field to behave unexpectedly. We + * recommend using `rowsLimit` instead. + * @type int $sample_method + * How to sample the data. + * @type \Google\Cloud\Dlp\V2\FieldId[] $excluded_fields + * References to fields excluded from scanning. This allows you to skip + * inspection of entire columns which you know have no findings. + * When inspecting a table, we recommend that you inspect all columns. + * Otherwise, findings might be affected because hints from excluded columns + * will not be used. + * @type \Google\Cloud\Dlp\V2\FieldId[] $included_fields + * Limit scanning only to these fields. + * When inspecting a table, we recommend that you inspect all columns. + * Otherwise, findings might be affected because hints from excluded columns + * will not be used. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Complete BigQuery table reference. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; + * @return \Google\Cloud\Dlp\V2\BigQueryTable|null + */ + public function getTableReference() + { + return $this->table_reference; + } + + public function hasTableReference() + { + return isset($this->table_reference); + } + + public function clearTableReference() + { + unset($this->table_reference); + } + + /** + * Complete BigQuery table reference. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; + * @param \Google\Cloud\Dlp\V2\BigQueryTable $var + * @return $this + */ + public function setTableReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); + $this->table_reference = $var; + + return $this; + } + + /** + * Table fields that may uniquely identify a row within the table. When + * `actions.saveFindings.outputConfig.table` is specified, the values of + * columns specified here are available in the output table under + * `location.content_locations.record_location.record_key.id_values`. Nested + * fields such as `person.birthdate.year` are allowed. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; + * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldId> + */ + public function getIdentifyingFields() + { + return $this->identifying_fields; + } + + /** + * Table fields that may uniquely identify a row within the table. When + * `actions.saveFindings.outputConfig.table` is specified, the values of + * columns specified here are available in the output table under + * `location.content_locations.record_location.record_key.id_values`. Nested + * fields such as `person.birthdate.year` are allowed. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; + * @param \Google\Cloud\Dlp\V2\FieldId[] $var + * @return $this + */ + public function setIdentifyingFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); + $this->identifying_fields = $arr; + + return $this; + } + + /** + * Max number of rows to scan. If the table has more rows than this value, the + * rest of the rows are omitted. If not set, or if set to 0, all rows will be + * scanned. Only one of rows_limit and rows_limit_percent can be specified. + * Cannot be used in conjunction with TimespanConfig. + * + * Generated from protobuf field int64 rows_limit = 3; + * @return int|string + */ + public function getRowsLimit() + { + return $this->rows_limit; + } + + /** + * Max number of rows to scan. If the table has more rows than this value, the + * rest of the rows are omitted. If not set, or if set to 0, all rows will be + * scanned. Only one of rows_limit and rows_limit_percent can be specified. + * Cannot be used in conjunction with TimespanConfig. + * + * Generated from protobuf field int64 rows_limit = 3; + * @param int|string $var + * @return $this + */ + public function setRowsLimit($var) + { + GPBUtil::checkInt64($var); + $this->rows_limit = $var; + + return $this; + } + + /** + * Max percentage of rows to scan. The rest are omitted. The number of rows + * scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and + * 100 means no limit. Defaults to 0. Only one of rows_limit and + * rows_limit_percent can be specified. Cannot be used in conjunction with + * TimespanConfig. + * Caution: A [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) + * is causing the `rowsLimitPercent` field to behave unexpectedly. We + * recommend using `rowsLimit` instead. + * + * Generated from protobuf field int32 rows_limit_percent = 6; + * @return int + */ + public function getRowsLimitPercent() + { + return $this->rows_limit_percent; + } + + /** + * Max percentage of rows to scan. The rest are omitted. The number of rows + * scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and + * 100 means no limit. Defaults to 0. Only one of rows_limit and + * rows_limit_percent can be specified. Cannot be used in conjunction with + * TimespanConfig. + * Caution: A [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) + * is causing the `rowsLimitPercent` field to behave unexpectedly. We + * recommend using `rowsLimit` instead. + * + * Generated from protobuf field int32 rows_limit_percent = 6; + * @param int $var + * @return $this + */ + public function setRowsLimitPercent($var) + { + GPBUtil::checkInt32($var); + $this->rows_limit_percent = $var; + + return $this; + } + + /** + * How to sample the data. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; + * @return int + */ + public function getSampleMethod() + { + return $this->sample_method; + } + + /** + * How to sample the data. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; + * @param int $var + * @return $this + */ + public function setSampleMethod($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\BigQueryOptions\SampleMethod::class); + $this->sample_method = $var; + + return $this; + } + + /** + * References to fields excluded from scanning. This allows you to skip + * inspection of entire columns which you know have no findings. + * When inspecting a table, we recommend that you inspect all columns. + * Otherwise, findings might be affected because hints from excluded columns + * will not be used. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId excluded_fields = 5; + * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldId> + */ + public function getExcludedFields() + { + return $this->excluded_fields; + } + + /** + * References to fields excluded from scanning. This allows you to skip + * inspection of entire columns which you know have no findings. + * When inspecting a table, we recommend that you inspect all columns. + * Otherwise, findings might be affected because hints from excluded columns + * will not be used. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId excluded_fields = 5; + * @param \Google\Cloud\Dlp\V2\FieldId[] $var + * @return $this + */ + public function setExcludedFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); + $this->excluded_fields = $arr; + + return $this; + } + + /** + * Limit scanning only to these fields. + * When inspecting a table, we recommend that you inspect all columns. + * Otherwise, findings might be affected because hints from excluded columns + * will not be used. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId included_fields = 7; + * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldId> + */ + public function getIncludedFields() + { + return $this->included_fields; + } + + /** + * Limit scanning only to these fields. + * When inspecting a table, we recommend that you inspect all columns. + * Otherwise, findings might be affected because hints from excluded columns + * will not be used. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId included_fields = 7; + * @param \Google\Cloud\Dlp\V2\FieldId[] $var + * @return $this + */ + public function setIncludedFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); + $this->included_fields = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions/SampleMethod.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions/SampleMethod.php new file mode 100644 index 000000000000..6d55acc939fb --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions/SampleMethod.php @@ -0,0 +1,65 @@ +google.privacy.dlp.v2.BigQueryOptions.SampleMethod + */ +class SampleMethod +{ + /** + * No sampling. + * + * Generated from protobuf enum SAMPLE_METHOD_UNSPECIFIED = 0; + */ + const SAMPLE_METHOD_UNSPECIFIED = 0; + /** + * Scan groups of rows in the order BigQuery provides (default). Multiple + * groups of rows may be scanned in parallel, so results may not appear in + * the same order the rows are read. + * + * Generated from protobuf enum TOP = 1; + */ + const TOP = 1; + /** + * Randomly pick groups of rows to scan. + * + * Generated from protobuf enum RANDOM_START = 2; + */ + const RANDOM_START = 2; + + private static $valueToName = [ + self::SAMPLE_METHOD_UNSPECIFIED => 'SAMPLE_METHOD_UNSPECIFIED', + self::TOP => 'TOP', + self::RANDOM_START => 'RANDOM_START', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegex.php new file mode 100644 index 000000000000..19c11f76b153 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegex.php @@ -0,0 +1,143 @@ +google.privacy.dlp.v2.BigQueryRegex + */ +class BigQueryRegex extends \Google\Protobuf\Internal\Message +{ + /** + * For organizations, if unset, will match all projects. Has no effect + * for data profile configurations created within a project. + * + * Generated from protobuf field string project_id_regex = 1; + */ + protected $project_id_regex = ''; + /** + * If unset, this property matches all datasets. + * + * Generated from protobuf field string dataset_id_regex = 2; + */ + protected $dataset_id_regex = ''; + /** + * If unset, this property matches all tables. + * + * Generated from protobuf field string table_id_regex = 3; + */ + protected $table_id_regex = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id_regex + * For organizations, if unset, will match all projects. Has no effect + * for data profile configurations created within a project. + * @type string $dataset_id_regex + * If unset, this property matches all datasets. + * @type string $table_id_regex + * If unset, this property matches all tables. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * For organizations, if unset, will match all projects. Has no effect + * for data profile configurations created within a project. + * + * Generated from protobuf field string project_id_regex = 1; + * @return string + */ + public function getProjectIdRegex() + { + return $this->project_id_regex; + } + + /** + * For organizations, if unset, will match all projects. Has no effect + * for data profile configurations created within a project. + * + * Generated from protobuf field string project_id_regex = 1; + * @param string $var + * @return $this + */ + public function setProjectIdRegex($var) + { + GPBUtil::checkString($var, True); + $this->project_id_regex = $var; + + return $this; + } + + /** + * If unset, this property matches all datasets. + * + * Generated from protobuf field string dataset_id_regex = 2; + * @return string + */ + public function getDatasetIdRegex() + { + return $this->dataset_id_regex; + } + + /** + * If unset, this property matches all datasets. + * + * Generated from protobuf field string dataset_id_regex = 2; + * @param string $var + * @return $this + */ + public function setDatasetIdRegex($var) + { + GPBUtil::checkString($var, True); + $this->dataset_id_regex = $var; + + return $this; + } + + /** + * If unset, this property matches all tables. + * + * Generated from protobuf field string table_id_regex = 3; + * @return string + */ + public function getTableIdRegex() + { + return $this->table_id_regex; + } + + /** + * If unset, this property matches all tables. + * + * Generated from protobuf field string table_id_regex = 3; + * @param string $var + * @return $this + */ + public function setTableIdRegex($var) + { + GPBUtil::checkString($var, True); + $this->table_id_regex = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegexes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegexes.php new file mode 100644 index 000000000000..8ee6223b311f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegexes.php @@ -0,0 +1,72 @@ +google.privacy.dlp.v2.BigQueryRegexes + */ +class BigQueryRegexes extends \Google\Protobuf\Internal\Message +{ + /** + * A single BigQuery regular expression pattern to match against one or more + * tables, datasets, or projects that contain BigQuery tables. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryRegex patterns = 1; + */ + private $patterns; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\BigQueryRegex[] $patterns + * A single BigQuery regular expression pattern to match against one or more + * tables, datasets, or projects that contain BigQuery tables. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A single BigQuery regular expression pattern to match against one or more + * tables, datasets, or projects that contain BigQuery tables. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryRegex patterns = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\BigQueryRegex> + */ + public function getPatterns() + { + return $this->patterns; + } + + /** + * A single BigQuery regular expression pattern to match against one or more + * tables, datasets, or projects that contain BigQuery tables. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryRegex patterns = 1; + * @param \Google\Cloud\Dlp\V2\BigQueryRegex[] $var + * @return $this + */ + public function setPatterns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\BigQueryRegex::class); + $this->patterns = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQuerySchemaModification.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQuerySchemaModification.php new file mode 100644 index 000000000000..331f232a4b09 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQuerySchemaModification.php @@ -0,0 +1,63 @@ +google.privacy.dlp.v2.BigQuerySchemaModification + */ +class BigQuerySchemaModification +{ + /** + * Unused + * + * Generated from protobuf enum SCHEMA_MODIFICATION_UNSPECIFIED = 0; + */ + const SCHEMA_MODIFICATION_UNSPECIFIED = 0; + /** + * Profiles should be regenerated when new columns are added to the table. + * Default. + * + * Generated from protobuf enum SCHEMA_NEW_COLUMNS = 1; + */ + const SCHEMA_NEW_COLUMNS = 1; + /** + * Profiles should be regenerated when columns are removed from the table. + * + * Generated from protobuf enum SCHEMA_REMOVED_COLUMNS = 2; + */ + const SCHEMA_REMOVED_COLUMNS = 2; + + private static $valueToName = [ + self::SCHEMA_MODIFICATION_UNSPECIFIED => 'SCHEMA_MODIFICATION_UNSPECIFIED', + self::SCHEMA_NEW_COLUMNS => 'SCHEMA_NEW_COLUMNS', + self::SCHEMA_REMOVED_COLUMNS => 'SCHEMA_REMOVED_COLUMNS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTable.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTable.php new file mode 100644 index 000000000000..31aa68d2047d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTable.php @@ -0,0 +1,143 @@ +:.` or + * `..`. + * + * Generated from protobuf message google.privacy.dlp.v2.BigQueryTable + */ +class BigQueryTable extends \Google\Protobuf\Internal\Message +{ + /** + * The Google Cloud project ID of the project containing the table. + * If omitted, project ID is inferred from the API call. + * + * Generated from protobuf field string project_id = 1; + */ + protected $project_id = ''; + /** + * Dataset ID of the table. + * + * Generated from protobuf field string dataset_id = 2; + */ + protected $dataset_id = ''; + /** + * Name of the table. + * + * Generated from protobuf field string table_id = 3; + */ + protected $table_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * The Google Cloud project ID of the project containing the table. + * If omitted, project ID is inferred from the API call. + * @type string $dataset_id + * Dataset ID of the table. + * @type string $table_id + * Name of the table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * The Google Cloud project ID of the project containing the table. + * If omitted, project ID is inferred from the API call. + * + * Generated from protobuf field string project_id = 1; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * The Google Cloud project ID of the project containing the table. + * If omitted, project ID is inferred from the API call. + * + * Generated from protobuf field string project_id = 1; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Dataset ID of the table. + * + * Generated from protobuf field string dataset_id = 2; + * @return string + */ + public function getDatasetId() + { + return $this->dataset_id; + } + + /** + * Dataset ID of the table. + * + * Generated from protobuf field string dataset_id = 2; + * @param string $var + * @return $this + */ + public function setDatasetId($var) + { + GPBUtil::checkString($var, True); + $this->dataset_id = $var; + + return $this; + } + + /** + * Name of the table. + * + * Generated from protobuf field string table_id = 3; + * @return string + */ + public function getTableId() + { + return $this->table_id; + } + + /** + * Name of the table. + * + * Generated from protobuf field string table_id = 3; + * @param string $var + * @return $this + */ + public function setTableId($var) + { + GPBUtil::checkString($var, True); + $this->table_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableCollection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableCollection.php new file mode 100644 index 000000000000..98bd63a209ca --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableCollection.php @@ -0,0 +1,75 @@ +google.privacy.dlp.v2.BigQueryTableCollection + */ +class BigQueryTableCollection extends \Google\Protobuf\Internal\Message +{ + protected $pattern; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\BigQueryRegexes $include_regexes + * A collection of regular expressions to match a BigQuery table against. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A collection of regular expressions to match a BigQuery table against. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryRegexes include_regexes = 1; + * @return \Google\Cloud\Dlp\V2\BigQueryRegexes|null + */ + public function getIncludeRegexes() + { + return $this->readOneof(1); + } + + public function hasIncludeRegexes() + { + return $this->hasOneof(1); + } + + /** + * A collection of regular expressions to match a BigQuery table against. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryRegexes include_regexes = 1; + * @param \Google\Cloud\Dlp\V2\BigQueryRegexes $var + * @return $this + */ + public function setIncludeRegexes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryRegexes::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getPattern() + { + return $this->whichOneof("pattern"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableModification.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableModification.php new file mode 100644 index 000000000000..c2f8c68bd6b5 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableModification.php @@ -0,0 +1,56 @@ +google.privacy.dlp.v2.BigQueryTableModification + */ +class BigQueryTableModification +{ + /** + * Unused. + * + * Generated from protobuf enum TABLE_MODIFICATION_UNSPECIFIED = 0; + */ + const TABLE_MODIFICATION_UNSPECIFIED = 0; + /** + * A table will be considered modified when the last_modified_time from + * BigQuery has been updated. + * + * Generated from protobuf enum TABLE_MODIFIED_TIMESTAMP = 1; + */ + const TABLE_MODIFIED_TIMESTAMP = 1; + + private static $valueToName = [ + self::TABLE_MODIFICATION_UNSPECIFIED => 'TABLE_MODIFICATION_UNSPECIFIED', + self::TABLE_MODIFIED_TIMESTAMP => 'TABLE_MODIFIED_TIMESTAMP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableType.php new file mode 100644 index 000000000000..92406d4bd856 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableType.php @@ -0,0 +1,69 @@ +google.privacy.dlp.v2.BigQueryTableType + */ +class BigQueryTableType +{ + /** + * Unused. + * + * Generated from protobuf enum BIG_QUERY_TABLE_TYPE_UNSPECIFIED = 0; + */ + const BIG_QUERY_TABLE_TYPE_UNSPECIFIED = 0; + /** + * A normal BigQuery table. + * + * Generated from protobuf enum BIG_QUERY_TABLE_TYPE_TABLE = 1; + */ + const BIG_QUERY_TABLE_TYPE_TABLE = 1; + /** + * A table that references data stored in Cloud Storage. + * + * Generated from protobuf enum BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE = 2; + */ + const BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE = 2; + /** + * A snapshot of a BigQuery table. + * + * Generated from protobuf enum BIG_QUERY_TABLE_TYPE_SNAPSHOT = 3; + */ + const BIG_QUERY_TABLE_TYPE_SNAPSHOT = 3; + + private static $valueToName = [ + self::BIG_QUERY_TABLE_TYPE_UNSPECIFIED => 'BIG_QUERY_TABLE_TYPE_UNSPECIFIED', + self::BIG_QUERY_TABLE_TYPE_TABLE => 'BIG_QUERY_TABLE_TYPE_TABLE', + self::BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE => 'BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE', + self::BIG_QUERY_TABLE_TYPE_SNAPSHOT => 'BIG_QUERY_TABLE_TYPE_SNAPSHOT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypeCollection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypeCollection.php new file mode 100644 index 000000000000..28c960f7cf56 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypeCollection.php @@ -0,0 +1,68 @@ +google.privacy.dlp.v2.BigQueryTableTypeCollection + */ +class BigQueryTableTypeCollection +{ + /** + * Unused. + * + * Generated from protobuf enum BIG_QUERY_COLLECTION_UNSPECIFIED = 0; + */ + const BIG_QUERY_COLLECTION_UNSPECIFIED = 0; + /** + * Automatically generate profiles for all tables, even if the table type is + * not yet fully supported for analysis. Profiles for unsupported tables will + * be generated with errors to indicate their partial support. When full + * support is added, the tables will automatically be profiled during the next + * scheduled run. + * + * Generated from protobuf enum BIG_QUERY_COLLECTION_ALL_TYPES = 1; + */ + const BIG_QUERY_COLLECTION_ALL_TYPES = 1; + /** + * Only those types fully supported will be profiled. Will expand + * automatically as Cloud DLP adds support for new table types. Unsupported + * table types will not have partial profiles generated. + * + * Generated from protobuf enum BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES = 2; + */ + const BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES = 2; + + private static $valueToName = [ + self::BIG_QUERY_COLLECTION_UNSPECIFIED => 'BIG_QUERY_COLLECTION_UNSPECIFIED', + self::BIG_QUERY_COLLECTION_ALL_TYPES => 'BIG_QUERY_COLLECTION_ALL_TYPES', + self::BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES => 'BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypes.php new file mode 100644 index 000000000000..ce0caf2e7f28 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypes.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.BigQueryTableTypes + */ +class BigQueryTableTypes extends \Google\Protobuf\Internal\Message +{ + /** + * A set of BigQuery table types. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableType types = 1; + */ + private $types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int[] $types + * A set of BigQuery table types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A set of BigQuery table types. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableType types = 1; + * @return RepeatedField + */ + public function getTypes() + { + return $this->types; + } + + /** + * A set of BigQuery table types. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableType types = 1; + * @param int[] $var + * @return $this + */ + public function setTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\BigQueryTableType::class); + $this->types = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BoundingBox.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BoundingBox.php new file mode 100644 index 000000000000..2446fc075771 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BoundingBox.php @@ -0,0 +1,169 @@ +google.privacy.dlp.v2.BoundingBox + */ +class BoundingBox extends \Google\Protobuf\Internal\Message +{ + /** + * Top coordinate of the bounding box. (0,0) is upper left. + * + * Generated from protobuf field int32 top = 1; + */ + protected $top = 0; + /** + * Left coordinate of the bounding box. (0,0) is upper left. + * + * Generated from protobuf field int32 left = 2; + */ + protected $left = 0; + /** + * Width of the bounding box in pixels. + * + * Generated from protobuf field int32 width = 3; + */ + protected $width = 0; + /** + * Height of the bounding box in pixels. + * + * Generated from protobuf field int32 height = 4; + */ + protected $height = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $top + * Top coordinate of the bounding box. (0,0) is upper left. + * @type int $left + * Left coordinate of the bounding box. (0,0) is upper left. + * @type int $width + * Width of the bounding box in pixels. + * @type int $height + * Height of the bounding box in pixels. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Top coordinate of the bounding box. (0,0) is upper left. + * + * Generated from protobuf field int32 top = 1; + * @return int + */ + public function getTop() + { + return $this->top; + } + + /** + * Top coordinate of the bounding box. (0,0) is upper left. + * + * Generated from protobuf field int32 top = 1; + * @param int $var + * @return $this + */ + public function setTop($var) + { + GPBUtil::checkInt32($var); + $this->top = $var; + + return $this; + } + + /** + * Left coordinate of the bounding box. (0,0) is upper left. + * + * Generated from protobuf field int32 left = 2; + * @return int + */ + public function getLeft() + { + return $this->left; + } + + /** + * Left coordinate of the bounding box. (0,0) is upper left. + * + * Generated from protobuf field int32 left = 2; + * @param int $var + * @return $this + */ + public function setLeft($var) + { + GPBUtil::checkInt32($var); + $this->left = $var; + + return $this; + } + + /** + * Width of the bounding box in pixels. + * + * Generated from protobuf field int32 width = 3; + * @return int + */ + public function getWidth() + { + return $this->width; + } + + /** + * Width of the bounding box in pixels. + * + * Generated from protobuf field int32 width = 3; + * @param int $var + * @return $this + */ + public function setWidth($var) + { + GPBUtil::checkInt32($var); + $this->width = $var; + + return $this; + } + + /** + * Height of the bounding box in pixels. + * + * Generated from protobuf field int32 height = 4; + * @return int + */ + public function getHeight() + { + return $this->height; + } + + /** + * Height of the bounding box in pixels. + * + * Generated from protobuf field int32 height = 4; + * @param int $var + * @return $this + */ + public function setHeight($var) + { + GPBUtil::checkInt32($var); + $this->height = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig.php new file mode 100644 index 000000000000..d90802f0d85b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig.php @@ -0,0 +1,76 @@ + LOW, 31-65 -> MEDIUM, 66-100 -> HIGH. + * This can be used on data of type: number, long, string, timestamp. + * If the bound `Value` type differs from the type of data being transformed, we + * will first attempt converting the type of the data to be transformed to match + * the type of the bound before comparing. + * See + * https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to + * learn more. + * + * Generated from protobuf message google.privacy.dlp.v2.BucketingConfig + */ +class BucketingConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Set of buckets. Ranges must be non-overlapping. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1; + */ + private $buckets; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\BucketingConfig\Bucket[] $buckets + * Set of buckets. Ranges must be non-overlapping. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Set of buckets. Ranges must be non-overlapping. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\BucketingConfig\Bucket> + */ + public function getBuckets() + { + return $this->buckets; + } + + /** + * Set of buckets. Ranges must be non-overlapping. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1; + * @param \Google\Cloud\Dlp\V2\BucketingConfig\Bucket[] $var + * @return $this + */ + public function setBuckets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\BucketingConfig\Bucket::class); + $this->buckets = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig/Bucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig/Bucket.php new file mode 100644 index 000000000000..a3be310a60f4 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig/Bucket.php @@ -0,0 +1,169 @@ +google.privacy.dlp.v2.BucketingConfig.Bucket + */ +class Bucket extends \Google\Protobuf\Internal\Message +{ + /** + * Lower bound of the range, inclusive. Type should be the same as max if + * used. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value min = 1; + */ + protected $min = null; + /** + * Upper bound of the range, exclusive; type must match min. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value max = 2; + */ + protected $max = null; + /** + * Required. Replacement value for this bucket. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value replacement_value = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $replacement_value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Value $min + * Lower bound of the range, inclusive. Type should be the same as max if + * used. + * @type \Google\Cloud\Dlp\V2\Value $max + * Upper bound of the range, exclusive; type must match min. + * @type \Google\Cloud\Dlp\V2\Value $replacement_value + * Required. Replacement value for this bucket. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Lower bound of the range, inclusive. Type should be the same as max if + * used. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value min = 1; + * @return \Google\Cloud\Dlp\V2\Value|null + */ + public function getMin() + { + return $this->min; + } + + public function hasMin() + { + return isset($this->min); + } + + public function clearMin() + { + unset($this->min); + } + + /** + * Lower bound of the range, inclusive. Type should be the same as max if + * used. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value min = 1; + * @param \Google\Cloud\Dlp\V2\Value $var + * @return $this + */ + public function setMin($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); + $this->min = $var; + + return $this; + } + + /** + * Upper bound of the range, exclusive; type must match min. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value max = 2; + * @return \Google\Cloud\Dlp\V2\Value|null + */ + public function getMax() + { + return $this->max; + } + + public function hasMax() + { + return isset($this->max); + } + + public function clearMax() + { + unset($this->max); + } + + /** + * Upper bound of the range, exclusive; type must match min. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value max = 2; + * @param \Google\Cloud\Dlp\V2\Value $var + * @return $this + */ + public function setMax($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); + $this->max = $var; + + return $this; + } + + /** + * Required. Replacement value for this bucket. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value replacement_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\Value|null + */ + public function getReplacementValue() + { + return $this->replacement_value; + } + + public function hasReplacementValue() + { + return isset($this->replacement_value); + } + + public function clearReplacementValue() + { + unset($this->replacement_value); + } + + /** + * Required. Replacement value for this bucket. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value replacement_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\Value $var + * @return $this + */ + public function setReplacementValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); + $this->replacement_value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem.php new file mode 100644 index 000000000000..5971e92376ab --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem.php @@ -0,0 +1,101 @@ +google.privacy.dlp.v2.ByteContentItem + */ +class ByteContentItem extends \Google\Protobuf\Internal\Message +{ + /** + * The type of data stored in the bytes string. Default will be TEXT_UTF8. + * + * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem.BytesType type = 1; + */ + protected $type = 0; + /** + * Content data to inspect or redact. + * + * Generated from protobuf field bytes data = 2; + */ + protected $data = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * The type of data stored in the bytes string. Default will be TEXT_UTF8. + * @type string $data + * Content data to inspect or redact. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The type of data stored in the bytes string. Default will be TEXT_UTF8. + * + * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem.BytesType type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of data stored in the bytes string. Default will be TEXT_UTF8. + * + * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem.BytesType type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ByteContentItem\BytesType::class); + $this->type = $var; + + return $this; + } + + /** + * Content data to inspect or redact. + * + * Generated from protobuf field bytes data = 2; + * @return string + */ + public function getData() + { + return $this->data; + } + + /** + * Content data to inspect or redact. + * + * Generated from protobuf field bytes data = 2; + * @param string $var + * @return $this + */ + public function setData($var) + { + GPBUtil::checkString($var, False); + $this->data = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem/BytesType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem/BytesType.php new file mode 100644 index 000000000000..859e1ca88f98 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem/BytesType.php @@ -0,0 +1,170 @@ +google.privacy.dlp.v2.ByteContentItem.BytesType + */ +class BytesType +{ + /** + * Unused + * + * Generated from protobuf enum BYTES_TYPE_UNSPECIFIED = 0; + */ + const BYTES_TYPE_UNSPECIFIED = 0; + /** + * Any image type. + * + * Generated from protobuf enum IMAGE = 6; + */ + const IMAGE = 6; + /** + * jpeg + * + * Generated from protobuf enum IMAGE_JPEG = 1; + */ + const IMAGE_JPEG = 1; + /** + * bmp + * + * Generated from protobuf enum IMAGE_BMP = 2; + */ + const IMAGE_BMP = 2; + /** + * png + * + * Generated from protobuf enum IMAGE_PNG = 3; + */ + const IMAGE_PNG = 3; + /** + * svg + * + * Generated from protobuf enum IMAGE_SVG = 4; + */ + const IMAGE_SVG = 4; + /** + * plain text + * + * Generated from protobuf enum TEXT_UTF8 = 5; + */ + const TEXT_UTF8 = 5; + /** + * docx, docm, dotx, dotm + * + * Generated from protobuf enum WORD_DOCUMENT = 7; + */ + const WORD_DOCUMENT = 7; + /** + * pdf + * + * Generated from protobuf enum PDF = 8; + */ + const PDF = 8; + /** + * pptx, pptm, potx, potm, pot + * + * Generated from protobuf enum POWERPOINT_DOCUMENT = 9; + */ + const POWERPOINT_DOCUMENT = 9; + /** + * xlsx, xlsm, xltx, xltm + * + * Generated from protobuf enum EXCEL_DOCUMENT = 10; + */ + const EXCEL_DOCUMENT = 10; + /** + * avro + * + * Generated from protobuf enum AVRO = 11; + */ + const AVRO = 11; + /** + * csv + * + * Generated from protobuf enum CSV = 12; + */ + const CSV = 12; + /** + * tsv + * + * Generated from protobuf enum TSV = 13; + */ + const TSV = 13; + /** + * Audio file types. Only used for profiling. + * + * Generated from protobuf enum AUDIO = 15; + */ + const AUDIO = 15; + /** + * Video file types. Only used for profiling. + * + * Generated from protobuf enum VIDEO = 16; + */ + const VIDEO = 16; + /** + * Executable file types. Only used for profiling. + * + * Generated from protobuf enum EXECUTABLE = 17; + */ + const EXECUTABLE = 17; + /** + * AI model file types. Only used for profiling. + * + * Generated from protobuf enum AI_MODEL = 18; + */ + const AI_MODEL = 18; + + private static $valueToName = [ + self::BYTES_TYPE_UNSPECIFIED => 'BYTES_TYPE_UNSPECIFIED', + self::IMAGE => 'IMAGE', + self::IMAGE_JPEG => 'IMAGE_JPEG', + self::IMAGE_BMP => 'IMAGE_BMP', + self::IMAGE_PNG => 'IMAGE_PNG', + self::IMAGE_SVG => 'IMAGE_SVG', + self::TEXT_UTF8 => 'TEXT_UTF8', + self::WORD_DOCUMENT => 'WORD_DOCUMENT', + self::PDF => 'PDF', + self::POWERPOINT_DOCUMENT => 'POWERPOINT_DOCUMENT', + self::EXCEL_DOCUMENT => 'EXCEL_DOCUMENT', + self::AVRO => 'AVRO', + self::CSV => 'CSV', + self::TSV => 'TSV', + self::AUDIO => 'AUDIO', + self::VIDEO => 'VIDEO', + self::EXECUTABLE => 'EXECUTABLE', + self::AI_MODEL => 'AI_MODEL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CancelDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CancelDlpJobRequest.php new file mode 100644 index 000000000000..3fe3c1e3e85e --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CancelDlpJobRequest.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.CancelDlpJobRequest + */ +class CancelDlpJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the DlpJob resource to be cancelled. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the DlpJob resource to be cancelled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the DlpJob resource to be cancelled. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the DlpJob resource to be cancelled. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharacterMaskConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharacterMaskConfig.php new file mode 100644 index 000000000000..2ebacb51edce --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharacterMaskConfig.php @@ -0,0 +1,266 @@ +google.privacy.dlp.v2.CharacterMaskConfig + */ +class CharacterMaskConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Character to use to mask the sensitive values—for example, `*` for an + * alphabetic string such as a name, or `0` for a numeric string such as ZIP + * code or credit card number. This string must have a length of 1. If not + * supplied, this value defaults to `*` for strings, and `0` for digits. + * + * Generated from protobuf field string masking_character = 1; + */ + protected $masking_character = ''; + /** + * Number of characters to mask. If not set, all matching chars will be + * masked. Skipped characters do not count towards this tally. + * If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP + * masks all but a number of characters. + * For example, suppose you have the following values: + * - `masking_character` is `*` + * - `number_to_mask` is `-4` + * - `reverse_order` is `false` + * - `CharsToIgnore` includes `-` + * - Input string is `1234-5678-9012-3456` + * The resulting de-identified string is + * `****-****-****-3456`. Cloud DLP masks all but the last four characters. + * If `reverse_order` is `true`, all but the first four characters are masked + * as `1234-****-****-****`. + * + * Generated from protobuf field int32 number_to_mask = 2; + */ + protected $number_to_mask = 0; + /** + * Mask characters in reverse order. For example, if `masking_character` is + * `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the + * input string `1234-5678-9012-3456` is masked as `00000000000000-3456`. + * If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order` + * is `true`, then the string `12345` is masked as `12***`. + * + * Generated from protobuf field bool reverse_order = 3; + */ + protected $reverse_order = false; + /** + * When masking a string, items in this list will be skipped when replacing + * characters. For example, if the input string is `555-555-5555` and you + * instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP + * returns `***-**5-5555`. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.CharsToIgnore characters_to_ignore = 4; + */ + private $characters_to_ignore; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $masking_character + * Character to use to mask the sensitive values—for example, `*` for an + * alphabetic string such as a name, or `0` for a numeric string such as ZIP + * code or credit card number. This string must have a length of 1. If not + * supplied, this value defaults to `*` for strings, and `0` for digits. + * @type int $number_to_mask + * Number of characters to mask. If not set, all matching chars will be + * masked. Skipped characters do not count towards this tally. + * If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP + * masks all but a number of characters. + * For example, suppose you have the following values: + * - `masking_character` is `*` + * - `number_to_mask` is `-4` + * - `reverse_order` is `false` + * - `CharsToIgnore` includes `-` + * - Input string is `1234-5678-9012-3456` + * The resulting de-identified string is + * `****-****-****-3456`. Cloud DLP masks all but the last four characters. + * If `reverse_order` is `true`, all but the first four characters are masked + * as `1234-****-****-****`. + * @type bool $reverse_order + * Mask characters in reverse order. For example, if `masking_character` is + * `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the + * input string `1234-5678-9012-3456` is masked as `00000000000000-3456`. + * If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order` + * is `true`, then the string `12345` is masked as `12***`. + * @type \Google\Cloud\Dlp\V2\CharsToIgnore[] $characters_to_ignore + * When masking a string, items in this list will be skipped when replacing + * characters. For example, if the input string is `555-555-5555` and you + * instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP + * returns `***-**5-5555`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Character to use to mask the sensitive values—for example, `*` for an + * alphabetic string such as a name, or `0` for a numeric string such as ZIP + * code or credit card number. This string must have a length of 1. If not + * supplied, this value defaults to `*` for strings, and `0` for digits. + * + * Generated from protobuf field string masking_character = 1; + * @return string + */ + public function getMaskingCharacter() + { + return $this->masking_character; + } + + /** + * Character to use to mask the sensitive values—for example, `*` for an + * alphabetic string such as a name, or `0` for a numeric string such as ZIP + * code or credit card number. This string must have a length of 1. If not + * supplied, this value defaults to `*` for strings, and `0` for digits. + * + * Generated from protobuf field string masking_character = 1; + * @param string $var + * @return $this + */ + public function setMaskingCharacter($var) + { + GPBUtil::checkString($var, True); + $this->masking_character = $var; + + return $this; + } + + /** + * Number of characters to mask. If not set, all matching chars will be + * masked. Skipped characters do not count towards this tally. + * If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP + * masks all but a number of characters. + * For example, suppose you have the following values: + * - `masking_character` is `*` + * - `number_to_mask` is `-4` + * - `reverse_order` is `false` + * - `CharsToIgnore` includes `-` + * - Input string is `1234-5678-9012-3456` + * The resulting de-identified string is + * `****-****-****-3456`. Cloud DLP masks all but the last four characters. + * If `reverse_order` is `true`, all but the first four characters are masked + * as `1234-****-****-****`. + * + * Generated from protobuf field int32 number_to_mask = 2; + * @return int + */ + public function getNumberToMask() + { + return $this->number_to_mask; + } + + /** + * Number of characters to mask. If not set, all matching chars will be + * masked. Skipped characters do not count towards this tally. + * If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP + * masks all but a number of characters. + * For example, suppose you have the following values: + * - `masking_character` is `*` + * - `number_to_mask` is `-4` + * - `reverse_order` is `false` + * - `CharsToIgnore` includes `-` + * - Input string is `1234-5678-9012-3456` + * The resulting de-identified string is + * `****-****-****-3456`. Cloud DLP masks all but the last four characters. + * If `reverse_order` is `true`, all but the first four characters are masked + * as `1234-****-****-****`. + * + * Generated from protobuf field int32 number_to_mask = 2; + * @param int $var + * @return $this + */ + public function setNumberToMask($var) + { + GPBUtil::checkInt32($var); + $this->number_to_mask = $var; + + return $this; + } + + /** + * Mask characters in reverse order. For example, if `masking_character` is + * `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the + * input string `1234-5678-9012-3456` is masked as `00000000000000-3456`. + * If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order` + * is `true`, then the string `12345` is masked as `12***`. + * + * Generated from protobuf field bool reverse_order = 3; + * @return bool + */ + public function getReverseOrder() + { + return $this->reverse_order; + } + + /** + * Mask characters in reverse order. For example, if `masking_character` is + * `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the + * input string `1234-5678-9012-3456` is masked as `00000000000000-3456`. + * If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order` + * is `true`, then the string `12345` is masked as `12***`. + * + * Generated from protobuf field bool reverse_order = 3; + * @param bool $var + * @return $this + */ + public function setReverseOrder($var) + { + GPBUtil::checkBool($var); + $this->reverse_order = $var; + + return $this; + } + + /** + * When masking a string, items in this list will be skipped when replacing + * characters. For example, if the input string is `555-555-5555` and you + * instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP + * returns `***-**5-5555`. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.CharsToIgnore characters_to_ignore = 4; + * @return RepeatedField<\Google\Cloud\Dlp\V2\CharsToIgnore> + */ + public function getCharactersToIgnore() + { + return $this->characters_to_ignore; + } + + /** + * When masking a string, items in this list will be skipped when replacing + * characters. For example, if the input string is `555-555-5555` and you + * instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP + * returns `***-**5-5555`. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.CharsToIgnore characters_to_ignore = 4; + * @param \Google\Cloud\Dlp\V2\CharsToIgnore[] $var + * @return $this + */ + public function setCharactersToIgnore($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\CharsToIgnore::class); + $this->characters_to_ignore = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore.php new file mode 100644 index 000000000000..31f0593c1326 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore.php @@ -0,0 +1,112 @@ +google.privacy.dlp.v2.CharsToIgnore + */ +class CharsToIgnore extends \Google\Protobuf\Internal\Message +{ + protected $characters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $characters_to_skip + * Characters to not transform when masking. + * @type int $common_characters_to_ignore + * Common characters to not transform when masking. Useful to avoid removing + * punctuation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Characters to not transform when masking. + * + * Generated from protobuf field string characters_to_skip = 1; + * @return string + */ + public function getCharactersToSkip() + { + return $this->readOneof(1); + } + + public function hasCharactersToSkip() + { + return $this->hasOneof(1); + } + + /** + * Characters to not transform when masking. + * + * Generated from protobuf field string characters_to_skip = 1; + * @param string $var + * @return $this + */ + public function setCharactersToSkip($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Common characters to not transform when masking. Useful to avoid removing + * punctuation. + * + * Generated from protobuf field .google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore common_characters_to_ignore = 2; + * @return int + */ + public function getCommonCharactersToIgnore() + { + return $this->readOneof(2); + } + + public function hasCommonCharactersToIgnore() + { + return $this->hasOneof(2); + } + + /** + * Common characters to not transform when masking. Useful to avoid removing + * punctuation. + * + * Generated from protobuf field .google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore common_characters_to_ignore = 2; + * @param int $var + * @return $this + */ + public function setCommonCharactersToIgnore($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\CharsToIgnore\CommonCharsToIgnore::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getCharacters() + { + return $this->whichOneof("characters"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore/CommonCharsToIgnore.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore/CommonCharsToIgnore.php new file mode 100644 index 000000000000..875056364b4e --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore/CommonCharsToIgnore.php @@ -0,0 +1,82 @@ +google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore + */ +class CommonCharsToIgnore +{ + /** + * Unused. + * + * Generated from protobuf enum COMMON_CHARS_TO_IGNORE_UNSPECIFIED = 0; + */ + const COMMON_CHARS_TO_IGNORE_UNSPECIFIED = 0; + /** + * 0-9 + * + * Generated from protobuf enum NUMERIC = 1; + */ + const NUMERIC = 1; + /** + * A-Z + * + * Generated from protobuf enum ALPHA_UPPER_CASE = 2; + */ + const ALPHA_UPPER_CASE = 2; + /** + * a-z + * + * Generated from protobuf enum ALPHA_LOWER_CASE = 3; + */ + const ALPHA_LOWER_CASE = 3; + /** + * US Punctuation, one of !"#$%&'()*+,-./:;<=>?\@[\]^_`{|}~ + * + * Generated from protobuf enum PUNCTUATION = 4; + */ + const PUNCTUATION = 4; + /** + * Whitespace character, one of [ \t\n\x0B\f\r] + * + * Generated from protobuf enum WHITESPACE = 5; + */ + const WHITESPACE = 5; + + private static $valueToName = [ + self::COMMON_CHARS_TO_IGNORE_UNSPECIFIED => 'COMMON_CHARS_TO_IGNORE_UNSPECIFIED', + self::NUMERIC => 'NUMERIC', + self::ALPHA_UPPER_CASE => 'ALPHA_UPPER_CASE', + self::ALPHA_LOWER_CASE => 'ALPHA_LOWER_CASE', + self::PUNCTUATION => 'PUNCTUATION', + self::WHITESPACE => 'WHITESPACE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlDiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlDiscoveryTarget.php new file mode 100644 index 000000000000..f38345058c33 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlDiscoveryTarget.php @@ -0,0 +1,210 @@ +google.privacy.dlp.v2.CloudSqlDiscoveryTarget + */ +class CloudSqlDiscoveryTarget extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The tables the discovery cadence applies to. The first target + * with a matching filter will be the one to apply to a table. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $filter = null; + /** + * In addition to matching the filter, these conditions must be true + * before a profile is generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlConditions conditions = 2; + */ + protected $conditions = null; + protected $cadence; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DiscoveryCloudSqlFilter $filter + * Required. The tables the discovery cadence applies to. The first target + * with a matching filter will be the one to apply to a table. + * @type \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions $conditions + * In addition to matching the filter, these conditions must be true + * before a profile is generated. + * @type \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence $generation_cadence + * How often and when to update profiles. New tables that match both the + * filter and conditions are scanned as quickly as possible depending on + * system capacity. + * @type \Google\Cloud\Dlp\V2\Disabled $disabled + * Disable profiling for database resources that match this filter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. The tables the discovery cadence applies to. The first target + * with a matching filter will be the one to apply to a table. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\DiscoveryCloudSqlFilter|null + */ + public function getFilter() + { + return $this->filter; + } + + public function hasFilter() + { + return isset($this->filter); + } + + public function clearFilter() + { + unset($this->filter); + } + + /** + * Required. The tables the discovery cadence applies to. The first target + * with a matching filter will be the one to apply to a table. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\DiscoveryCloudSqlFilter $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlFilter::class); + $this->filter = $var; + + return $this; + } + + /** + * In addition to matching the filter, these conditions must be true + * before a profile is generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlConditions conditions = 2; + * @return \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions|null + */ + public function getConditions() + { + return $this->conditions; + } + + public function hasConditions() + { + return isset($this->conditions); + } + + public function clearConditions() + { + unset($this->conditions); + } + + /** + * In addition to matching the filter, these conditions must be true + * before a profile is generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlConditions conditions = 2; + * @param \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions $var + * @return $this + */ + public function setConditions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions::class); + $this->conditions = $var; + + return $this; + } + + /** + * How often and when to update profiles. New tables that match both the + * filter and conditions are scanned as quickly as possible depending on + * system capacity. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence generation_cadence = 3; + * @return \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence|null + */ + public function getGenerationCadence() + { + return $this->readOneof(3); + } + + public function hasGenerationCadence() + { + return $this->hasOneof(3); + } + + /** + * How often and when to update profiles. New tables that match both the + * filter and conditions are scanned as quickly as possible depending on + * system capacity. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence generation_cadence = 3; + * @param \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence $var + * @return $this + */ + public function setGenerationCadence($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Disable profiling for database resources that match this filter. + * + * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 4; + * @return \Google\Cloud\Dlp\V2\Disabled|null + */ + public function getDisabled() + { + return $this->readOneof(4); + } + + public function hasDisabled() + { + return $this->hasOneof(4); + } + + /** + * Disable profiling for database resources that match this filter. + * + * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 4; + * @param \Google\Cloud\Dlp\V2\Disabled $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Disabled::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getCadence() + { + return $this->whichOneof("cadence"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlIamCredential.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlIamCredential.php new file mode 100644 index 000000000000..d648d88db6d5 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlIamCredential.php @@ -0,0 +1,36 @@ +google.privacy.dlp.v2.CloudSqlIamCredential + */ +class CloudSqlIamCredential extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties.php new file mode 100644 index 000000000000..355617dcdf7b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties.php @@ -0,0 +1,250 @@ +google.privacy.dlp.v2.CloudSqlProperties + */ +class CloudSqlProperties extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Immutable. The Cloud SQL instance for which the connection is + * defined. Only one connection per instance is allowed. This can only be set + * at creation time, and cannot be updated. + * It is an error to use a connection_name from different project or region + * than the one that holds the connection. + * For example, a Connection resource for Cloud SQL connection_name + * `project-id:us-central1:sql-instance` + * must be created under the parent + * `projects/project-id/locations/us-central1` + * + * Generated from protobuf field string connection_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + */ + protected $connection_name = ''; + /** + * Required. The DLP API will limit its connections to max_connections. + * Must be 2 or greater. + * + * Generated from protobuf field int32 max_connections = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $max_connections = 0; + /** + * Required. The database engine used by the Cloud SQL instance that this + * connection configures. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngine database_engine = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $database_engine = 0; + protected $credential; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $connection_name + * Optional. Immutable. The Cloud SQL instance for which the connection is + * defined. Only one connection per instance is allowed. This can only be set + * at creation time, and cannot be updated. + * It is an error to use a connection_name from different project or region + * than the one that holds the connection. + * For example, a Connection resource for Cloud SQL connection_name + * `project-id:us-central1:sql-instance` + * must be created under the parent + * `projects/project-id/locations/us-central1` + * @type \Google\Cloud\Dlp\V2\SecretManagerCredential $username_password + * A username and password stored in Secret Manager. + * @type \Google\Cloud\Dlp\V2\CloudSqlIamCredential $cloud_sql_iam + * Built-in IAM authentication (must be configured in Cloud SQL). + * @type int $max_connections + * Required. The DLP API will limit its connections to max_connections. + * Must be 2 or greater. + * @type int $database_engine + * Required. The database engine used by the Cloud SQL instance that this + * connection configures. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Immutable. The Cloud SQL instance for which the connection is + * defined. Only one connection per instance is allowed. This can only be set + * at creation time, and cannot be updated. + * It is an error to use a connection_name from different project or region + * than the one that holds the connection. + * For example, a Connection resource for Cloud SQL connection_name + * `project-id:us-central1:sql-instance` + * must be created under the parent + * `projects/project-id/locations/us-central1` + * + * Generated from protobuf field string connection_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getConnectionName() + { + return $this->connection_name; + } + + /** + * Optional. Immutable. The Cloud SQL instance for which the connection is + * defined. Only one connection per instance is allowed. This can only be set + * at creation time, and cannot be updated. + * It is an error to use a connection_name from different project or region + * than the one that holds the connection. + * For example, a Connection resource for Cloud SQL connection_name + * `project-id:us-central1:sql-instance` + * must be created under the parent + * `projects/project-id/locations/us-central1` + * + * Generated from protobuf field string connection_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setConnectionName($var) + { + GPBUtil::checkString($var, True); + $this->connection_name = $var; + + return $this; + } + + /** + * A username and password stored in Secret Manager. + * + * Generated from protobuf field .google.privacy.dlp.v2.SecretManagerCredential username_password = 2; + * @return \Google\Cloud\Dlp\V2\SecretManagerCredential|null + */ + public function getUsernamePassword() + { + return $this->readOneof(2); + } + + public function hasUsernamePassword() + { + return $this->hasOneof(2); + } + + /** + * A username and password stored in Secret Manager. + * + * Generated from protobuf field .google.privacy.dlp.v2.SecretManagerCredential username_password = 2; + * @param \Google\Cloud\Dlp\V2\SecretManagerCredential $var + * @return $this + */ + public function setUsernamePassword($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SecretManagerCredential::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Built-in IAM authentication (must be configured in Cloud SQL). + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3; + * @return \Google\Cloud\Dlp\V2\CloudSqlIamCredential|null + */ + public function getCloudSqlIam() + { + return $this->readOneof(3); + } + + public function hasCloudSqlIam() + { + return $this->hasOneof(3); + } + + /** + * Built-in IAM authentication (must be configured in Cloud SQL). + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3; + * @param \Google\Cloud\Dlp\V2\CloudSqlIamCredential $var + * @return $this + */ + public function setCloudSqlIam($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudSqlIamCredential::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Required. The DLP API will limit its connections to max_connections. + * Must be 2 or greater. + * + * Generated from protobuf field int32 max_connections = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMaxConnections() + { + return $this->max_connections; + } + + /** + * Required. The DLP API will limit its connections to max_connections. + * Must be 2 or greater. + * + * Generated from protobuf field int32 max_connections = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMaxConnections($var) + { + GPBUtil::checkInt32($var); + $this->max_connections = $var; + + return $this; + } + + /** + * Required. The database engine used by the Cloud SQL instance that this + * connection configures. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngine database_engine = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getDatabaseEngine() + { + return $this->database_engine; + } + + /** + * Required. The database engine used by the Cloud SQL instance that this + * connection configures. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngine database_engine = 7 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setDatabaseEngine($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\CloudSqlProperties\DatabaseEngine::class); + $this->database_engine = $var; + + return $this; + } + + /** + * @return string + */ + public function getCredential() + { + return $this->whichOneof("credential"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties/DatabaseEngine.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties/DatabaseEngine.php new file mode 100644 index 000000000000..26f4502fcff5 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties/DatabaseEngine.php @@ -0,0 +1,62 @@ +google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngine + */ +class DatabaseEngine +{ + /** + * An engine that is not currently supported by Sensitive Data Protection. + * + * Generated from protobuf enum DATABASE_ENGINE_UNKNOWN = 0; + */ + const DATABASE_ENGINE_UNKNOWN = 0; + /** + * Cloud SQL for MySQL instance. + * + * Generated from protobuf enum DATABASE_ENGINE_MYSQL = 1; + */ + const DATABASE_ENGINE_MYSQL = 1; + /** + * Cloud SQL for PostgreSQL instance. + * + * Generated from protobuf enum DATABASE_ENGINE_POSTGRES = 2; + */ + const DATABASE_ENGINE_POSTGRES = 2; + + private static $valueToName = [ + self::DATABASE_ENGINE_UNKNOWN => 'DATABASE_ENGINE_UNKNOWN', + self::DATABASE_ENGINE_MYSQL => 'DATABASE_ENGINE_MYSQL', + self::DATABASE_ENGINE_POSTGRES => 'DATABASE_ENGINE_POSTGRES', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageDiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageDiscoveryTarget.php new file mode 100644 index 000000000000..b45cac4a310d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageDiscoveryTarget.php @@ -0,0 +1,210 @@ +google.privacy.dlp.v2.CloudStorageDiscoveryTarget + */ +class CloudStorageDiscoveryTarget extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The buckets the generation_cadence applies to. The first target + * with a matching filter will be the one to apply to a bucket. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $filter = null; + /** + * Optional. In addition to matching the filter, these conditions must be true + * before a profile is generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $conditions = null; + protected $cadence; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DiscoveryCloudStorageFilter $filter + * Required. The buckets the generation_cadence applies to. The first target + * with a matching filter will be the one to apply to a bucket. + * @type \Google\Cloud\Dlp\V2\DiscoveryFileStoreConditions $conditions + * Optional. In addition to matching the filter, these conditions must be true + * before a profile is generated. + * @type \Google\Cloud\Dlp\V2\DiscoveryCloudStorageGenerationCadence $generation_cadence + * Optional. How often and when to update profiles. New buckets that match + * both the filter and conditions are scanned as quickly as possible + * depending on system capacity. + * @type \Google\Cloud\Dlp\V2\Disabled $disabled + * Optional. Disable profiling for buckets that match this filter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. The buckets the generation_cadence applies to. The first target + * with a matching filter will be the one to apply to a bucket. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\DiscoveryCloudStorageFilter|null + */ + public function getFilter() + { + return $this->filter; + } + + public function hasFilter() + { + return isset($this->filter); + } + + public function clearFilter() + { + unset($this->filter); + } + + /** + * Required. The buckets the generation_cadence applies to. The first target + * with a matching filter will be the one to apply to a bucket. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\DiscoveryCloudStorageFilter $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudStorageFilter::class); + $this->filter = $var; + + return $this; + } + + /** + * Optional. In addition to matching the filter, these conditions must be true + * before a profile is generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dlp\V2\DiscoveryFileStoreConditions|null + */ + public function getConditions() + { + return $this->conditions; + } + + public function hasConditions() + { + return isset($this->conditions); + } + + public function clearConditions() + { + unset($this->conditions); + } + + /** + * Optional. In addition to matching the filter, these conditions must be true + * before a profile is generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dlp\V2\DiscoveryFileStoreConditions $var + * @return $this + */ + public function setConditions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryFileStoreConditions::class); + $this->conditions = $var; + + return $this; + } + + /** + * Optional. How often and when to update profiles. New buckets that match + * both the filter and conditions are scanned as quickly as possible + * depending on system capacity. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dlp\V2\DiscoveryCloudStorageGenerationCadence|null + */ + public function getGenerationCadence() + { + return $this->readOneof(2); + } + + public function hasGenerationCadence() + { + return $this->hasOneof(2); + } + + /** + * Optional. How often and when to update profiles. New buckets that match + * both the filter and conditions are scanned as quickly as possible + * depending on system capacity. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dlp\V2\DiscoveryCloudStorageGenerationCadence $var + * @return $this + */ + public function setGenerationCadence($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudStorageGenerationCadence::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Optional. Disable profiling for buckets that match this filter. + * + * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dlp\V2\Disabled|null + */ + public function getDisabled() + { + return $this->readOneof(3); + } + + public function hasDisabled() + { + return $this->hasOneof(3); + } + + /** + * Optional. Disable profiling for buckets that match this filter. + * + * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dlp\V2\Disabled $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Disabled::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getCadence() + { + return $this->whichOneof("cadence"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageFileSet.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageFileSet.php new file mode 100644 index 000000000000..385cd1443702 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageFileSet.php @@ -0,0 +1,71 @@ +google.privacy.dlp.v2.CloudStorageFileSet + */ +class CloudStorageFileSet extends \Google\Protobuf\Internal\Message +{ + /** + * The url, in the format `gs:///`. Trailing wildcard in the + * path is allowed. + * + * Generated from protobuf field string url = 1; + */ + protected $url = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $url + * The url, in the format `gs:///`. Trailing wildcard in the + * path is allowed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * The url, in the format `gs:///`. Trailing wildcard in the + * path is allowed. + * + * Generated from protobuf field string url = 1; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * The url, in the format `gs:///`. Trailing wildcard in the + * path is allowed. + * + * Generated from protobuf field string url = 1; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions.php new file mode 100644 index 000000000000..c6d8ee1231d8 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions.php @@ -0,0 +1,332 @@ +google.privacy.dlp.v2.CloudStorageOptions + */ +class CloudStorageOptions extends \Google\Protobuf\Internal\Message +{ + /** + * The set of one or more files to scan. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; + */ + protected $file_set = null; + /** + * Max number of bytes to scan from a file. If a scanned file's size is bigger + * than this value then the rest of the bytes are omitted. Only one of + * `bytes_limit_per_file` and `bytes_limit_per_file_percent` can be specified. + * This field can't be set if de-identification is requested. For certain file + * types, setting this field has no effect. For more information, see [Limits + * on bytes scanned per + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). + * + * Generated from protobuf field int64 bytes_limit_per_file = 4; + */ + protected $bytes_limit_per_file = 0; + /** + * Max percentage of bytes to scan from a file. The rest are omitted. The + * number of bytes scanned is rounded down. Must be between 0 and 100, + * inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of + * bytes_limit_per_file and bytes_limit_per_file_percent can be specified. + * This field can't be set if de-identification is requested. For certain file + * types, setting this field has no effect. For more information, see [Limits + * on bytes scanned per + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). + * + * Generated from protobuf field int32 bytes_limit_per_file_percent = 8; + */ + protected $bytes_limit_per_file_percent = 0; + /** + * List of file type groups to include in the scan. + * If empty, all files are scanned and available data format processors + * are applied. In addition, the binary content of the selected files + * is always scanned as well. + * Images are scanned only as binary if the specified region + * does not support image inspection and no file_types were specified. + * Image inspection is restricted to 'global', 'us', 'asia', and 'europe'. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types = 5; + */ + private $file_types; + /** + * How to sample the data. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; + */ + protected $sample_method = 0; + /** + * Limits the number of files to scan to this percentage of the input FileSet. + * Number of files scanned is rounded down. Must be between 0 and 100, + * inclusively. Both 0 and 100 means no limit. Defaults to 0. + * + * Generated from protobuf field int32 files_limit_percent = 7; + */ + protected $files_limit_percent = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\CloudStorageOptions\FileSet $file_set + * The set of one or more files to scan. + * @type int|string $bytes_limit_per_file + * Max number of bytes to scan from a file. If a scanned file's size is bigger + * than this value then the rest of the bytes are omitted. Only one of + * `bytes_limit_per_file` and `bytes_limit_per_file_percent` can be specified. + * This field can't be set if de-identification is requested. For certain file + * types, setting this field has no effect. For more information, see [Limits + * on bytes scanned per + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). + * @type int $bytes_limit_per_file_percent + * Max percentage of bytes to scan from a file. The rest are omitted. The + * number of bytes scanned is rounded down. Must be between 0 and 100, + * inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of + * bytes_limit_per_file and bytes_limit_per_file_percent can be specified. + * This field can't be set if de-identification is requested. For certain file + * types, setting this field has no effect. For more information, see [Limits + * on bytes scanned per + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). + * @type int[] $file_types + * List of file type groups to include in the scan. + * If empty, all files are scanned and available data format processors + * are applied. In addition, the binary content of the selected files + * is always scanned as well. + * Images are scanned only as binary if the specified region + * does not support image inspection and no file_types were specified. + * Image inspection is restricted to 'global', 'us', 'asia', and 'europe'. + * @type int $sample_method + * How to sample the data. + * @type int $files_limit_percent + * Limits the number of files to scan to this percentage of the input FileSet. + * Number of files scanned is rounded down. Must be between 0 and 100, + * inclusively. Both 0 and 100 means no limit. Defaults to 0. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * The set of one or more files to scan. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; + * @return \Google\Cloud\Dlp\V2\CloudStorageOptions\FileSet|null + */ + public function getFileSet() + { + return $this->file_set; + } + + public function hasFileSet() + { + return isset($this->file_set); + } + + public function clearFileSet() + { + unset($this->file_set); + } + + /** + * The set of one or more files to scan. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; + * @param \Google\Cloud\Dlp\V2\CloudStorageOptions\FileSet $var + * @return $this + */ + public function setFileSet($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageOptions\FileSet::class); + $this->file_set = $var; + + return $this; + } + + /** + * Max number of bytes to scan from a file. If a scanned file's size is bigger + * than this value then the rest of the bytes are omitted. Only one of + * `bytes_limit_per_file` and `bytes_limit_per_file_percent` can be specified. + * This field can't be set if de-identification is requested. For certain file + * types, setting this field has no effect. For more information, see [Limits + * on bytes scanned per + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). + * + * Generated from protobuf field int64 bytes_limit_per_file = 4; + * @return int|string + */ + public function getBytesLimitPerFile() + { + return $this->bytes_limit_per_file; + } + + /** + * Max number of bytes to scan from a file. If a scanned file's size is bigger + * than this value then the rest of the bytes are omitted. Only one of + * `bytes_limit_per_file` and `bytes_limit_per_file_percent` can be specified. + * This field can't be set if de-identification is requested. For certain file + * types, setting this field has no effect. For more information, see [Limits + * on bytes scanned per + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). + * + * Generated from protobuf field int64 bytes_limit_per_file = 4; + * @param int|string $var + * @return $this + */ + public function setBytesLimitPerFile($var) + { + GPBUtil::checkInt64($var); + $this->bytes_limit_per_file = $var; + + return $this; + } + + /** + * Max percentage of bytes to scan from a file. The rest are omitted. The + * number of bytes scanned is rounded down. Must be between 0 and 100, + * inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of + * bytes_limit_per_file and bytes_limit_per_file_percent can be specified. + * This field can't be set if de-identification is requested. For certain file + * types, setting this field has no effect. For more information, see [Limits + * on bytes scanned per + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). + * + * Generated from protobuf field int32 bytes_limit_per_file_percent = 8; + * @return int + */ + public function getBytesLimitPerFilePercent() + { + return $this->bytes_limit_per_file_percent; + } + + /** + * Max percentage of bytes to scan from a file. The rest are omitted. The + * number of bytes scanned is rounded down. Must be between 0 and 100, + * inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of + * bytes_limit_per_file and bytes_limit_per_file_percent can be specified. + * This field can't be set if de-identification is requested. For certain file + * types, setting this field has no effect. For more information, see [Limits + * on bytes scanned per + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). + * + * Generated from protobuf field int32 bytes_limit_per_file_percent = 8; + * @param int $var + * @return $this + */ + public function setBytesLimitPerFilePercent($var) + { + GPBUtil::checkInt32($var); + $this->bytes_limit_per_file_percent = $var; + + return $this; + } + + /** + * List of file type groups to include in the scan. + * If empty, all files are scanned and available data format processors + * are applied. In addition, the binary content of the selected files + * is always scanned as well. + * Images are scanned only as binary if the specified region + * does not support image inspection and no file_types were specified. + * Image inspection is restricted to 'global', 'us', 'asia', and 'europe'. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types = 5; + * @return RepeatedField + */ + public function getFileTypes() + { + return $this->file_types; + } + + /** + * List of file type groups to include in the scan. + * If empty, all files are scanned and available data format processors + * are applied. In addition, the binary content of the selected files + * is always scanned as well. + * Images are scanned only as binary if the specified region + * does not support image inspection and no file_types were specified. + * Image inspection is restricted to 'global', 'us', 'asia', and 'europe'. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types = 5; + * @param int[] $var + * @return $this + */ + public function setFileTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\FileType::class); + $this->file_types = $arr; + + return $this; + } + + /** + * How to sample the data. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; + * @return int + */ + public function getSampleMethod() + { + return $this->sample_method; + } + + /** + * How to sample the data. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; + * @param int $var + * @return $this + */ + public function setSampleMethod($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\CloudStorageOptions\SampleMethod::class); + $this->sample_method = $var; + + return $this; + } + + /** + * Limits the number of files to scan to this percentage of the input FileSet. + * Number of files scanned is rounded down. Must be between 0 and 100, + * inclusively. Both 0 and 100 means no limit. Defaults to 0. + * + * Generated from protobuf field int32 files_limit_percent = 7; + * @return int + */ + public function getFilesLimitPercent() + { + return $this->files_limit_percent; + } + + /** + * Limits the number of files to scan to this percentage of the input FileSet. + * Number of files scanned is rounded down. Must be between 0 and 100, + * inclusively. Both 0 and 100 means no limit. Defaults to 0. + * + * Generated from protobuf field int32 files_limit_percent = 7; + * @param int $var + * @return $this + */ + public function setFilesLimitPercent($var) + { + GPBUtil::checkInt32($var); + $this->files_limit_percent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/FileSet.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/FileSet.php new file mode 100644 index 000000000000..d02877418694 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/FileSet.php @@ -0,0 +1,143 @@ +google.privacy.dlp.v2.CloudStorageOptions.FileSet + */ +class FileSet extends \Google\Protobuf\Internal\Message +{ + /** + * The Cloud Storage url of the file(s) to scan, in the format + * `gs:///`. Trailing wildcard in the path is allowed. + * If the url ends in a trailing slash, the bucket or directory represented + * by the url will be scanned non-recursively (content in sub-directories + * will not be scanned). This means that `gs://mybucket/` is equivalent to + * `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to + * `gs://mybucket/directory/*`. + * Exactly one of `url` or `regex_file_set` must be set. + * + * Generated from protobuf field string url = 1; + */ + protected $url = ''; + /** + * The regex-filtered set of files to scan. Exactly one of `url` or + * `regex_file_set` must be set. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2; + */ + protected $regex_file_set = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $url + * The Cloud Storage url of the file(s) to scan, in the format + * `gs:///`. Trailing wildcard in the path is allowed. + * If the url ends in a trailing slash, the bucket or directory represented + * by the url will be scanned non-recursively (content in sub-directories + * will not be scanned). This means that `gs://mybucket/` is equivalent to + * `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to + * `gs://mybucket/directory/*`. + * Exactly one of `url` or `regex_file_set` must be set. + * @type \Google\Cloud\Dlp\V2\CloudStorageRegexFileSet $regex_file_set + * The regex-filtered set of files to scan. Exactly one of `url` or + * `regex_file_set` must be set. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * The Cloud Storage url of the file(s) to scan, in the format + * `gs:///`. Trailing wildcard in the path is allowed. + * If the url ends in a trailing slash, the bucket or directory represented + * by the url will be scanned non-recursively (content in sub-directories + * will not be scanned). This means that `gs://mybucket/` is equivalent to + * `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to + * `gs://mybucket/directory/*`. + * Exactly one of `url` or `regex_file_set` must be set. + * + * Generated from protobuf field string url = 1; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * The Cloud Storage url of the file(s) to scan, in the format + * `gs:///`. Trailing wildcard in the path is allowed. + * If the url ends in a trailing slash, the bucket or directory represented + * by the url will be scanned non-recursively (content in sub-directories + * will not be scanned). This means that `gs://mybucket/` is equivalent to + * `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to + * `gs://mybucket/directory/*`. + * Exactly one of `url` or `regex_file_set` must be set. + * + * Generated from protobuf field string url = 1; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + + /** + * The regex-filtered set of files to scan. Exactly one of `url` or + * `regex_file_set` must be set. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2; + * @return \Google\Cloud\Dlp\V2\CloudStorageRegexFileSet|null + */ + public function getRegexFileSet() + { + return $this->regex_file_set; + } + + public function hasRegexFileSet() + { + return isset($this->regex_file_set); + } + + public function clearRegexFileSet() + { + unset($this->regex_file_set); + } + + /** + * The regex-filtered set of files to scan. Exactly one of `url` or + * `regex_file_set` must be set. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2; + * @param \Google\Cloud\Dlp\V2\CloudStorageRegexFileSet $var + * @return $this + */ + public function setRegexFileSet($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageRegexFileSet::class); + $this->regex_file_set = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/SampleMethod.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/SampleMethod.php new file mode 100644 index 000000000000..cda362c7e367 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/SampleMethod.php @@ -0,0 +1,64 @@ +google.privacy.dlp.v2.CloudStorageOptions.SampleMethod + */ +class SampleMethod +{ + /** + * No sampling. + * + * Generated from protobuf enum SAMPLE_METHOD_UNSPECIFIED = 0; + */ + const SAMPLE_METHOD_UNSPECIFIED = 0; + /** + * Scan from the top (default). + * + * Generated from protobuf enum TOP = 1; + */ + const TOP = 1; + /** + * For each file larger than bytes_limit_per_file, randomly pick the offset + * to start scanning. The scanned bytes are contiguous. + * + * Generated from protobuf enum RANDOM_START = 2; + */ + const RANDOM_START = 2; + + private static $valueToName = [ + self::SAMPLE_METHOD_UNSPECIFIED => 'SAMPLE_METHOD_UNSPECIFIED', + self::TOP => 'TOP', + self::RANDOM_START => 'RANDOM_START', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStoragePath.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStoragePath.php new file mode 100644 index 000000000000..b012744d2707 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStoragePath.php @@ -0,0 +1,71 @@ +google.privacy.dlp.v2.CloudStoragePath + */ +class CloudStoragePath extends \Google\Protobuf\Internal\Message +{ + /** + * A URL representing a file or path (no wildcards) in Cloud Storage. + * Example: `gs://[BUCKET_NAME]/dictionary.txt` + * + * Generated from protobuf field string path = 1; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $path + * A URL representing a file or path (no wildcards) in Cloud Storage. + * Example: `gs://[BUCKET_NAME]/dictionary.txt` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * A URL representing a file or path (no wildcards) in Cloud Storage. + * Example: `gs://[BUCKET_NAME]/dictionary.txt` + * + * Generated from protobuf field string path = 1; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * A URL representing a file or path (no wildcards) in Cloud Storage. + * Example: `gs://[BUCKET_NAME]/dictionary.txt` + * + * Generated from protobuf field string path = 1; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegex.php new file mode 100644 index 000000000000..0f585f42e294 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegex.php @@ -0,0 +1,112 @@ +google.privacy.dlp.v2.CloudStorageRegex + */ +class CloudStorageRegex extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. For organizations, if unset, will match all projects. + * + * Generated from protobuf field string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $project_id_regex = ''; + /** + * Optional. Regex to test the bucket name against. If empty, all buckets + * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the + * bucket gs://marketing2021 + * + * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $bucket_name_regex = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id_regex + * Optional. For organizations, if unset, will match all projects. + * @type string $bucket_name_regex + * Optional. Regex to test the bucket name against. If empty, all buckets + * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the + * bucket gs://marketing2021 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Optional. For organizations, if unset, will match all projects. + * + * Generated from protobuf field string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getProjectIdRegex() + { + return $this->project_id_regex; + } + + /** + * Optional. For organizations, if unset, will match all projects. + * + * Generated from protobuf field string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setProjectIdRegex($var) + { + GPBUtil::checkString($var, True); + $this->project_id_regex = $var; + + return $this; + } + + /** + * Optional. Regex to test the bucket name against. If empty, all buckets + * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the + * bucket gs://marketing2021 + * + * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getBucketNameRegex() + { + return $this->bucket_name_regex; + } + + /** + * Optional. Regex to test the bucket name against. If empty, all buckets + * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the + * bucket gs://marketing2021 + * + * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setBucketNameRegex($var) + { + GPBUtil::checkString($var, True); + $this->bucket_name_regex = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegexFileSet.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegexFileSet.php new file mode 100644 index 000000000000..8fa4c8ffc20d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegexFileSet.php @@ -0,0 +1,208 @@ +google.privacy.dlp.v2.CloudStorageRegexFileSet + */ +class CloudStorageRegexFileSet extends \Google\Protobuf\Internal\Message +{ + /** + * The name of a Cloud Storage bucket. Required. + * + * Generated from protobuf field string bucket_name = 1; + */ + protected $bucket_name = ''; + /** + * A list of regular expressions matching file paths to include. All files in + * the bucket that match at least one of these regular expressions will be + * included in the set of files, except for those that also match an item in + * `exclude_regex`. Leaving this field empty will match all files by default + * (this is equivalent to including `.*` in the list). + * Regular expressions use RE2 + * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found + * under the google/re2 repository on GitHub. + * + * Generated from protobuf field repeated string include_regex = 2; + */ + private $include_regex; + /** + * A list of regular expressions matching file paths to exclude. All files in + * the bucket that match at least one of these regular expressions will be + * excluded from the scan. + * Regular expressions use RE2 + * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found + * under the google/re2 repository on GitHub. + * + * Generated from protobuf field repeated string exclude_regex = 3; + */ + private $exclude_regex; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $bucket_name + * The name of a Cloud Storage bucket. Required. + * @type string[] $include_regex + * A list of regular expressions matching file paths to include. All files in + * the bucket that match at least one of these regular expressions will be + * included in the set of files, except for those that also match an item in + * `exclude_regex`. Leaving this field empty will match all files by default + * (this is equivalent to including `.*` in the list). + * Regular expressions use RE2 + * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found + * under the google/re2 repository on GitHub. + * @type string[] $exclude_regex + * A list of regular expressions matching file paths to exclude. All files in + * the bucket that match at least one of these regular expressions will be + * excluded from the scan. + * Regular expressions use RE2 + * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found + * under the google/re2 repository on GitHub. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * The name of a Cloud Storage bucket. Required. + * + * Generated from protobuf field string bucket_name = 1; + * @return string + */ + public function getBucketName() + { + return $this->bucket_name; + } + + /** + * The name of a Cloud Storage bucket. Required. + * + * Generated from protobuf field string bucket_name = 1; + * @param string $var + * @return $this + */ + public function setBucketName($var) + { + GPBUtil::checkString($var, True); + $this->bucket_name = $var; + + return $this; + } + + /** + * A list of regular expressions matching file paths to include. All files in + * the bucket that match at least one of these regular expressions will be + * included in the set of files, except for those that also match an item in + * `exclude_regex`. Leaving this field empty will match all files by default + * (this is equivalent to including `.*` in the list). + * Regular expressions use RE2 + * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found + * under the google/re2 repository on GitHub. + * + * Generated from protobuf field repeated string include_regex = 2; + * @return RepeatedField + */ + public function getIncludeRegex() + { + return $this->include_regex; + } + + /** + * A list of regular expressions matching file paths to include. All files in + * the bucket that match at least one of these regular expressions will be + * included in the set of files, except for those that also match an item in + * `exclude_regex`. Leaving this field empty will match all files by default + * (this is equivalent to including `.*` in the list). + * Regular expressions use RE2 + * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found + * under the google/re2 repository on GitHub. + * + * Generated from protobuf field repeated string include_regex = 2; + * @param string[] $var + * @return $this + */ + public function setIncludeRegex($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->include_regex = $arr; + + return $this; + } + + /** + * A list of regular expressions matching file paths to exclude. All files in + * the bucket that match at least one of these regular expressions will be + * excluded from the scan. + * Regular expressions use RE2 + * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found + * under the google/re2 repository on GitHub. + * + * Generated from protobuf field repeated string exclude_regex = 3; + * @return RepeatedField + */ + public function getExcludeRegex() + { + return $this->exclude_regex; + } + + /** + * A list of regular expressions matching file paths to exclude. All files in + * the bucket that match at least one of these regular expressions will be + * excluded from the scan. + * Regular expressions use RE2 + * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found + * under the google/re2 repository on GitHub. + * + * Generated from protobuf field repeated string exclude_regex = 3; + * @param string[] $var + * @return $this + */ + public function setExcludeRegex($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->exclude_regex = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageResourceReference.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageResourceReference.php new file mode 100644 index 000000000000..01dc419436f4 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageResourceReference.php @@ -0,0 +1,105 @@ +google.privacy.dlp.v2.CloudStorageResourceReference + */ +class CloudStorageResourceReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The bucket to scan. + * + * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $bucket_name = ''; + /** + * Required. If within a project-level config, then this must match the + * config's project id. + * + * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $project_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $bucket_name + * Required. The bucket to scan. + * @type string $project_id + * Required. If within a project-level config, then this must match the + * config's project id. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. The bucket to scan. + * + * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getBucketName() + { + return $this->bucket_name; + } + + /** + * Required. The bucket to scan. + * + * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setBucketName($var) + { + GPBUtil::checkString($var, True); + $this->bucket_name = $var; + + return $this; + } + + /** + * Required. If within a project-level config, then this must match the + * config's project id. + * + * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Required. If within a project-level config, then this must match the + * config's project id. + * + * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Color.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Color.php new file mode 100644 index 000000000000..2e54159db64e --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Color.php @@ -0,0 +1,135 @@ +google.privacy.dlp.v2.Color + */ +class Color extends \Google\Protobuf\Internal\Message +{ + /** + * The amount of red in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float red = 1; + */ + protected $red = 0.0; + /** + * The amount of green in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float green = 2; + */ + protected $green = 0.0; + /** + * The amount of blue in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float blue = 3; + */ + protected $blue = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $red + * The amount of red in the color as a value in the interval [0, 1]. + * @type float $green + * The amount of green in the color as a value in the interval [0, 1]. + * @type float $blue + * The amount of blue in the color as a value in the interval [0, 1]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The amount of red in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float red = 1; + * @return float + */ + public function getRed() + { + return $this->red; + } + + /** + * The amount of red in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float red = 1; + * @param float $var + * @return $this + */ + public function setRed($var) + { + GPBUtil::checkFloat($var); + $this->red = $var; + + return $this; + } + + /** + * The amount of green in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float green = 2; + * @return float + */ + public function getGreen() + { + return $this->green; + } + + /** + * The amount of green in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float green = 2; + * @param float $var + * @return $this + */ + public function setGreen($var) + { + GPBUtil::checkFloat($var); + $this->green = $var; + + return $this; + } + + /** + * The amount of blue in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float blue = 3; + * @return float + */ + public function getBlue() + { + return $this->blue; + } + + /** + * The amount of blue in the color as a value in the interval [0, 1]. + * + * Generated from protobuf field float blue = 3; + * @param float $var + * @return $this + */ + public function setBlue($var) + { + GPBUtil::checkFloat($var); + $this->blue = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile.php new file mode 100644 index 000000000000..c5cb44960571 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile.php @@ -0,0 +1,795 @@ +google.privacy.dlp.v2.ColumnDataProfile + */ +class ColumnDataProfile extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the profile. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 17; + */ + protected $profile_status = null; + /** + * State of a profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.State state = 18; + */ + protected $state = 0; + /** + * The last time the profile was generated. + * + * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; + */ + protected $profile_last_generated = null; + /** + * The resource name of the table data profile. + * + * Generated from protobuf field string table_data_profile = 4; + */ + protected $table_data_profile = ''; + /** + * The resource name of the resource this column is within. + * + * Generated from protobuf field string table_full_resource = 5; + */ + protected $table_full_resource = ''; + /** + * The Google Cloud project ID that owns the profiled resource. + * + * Generated from protobuf field string dataset_project_id = 19; + */ + protected $dataset_project_id = ''; + /** + * If supported, the location where the dataset's data is stored. + * See https://cloud.google.com/bigquery/docs/locations for supported + * BigQuery locations. + * + * Generated from protobuf field string dataset_location = 20; + */ + protected $dataset_location = ''; + /** + * The BigQuery dataset ID, if the resource profiled is a BigQuery table. + * + * Generated from protobuf field string dataset_id = 21; + */ + protected $dataset_id = ''; + /** + * The table ID. + * + * Generated from protobuf field string table_id = 22; + */ + protected $table_id = ''; + /** + * The name of the column. + * + * Generated from protobuf field string column = 6; + */ + protected $column = ''; + /** + * The sensitivity of this column. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 7; + */ + protected $sensitivity_score = null; + /** + * The data risk level for this column. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 8; + */ + protected $data_risk_level = null; + /** + * If it's been determined this column can be identified as a single type, + * this will be set. Otherwise the column either has unidentifiable content + * or mixed types. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeSummary column_info_type = 9; + */ + protected $column_info_type = null; + /** + * Other types found within this column. List will be unordered. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_matches = 10; + */ + private $other_matches; + /** + * Approximate percentage of entries being null in the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.NullPercentageLevel estimated_null_percentage = 23; + */ + protected $estimated_null_percentage = 0; + /** + * Approximate uniqueness of the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.UniquenessScoreLevel estimated_uniqueness_score = 24; + */ + protected $estimated_uniqueness_score = 0; + /** + * The likelihood that this column contains free-form text. + * A value close to 1 may indicate the column is likely to contain + * free-form or natural language text. + * Range in 0-1. + * + * Generated from protobuf field double free_text_score = 13; + */ + protected $free_text_score = 0.0; + /** + * The data type of a given column. + * + * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnDataType column_type = 14; + */ + protected $column_type = 0; + /** + * Indicates if a policy tag has been applied to the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState policy_state = 15; + */ + protected $policy_state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the profile. + * @type \Google\Cloud\Dlp\V2\ProfileStatus $profile_status + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + * @type int $state + * State of a profile. + * @type \Google\Protobuf\Timestamp $profile_last_generated + * The last time the profile was generated. + * @type string $table_data_profile + * The resource name of the table data profile. + * @type string $table_full_resource + * The resource name of the resource this column is within. + * @type string $dataset_project_id + * The Google Cloud project ID that owns the profiled resource. + * @type string $dataset_location + * If supported, the location where the dataset's data is stored. + * See https://cloud.google.com/bigquery/docs/locations for supported + * BigQuery locations. + * @type string $dataset_id + * The BigQuery dataset ID, if the resource profiled is a BigQuery table. + * @type string $table_id + * The table ID. + * @type string $column + * The name of the column. + * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score + * The sensitivity of this column. + * @type \Google\Cloud\Dlp\V2\DataRiskLevel $data_risk_level + * The data risk level for this column. + * @type \Google\Cloud\Dlp\V2\InfoTypeSummary $column_info_type + * If it's been determined this column can be identified as a single type, + * this will be set. Otherwise the column either has unidentifiable content + * or mixed types. + * @type \Google\Cloud\Dlp\V2\OtherInfoTypeSummary[] $other_matches + * Other types found within this column. List will be unordered. + * @type int $estimated_null_percentage + * Approximate percentage of entries being null in the column. + * @type int $estimated_uniqueness_score + * Approximate uniqueness of the column. + * @type float $free_text_score + * The likelihood that this column contains free-form text. + * A value close to 1 may indicate the column is likely to contain + * free-form or natural language text. + * Range in 0-1. + * @type int $column_type + * The data type of a given column. + * @type int $policy_state + * Indicates if a policy tag has been applied to the column. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The name of the profile. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the profile. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 17; + * @return \Google\Cloud\Dlp\V2\ProfileStatus|null + */ + public function getProfileStatus() + { + return $this->profile_status; + } + + public function hasProfileStatus() + { + return isset($this->profile_status); + } + + public function clearProfileStatus() + { + unset($this->profile_status); + } + + /** + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 17; + * @param \Google\Cloud\Dlp\V2\ProfileStatus $var + * @return $this + */ + public function setProfileStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProfileStatus::class); + $this->profile_status = $var; + + return $this; + } + + /** + * State of a profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.State state = 18; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * State of a profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.State state = 18; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ColumnDataProfile\State::class); + $this->state = $var; + + return $this; + } + + /** + * The last time the profile was generated. + * + * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getProfileLastGenerated() + { + return $this->profile_last_generated; + } + + public function hasProfileLastGenerated() + { + return isset($this->profile_last_generated); + } + + public function clearProfileLastGenerated() + { + unset($this->profile_last_generated); + } + + /** + * The last time the profile was generated. + * + * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setProfileLastGenerated($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->profile_last_generated = $var; + + return $this; + } + + /** + * The resource name of the table data profile. + * + * Generated from protobuf field string table_data_profile = 4; + * @return string + */ + public function getTableDataProfile() + { + return $this->table_data_profile; + } + + /** + * The resource name of the table data profile. + * + * Generated from protobuf field string table_data_profile = 4; + * @param string $var + * @return $this + */ + public function setTableDataProfile($var) + { + GPBUtil::checkString($var, True); + $this->table_data_profile = $var; + + return $this; + } + + /** + * The resource name of the resource this column is within. + * + * Generated from protobuf field string table_full_resource = 5; + * @return string + */ + public function getTableFullResource() + { + return $this->table_full_resource; + } + + /** + * The resource name of the resource this column is within. + * + * Generated from protobuf field string table_full_resource = 5; + * @param string $var + * @return $this + */ + public function setTableFullResource($var) + { + GPBUtil::checkString($var, True); + $this->table_full_resource = $var; + + return $this; + } + + /** + * The Google Cloud project ID that owns the profiled resource. + * + * Generated from protobuf field string dataset_project_id = 19; + * @return string + */ + public function getDatasetProjectId() + { + return $this->dataset_project_id; + } + + /** + * The Google Cloud project ID that owns the profiled resource. + * + * Generated from protobuf field string dataset_project_id = 19; + * @param string $var + * @return $this + */ + public function setDatasetProjectId($var) + { + GPBUtil::checkString($var, True); + $this->dataset_project_id = $var; + + return $this; + } + + /** + * If supported, the location where the dataset's data is stored. + * See https://cloud.google.com/bigquery/docs/locations for supported + * BigQuery locations. + * + * Generated from protobuf field string dataset_location = 20; + * @return string + */ + public function getDatasetLocation() + { + return $this->dataset_location; + } + + /** + * If supported, the location where the dataset's data is stored. + * See https://cloud.google.com/bigquery/docs/locations for supported + * BigQuery locations. + * + * Generated from protobuf field string dataset_location = 20; + * @param string $var + * @return $this + */ + public function setDatasetLocation($var) + { + GPBUtil::checkString($var, True); + $this->dataset_location = $var; + + return $this; + } + + /** + * The BigQuery dataset ID, if the resource profiled is a BigQuery table. + * + * Generated from protobuf field string dataset_id = 21; + * @return string + */ + public function getDatasetId() + { + return $this->dataset_id; + } + + /** + * The BigQuery dataset ID, if the resource profiled is a BigQuery table. + * + * Generated from protobuf field string dataset_id = 21; + * @param string $var + * @return $this + */ + public function setDatasetId($var) + { + GPBUtil::checkString($var, True); + $this->dataset_id = $var; + + return $this; + } + + /** + * The table ID. + * + * Generated from protobuf field string table_id = 22; + * @return string + */ + public function getTableId() + { + return $this->table_id; + } + + /** + * The table ID. + * + * Generated from protobuf field string table_id = 22; + * @param string $var + * @return $this + */ + public function setTableId($var) + { + GPBUtil::checkString($var, True); + $this->table_id = $var; + + return $this; + } + + /** + * The name of the column. + * + * Generated from protobuf field string column = 6; + * @return string + */ + public function getColumn() + { + return $this->column; + } + + /** + * The name of the column. + * + * Generated from protobuf field string column = 6; + * @param string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkString($var, True); + $this->column = $var; + + return $this; + } + + /** + * The sensitivity of this column. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 7; + * @return \Google\Cloud\Dlp\V2\SensitivityScore|null + */ + public function getSensitivityScore() + { + return $this->sensitivity_score; + } + + public function hasSensitivityScore() + { + return isset($this->sensitivity_score); + } + + public function clearSensitivityScore() + { + unset($this->sensitivity_score); + } + + /** + * The sensitivity of this column. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 7; + * @param \Google\Cloud\Dlp\V2\SensitivityScore $var + * @return $this + */ + public function setSensitivityScore($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); + $this->sensitivity_score = $var; + + return $this; + } + + /** + * The data risk level for this column. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 8; + * @return \Google\Cloud\Dlp\V2\DataRiskLevel|null + */ + public function getDataRiskLevel() + { + return $this->data_risk_level; + } + + public function hasDataRiskLevel() + { + return isset($this->data_risk_level); + } + + public function clearDataRiskLevel() + { + unset($this->data_risk_level); + } + + /** + * The data risk level for this column. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 8; + * @param \Google\Cloud\Dlp\V2\DataRiskLevel $var + * @return $this + */ + public function setDataRiskLevel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataRiskLevel::class); + $this->data_risk_level = $var; + + return $this; + } + + /** + * If it's been determined this column can be identified as a single type, + * this will be set. Otherwise the column either has unidentifiable content + * or mixed types. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeSummary column_info_type = 9; + * @return \Google\Cloud\Dlp\V2\InfoTypeSummary|null + */ + public function getColumnInfoType() + { + return $this->column_info_type; + } + + public function hasColumnInfoType() + { + return isset($this->column_info_type); + } + + public function clearColumnInfoType() + { + unset($this->column_info_type); + } + + /** + * If it's been determined this column can be identified as a single type, + * this will be set. Otherwise the column either has unidentifiable content + * or mixed types. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeSummary column_info_type = 9; + * @param \Google\Cloud\Dlp\V2\InfoTypeSummary $var + * @return $this + */ + public function setColumnInfoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoTypeSummary::class); + $this->column_info_type = $var; + + return $this; + } + + /** + * Other types found within this column. List will be unordered. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_matches = 10; + * @return RepeatedField<\Google\Cloud\Dlp\V2\OtherInfoTypeSummary> + */ + public function getOtherMatches() + { + return $this->other_matches; + } + + /** + * Other types found within this column. List will be unordered. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_matches = 10; + * @param \Google\Cloud\Dlp\V2\OtherInfoTypeSummary[] $var + * @return $this + */ + public function setOtherMatches($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\OtherInfoTypeSummary::class); + $this->other_matches = $arr; + + return $this; + } + + /** + * Approximate percentage of entries being null in the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.NullPercentageLevel estimated_null_percentage = 23; + * @return int + */ + public function getEstimatedNullPercentage() + { + return $this->estimated_null_percentage; + } + + /** + * Approximate percentage of entries being null in the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.NullPercentageLevel estimated_null_percentage = 23; + * @param int $var + * @return $this + */ + public function setEstimatedNullPercentage($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\NullPercentageLevel::class); + $this->estimated_null_percentage = $var; + + return $this; + } + + /** + * Approximate uniqueness of the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.UniquenessScoreLevel estimated_uniqueness_score = 24; + * @return int + */ + public function getEstimatedUniquenessScore() + { + return $this->estimated_uniqueness_score; + } + + /** + * Approximate uniqueness of the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.UniquenessScoreLevel estimated_uniqueness_score = 24; + * @param int $var + * @return $this + */ + public function setEstimatedUniquenessScore($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\UniquenessScoreLevel::class); + $this->estimated_uniqueness_score = $var; + + return $this; + } + + /** + * The likelihood that this column contains free-form text. + * A value close to 1 may indicate the column is likely to contain + * free-form or natural language text. + * Range in 0-1. + * + * Generated from protobuf field double free_text_score = 13; + * @return float + */ + public function getFreeTextScore() + { + return $this->free_text_score; + } + + /** + * The likelihood that this column contains free-form text. + * A value close to 1 may indicate the column is likely to contain + * free-form or natural language text. + * Range in 0-1. + * + * Generated from protobuf field double free_text_score = 13; + * @param float $var + * @return $this + */ + public function setFreeTextScore($var) + { + GPBUtil::checkDouble($var); + $this->free_text_score = $var; + + return $this; + } + + /** + * The data type of a given column. + * + * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnDataType column_type = 14; + * @return int + */ + public function getColumnType() + { + return $this->column_type; + } + + /** + * The data type of a given column. + * + * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnDataType column_type = 14; + * @param int $var + * @return $this + */ + public function setColumnType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ColumnDataProfile\ColumnDataType::class); + $this->column_type = $var; + + return $this; + } + + /** + * Indicates if a policy tag has been applied to the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState policy_state = 15; + * @return int + */ + public function getPolicyState() + { + return $this->policy_state; + } + + /** + * Indicates if a policy tag has been applied to the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState policy_state = 15; + * @param int $var + * @return $this + */ + public function setPolicyState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ColumnDataProfile\ColumnPolicyState::class); + $this->policy_state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnDataType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnDataType.php new file mode 100644 index 000000000000..3d9a60ec79c1 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnDataType.php @@ -0,0 +1,174 @@ +google.privacy.dlp.v2.ColumnDataProfile.ColumnDataType + */ +class ColumnDataType +{ + /** + * Invalid type. + * + * Generated from protobuf enum COLUMN_DATA_TYPE_UNSPECIFIED = 0; + */ + const COLUMN_DATA_TYPE_UNSPECIFIED = 0; + /** + * Encoded as a string in decimal format. + * + * Generated from protobuf enum TYPE_INT64 = 1; + */ + const TYPE_INT64 = 1; + /** + * Encoded as a boolean "false" or "true". + * + * Generated from protobuf enum TYPE_BOOL = 2; + */ + const TYPE_BOOL = 2; + /** + * Encoded as a number, or string "NaN", "Infinity" or "-Infinity". + * + * Generated from protobuf enum TYPE_FLOAT64 = 3; + */ + const TYPE_FLOAT64 = 3; + /** + * Encoded as a string value. + * + * Generated from protobuf enum TYPE_STRING = 4; + */ + const TYPE_STRING = 4; + /** + * Encoded as a base64 string per RFC 4648, section 4. + * + * Generated from protobuf enum TYPE_BYTES = 5; + */ + const TYPE_BYTES = 5; + /** + * Encoded as an RFC 3339 timestamp with mandatory "Z" time zone string: + * 1985-04-12T23:20:50.52Z + * + * Generated from protobuf enum TYPE_TIMESTAMP = 6; + */ + const TYPE_TIMESTAMP = 6; + /** + * Encoded as RFC 3339 full-date format string: 1985-04-12 + * + * Generated from protobuf enum TYPE_DATE = 7; + */ + const TYPE_DATE = 7; + /** + * Encoded as RFC 3339 partial-time format string: 23:20:50.52 + * + * Generated from protobuf enum TYPE_TIME = 8; + */ + const TYPE_TIME = 8; + /** + * Encoded as RFC 3339 full-date "T" partial-time: 1985-04-12T23:20:50.52 + * + * Generated from protobuf enum TYPE_DATETIME = 9; + */ + const TYPE_DATETIME = 9; + /** + * Encoded as WKT + * + * Generated from protobuf enum TYPE_GEOGRAPHY = 10; + */ + const TYPE_GEOGRAPHY = 10; + /** + * Encoded as a decimal string. + * + * Generated from protobuf enum TYPE_NUMERIC = 11; + */ + const TYPE_NUMERIC = 11; + /** + * Container of ordered fields, each with a type and field name. + * + * Generated from protobuf enum TYPE_RECORD = 12; + */ + const TYPE_RECORD = 12; + /** + * Decimal type. + * + * Generated from protobuf enum TYPE_BIGNUMERIC = 13; + */ + const TYPE_BIGNUMERIC = 13; + /** + * Json type. + * + * Generated from protobuf enum TYPE_JSON = 14; + */ + const TYPE_JSON = 14; + /** + * Interval type. + * + * Generated from protobuf enum TYPE_INTERVAL = 15; + */ + const TYPE_INTERVAL = 15; + /** + * `Range` type. + * + * Generated from protobuf enum TYPE_RANGE_DATE = 16; + */ + const TYPE_RANGE_DATE = 16; + /** + * `Range` type. + * + * Generated from protobuf enum TYPE_RANGE_DATETIME = 17; + */ + const TYPE_RANGE_DATETIME = 17; + /** + * `Range` type. + * + * Generated from protobuf enum TYPE_RANGE_TIMESTAMP = 18; + */ + const TYPE_RANGE_TIMESTAMP = 18; + + private static $valueToName = [ + self::COLUMN_DATA_TYPE_UNSPECIFIED => 'COLUMN_DATA_TYPE_UNSPECIFIED', + self::TYPE_INT64 => 'TYPE_INT64', + self::TYPE_BOOL => 'TYPE_BOOL', + self::TYPE_FLOAT64 => 'TYPE_FLOAT64', + self::TYPE_STRING => 'TYPE_STRING', + self::TYPE_BYTES => 'TYPE_BYTES', + self::TYPE_TIMESTAMP => 'TYPE_TIMESTAMP', + self::TYPE_DATE => 'TYPE_DATE', + self::TYPE_TIME => 'TYPE_TIME', + self::TYPE_DATETIME => 'TYPE_DATETIME', + self::TYPE_GEOGRAPHY => 'TYPE_GEOGRAPHY', + self::TYPE_NUMERIC => 'TYPE_NUMERIC', + self::TYPE_RECORD => 'TYPE_RECORD', + self::TYPE_BIGNUMERIC => 'TYPE_BIGNUMERIC', + self::TYPE_JSON => 'TYPE_JSON', + self::TYPE_INTERVAL => 'TYPE_INTERVAL', + self::TYPE_RANGE_DATE => 'TYPE_RANGE_DATE', + self::TYPE_RANGE_DATETIME => 'TYPE_RANGE_DATETIME', + self::TYPE_RANGE_TIMESTAMP => 'TYPE_RANGE_TIMESTAMP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnPolicyState.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnPolicyState.php new file mode 100644 index 000000000000..b68e10b4fa28 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnPolicyState.php @@ -0,0 +1,54 @@ +google.privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState + */ +class ColumnPolicyState +{ + /** + * No policy tags. + * + * Generated from protobuf enum COLUMN_POLICY_STATE_UNSPECIFIED = 0; + */ + const COLUMN_POLICY_STATE_UNSPECIFIED = 0; + /** + * Column has policy tag applied. + * + * Generated from protobuf enum COLUMN_POLICY_TAGGED = 1; + */ + const COLUMN_POLICY_TAGGED = 1; + + private static $valueToName = [ + self::COLUMN_POLICY_STATE_UNSPECIFIED => 'COLUMN_POLICY_STATE_UNSPECIFIED', + self::COLUMN_POLICY_TAGGED => 'COLUMN_POLICY_TAGGED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/State.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/State.php new file mode 100644 index 000000000000..3be19c1c6bb2 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/State.php @@ -0,0 +1,64 @@ +google.privacy.dlp.v2.ColumnDataProfile.State + */ +class State +{ + /** + * Unused. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The profile is currently running. Once a profile has finished it will + * transition to DONE. + * + * Generated from protobuf enum RUNNING = 1; + */ + const RUNNING = 1; + /** + * The profile is no longer generating. + * If profile_status.status.code is 0, the profile succeeded, otherwise, it + * failed. + * + * Generated from protobuf enum DONE = 2; + */ + const DONE = 2; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::RUNNING => 'RUNNING', + self::DONE => 'DONE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Connection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Connection.php new file mode 100644 index 000000000000..30ef40719f85 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Connection.php @@ -0,0 +1,186 @@ +google.privacy.dlp.v2.Connection + */ +class Connection extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the connection: + * `projects/{project}/locations/{location}/connections/{name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Required. The connection's state in its lifecycle. + * + * Generated from protobuf field .google.privacy.dlp.v2.ConnectionState state = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $state = 0; + /** + * Output only. Set if status == ERROR, to provide additional details. Will + * store the last 10 errors sorted with the most recent first. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $errors; + protected $properties; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Name of the connection: + * `projects/{project}/locations/{location}/connections/{name}`. + * @type int $state + * Required. The connection's state in its lifecycle. + * @type \Google\Cloud\Dlp\V2\Error[] $errors + * Output only. Set if status == ERROR, to provide additional details. Will + * store the last 10 errors sorted with the most recent first. + * @type \Google\Cloud\Dlp\V2\CloudSqlProperties $cloud_sql + * Connect to a Cloud SQL instance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Name of the connection: + * `projects/{project}/locations/{location}/connections/{name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Name of the connection: + * `projects/{project}/locations/{location}/connections/{name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The connection's state in its lifecycle. + * + * Generated from protobuf field .google.privacy.dlp.v2.ConnectionState state = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Required. The connection's state in its lifecycle. + * + * Generated from protobuf field .google.privacy.dlp.v2.ConnectionState state = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ConnectionState::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Set if status == ERROR, to provide additional details. Will + * store the last 10 errors sorted with the most recent first. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Error> + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Output only. Set if status == ERROR, to provide additional details. Will + * store the last 10 errors sorted with the most recent first. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dlp\V2\Error[] $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); + $this->errors = $arr; + + return $this; + } + + /** + * Connect to a Cloud SQL instance. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4; + * @return \Google\Cloud\Dlp\V2\CloudSqlProperties|null + */ + public function getCloudSql() + { + return $this->readOneof(4); + } + + public function hasCloudSql() + { + return $this->hasOneof(4); + } + + /** + * Connect to a Cloud SQL instance. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4; + * @param \Google\Cloud\Dlp\V2\CloudSqlProperties $var + * @return $this + */ + public function setCloudSql($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudSqlProperties::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getProperties() + { + return $this->whichOneof("properties"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ConnectionState.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ConnectionState.php new file mode 100644 index 000000000000..a3ce7181d724 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ConnectionState.php @@ -0,0 +1,75 @@ +google.privacy.dlp.v2.ConnectionState + */ +class ConnectionState +{ + /** + * Unused + * + * Generated from protobuf enum CONNECTION_STATE_UNSPECIFIED = 0; + */ + const CONNECTION_STATE_UNSPECIFIED = 0; + /** + * The DLP API automatically created this connection during an initial scan, + * and it is awaiting full configuration by a user. + * + * Generated from protobuf enum MISSING_CREDENTIALS = 1; + */ + const MISSING_CREDENTIALS = 1; + /** + * A configured connection that has not encountered any errors. + * + * Generated from protobuf enum AVAILABLE = 2; + */ + const AVAILABLE = 2; + /** + * A configured connection that encountered errors during its last use. It + * will not be used again until it is set to AVAILABLE. + * If the resolution requires external action, then the client must send a + * request to set the status to AVAILABLE when the connection is ready for + * use. If the resolution doesn't require external action, then any changes to + * the connection properties will automatically mark it as AVAILABLE. + * + * Generated from protobuf enum ERROR = 3; + */ + const ERROR = 3; + + private static $valueToName = [ + self::CONNECTION_STATE_UNSPECIFIED => 'CONNECTION_STATE_UNSPECIFIED', + self::MISSING_CREDENTIALS => 'MISSING_CREDENTIALS', + self::AVAILABLE => 'AVAILABLE', + self::ERROR => 'ERROR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Container.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Container.php new file mode 100644 index 000000000000..8df32079291c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Container.php @@ -0,0 +1,354 @@ +google.privacy.dlp.v2.Container + */ +class Container extends \Google\Protobuf\Internal\Message +{ + /** + * Container type, for example BigQuery or Cloud Storage. + * + * Generated from protobuf field string type = 1; + */ + protected $type = ''; + /** + * Project where the finding was found. + * Can be different from the project that owns the finding. + * + * Generated from protobuf field string project_id = 2; + */ + protected $project_id = ''; + /** + * A string representation of the full container name. + * Examples: + * - BigQuery: 'Project:DataSetId.TableId' + * - Cloud Storage: 'gs://Bucket/folders/filename.txt' + * + * Generated from protobuf field string full_path = 3; + */ + protected $full_path = ''; + /** + * The root of the container. + * Examples: + * - For BigQuery table `project_id:dataset_id.table_id`, the root is + * `dataset_id` + * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root + * is `gs://bucket` + * + * Generated from protobuf field string root_path = 4; + */ + protected $root_path = ''; + /** + * The rest of the path after the root. + * Examples: + * - For BigQuery table `project_id:dataset_id.table_id`, the relative path is + * `table_id` + * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative + * path is `folder/filename.txt` + * + * Generated from protobuf field string relative_path = 5; + */ + protected $relative_path = ''; + /** + * Findings container modification timestamp, if applicable. For Cloud + * Storage, this field contains the last file modification timestamp. For a + * BigQuery table, this field contains the last_modified_time property. For + * Datastore, this field isn't populated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; + */ + protected $update_time = null; + /** + * Findings container version, if available + * ("generation" for Cloud Storage). + * + * Generated from protobuf field string version = 7; + */ + protected $version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * Container type, for example BigQuery or Cloud Storage. + * @type string $project_id + * Project where the finding was found. + * Can be different from the project that owns the finding. + * @type string $full_path + * A string representation of the full container name. + * Examples: + * - BigQuery: 'Project:DataSetId.TableId' + * - Cloud Storage: 'gs://Bucket/folders/filename.txt' + * @type string $root_path + * The root of the container. + * Examples: + * - For BigQuery table `project_id:dataset_id.table_id`, the root is + * `dataset_id` + * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root + * is `gs://bucket` + * @type string $relative_path + * The rest of the path after the root. + * Examples: + * - For BigQuery table `project_id:dataset_id.table_id`, the relative path is + * `table_id` + * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative + * path is `folder/filename.txt` + * @type \Google\Protobuf\Timestamp $update_time + * Findings container modification timestamp, if applicable. For Cloud + * Storage, this field contains the last file modification timestamp. For a + * BigQuery table, this field contains the last_modified_time property. For + * Datastore, this field isn't populated. + * @type string $version + * Findings container version, if available + * ("generation" for Cloud Storage). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Container type, for example BigQuery or Cloud Storage. + * + * Generated from protobuf field string type = 1; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Container type, for example BigQuery or Cloud Storage. + * + * Generated from protobuf field string type = 1; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Project where the finding was found. + * Can be different from the project that owns the finding. + * + * Generated from protobuf field string project_id = 2; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Project where the finding was found. + * Can be different from the project that owns the finding. + * + * Generated from protobuf field string project_id = 2; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * A string representation of the full container name. + * Examples: + * - BigQuery: 'Project:DataSetId.TableId' + * - Cloud Storage: 'gs://Bucket/folders/filename.txt' + * + * Generated from protobuf field string full_path = 3; + * @return string + */ + public function getFullPath() + { + return $this->full_path; + } + + /** + * A string representation of the full container name. + * Examples: + * - BigQuery: 'Project:DataSetId.TableId' + * - Cloud Storage: 'gs://Bucket/folders/filename.txt' + * + * Generated from protobuf field string full_path = 3; + * @param string $var + * @return $this + */ + public function setFullPath($var) + { + GPBUtil::checkString($var, True); + $this->full_path = $var; + + return $this; + } + + /** + * The root of the container. + * Examples: + * - For BigQuery table `project_id:dataset_id.table_id`, the root is + * `dataset_id` + * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root + * is `gs://bucket` + * + * Generated from protobuf field string root_path = 4; + * @return string + */ + public function getRootPath() + { + return $this->root_path; + } + + /** + * The root of the container. + * Examples: + * - For BigQuery table `project_id:dataset_id.table_id`, the root is + * `dataset_id` + * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root + * is `gs://bucket` + * + * Generated from protobuf field string root_path = 4; + * @param string $var + * @return $this + */ + public function setRootPath($var) + { + GPBUtil::checkString($var, True); + $this->root_path = $var; + + return $this; + } + + /** + * The rest of the path after the root. + * Examples: + * - For BigQuery table `project_id:dataset_id.table_id`, the relative path is + * `table_id` + * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative + * path is `folder/filename.txt` + * + * Generated from protobuf field string relative_path = 5; + * @return string + */ + public function getRelativePath() + { + return $this->relative_path; + } + + /** + * The rest of the path after the root. + * Examples: + * - For BigQuery table `project_id:dataset_id.table_id`, the relative path is + * `table_id` + * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative + * path is `folder/filename.txt` + * + * Generated from protobuf field string relative_path = 5; + * @param string $var + * @return $this + */ + public function setRelativePath($var) + { + GPBUtil::checkString($var, True); + $this->relative_path = $var; + + return $this; + } + + /** + * Findings container modification timestamp, if applicable. For Cloud + * Storage, this field contains the last file modification timestamp. For a + * BigQuery table, this field contains the last_modified_time property. For + * Datastore, this field isn't populated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Findings container modification timestamp, if applicable. For Cloud + * Storage, this field contains the last file modification timestamp. For a + * BigQuery table, this field contains the last_modified_time property. For + * Datastore, this field isn't populated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Findings container version, if available + * ("generation" for Cloud Storage). + * + * Generated from protobuf field string version = 7; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Findings container version, if available + * ("generation" for Cloud Storage). + * + * Generated from protobuf field string version = 7; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentItem.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentItem.php new file mode 100644 index 000000000000..fc1b431347ee --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentItem.php @@ -0,0 +1,191 @@ +google.privacy.dlp.v2.ContentItem + */ +class ContentItem extends \Google\Protobuf\Internal\Message +{ + /** + * User provided metadata for the content. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentMetadata content_metadata = 6; + */ + protected $content_metadata = null; + protected $data_item; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $value + * String data to inspect or redact. + * @type \Google\Cloud\Dlp\V2\Table $table + * Structured content for inspection. See + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table + * to learn more. + * @type \Google\Cloud\Dlp\V2\ByteContentItem $byte_item + * Content data to inspect or redact. Replaces `type` and `data`. + * @type \Google\Cloud\Dlp\V2\ContentMetadata $content_metadata + * User provided metadata for the content. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * String data to inspect or redact. + * + * Generated from protobuf field string value = 3; + * @return string + */ + public function getValue() + { + return $this->readOneof(3); + } + + public function hasValue() + { + return $this->hasOneof(3); + } + + /** + * String data to inspect or redact. + * + * Generated from protobuf field string value = 3; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Structured content for inspection. See + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table + * to learn more. + * + * Generated from protobuf field .google.privacy.dlp.v2.Table table = 4; + * @return \Google\Cloud\Dlp\V2\Table|null + */ + public function getTable() + { + return $this->readOneof(4); + } + + public function hasTable() + { + return $this->hasOneof(4); + } + + /** + * Structured content for inspection. See + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table + * to learn more. + * + * Generated from protobuf field .google.privacy.dlp.v2.Table table = 4; + * @param \Google\Cloud\Dlp\V2\Table $var + * @return $this + */ + public function setTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Table::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Content data to inspect or redact. Replaces `type` and `data`. + * + * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem byte_item = 5; + * @return \Google\Cloud\Dlp\V2\ByteContentItem|null + */ + public function getByteItem() + { + return $this->readOneof(5); + } + + public function hasByteItem() + { + return $this->hasOneof(5); + } + + /** + * Content data to inspect or redact. Replaces `type` and `data`. + * + * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem byte_item = 5; + * @param \Google\Cloud\Dlp\V2\ByteContentItem $var + * @return $this + */ + public function setByteItem($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ByteContentItem::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * User provided metadata for the content. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentMetadata content_metadata = 6; + * @return \Google\Cloud\Dlp\V2\ContentMetadata|null + */ + public function getContentMetadata() + { + return $this->content_metadata; + } + + public function hasContentMetadata() + { + return isset($this->content_metadata); + } + + public function clearContentMetadata() + { + unset($this->content_metadata); + } + + /** + * User provided metadata for the content. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentMetadata content_metadata = 6; + * @param \Google\Cloud\Dlp\V2\ContentMetadata $var + * @return $this + */ + public function setContentMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentMetadata::class); + $this->content_metadata = $var; + + return $this; + } + + /** + * @return string + */ + public function getDataItem() + { + return $this->whichOneof("data_item"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentLocation.php new file mode 100644 index 000000000000..faa125d4a0ac --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentLocation.php @@ -0,0 +1,331 @@ +google.privacy.dlp.v2.ContentLocation + */ +class ContentLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the container where the finding is located. + * The top level name is the source file name or table name. Names of some + * common storage containers are formatted as follows: + * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` + * * Cloud Storage files: `gs://{bucket}/{path}` + * * Datastore namespace: {namespace} + * Nested names could be absent if the embedded object has no string + * identifier (for example, an image contained within a document). + * + * Generated from protobuf field string container_name = 1; + */ + protected $container_name = ''; + /** + * Finding container modification timestamp, if applicable. For Cloud Storage, + * this field contains the last file modification timestamp. For a BigQuery + * table, this field contains the last_modified_time property. For Datastore, + * this field isn't populated. + * + * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 6; + */ + protected $container_timestamp = null; + /** + * Finding container version, if available + * ("generation" for Cloud Storage). + * + * Generated from protobuf field string container_version = 7; + */ + protected $container_version = ''; + protected $location; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $container_name + * Name of the container where the finding is located. + * The top level name is the source file name or table name. Names of some + * common storage containers are formatted as follows: + * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` + * * Cloud Storage files: `gs://{bucket}/{path}` + * * Datastore namespace: {namespace} + * Nested names could be absent if the embedded object has no string + * identifier (for example, an image contained within a document). + * @type \Google\Cloud\Dlp\V2\RecordLocation $record_location + * Location within a row or record of a database table. + * @type \Google\Cloud\Dlp\V2\ImageLocation $image_location + * Location within an image's pixels. + * @type \Google\Cloud\Dlp\V2\DocumentLocation $document_location + * Location data for document files. + * @type \Google\Cloud\Dlp\V2\MetadataLocation $metadata_location + * Location within the metadata for inspected content. + * @type \Google\Protobuf\Timestamp $container_timestamp + * Finding container modification timestamp, if applicable. For Cloud Storage, + * this field contains the last file modification timestamp. For a BigQuery + * table, this field contains the last_modified_time property. For Datastore, + * this field isn't populated. + * @type string $container_version + * Finding container version, if available + * ("generation" for Cloud Storage). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Name of the container where the finding is located. + * The top level name is the source file name or table name. Names of some + * common storage containers are formatted as follows: + * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` + * * Cloud Storage files: `gs://{bucket}/{path}` + * * Datastore namespace: {namespace} + * Nested names could be absent if the embedded object has no string + * identifier (for example, an image contained within a document). + * + * Generated from protobuf field string container_name = 1; + * @return string + */ + public function getContainerName() + { + return $this->container_name; + } + + /** + * Name of the container where the finding is located. + * The top level name is the source file name or table name. Names of some + * common storage containers are formatted as follows: + * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` + * * Cloud Storage files: `gs://{bucket}/{path}` + * * Datastore namespace: {namespace} + * Nested names could be absent if the embedded object has no string + * identifier (for example, an image contained within a document). + * + * Generated from protobuf field string container_name = 1; + * @param string $var + * @return $this + */ + public function setContainerName($var) + { + GPBUtil::checkString($var, True); + $this->container_name = $var; + + return $this; + } + + /** + * Location within a row or record of a database table. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordLocation record_location = 2; + * @return \Google\Cloud\Dlp\V2\RecordLocation|null + */ + public function getRecordLocation() + { + return $this->readOneof(2); + } + + public function hasRecordLocation() + { + return $this->hasOneof(2); + } + + /** + * Location within a row or record of a database table. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordLocation record_location = 2; + * @param \Google\Cloud\Dlp\V2\RecordLocation $var + * @return $this + */ + public function setRecordLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordLocation::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Location within an image's pixels. + * + * Generated from protobuf field .google.privacy.dlp.v2.ImageLocation image_location = 3; + * @return \Google\Cloud\Dlp\V2\ImageLocation|null + */ + public function getImageLocation() + { + return $this->readOneof(3); + } + + public function hasImageLocation() + { + return $this->hasOneof(3); + } + + /** + * Location within an image's pixels. + * + * Generated from protobuf field .google.privacy.dlp.v2.ImageLocation image_location = 3; + * @param \Google\Cloud\Dlp\V2\ImageLocation $var + * @return $this + */ + public function setImageLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageLocation::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Location data for document files. + * + * Generated from protobuf field .google.privacy.dlp.v2.DocumentLocation document_location = 5; + * @return \Google\Cloud\Dlp\V2\DocumentLocation|null + */ + public function getDocumentLocation() + { + return $this->readOneof(5); + } + + public function hasDocumentLocation() + { + return $this->hasOneof(5); + } + + /** + * Location data for document files. + * + * Generated from protobuf field .google.privacy.dlp.v2.DocumentLocation document_location = 5; + * @param \Google\Cloud\Dlp\V2\DocumentLocation $var + * @return $this + */ + public function setDocumentLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DocumentLocation::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Location within the metadata for inspected content. + * + * Generated from protobuf field .google.privacy.dlp.v2.MetadataLocation metadata_location = 8; + * @return \Google\Cloud\Dlp\V2\MetadataLocation|null + */ + public function getMetadataLocation() + { + return $this->readOneof(8); + } + + public function hasMetadataLocation() + { + return $this->hasOneof(8); + } + + /** + * Location within the metadata for inspected content. + * + * Generated from protobuf field .google.privacy.dlp.v2.MetadataLocation metadata_location = 8; + * @param \Google\Cloud\Dlp\V2\MetadataLocation $var + * @return $this + */ + public function setMetadataLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\MetadataLocation::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Finding container modification timestamp, if applicable. For Cloud Storage, + * this field contains the last file modification timestamp. For a BigQuery + * table, this field contains the last_modified_time property. For Datastore, + * this field isn't populated. + * + * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 6; + * @return \Google\Protobuf\Timestamp|null + */ + public function getContainerTimestamp() + { + return $this->container_timestamp; + } + + public function hasContainerTimestamp() + { + return isset($this->container_timestamp); + } + + public function clearContainerTimestamp() + { + unset($this->container_timestamp); + } + + /** + * Finding container modification timestamp, if applicable. For Cloud Storage, + * this field contains the last file modification timestamp. For a BigQuery + * table, this field contains the last_modified_time property. For Datastore, + * this field isn't populated. + * + * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 6; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setContainerTimestamp($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->container_timestamp = $var; + + return $this; + } + + /** + * Finding container version, if available + * ("generation" for Cloud Storage). + * + * Generated from protobuf field string container_version = 7; + * @return string + */ + public function getContainerVersion() + { + return $this->container_version; + } + + /** + * Finding container version, if available + * ("generation" for Cloud Storage). + * + * Generated from protobuf field string container_version = 7; + * @param string $var + * @return $this + */ + public function setContainerVersion($var) + { + GPBUtil::checkString($var, True); + $this->container_version = $var; + + return $this; + } + + /** + * @return string + */ + public function getLocation() + { + return $this->whichOneof("location"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentMetadata.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentMetadata.php new file mode 100644 index 000000000000..ad2df65e254e --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentMetadata.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.ContentMetadata + */ +class ContentMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * User provided key-value pairs of content metadata. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.KeyValueMetadataProperty properties = 2; + */ + private $properties; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\KeyValueMetadataProperty[] $properties + * User provided key-value pairs of content metadata. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * User provided key-value pairs of content metadata. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.KeyValueMetadataProperty properties = 2; + * @return RepeatedField<\Google\Cloud\Dlp\V2\KeyValueMetadataProperty> + */ + public function getProperties() + { + return $this->properties; + } + + /** + * User provided key-value pairs of content metadata. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.KeyValueMetadataProperty properties = 2; + * @param \Google\Cloud\Dlp\V2\KeyValueMetadataProperty[] $var + * @return $this + */ + public function setProperties($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\KeyValueMetadataProperty::class); + $this->properties = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentOption.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentOption.php new file mode 100644 index 000000000000..69a85fe92312 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentOption.php @@ -0,0 +1,61 @@ +google.privacy.dlp.v2.ContentOption + */ +class ContentOption +{ + /** + * Includes entire content of a file or a data stream. + * + * Generated from protobuf enum CONTENT_UNSPECIFIED = 0; + */ + const CONTENT_UNSPECIFIED = 0; + /** + * Text content within the data, excluding any metadata. + * + * Generated from protobuf enum CONTENT_TEXT = 1; + */ + const CONTENT_TEXT = 1; + /** + * Images found in the data. + * + * Generated from protobuf enum CONTENT_IMAGE = 2; + */ + const CONTENT_IMAGE = 2; + + private static $valueToName = [ + self::CONTENT_UNSPECIFIED => 'CONTENT_UNSPECIFIED', + self::CONTENT_TEXT => 'CONTENT_TEXT', + self::CONTENT_IMAGE => 'CONTENT_IMAGE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateConnectionRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateConnectionRequest.php new file mode 100644 index 000000000000..5ea388269fd3 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateConnectionRequest.php @@ -0,0 +1,159 @@ +google.privacy.dlp.v2.CreateConnectionRequest + */ +class CreateConnectionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization): + * + Projects scope: + * `projects/{project_id}/locations/{location_id}` + * + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The connection resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $connection = null; + + /** + * @param string $parent Required. Parent resource name. + * + * The format of this value varies depending on the scope of the request + * (project or organization): + * + * + Projects scope: + * `projects/{project_id}/locations/{location_id}` + * + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` + * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. + * @param \Google\Cloud\Dlp\V2\Connection $connection Required. The connection resource. + * + * @return \Google\Cloud\Dlp\V2\CreateConnectionRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dlp\V2\Connection $connection): self + { + return (new self()) + ->setParent($parent) + ->setConnection($connection); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization): + * + Projects scope: + * `projects/{project_id}/locations/{location_id}` + * + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` + * @type \Google\Cloud\Dlp\V2\Connection $connection + * Required. The connection resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization): + * + Projects scope: + * `projects/{project_id}/locations/{location_id}` + * + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization): + * + Projects scope: + * `projects/{project_id}/locations/{location_id}` + * + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The connection resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\Connection|null + */ + public function getConnection() + { + return $this->connection; + } + + public function hasConnection() + { + return isset($this->connection); + } + + public function clearConnection() + { + unset($this->connection); + } + + /** + * Required. The connection resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\Connection $var + * @return $this + */ + public function setConnection($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Connection::class); + $this->connection = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDeidentifyTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDeidentifyTemplateRequest.php new file mode 100644 index 000000000000..d1818024b004 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDeidentifyTemplateRequest.php @@ -0,0 +1,286 @@ +google.privacy.dlp.v2.CreateDeidentifyTemplateRequest + */ +class CreateDeidentifyTemplateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The DeidentifyTemplate to create. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $deidentify_template = null; + /** + * The template id can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string template_id = 3; + */ + protected $template_id = ''; + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 4; + */ + protected $location_id = ''; + + /** + * @param string $parent Required. Parent resource name. + * + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * + * parent=projects/example-project/locations/europe-west3 + * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. + * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentifyTemplate Required. The DeidentifyTemplate to create. + * + * @return \Google\Cloud\Dlp\V2\CreateDeidentifyTemplateRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentifyTemplate): self + { + return (new self()) + ->setParent($parent) + ->setDeidentifyTemplate($deidentifyTemplate); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentify_template + * Required. The DeidentifyTemplate to create. + * @type string $template_id + * The template id can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * @type string $location_id + * Deprecated. This field has no effect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The DeidentifyTemplate to create. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\DeidentifyTemplate|null + */ + public function getDeidentifyTemplate() + { + return $this->deidentify_template; + } + + public function hasDeidentifyTemplate() + { + return isset($this->deidentify_template); + } + + public function clearDeidentifyTemplate() + { + unset($this->deidentify_template); + } + + /** + * Required. The DeidentifyTemplate to create. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $var + * @return $this + */ + public function setDeidentifyTemplate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); + $this->deidentify_template = $var; + + return $this; + } + + /** + * The template id can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string template_id = 3; + * @return string + */ + public function getTemplateId() + { + return $this->template_id; + } + + /** + * The template id can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string template_id = 3; + * @param string $var + * @return $this + */ + public function setTemplateId($var) + { + GPBUtil::checkString($var, True); + $this->template_id = $var; + + return $this; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 4; + * @return string + */ + public function getLocationId() + { + return $this->location_id; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 4; + * @param string $var + * @return $this + */ + public function setLocationId($var) + { + GPBUtil::checkString($var, True); + $this->location_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDiscoveryConfigRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDiscoveryConfigRequest.php new file mode 100644 index 000000000000..8aa1707eddc2 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDiscoveryConfigRequest.php @@ -0,0 +1,227 @@ +google.privacy.dlp.v2.CreateDiscoveryConfigRequest + */ +class CreateDiscoveryConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization): + * + Projects scope: + * `projects/{project_id}/locations/{location_id}` + * + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The DiscoveryConfig to create. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $discovery_config = null; + /** + * The config ID can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string config_id = 3; + */ + protected $config_id = ''; + + /** + * @param string $parent Required. Parent resource name. + * + * The format of this value varies depending on the scope of the request + * (project or organization): + * + * + Projects scope: + * `projects/{project_id}/locations/{location_id}` + * + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` + * + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * + * parent=projects/example-project/locations/europe-west3 + * Please see {@see DlpServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dlp\V2\DiscoveryConfig $discoveryConfig Required. The DiscoveryConfig to create. + * + * @return \Google\Cloud\Dlp\V2\CreateDiscoveryConfigRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dlp\V2\DiscoveryConfig $discoveryConfig): self + { + return (new self()) + ->setParent($parent) + ->setDiscoveryConfig($discoveryConfig); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization): + * + Projects scope: + * `projects/{project_id}/locations/{location_id}` + * + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * @type \Google\Cloud\Dlp\V2\DiscoveryConfig $discovery_config + * Required. The DiscoveryConfig to create. + * @type string $config_id + * The config ID can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization): + * + Projects scope: + * `projects/{project_id}/locations/{location_id}` + * + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization): + * + Projects scope: + * `projects/{project_id}/locations/{location_id}` + * + Organizations scope: + * `organizations/{org_id}/locations/{location_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The DiscoveryConfig to create. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\DiscoveryConfig|null + */ + public function getDiscoveryConfig() + { + return $this->discovery_config; + } + + public function hasDiscoveryConfig() + { + return isset($this->discovery_config); + } + + public function clearDiscoveryConfig() + { + unset($this->discovery_config); + } + + /** + * Required. The DiscoveryConfig to create. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\DiscoveryConfig $var + * @return $this + */ + public function setDiscoveryConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryConfig::class); + $this->discovery_config = $var; + + return $this; + } + + /** + * The config ID can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string config_id = 3; + * @return string + */ + public function getConfigId() + { + return $this->config_id; + } + + /** + * The config ID can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string config_id = 3; + * @param string $var + * @return $this + */ + public function setConfigId($var) + { + GPBUtil::checkString($var, True); + $this->config_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDlpJobRequest.php new file mode 100644 index 000000000000..4213921e762a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDlpJobRequest.php @@ -0,0 +1,334 @@ +google.privacy.dlp.v2.CreateDlpJobRequest + */ +class CreateDlpJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The job id can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string job_id = 4; + */ + protected $job_id = ''; + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 5; + */ + protected $location_id = ''; + protected $job; + + /** + * @param string $parent Required. Parent resource name. + * + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * + * parent=projects/example-project/locations/europe-west3 + * Please see {@see DlpServiceClient::projectName()} for help formatting this field. + * @param \Google\Cloud\Dlp\V2\InspectJobConfig $inspectJob An inspection job scans a storage repository for InfoTypes. + * + * @return \Google\Cloud\Dlp\V2\CreateDlpJobRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dlp\V2\InspectJobConfig $inspectJob): self + { + return (new self()) + ->setParent($parent) + ->setInspectJob($inspectJob); + } + + /** + * @param string $parent Required. Parent resource name. + * + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * + * parent=projects/example-project/locations/europe-west3 + * Please see {@see DlpServiceClient::projectName()} for help formatting this field. + * @param \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $riskJob A risk analysis job calculates re-identification risk metrics for a + * BigQuery table. + * + * @return \Google\Cloud\Dlp\V2\CreateDlpJobRequest + * + * @experimental + */ + public static function buildFromParentRiskJob(string $parent, \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $riskJob): self + { + return (new self()) + ->setParent($parent) + ->setRiskJob($riskJob); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * @type \Google\Cloud\Dlp\V2\InspectJobConfig $inspect_job + * An inspection job scans a storage repository for InfoTypes. + * @type \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $risk_job + * A risk analysis job calculates re-identification risk metrics for a + * BigQuery table. + * @type string $job_id + * The job id can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * @type string $location_id + * Deprecated. This field has no effect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * An inspection job scans a storage repository for InfoTypes. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig inspect_job = 2; + * @return \Google\Cloud\Dlp\V2\InspectJobConfig|null + */ + public function getInspectJob() + { + return $this->readOneof(2); + } + + public function hasInspectJob() + { + return $this->hasOneof(2); + } + + /** + * An inspection job scans a storage repository for InfoTypes. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig inspect_job = 2; + * @param \Google\Cloud\Dlp\V2\InspectJobConfig $var + * @return $this + */ + public function setInspectJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectJobConfig::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A risk analysis job calculates re-identification risk metrics for a + * BigQuery table. + * + * Generated from protobuf field .google.privacy.dlp.v2.RiskAnalysisJobConfig risk_job = 3; + * @return \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig|null + */ + public function getRiskJob() + { + return $this->readOneof(3); + } + + public function hasRiskJob() + { + return $this->hasOneof(3); + } + + /** + * A risk analysis job calculates re-identification risk metrics for a + * BigQuery table. + * + * Generated from protobuf field .google.privacy.dlp.v2.RiskAnalysisJobConfig risk_job = 3; + * @param \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $var + * @return $this + */ + public function setRiskJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * The job id can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string job_id = 4; + * @return string + */ + public function getJobId() + { + return $this->job_id; + } + + /** + * The job id can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string job_id = 4; + * @param string $var + * @return $this + */ + public function setJobId($var) + { + GPBUtil::checkString($var, True); + $this->job_id = $var; + + return $this; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 5; + * @return string + */ + public function getLocationId() + { + return $this->location_id; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 5; + * @param string $var + * @return $this + */ + public function setLocationId($var) + { + GPBUtil::checkString($var, True); + $this->location_id = $var; + + return $this; + } + + /** + * @return string + */ + public function getJob() + { + return $this->whichOneof("job"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateInspectTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateInspectTemplateRequest.php new file mode 100644 index 000000000000..e14fdfdd9a87 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateInspectTemplateRequest.php @@ -0,0 +1,286 @@ +google.privacy.dlp.v2.CreateInspectTemplateRequest + */ +class CreateInspectTemplateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The InspectTemplate to create. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $inspect_template = null; + /** + * The template id can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string template_id = 3; + */ + protected $template_id = ''; + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 4; + */ + protected $location_id = ''; + + /** + * @param string $parent Required. Parent resource name. + * + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * + * parent=projects/example-project/locations/europe-west3 + * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. + * @param \Google\Cloud\Dlp\V2\InspectTemplate $inspectTemplate Required. The InspectTemplate to create. + * + * @return \Google\Cloud\Dlp\V2\CreateInspectTemplateRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dlp\V2\InspectTemplate $inspectTemplate): self + { + return (new self()) + ->setParent($parent) + ->setInspectTemplate($inspectTemplate); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * @type \Google\Cloud\Dlp\V2\InspectTemplate $inspect_template + * Required. The InspectTemplate to create. + * @type string $template_id + * The template id can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * @type string $location_id + * Deprecated. This field has no effect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The InspectTemplate to create. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\InspectTemplate|null + */ + public function getInspectTemplate() + { + return $this->inspect_template; + } + + public function hasInspectTemplate() + { + return isset($this->inspect_template); + } + + public function clearInspectTemplate() + { + unset($this->inspect_template); + } + + /** + * Required. The InspectTemplate to create. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\InspectTemplate $var + * @return $this + */ + public function setInspectTemplate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectTemplate::class); + $this->inspect_template = $var; + + return $this; + } + + /** + * The template id can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string template_id = 3; + * @return string + */ + public function getTemplateId() + { + return $this->template_id; + } + + /** + * The template id can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string template_id = 3; + * @param string $var + * @return $this + */ + public function setTemplateId($var) + { + GPBUtil::checkString($var, True); + $this->template_id = $var; + + return $this; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 4; + * @return string + */ + public function getLocationId() + { + return $this->location_id; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 4; + * @param string $var + * @return $this + */ + public function setLocationId($var) + { + GPBUtil::checkString($var, True); + $this->location_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateJobTriggerRequest.php new file mode 100644 index 000000000000..fd79719e7dfd --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateJobTriggerRequest.php @@ -0,0 +1,266 @@ +google.privacy.dlp.v2.CreateJobTriggerRequest + */ +class CreateJobTriggerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The JobTrigger to create. + * + * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $job_trigger = null; + /** + * The trigger id can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string trigger_id = 3; + */ + protected $trigger_id = ''; + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 4; + */ + protected $location_id = ''; + + /** + * @param string $parent Required. Parent resource name. + * + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * + * parent=projects/example-project/locations/europe-west3 + * Please see {@see DlpServiceClient::projectName()} for help formatting this field. + * @param \Google\Cloud\Dlp\V2\JobTrigger $jobTrigger Required. The JobTrigger to create. + * + * @return \Google\Cloud\Dlp\V2\CreateJobTriggerRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dlp\V2\JobTrigger $jobTrigger): self + { + return (new self()) + ->setParent($parent) + ->setJobTrigger($jobTrigger); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * @type \Google\Cloud\Dlp\V2\JobTrigger $job_trigger + * Required. The JobTrigger to create. + * @type string $trigger_id + * The trigger id can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * @type string $location_id + * Deprecated. This field has no effect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The JobTrigger to create. + * + * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\JobTrigger|null + */ + public function getJobTrigger() + { + return $this->job_trigger; + } + + public function hasJobTrigger() + { + return isset($this->job_trigger); + } + + public function clearJobTrigger() + { + unset($this->job_trigger); + } + + /** + * Required. The JobTrigger to create. + * + * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\JobTrigger $var + * @return $this + */ + public function setJobTrigger($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\JobTrigger::class); + $this->job_trigger = $var; + + return $this; + } + + /** + * The trigger id can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string trigger_id = 3; + * @return string + */ + public function getTriggerId() + { + return $this->trigger_id; + } + + /** + * The trigger id can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string trigger_id = 3; + * @param string $var + * @return $this + */ + public function setTriggerId($var) + { + GPBUtil::checkString($var, True); + $this->trigger_id = $var; + + return $this; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 4; + * @return string + */ + public function getLocationId() + { + return $this->location_id; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 4; + * @param string $var + * @return $this + */ + public function setLocationId($var) + { + GPBUtil::checkString($var, True); + $this->location_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateStoredInfoTypeRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateStoredInfoTypeRequest.php new file mode 100644 index 000000000000..c8c4308219c4 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateStoredInfoTypeRequest.php @@ -0,0 +1,286 @@ +google.privacy.dlp.v2.CreateStoredInfoTypeRequest + */ +class CreateStoredInfoTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Configuration of the storedInfoType to create. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $config = null; + /** + * The storedInfoType ID can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string stored_info_type_id = 3; + */ + protected $stored_info_type_id = ''; + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 4; + */ + protected $location_id = ''; + + /** + * @param string $parent Required. Parent resource name. + * + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * + * parent=projects/example-project/locations/europe-west3 + * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. + * @param \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config Required. Configuration of the storedInfoType to create. + * + * @return \Google\Cloud\Dlp\V2\CreateStoredInfoTypeRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config): self + { + return (new self()) + ->setParent($parent) + ->setConfig($config); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * @type \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config + * Required. Configuration of the storedInfoType to create. + * @type string $stored_info_type_id + * The storedInfoType ID can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * @type string $location_id + * Deprecated. This field has no effect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Configuration of the storedInfoType to create. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\StoredInfoTypeConfig|null + */ + public function getConfig() + { + return $this->config; + } + + public function hasConfig() + { + return isset($this->config); + } + + public function clearConfig() + { + unset($this->config); + } + + /** + * Required. Configuration of the storedInfoType to create. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $var + * @return $this + */ + public function setConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredInfoTypeConfig::class); + $this->config = $var; + + return $this; + } + + /** + * The storedInfoType ID can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string stored_info_type_id = 3; + * @return string + */ + public function getStoredInfoTypeId() + { + return $this->stored_info_type_id; + } + + /** + * The storedInfoType ID can contain uppercase and lowercase letters, + * numbers, and hyphens; that is, it must match the regular + * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 + * characters. Can be empty to allow the system to generate one. + * + * Generated from protobuf field string stored_info_type_id = 3; + * @param string $var + * @return $this + */ + public function setStoredInfoTypeId($var) + { + GPBUtil::checkString($var, True); + $this->stored_info_type_id = $var; + + return $this; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 4; + * @return string + */ + public function getLocationId() + { + return $this->location_id; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 4; + * @param string $var + * @return $this + */ + public function setLocationId($var) + { + GPBUtil::checkString($var, True); + $this->location_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoDeterministicConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoDeterministicConfig.php new file mode 100644 index 000000000000..728308302b55 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoDeterministicConfig.php @@ -0,0 +1,327 @@ +google.privacy.dlp.v2.CryptoDeterministicConfig + */ +class CryptoDeterministicConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The key used by the encryption function. For deterministic encryption + * using AES-SIV, the provided key is internally expanded to 64 bytes prior to + * use. + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; + */ + protected $crypto_key = null; + /** + * The custom info type to annotate the surrogate with. + * This annotation will be applied to the surrogate by prefixing it with + * the name of the custom info type followed by the number of + * characters comprising the surrogate. The following scheme defines the + * format: {info type name}({surrogate character count}):{surrogate} + * For example, if the name of custom info type is 'MY_TOKEN_INFO_TYPE' and + * the surrogate is 'abc', the full replacement value + * will be: 'MY_TOKEN_INFO_TYPE(3):abc' + * This annotation identifies the surrogate when inspecting content using the + * custom info type 'Surrogate'. This facilitates reversal of the + * surrogate when it occurs in free text. + * Note: For record transformations where the entire cell in a table is being + * transformed, surrogates are not mandatory. Surrogates are used to denote + * the location of the token and are necessary for re-identification in free + * form text. + * In order for inspection to work properly, the name of this info type must + * not occur naturally anywhere in your data; otherwise, inspection may either + * - reverse a surrogate that does not correspond to an actual identifier + * - be unable to parse the surrogate and result in an error + * Therefore, choose your custom info type name carefully after considering + * what your data looks like. One way to select a name that has a high chance + * of yielding reliable detection is to include one or more unicode characters + * that are highly improbable to exist in your data. + * For example, assuming your data is entered from a regular ASCII keyboard, + * the symbol with the hex code point 29DD might be used like so: + * ⧝MY_TOKEN_TYPE. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 2; + */ + protected $surrogate_info_type = null; + /** + * A context may be used for higher security and maintaining + * referential integrity such that the same identifier in two different + * contexts will be given a distinct surrogate. The context is appended to + * plaintext value being encrypted. On decryption the provided context is + * validated against the value used during encryption. If a context was + * provided during encryption, same context must be provided during decryption + * as well. + * If the context is not set, plaintext would be used as is for encryption. + * If the context is set but: + * 1. there is no record present when transforming a given value or + * 2. the field is not present when transforming a given value, + * plaintext would be used as is for encryption. + * Note that case (1) is expected when an `InfoTypeTransformation` is + * applied to both structured and unstructured `ContentItem`s. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; + */ + protected $context = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\CryptoKey $crypto_key + * The key used by the encryption function. For deterministic encryption + * using AES-SIV, the provided key is internally expanded to 64 bytes prior to + * use. + * @type \Google\Cloud\Dlp\V2\InfoType $surrogate_info_type + * The custom info type to annotate the surrogate with. + * This annotation will be applied to the surrogate by prefixing it with + * the name of the custom info type followed by the number of + * characters comprising the surrogate. The following scheme defines the + * format: {info type name}({surrogate character count}):{surrogate} + * For example, if the name of custom info type is 'MY_TOKEN_INFO_TYPE' and + * the surrogate is 'abc', the full replacement value + * will be: 'MY_TOKEN_INFO_TYPE(3):abc' + * This annotation identifies the surrogate when inspecting content using the + * custom info type 'Surrogate'. This facilitates reversal of the + * surrogate when it occurs in free text. + * Note: For record transformations where the entire cell in a table is being + * transformed, surrogates are not mandatory. Surrogates are used to denote + * the location of the token and are necessary for re-identification in free + * form text. + * In order for inspection to work properly, the name of this info type must + * not occur naturally anywhere in your data; otherwise, inspection may either + * - reverse a surrogate that does not correspond to an actual identifier + * - be unable to parse the surrogate and result in an error + * Therefore, choose your custom info type name carefully after considering + * what your data looks like. One way to select a name that has a high chance + * of yielding reliable detection is to include one or more unicode characters + * that are highly improbable to exist in your data. + * For example, assuming your data is entered from a regular ASCII keyboard, + * the symbol with the hex code point 29DD might be used like so: + * ⧝MY_TOKEN_TYPE. + * @type \Google\Cloud\Dlp\V2\FieldId $context + * A context may be used for higher security and maintaining + * referential integrity such that the same identifier in two different + * contexts will be given a distinct surrogate. The context is appended to + * plaintext value being encrypted. On decryption the provided context is + * validated against the value used during encryption. If a context was + * provided during encryption, same context must be provided during decryption + * as well. + * If the context is not set, plaintext would be used as is for encryption. + * If the context is set but: + * 1. there is no record present when transforming a given value or + * 2. the field is not present when transforming a given value, + * plaintext would be used as is for encryption. + * Note that case (1) is expected when an `InfoTypeTransformation` is + * applied to both structured and unstructured `ContentItem`s. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The key used by the encryption function. For deterministic encryption + * using AES-SIV, the provided key is internally expanded to 64 bytes prior to + * use. + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; + * @return \Google\Cloud\Dlp\V2\CryptoKey|null + */ + public function getCryptoKey() + { + return $this->crypto_key; + } + + public function hasCryptoKey() + { + return isset($this->crypto_key); + } + + public function clearCryptoKey() + { + unset($this->crypto_key); + } + + /** + * The key used by the encryption function. For deterministic encryption + * using AES-SIV, the provided key is internally expanded to 64 bytes prior to + * use. + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; + * @param \Google\Cloud\Dlp\V2\CryptoKey $var + * @return $this + */ + public function setCryptoKey($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoKey::class); + $this->crypto_key = $var; + + return $this; + } + + /** + * The custom info type to annotate the surrogate with. + * This annotation will be applied to the surrogate by prefixing it with + * the name of the custom info type followed by the number of + * characters comprising the surrogate. The following scheme defines the + * format: {info type name}({surrogate character count}):{surrogate} + * For example, if the name of custom info type is 'MY_TOKEN_INFO_TYPE' and + * the surrogate is 'abc', the full replacement value + * will be: 'MY_TOKEN_INFO_TYPE(3):abc' + * This annotation identifies the surrogate when inspecting content using the + * custom info type 'Surrogate'. This facilitates reversal of the + * surrogate when it occurs in free text. + * Note: For record transformations where the entire cell in a table is being + * transformed, surrogates are not mandatory. Surrogates are used to denote + * the location of the token and are necessary for re-identification in free + * form text. + * In order for inspection to work properly, the name of this info type must + * not occur naturally anywhere in your data; otherwise, inspection may either + * - reverse a surrogate that does not correspond to an actual identifier + * - be unable to parse the surrogate and result in an error + * Therefore, choose your custom info type name carefully after considering + * what your data looks like. One way to select a name that has a high chance + * of yielding reliable detection is to include one or more unicode characters + * that are highly improbable to exist in your data. + * For example, assuming your data is entered from a regular ASCII keyboard, + * the symbol with the hex code point 29DD might be used like so: + * ⧝MY_TOKEN_TYPE. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 2; + * @return \Google\Cloud\Dlp\V2\InfoType|null + */ + public function getSurrogateInfoType() + { + return $this->surrogate_info_type; + } + + public function hasSurrogateInfoType() + { + return isset($this->surrogate_info_type); + } + + public function clearSurrogateInfoType() + { + unset($this->surrogate_info_type); + } + + /** + * The custom info type to annotate the surrogate with. + * This annotation will be applied to the surrogate by prefixing it with + * the name of the custom info type followed by the number of + * characters comprising the surrogate. The following scheme defines the + * format: {info type name}({surrogate character count}):{surrogate} + * For example, if the name of custom info type is 'MY_TOKEN_INFO_TYPE' and + * the surrogate is 'abc', the full replacement value + * will be: 'MY_TOKEN_INFO_TYPE(3):abc' + * This annotation identifies the surrogate when inspecting content using the + * custom info type 'Surrogate'. This facilitates reversal of the + * surrogate when it occurs in free text. + * Note: For record transformations where the entire cell in a table is being + * transformed, surrogates are not mandatory. Surrogates are used to denote + * the location of the token and are necessary for re-identification in free + * form text. + * In order for inspection to work properly, the name of this info type must + * not occur naturally anywhere in your data; otherwise, inspection may either + * - reverse a surrogate that does not correspond to an actual identifier + * - be unable to parse the surrogate and result in an error + * Therefore, choose your custom info type name carefully after considering + * what your data looks like. One way to select a name that has a high chance + * of yielding reliable detection is to include one or more unicode characters + * that are highly improbable to exist in your data. + * For example, assuming your data is entered from a regular ASCII keyboard, + * the symbol with the hex code point 29DD might be used like so: + * ⧝MY_TOKEN_TYPE. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 2; + * @param \Google\Cloud\Dlp\V2\InfoType $var + * @return $this + */ + public function setSurrogateInfoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); + $this->surrogate_info_type = $var; + + return $this; + } + + /** + * A context may be used for higher security and maintaining + * referential integrity such that the same identifier in two different + * contexts will be given a distinct surrogate. The context is appended to + * plaintext value being encrypted. On decryption the provided context is + * validated against the value used during encryption. If a context was + * provided during encryption, same context must be provided during decryption + * as well. + * If the context is not set, plaintext would be used as is for encryption. + * If the context is set but: + * 1. there is no record present when transforming a given value or + * 2. the field is not present when transforming a given value, + * plaintext would be used as is for encryption. + * Note that case (1) is expected when an `InfoTypeTransformation` is + * applied to both structured and unstructured `ContentItem`s. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getContext() + { + return $this->context; + } + + public function hasContext() + { + return isset($this->context); + } + + public function clearContext() + { + unset($this->context); + } + + /** + * A context may be used for higher security and maintaining + * referential integrity such that the same identifier in two different + * contexts will be given a distinct surrogate. The context is appended to + * plaintext value being encrypted. On decryption the provided context is + * validated against the value used during encryption. If a context was + * provided during encryption, same context must be provided during decryption + * as well. + * If the context is not set, plaintext would be used as is for encryption. + * If the context is set but: + * 1. there is no record present when transforming a given value or + * 2. the field is not present when transforming a given value, + * plaintext would be used as is for encryption. + * Note that case (1) is expected when an `InfoTypeTransformation` is + * applied to both structured and unstructured `ContentItem`s. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->context = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoHashConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoHashConfig.php new file mode 100644 index 000000000000..c410f70295ce --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoHashConfig.php @@ -0,0 +1,84 @@ +google.privacy.dlp.v2.CryptoHashConfig + */ +class CryptoHashConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The key used by the hash function. + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; + */ + protected $crypto_key = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\CryptoKey $crypto_key + * The key used by the hash function. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The key used by the hash function. + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; + * @return \Google\Cloud\Dlp\V2\CryptoKey|null + */ + public function getCryptoKey() + { + return $this->crypto_key; + } + + public function hasCryptoKey() + { + return isset($this->crypto_key); + } + + public function clearCryptoKey() + { + unset($this->crypto_key); + } + + /** + * The key used by the hash function. + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; + * @param \Google\Cloud\Dlp\V2\CryptoKey $var + * @return $this + */ + public function setCryptoKey($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoKey::class); + $this->crypto_key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoKey.php new file mode 100644 index 000000000000..0752367d6957 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoKey.php @@ -0,0 +1,146 @@ +google.privacy.dlp.v2.CryptoKey + */ +class CryptoKey extends \Google\Protobuf\Internal\Message +{ + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\TransientCryptoKey $transient + * Transient crypto key + * @type \Google\Cloud\Dlp\V2\UnwrappedCryptoKey $unwrapped + * Unwrapped crypto key + * @type \Google\Cloud\Dlp\V2\KmsWrappedCryptoKey $kms_wrapped + * Key wrapped using Cloud KMS + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Transient crypto key + * + * Generated from protobuf field .google.privacy.dlp.v2.TransientCryptoKey transient = 1; + * @return \Google\Cloud\Dlp\V2\TransientCryptoKey|null + */ + public function getTransient() + { + return $this->readOneof(1); + } + + public function hasTransient() + { + return $this->hasOneof(1); + } + + /** + * Transient crypto key + * + * Generated from protobuf field .google.privacy.dlp.v2.TransientCryptoKey transient = 1; + * @param \Google\Cloud\Dlp\V2\TransientCryptoKey $var + * @return $this + */ + public function setTransient($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransientCryptoKey::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Unwrapped crypto key + * + * Generated from protobuf field .google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2; + * @return \Google\Cloud\Dlp\V2\UnwrappedCryptoKey|null + */ + public function getUnwrapped() + { + return $this->readOneof(2); + } + + public function hasUnwrapped() + { + return $this->hasOneof(2); + } + + /** + * Unwrapped crypto key + * + * Generated from protobuf field .google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2; + * @param \Google\Cloud\Dlp\V2\UnwrappedCryptoKey $var + * @return $this + */ + public function setUnwrapped($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\UnwrappedCryptoKey::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Key wrapped using Cloud KMS + * + * Generated from protobuf field .google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3; + * @return \Google\Cloud\Dlp\V2\KmsWrappedCryptoKey|null + */ + public function getKmsWrapped() + { + return $this->readOneof(3); + } + + public function hasKmsWrapped() + { + return $this->hasOneof(3); + } + + /** + * Key wrapped using Cloud KMS + * + * Generated from protobuf field .google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3; + * @param \Google\Cloud\Dlp\V2\KmsWrappedCryptoKey $var + * @return $this + */ + public function setKmsWrapped($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\KmsWrappedCryptoKey::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig.php new file mode 100644 index 000000000000..7f2f74ab2ec4 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig.php @@ -0,0 +1,445 @@ +google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig + */ +class CryptoReplaceFfxFpeConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The key used by the encryption algorithm. + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $crypto_key = null; + /** + * The 'tweak', a context may be used for higher security since the same + * identifier in two different contexts won't be given the same surrogate. If + * the context is not set, a default tweak will be used. + * If the context is set but: + * 1. there is no record present when transforming a given value or + * 1. the field is not present when transforming a given value, + * a default tweak will be used. + * Note that case (1) is expected when an `InfoTypeTransformation` is + * applied to both structured and unstructured `ContentItem`s. + * Currently, the referenced field may be of value type integer or string. + * The tweak is constructed as a sequence of bytes in big endian byte order + * such that: + * - a 64 bit integer is encoded followed by a single byte of value 1 + * - a string is encoded in UTF-8 format followed by a single byte of value 2 + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 2; + */ + protected $context = null; + /** + * The custom infoType to annotate the surrogate with. + * This annotation will be applied to the surrogate by prefixing it with + * the name of the custom infoType followed by the number of + * characters comprising the surrogate. The following scheme defines the + * format: info_type_name(surrogate_character_count):surrogate + * For example, if the name of custom infoType is 'MY_TOKEN_INFO_TYPE' and + * the surrogate is 'abc', the full replacement value + * will be: 'MY_TOKEN_INFO_TYPE(3):abc' + * This annotation identifies the surrogate when inspecting content using the + * custom infoType + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). + * This facilitates reversal of the surrogate when it occurs in free text. + * In order for inspection to work properly, the name of this infoType must + * not occur naturally anywhere in your data; otherwise, inspection may + * find a surrogate that does not correspond to an actual identifier. + * Therefore, choose your custom infoType name carefully after considering + * what your data looks like. One way to select a name that has a high chance + * of yielding reliable detection is to include one or more unicode characters + * that are highly improbable to exist in your data. + * For example, assuming your data is entered from a regular ASCII keyboard, + * the symbol with the hex code point 29DD might be used like so: + * ⧝MY_TOKEN_TYPE + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 8; + */ + protected $surrogate_info_type = null; + protected $alphabet; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\CryptoKey $crypto_key + * Required. The key used by the encryption algorithm. + * @type \Google\Cloud\Dlp\V2\FieldId $context + * The 'tweak', a context may be used for higher security since the same + * identifier in two different contexts won't be given the same surrogate. If + * the context is not set, a default tweak will be used. + * If the context is set but: + * 1. there is no record present when transforming a given value or + * 1. the field is not present when transforming a given value, + * a default tweak will be used. + * Note that case (1) is expected when an `InfoTypeTransformation` is + * applied to both structured and unstructured `ContentItem`s. + * Currently, the referenced field may be of value type integer or string. + * The tweak is constructed as a sequence of bytes in big endian byte order + * such that: + * - a 64 bit integer is encoded followed by a single byte of value 1 + * - a string is encoded in UTF-8 format followed by a single byte of value 2 + * @type int $common_alphabet + * Common alphabets. + * @type string $custom_alphabet + * This is supported by mapping these to the alphanumeric characters + * that the FFX mode natively supports. This happens before/after + * encryption/decryption. + * Each character listed must appear only once. + * Number of characters must be in the range [2, 95]. + * This must be encoded as ASCII. + * The order of characters does not matter. + * The full list of allowed characters is: + * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!\@#$%^&*()_-+={[}]|\:;"'<,>.?/`` + * @type int $radix + * The native way to select the alphabet. Must be in the range [2, 95]. + * @type \Google\Cloud\Dlp\V2\InfoType $surrogate_info_type + * The custom infoType to annotate the surrogate with. + * This annotation will be applied to the surrogate by prefixing it with + * the name of the custom infoType followed by the number of + * characters comprising the surrogate. The following scheme defines the + * format: info_type_name(surrogate_character_count):surrogate + * For example, if the name of custom infoType is 'MY_TOKEN_INFO_TYPE' and + * the surrogate is 'abc', the full replacement value + * will be: 'MY_TOKEN_INFO_TYPE(3):abc' + * This annotation identifies the surrogate when inspecting content using the + * custom infoType + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). + * This facilitates reversal of the surrogate when it occurs in free text. + * In order for inspection to work properly, the name of this infoType must + * not occur naturally anywhere in your data; otherwise, inspection may + * find a surrogate that does not correspond to an actual identifier. + * Therefore, choose your custom infoType name carefully after considering + * what your data looks like. One way to select a name that has a high chance + * of yielding reliable detection is to include one or more unicode characters + * that are highly improbable to exist in your data. + * For example, assuming your data is entered from a regular ASCII keyboard, + * the symbol with the hex code point 29DD might be used like so: + * ⧝MY_TOKEN_TYPE + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. The key used by the encryption algorithm. + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\CryptoKey|null + */ + public function getCryptoKey() + { + return $this->crypto_key; + } + + public function hasCryptoKey() + { + return isset($this->crypto_key); + } + + public function clearCryptoKey() + { + unset($this->crypto_key); + } + + /** + * Required. The key used by the encryption algorithm. + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\CryptoKey $var + * @return $this + */ + public function setCryptoKey($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoKey::class); + $this->crypto_key = $var; + + return $this; + } + + /** + * The 'tweak', a context may be used for higher security since the same + * identifier in two different contexts won't be given the same surrogate. If + * the context is not set, a default tweak will be used. + * If the context is set but: + * 1. there is no record present when transforming a given value or + * 1. the field is not present when transforming a given value, + * a default tweak will be used. + * Note that case (1) is expected when an `InfoTypeTransformation` is + * applied to both structured and unstructured `ContentItem`s. + * Currently, the referenced field may be of value type integer or string. + * The tweak is constructed as a sequence of bytes in big endian byte order + * such that: + * - a 64 bit integer is encoded followed by a single byte of value 1 + * - a string is encoded in UTF-8 format followed by a single byte of value 2 + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 2; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getContext() + { + return $this->context; + } + + public function hasContext() + { + return isset($this->context); + } + + public function clearContext() + { + unset($this->context); + } + + /** + * The 'tweak', a context may be used for higher security since the same + * identifier in two different contexts won't be given the same surrogate. If + * the context is not set, a default tweak will be used. + * If the context is set but: + * 1. there is no record present when transforming a given value or + * 1. the field is not present when transforming a given value, + * a default tweak will be used. + * Note that case (1) is expected when an `InfoTypeTransformation` is + * applied to both structured and unstructured `ContentItem`s. + * Currently, the referenced field may be of value type integer or string. + * The tweak is constructed as a sequence of bytes in big endian byte order + * such that: + * - a 64 bit integer is encoded followed by a single byte of value 1 + * - a string is encoded in UTF-8 format followed by a single byte of value 2 + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 2; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->context = $var; + + return $this; + } + + /** + * Common alphabets. + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet common_alphabet = 4; + * @return int + */ + public function getCommonAlphabet() + { + return $this->readOneof(4); + } + + public function hasCommonAlphabet() + { + return $this->hasOneof(4); + } + + /** + * Common alphabets. + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet common_alphabet = 4; + * @param int $var + * @return $this + */ + public function setCommonAlphabet($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig\FfxCommonNativeAlphabet::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * This is supported by mapping these to the alphanumeric characters + * that the FFX mode natively supports. This happens before/after + * encryption/decryption. + * Each character listed must appear only once. + * Number of characters must be in the range [2, 95]. + * This must be encoded as ASCII. + * The order of characters does not matter. + * The full list of allowed characters is: + * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!\@#$%^&*()_-+={[}]|\:;"'<,>.?/`` + * + * Generated from protobuf field string custom_alphabet = 5; + * @return string + */ + public function getCustomAlphabet() + { + return $this->readOneof(5); + } + + public function hasCustomAlphabet() + { + return $this->hasOneof(5); + } + + /** + * This is supported by mapping these to the alphanumeric characters + * that the FFX mode natively supports. This happens before/after + * encryption/decryption. + * Each character listed must appear only once. + * Number of characters must be in the range [2, 95]. + * This must be encoded as ASCII. + * The order of characters does not matter. + * The full list of allowed characters is: + * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!\@#$%^&*()_-+={[}]|\:;"'<,>.?/`` + * + * Generated from protobuf field string custom_alphabet = 5; + * @param string $var + * @return $this + */ + public function setCustomAlphabet($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * The native way to select the alphabet. Must be in the range [2, 95]. + * + * Generated from protobuf field int32 radix = 6; + * @return int + */ + public function getRadix() + { + return $this->readOneof(6); + } + + public function hasRadix() + { + return $this->hasOneof(6); + } + + /** + * The native way to select the alphabet. Must be in the range [2, 95]. + * + * Generated from protobuf field int32 radix = 6; + * @param int $var + * @return $this + */ + public function setRadix($var) + { + GPBUtil::checkInt32($var); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * The custom infoType to annotate the surrogate with. + * This annotation will be applied to the surrogate by prefixing it with + * the name of the custom infoType followed by the number of + * characters comprising the surrogate. The following scheme defines the + * format: info_type_name(surrogate_character_count):surrogate + * For example, if the name of custom infoType is 'MY_TOKEN_INFO_TYPE' and + * the surrogate is 'abc', the full replacement value + * will be: 'MY_TOKEN_INFO_TYPE(3):abc' + * This annotation identifies the surrogate when inspecting content using the + * custom infoType + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). + * This facilitates reversal of the surrogate when it occurs in free text. + * In order for inspection to work properly, the name of this infoType must + * not occur naturally anywhere in your data; otherwise, inspection may + * find a surrogate that does not correspond to an actual identifier. + * Therefore, choose your custom infoType name carefully after considering + * what your data looks like. One way to select a name that has a high chance + * of yielding reliable detection is to include one or more unicode characters + * that are highly improbable to exist in your data. + * For example, assuming your data is entered from a regular ASCII keyboard, + * the symbol with the hex code point 29DD might be used like so: + * ⧝MY_TOKEN_TYPE + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 8; + * @return \Google\Cloud\Dlp\V2\InfoType|null + */ + public function getSurrogateInfoType() + { + return $this->surrogate_info_type; + } + + public function hasSurrogateInfoType() + { + return isset($this->surrogate_info_type); + } + + public function clearSurrogateInfoType() + { + unset($this->surrogate_info_type); + } + + /** + * The custom infoType to annotate the surrogate with. + * This annotation will be applied to the surrogate by prefixing it with + * the name of the custom infoType followed by the number of + * characters comprising the surrogate. The following scheme defines the + * format: info_type_name(surrogate_character_count):surrogate + * For example, if the name of custom infoType is 'MY_TOKEN_INFO_TYPE' and + * the surrogate is 'abc', the full replacement value + * will be: 'MY_TOKEN_INFO_TYPE(3):abc' + * This annotation identifies the surrogate when inspecting content using the + * custom infoType + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). + * This facilitates reversal of the surrogate when it occurs in free text. + * In order for inspection to work properly, the name of this infoType must + * not occur naturally anywhere in your data; otherwise, inspection may + * find a surrogate that does not correspond to an actual identifier. + * Therefore, choose your custom infoType name carefully after considering + * what your data looks like. One way to select a name that has a high chance + * of yielding reliable detection is to include one or more unicode characters + * that are highly improbable to exist in your data. + * For example, assuming your data is entered from a regular ASCII keyboard, + * the symbol with the hex code point 29DD might be used like so: + * ⧝MY_TOKEN_TYPE + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 8; + * @param \Google\Cloud\Dlp\V2\InfoType $var + * @return $this + */ + public function setSurrogateInfoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); + $this->surrogate_info_type = $var; + + return $this; + } + + /** + * @return string + */ + public function getAlphabet() + { + return $this->whichOneof("alphabet"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig/FfxCommonNativeAlphabet.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig/FfxCommonNativeAlphabet.php new file mode 100644 index 000000000000..a9b4fa1d30d4 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig/FfxCommonNativeAlphabet.php @@ -0,0 +1,77 @@ +google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet + */ +class FfxCommonNativeAlphabet +{ + /** + * Unused. + * + * Generated from protobuf enum FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED = 0; + */ + const FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED = 0; + /** + * `[0-9]` (radix of 10) + * + * Generated from protobuf enum NUMERIC = 1; + */ + const NUMERIC = 1; + /** + * `[0-9A-F]` (radix of 16) + * + * Generated from protobuf enum HEXADECIMAL = 2; + */ + const HEXADECIMAL = 2; + /** + * `[0-9A-Z]` (radix of 36) + * + * Generated from protobuf enum UPPER_CASE_ALPHA_NUMERIC = 3; + */ + const UPPER_CASE_ALPHA_NUMERIC = 3; + /** + * `[0-9A-Za-z]` (radix of 62) + * + * Generated from protobuf enum ALPHA_NUMERIC = 4; + */ + const ALPHA_NUMERIC = 4; + + private static $valueToName = [ + self::FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED => 'FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED', + self::NUMERIC => 'NUMERIC', + self::HEXADECIMAL => 'HEXADECIMAL', + self::UPPER_CASE_ALPHA_NUMERIC => 'UPPER_CASE_ALPHA_NUMERIC', + self::ALPHA_NUMERIC => 'ALPHA_NUMERIC', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType.php new file mode 100644 index 000000000000..ad621b6f6a35 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType.php @@ -0,0 +1,461 @@ +google.privacy.dlp.v2.CustomInfoType + */ +class CustomInfoType extends \Google\Protobuf\Internal\Message +{ + /** + * CustomInfoType can either be a new infoType, or an extension of built-in + * infoType, when the name matches one of existing infoTypes and that infoType + * is specified in `InspectContent.info_types` field. Specifying the latter + * adds findings to the one detected by the system. If built-in info type is + * not specified in `InspectContent.info_types` list then the name is treated + * as a custom info type. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + */ + protected $info_type = null; + /** + * Likelihood to return for this CustomInfoType. This base value can be + * altered by a detection rule if the finding meets the criteria specified by + * the rule. Defaults to `VERY_LIKELY` if not specified. + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 6; + */ + protected $likelihood = 0; + /** + * Set of detection rules to apply to all findings of this CustomInfoType. + * Rules are applied in the order that they are specified. Only supported + * for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7; + */ + private $detection_rules; + /** + * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding + * to be returned. It still can be used for rules matching. Only supported + * for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; + */ + protected $exclusion_type = 0; + /** + * Sensitivity for this CustomInfoType. If this CustomInfoType extends an + * existing InfoType, the sensitivity here will take precedence over that of + * the original InfoType. If unset for a CustomInfoType, it will default to + * HIGH. + * This only applies to data profiling. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 9; + */ + protected $sensitivity_score = null; + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoType $info_type + * CustomInfoType can either be a new infoType, or an extension of built-in + * infoType, when the name matches one of existing infoTypes and that infoType + * is specified in `InspectContent.info_types` field. Specifying the latter + * adds findings to the one detected by the system. If built-in info type is + * not specified in `InspectContent.info_types` list then the name is treated + * as a custom info type. + * @type int $likelihood + * Likelihood to return for this CustomInfoType. This base value can be + * altered by a detection rule if the finding meets the criteria specified by + * the rule. Defaults to `VERY_LIKELY` if not specified. + * @type \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $dictionary + * A list of phrases to detect as a CustomInfoType. + * @type \Google\Cloud\Dlp\V2\CustomInfoType\Regex $regex + * Regular expression based CustomInfoType. + * @type \Google\Cloud\Dlp\V2\CustomInfoType\SurrogateType $surrogate_type + * Message for detecting output from deidentification transformations that + * support reversing. + * @type \Google\Cloud\Dlp\V2\StoredType $stored_type + * Loads an existing `StoredInfoType` resource. + * @type \Google\Cloud\Dlp\V2\CustomInfoType\MetadataKeyValueExpression $metadata_key_value_expression + * Key-value pair to detect in the metadata. + * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule[] $detection_rules + * Set of detection rules to apply to all findings of this CustomInfoType. + * Rules are applied in the order that they are specified. Only supported + * for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes. + * @type int $exclusion_type + * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding + * to be returned. It still can be used for rules matching. Only supported + * for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes. + * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score + * Sensitivity for this CustomInfoType. If this CustomInfoType extends an + * existing InfoType, the sensitivity here will take precedence over that of + * the original InfoType. If unset for a CustomInfoType, it will default to + * HIGH. + * This only applies to data profiling. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * CustomInfoType can either be a new infoType, or an extension of built-in + * infoType, when the name matches one of existing infoTypes and that infoType + * is specified in `InspectContent.info_types` field. Specifying the latter + * adds findings to the one detected by the system. If built-in info type is + * not specified in `InspectContent.info_types` list then the name is treated + * as a custom info type. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @return \Google\Cloud\Dlp\V2\InfoType|null + */ + public function getInfoType() + { + return $this->info_type; + } + + public function hasInfoType() + { + return isset($this->info_type); + } + + public function clearInfoType() + { + unset($this->info_type); + } + + /** + * CustomInfoType can either be a new infoType, or an extension of built-in + * infoType, when the name matches one of existing infoTypes and that infoType + * is specified in `InspectContent.info_types` field. Specifying the latter + * adds findings to the one detected by the system. If built-in info type is + * not specified in `InspectContent.info_types` list then the name is treated + * as a custom info type. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @param \Google\Cloud\Dlp\V2\InfoType $var + * @return $this + */ + public function setInfoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_type = $var; + + return $this; + } + + /** + * Likelihood to return for this CustomInfoType. This base value can be + * altered by a detection rule if the finding meets the criteria specified by + * the rule. Defaults to `VERY_LIKELY` if not specified. + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 6; + * @return int + */ + public function getLikelihood() + { + return $this->likelihood; + } + + /** + * Likelihood to return for this CustomInfoType. This base value can be + * altered by a detection rule if the finding meets the criteria specified by + * the rule. Defaults to `VERY_LIKELY` if not specified. + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 6; + * @param int $var + * @return $this + */ + public function setLikelihood($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); + $this->likelihood = $var; + + return $this; + } + + /** + * A list of phrases to detect as a CustomInfoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary|null + */ + public function getDictionary() + { + return $this->readOneof(2); + } + + public function hasDictionary() + { + return $this->hasOneof(2); + } + + /** + * A list of phrases to detect as a CustomInfoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $var + * @return $this + */ + public function setDictionary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Regular expression based CustomInfoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 3; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\Regex|null + */ + public function getRegex() + { + return $this->readOneof(3); + } + + public function hasRegex() + { + return $this->hasOneof(3); + } + + /** + * Regular expression based CustomInfoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 3; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\Regex $var + * @return $this + */ + public function setRegex($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Regex::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Message for detecting output from deidentification transformations that + * support reversing. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\SurrogateType|null + */ + public function getSurrogateType() + { + return $this->readOneof(4); + } + + public function hasSurrogateType() + { + return $this->hasOneof(4); + } + + /** + * Message for detecting output from deidentification transformations that + * support reversing. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\SurrogateType $var + * @return $this + */ + public function setSurrogateType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\SurrogateType::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Loads an existing `StoredInfoType` resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredType stored_type = 5; + * @return \Google\Cloud\Dlp\V2\StoredType|null + */ + public function getStoredType() + { + return $this->readOneof(5); + } + + public function hasStoredType() + { + return $this->hasOneof(5); + } + + /** + * Loads an existing `StoredInfoType` resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredType stored_type = 5; + * @param \Google\Cloud\Dlp\V2\StoredType $var + * @return $this + */ + public function setStoredType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredType::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Key-value pair to detect in the metadata. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.MetadataKeyValueExpression metadata_key_value_expression = 10; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\MetadataKeyValueExpression|null + */ + public function getMetadataKeyValueExpression() + { + return $this->readOneof(10); + } + + public function hasMetadataKeyValueExpression() + { + return $this->hasOneof(10); + } + + /** + * Key-value pair to detect in the metadata. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.MetadataKeyValueExpression metadata_key_value_expression = 10; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\MetadataKeyValueExpression $var + * @return $this + */ + public function setMetadataKeyValueExpression($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\MetadataKeyValueExpression::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Set of detection rules to apply to all findings of this CustomInfoType. + * Rules are applied in the order that they are specified. Only supported + * for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7; + * @return RepeatedField<\Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule> + */ + public function getDetectionRules() + { + return $this->detection_rules; + } + + /** + * Set of detection rules to apply to all findings of this CustomInfoType. + * Rules are applied in the order that they are specified. Only supported + * for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule[] $var + * @return $this + */ + public function setDetectionRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule::class); + $this->detection_rules = $arr; + + return $this; + } + + /** + * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding + * to be returned. It still can be used for rules matching. Only supported + * for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; + * @return int + */ + public function getExclusionType() + { + return $this->exclusion_type; + } + + /** + * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding + * to be returned. It still can be used for rules matching. Only supported + * for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; + * @param int $var + * @return $this + */ + public function setExclusionType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\CustomInfoType\ExclusionType::class); + $this->exclusion_type = $var; + + return $this; + } + + /** + * Sensitivity for this CustomInfoType. If this CustomInfoType extends an + * existing InfoType, the sensitivity here will take precedence over that of + * the original InfoType. If unset for a CustomInfoType, it will default to + * HIGH. + * This only applies to data profiling. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 9; + * @return \Google\Cloud\Dlp\V2\SensitivityScore|null + */ + public function getSensitivityScore() + { + return $this->sensitivity_score; + } + + public function hasSensitivityScore() + { + return isset($this->sensitivity_score); + } + + public function clearSensitivityScore() + { + unset($this->sensitivity_score); + } + + /** + * Sensitivity for this CustomInfoType. If this CustomInfoType extends an + * existing InfoType, the sensitivity here will take precedence over that of + * the original InfoType. If unset for a CustomInfoType, it will default to + * HIGH. + * This only applies to data profiling. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 9; + * @param \Google\Cloud\Dlp\V2\SensitivityScore $var + * @return $this + */ + public function setSensitivityScore($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); + $this->sensitivity_score = $var; + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule.php new file mode 100644 index 000000000000..37c5475d10ad --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule.php @@ -0,0 +1,78 @@ +google.privacy.dlp.v2.CustomInfoType.DetectionRule + */ +class DetectionRule extends \Google\Protobuf\Internal\Message +{ + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule $hotword_rule + * Hotword-based detection rule. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Hotword-based detection rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule|null + */ + public function getHotwordRule() + { + return $this->readOneof(1); + } + + public function hasHotwordRule() + { + return $this->hasOneof(1); + } + + /** + * Hotword-based detection rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule $var + * @return $this + */ + public function setHotwordRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/HotwordRule.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/HotwordRule.php new file mode 100644 index 000000000000..0bb673156ee8 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/HotwordRule.php @@ -0,0 +1,210 @@ +google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule + */ +class HotwordRule extends \Google\Protobuf\Internal\Message +{ + /** + * Regular expression pattern defining what qualifies as a hotword. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; + */ + protected $hotword_regex = null; + /** + * Range of characters within which the entire hotword must reside. + * The total length of the window cannot exceed 1000 characters. + * The finding itself will be included in the window, so that hotwords can + * be used to match substrings of the finding itself. Suppose you + * want Cloud DLP to promote the likelihood of the phone number + * regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the + * area code of a company's office. In this case, use the hotword regex + * "\(xxx\)", where "xxx" is the area code in question. + * For tabular data, if you want to modify the likelihood of an entire + * column of findngs, see + * [Hotword example: Set the match likelihood of a table column] + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; + */ + protected $proximity = null; + /** + * Likelihood adjustment to apply to all matching findings. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3; + */ + protected $likelihood_adjustment = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\CustomInfoType\Regex $hotword_regex + * Regular expression pattern defining what qualifies as a hotword. + * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity $proximity + * Range of characters within which the entire hotword must reside. + * The total length of the window cannot exceed 1000 characters. + * The finding itself will be included in the window, so that hotwords can + * be used to match substrings of the finding itself. Suppose you + * want Cloud DLP to promote the likelihood of the phone number + * regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the + * area code of a company's office. In this case, use the hotword regex + * "\(xxx\)", where "xxx" is the area code in question. + * For tabular data, if you want to modify the likelihood of an entire + * column of findngs, see + * [Hotword example: Set the match likelihood of a table column] + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). + * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment $likelihood_adjustment + * Likelihood adjustment to apply to all matching findings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Regular expression pattern defining what qualifies as a hotword. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\Regex|null + */ + public function getHotwordRegex() + { + return $this->hotword_regex; + } + + public function hasHotwordRegex() + { + return isset($this->hotword_regex); + } + + public function clearHotwordRegex() + { + unset($this->hotword_regex); + } + + /** + * Regular expression pattern defining what qualifies as a hotword. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\Regex $var + * @return $this + */ + public function setHotwordRegex($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Regex::class); + $this->hotword_regex = $var; + + return $this; + } + + /** + * Range of characters within which the entire hotword must reside. + * The total length of the window cannot exceed 1000 characters. + * The finding itself will be included in the window, so that hotwords can + * be used to match substrings of the finding itself. Suppose you + * want Cloud DLP to promote the likelihood of the phone number + * regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the + * area code of a company's office. In this case, use the hotword regex + * "\(xxx\)", where "xxx" is the area code in question. + * For tabular data, if you want to modify the likelihood of an entire + * column of findngs, see + * [Hotword example: Set the match likelihood of a table column] + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity|null + */ + public function getProximity() + { + return $this->proximity; + } + + public function hasProximity() + { + return isset($this->proximity); + } + + public function clearProximity() + { + unset($this->proximity); + } + + /** + * Range of characters within which the entire hotword must reside. + * The total length of the window cannot exceed 1000 characters. + * The finding itself will be included in the window, so that hotwords can + * be used to match substrings of the finding itself. Suppose you + * want Cloud DLP to promote the likelihood of the phone number + * regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the + * area code of a company's office. In this case, use the hotword regex + * "\(xxx\)", where "xxx" is the area code in question. + * For tabular data, if you want to modify the likelihood of an entire + * column of findngs, see + * [Hotword example: Set the match likelihood of a table column] + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity $var + * @return $this + */ + public function setProximity($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity::class); + $this->proximity = $var; + + return $this; + } + + /** + * Likelihood adjustment to apply to all matching findings. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment|null + */ + public function getLikelihoodAdjustment() + { + return $this->likelihood_adjustment; + } + + public function hasLikelihoodAdjustment() + { + return isset($this->likelihood_adjustment); + } + + public function clearLikelihoodAdjustment() + { + unset($this->likelihood_adjustment); + } + + /** + * Likelihood adjustment to apply to all matching findings. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment $var + * @return $this + */ + public function setLikelihoodAdjustment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment::class); + $this->likelihood_adjustment = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/LikelihoodAdjustment.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/LikelihoodAdjustment.php new file mode 100644 index 000000000000..3a5cc4333e37 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/LikelihoodAdjustment.php @@ -0,0 +1,130 @@ +google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment + */ +class LikelihoodAdjustment extends \Google\Protobuf\Internal\Message +{ + protected $adjustment; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $fixed_likelihood + * Set the likelihood of a finding to a fixed value. + * @type int $relative_likelihood + * Increase or decrease the likelihood by the specified number of + * levels. For example, if a finding would be `POSSIBLE` without the + * detection rule and `relative_likelihood` is 1, then it is upgraded to + * `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`. + * Likelihood may never drop below `VERY_UNLIKELY` or exceed + * `VERY_LIKELY`, so applying an adjustment of 1 followed by an + * adjustment of -1 when base likelihood is `VERY_LIKELY` will result in + * a final likelihood of `LIKELY`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Set the likelihood of a finding to a fixed value. + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood fixed_likelihood = 1; + * @return int + */ + public function getFixedLikelihood() + { + return $this->readOneof(1); + } + + public function hasFixedLikelihood() + { + return $this->hasOneof(1); + } + + /** + * Set the likelihood of a finding to a fixed value. + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood fixed_likelihood = 1; + * @param int $var + * @return $this + */ + public function setFixedLikelihood($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Increase or decrease the likelihood by the specified number of + * levels. For example, if a finding would be `POSSIBLE` without the + * detection rule and `relative_likelihood` is 1, then it is upgraded to + * `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`. + * Likelihood may never drop below `VERY_UNLIKELY` or exceed + * `VERY_LIKELY`, so applying an adjustment of 1 followed by an + * adjustment of -1 when base likelihood is `VERY_LIKELY` will result in + * a final likelihood of `LIKELY`. + * + * Generated from protobuf field int32 relative_likelihood = 2; + * @return int + */ + public function getRelativeLikelihood() + { + return $this->readOneof(2); + } + + public function hasRelativeLikelihood() + { + return $this->hasOneof(2); + } + + /** + * Increase or decrease the likelihood by the specified number of + * levels. For example, if a finding would be `POSSIBLE` without the + * detection rule and `relative_likelihood` is 1, then it is upgraded to + * `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`. + * Likelihood may never drop below `VERY_UNLIKELY` or exceed + * `VERY_LIKELY`, so applying an adjustment of 1 followed by an + * adjustment of -1 when base likelihood is `VERY_LIKELY` will result in + * a final likelihood of `LIKELY`. + * + * Generated from protobuf field int32 relative_likelihood = 2; + * @param int $var + * @return $this + */ + public function setRelativeLikelihood($var) + { + GPBUtil::checkInt32($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getAdjustment() + { + return $this->whichOneof("adjustment"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/Proximity.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/Proximity.php new file mode 100644 index 000000000000..a2d5a74e9b97 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/Proximity.php @@ -0,0 +1,118 @@ +google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity + */ +class Proximity extends \Google\Protobuf\Internal\Message +{ + /** + * Number of characters before the finding to consider. For tabular data, + * if you want to modify the likelihood of an entire column of findngs, + * set this to 1. For more information, see + * [Hotword example: Set the match likelihood of a table column] + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). + * + * Generated from protobuf field int32 window_before = 1; + */ + protected $window_before = 0; + /** + * Number of characters after the finding to consider. + * + * Generated from protobuf field int32 window_after = 2; + */ + protected $window_after = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $window_before + * Number of characters before the finding to consider. For tabular data, + * if you want to modify the likelihood of an entire column of findngs, + * set this to 1. For more information, see + * [Hotword example: Set the match likelihood of a table column] + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). + * @type int $window_after + * Number of characters after the finding to consider. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Number of characters before the finding to consider. For tabular data, + * if you want to modify the likelihood of an entire column of findngs, + * set this to 1. For more information, see + * [Hotword example: Set the match likelihood of a table column] + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). + * + * Generated from protobuf field int32 window_before = 1; + * @return int + */ + public function getWindowBefore() + { + return $this->window_before; + } + + /** + * Number of characters before the finding to consider. For tabular data, + * if you want to modify the likelihood of an entire column of findngs, + * set this to 1. For more information, see + * [Hotword example: Set the match likelihood of a table column] + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). + * + * Generated from protobuf field int32 window_before = 1; + * @param int $var + * @return $this + */ + public function setWindowBefore($var) + { + GPBUtil::checkInt32($var); + $this->window_before = $var; + + return $this; + } + + /** + * Number of characters after the finding to consider. + * + * Generated from protobuf field int32 window_after = 2; + * @return int + */ + public function getWindowAfter() + { + return $this->window_after; + } + + /** + * Number of characters after the finding to consider. + * + * Generated from protobuf field int32 window_after = 2; + * @param int $var + * @return $this + */ + public function setWindowAfter($var) + { + GPBUtil::checkInt32($var); + $this->window_after = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary.php new file mode 100644 index 000000000000..693ddd78145b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary.php @@ -0,0 +1,131 @@ +google.privacy.dlp.v2.CustomInfoType.Dictionary + */ +class Dictionary extends \Google\Protobuf\Internal\Message +{ + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList $word_list + * List of words or phrases to search for. + * @type \Google\Cloud\Dlp\V2\CloudStoragePath $cloud_storage_path + * Newline-delimited file of words in Cloud Storage. Only a single file + * is accepted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * List of words or phrases to search for. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList|null + */ + public function getWordList() + { + return $this->readOneof(1); + } + + public function hasWordList() + { + return $this->hasOneof(1); + } + + /** + * List of words or phrases to search for. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList $var + * @return $this + */ + public function setWordList($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Newline-delimited file of words in Cloud Storage. Only a single file + * is accepted. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath cloud_storage_path = 3; + * @return \Google\Cloud\Dlp\V2\CloudStoragePath|null + */ + public function getCloudStoragePath() + { + return $this->readOneof(3); + } + + public function hasCloudStoragePath() + { + return $this->hasOneof(3); + } + + /** + * Newline-delimited file of words in Cloud Storage. Only a single file + * is accepted. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath cloud_storage_path = 3; + * @param \Google\Cloud\Dlp\V2\CloudStoragePath $var + * @return $this + */ + public function setCloudStoragePath($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStoragePath::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary/WordList.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary/WordList.php new file mode 100644 index 000000000000..1308ccc39e0b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary/WordList.php @@ -0,0 +1,75 @@ +google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList + */ +class WordList extends \Google\Protobuf\Internal\Message +{ + /** + * Words or phrases defining the dictionary. The dictionary must contain + * at least one phrase and every phrase must contain at least 2 characters + * that are letters or digits. [required] + * + * Generated from protobuf field repeated string words = 1; + */ + private $words; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $words + * Words or phrases defining the dictionary. The dictionary must contain + * at least one phrase and every phrase must contain at least 2 characters + * that are letters or digits. [required] + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Words or phrases defining the dictionary. The dictionary must contain + * at least one phrase and every phrase must contain at least 2 characters + * that are letters or digits. [required] + * + * Generated from protobuf field repeated string words = 1; + * @return RepeatedField + */ + public function getWords() + { + return $this->words; + } + + /** + * Words or phrases defining the dictionary. The dictionary must contain + * at least one phrase and every phrase must contain at least 2 characters + * that are letters or digits. [required] + * + * Generated from protobuf field repeated string words = 1; + * @param string[] $var + * @return $this + */ + public function setWords($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->words = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/ExclusionType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/ExclusionType.php new file mode 100644 index 000000000000..3a282d202a6a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/ExclusionType.php @@ -0,0 +1,55 @@ +google.privacy.dlp.v2.CustomInfoType.ExclusionType + */ +class ExclusionType +{ + /** + * A finding of this custom info type will not be excluded from results. + * + * Generated from protobuf enum EXCLUSION_TYPE_UNSPECIFIED = 0; + */ + const EXCLUSION_TYPE_UNSPECIFIED = 0; + /** + * A finding of this custom info type will be excluded from final results, + * but can still affect rule execution. + * + * Generated from protobuf enum EXCLUSION_TYPE_EXCLUDE = 1; + */ + const EXCLUSION_TYPE_EXCLUDE = 1; + + private static $valueToName = [ + self::EXCLUSION_TYPE_UNSPECIFIED => 'EXCLUSION_TYPE_UNSPECIFIED', + self::EXCLUSION_TYPE_EXCLUDE => 'EXCLUSION_TYPE_EXCLUDE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/MetadataKeyValueExpression.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/MetadataKeyValueExpression.php new file mode 100644 index 000000000000..2c89ac8ac5b0 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/MetadataKeyValueExpression.php @@ -0,0 +1,106 @@ +google.privacy.dlp.v2.CustomInfoType.MetadataKeyValueExpression + */ +class MetadataKeyValueExpression extends \Google\Protobuf\Internal\Message +{ + /** + * The regular expression for the key. Key should be + * non-empty. + * + * Generated from protobuf field string key_regex = 1; + */ + protected $key_regex = ''; + /** + * The regular expression for the value. Value should be non-empty. + * + * Generated from protobuf field string value_regex = 2; + */ + protected $value_regex = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key_regex + * The regular expression for the key. Key should be + * non-empty. + * @type string $value_regex + * The regular expression for the value. Value should be non-empty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * The regular expression for the key. Key should be + * non-empty. + * + * Generated from protobuf field string key_regex = 1; + * @return string + */ + public function getKeyRegex() + { + return $this->key_regex; + } + + /** + * The regular expression for the key. Key should be + * non-empty. + * + * Generated from protobuf field string key_regex = 1; + * @param string $var + * @return $this + */ + public function setKeyRegex($var) + { + GPBUtil::checkString($var, True); + $this->key_regex = $var; + + return $this; + } + + /** + * The regular expression for the value. Value should be non-empty. + * + * Generated from protobuf field string value_regex = 2; + * @return string + */ + public function getValueRegex() + { + return $this->value_regex; + } + + /** + * The regular expression for the value. Value should be non-empty. + * + * Generated from protobuf field string value_regex = 2; + * @param string $var + * @return $this + */ + public function setValueRegex($var) + { + GPBUtil::checkString($var, True); + $this->value_regex = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Regex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Regex.php new file mode 100644 index 000000000000..d93830d1e34a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Regex.php @@ -0,0 +1,113 @@ +google.privacy.dlp.v2.CustomInfoType.Regex + */ +class Regex extends \Google\Protobuf\Internal\Message +{ + /** + * Pattern defining the regular expression. Its syntax + * (https://github.com/google/re2/wiki/Syntax) can be found under the + * google/re2 repository on GitHub. + * + * Generated from protobuf field string pattern = 1; + */ + protected $pattern = ''; + /** + * The index of the submatch to extract as findings. When not + * specified, the entire match is returned. No more than 3 may be included. + * + * Generated from protobuf field repeated int32 group_indexes = 2; + */ + private $group_indexes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $pattern + * Pattern defining the regular expression. Its syntax + * (https://github.com/google/re2/wiki/Syntax) can be found under the + * google/re2 repository on GitHub. + * @type int[] $group_indexes + * The index of the submatch to extract as findings. When not + * specified, the entire match is returned. No more than 3 may be included. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Pattern defining the regular expression. Its syntax + * (https://github.com/google/re2/wiki/Syntax) can be found under the + * google/re2 repository on GitHub. + * + * Generated from protobuf field string pattern = 1; + * @return string + */ + public function getPattern() + { + return $this->pattern; + } + + /** + * Pattern defining the regular expression. Its syntax + * (https://github.com/google/re2/wiki/Syntax) can be found under the + * google/re2 repository on GitHub. + * + * Generated from protobuf field string pattern = 1; + * @param string $var + * @return $this + */ + public function setPattern($var) + { + GPBUtil::checkString($var, True); + $this->pattern = $var; + + return $this; + } + + /** + * The index of the submatch to extract as findings. When not + * specified, the entire match is returned. No more than 3 may be included. + * + * Generated from protobuf field repeated int32 group_indexes = 2; + * @return RepeatedField + */ + public function getGroupIndexes() + { + return $this->group_indexes; + } + + /** + * The index of the submatch to extract as findings. When not + * specified, the entire match is returned. No more than 3 may be included. + * + * Generated from protobuf field repeated int32 group_indexes = 2; + * @param int[] $var + * @return $this + */ + public function setGroupIndexes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); + $this->group_indexes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/SurrogateType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/SurrogateType.php new file mode 100644 index 000000000000..1fbfd3da5b32 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/SurrogateType.php @@ -0,0 +1,40 @@ +google.privacy.dlp.v2.CustomInfoType.SurrogateType + */ +class SurrogateType extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction.php new file mode 100644 index 000000000000..d4bf0dbaf212 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction.php @@ -0,0 +1,252 @@ +google.privacy.dlp.v2.DataProfileAction + */ +class DataProfileAction extends \Google\Protobuf\Internal\Message +{ + protected $action; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DataProfileAction\Export $export_data + * Export data profiles into a provided location. + * @type \Google\Cloud\Dlp\V2\DataProfileAction\PubSubNotification $pub_sub_notification + * Publish a message into the Pub/Sub topic. + * @type \Google\Cloud\Dlp\V2\DataProfileAction\PublishToChronicle $publish_to_chronicle + * Publishes generated data profiles to Google Security Operations. + * For more information, see [Use Sensitive Data Protection data in + * context-aware + * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download). + * @type \Google\Cloud\Dlp\V2\DataProfileAction\PublishToSecurityCommandCenter $publish_to_scc + * Publishes findings to Security Command Center for each data profile. + * @type \Google\Cloud\Dlp\V2\DataProfileAction\TagResources $tag_resources + * Tags the profiled resources with the specified tag values. + * @type \Google\Cloud\Dlp\V2\DataProfileAction\PublishToDataplexCatalog $publish_to_dataplex_catalog + * Publishes a portion of each profile to Dataplex Universal Catalog with + * the aspect type Sensitive Data Protection Profile. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Export data profiles into a provided location. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; + * @return \Google\Cloud\Dlp\V2\DataProfileAction\Export|null + */ + public function getExportData() + { + return $this->readOneof(1); + } + + public function hasExportData() + { + return $this->hasOneof(1); + } + + /** + * Export data profiles into a provided location. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; + * @param \Google\Cloud\Dlp\V2\DataProfileAction\Export $var + * @return $this + */ + public function setExportData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\Export::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Publish a message into the Pub/Sub topic. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; + * @return \Google\Cloud\Dlp\V2\DataProfileAction\PubSubNotification|null + */ + public function getPubSubNotification() + { + return $this->readOneof(2); + } + + public function hasPubSubNotification() + { + return $this->hasOneof(2); + } + + /** + * Publish a message into the Pub/Sub topic. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; + * @param \Google\Cloud\Dlp\V2\DataProfileAction\PubSubNotification $var + * @return $this + */ + public function setPubSubNotification($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\PubSubNotification::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Publishes generated data profiles to Google Security Operations. + * For more information, see [Use Sensitive Data Protection data in + * context-aware + * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download). + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; + * @return \Google\Cloud\Dlp\V2\DataProfileAction\PublishToChronicle|null + */ + public function getPublishToChronicle() + { + return $this->readOneof(3); + } + + public function hasPublishToChronicle() + { + return $this->hasOneof(3); + } + + /** + * Publishes generated data profiles to Google Security Operations. + * For more information, see [Use Sensitive Data Protection data in + * context-aware + * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download). + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; + * @param \Google\Cloud\Dlp\V2\DataProfileAction\PublishToChronicle $var + * @return $this + */ + public function setPublishToChronicle($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\PublishToChronicle::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Publishes findings to Security Command Center for each data profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; + * @return \Google\Cloud\Dlp\V2\DataProfileAction\PublishToSecurityCommandCenter|null + */ + public function getPublishToScc() + { + return $this->readOneof(4); + } + + public function hasPublishToScc() + { + return $this->hasOneof(4); + } + + /** + * Publishes findings to Security Command Center for each data profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; + * @param \Google\Cloud\Dlp\V2\DataProfileAction\PublishToSecurityCommandCenter $var + * @return $this + */ + public function setPublishToScc($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\PublishToSecurityCommandCenter::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Tags the profiled resources with the specified tag values. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; + * @return \Google\Cloud\Dlp\V2\DataProfileAction\TagResources|null + */ + public function getTagResources() + { + return $this->readOneof(8); + } + + public function hasTagResources() + { + return $this->hasOneof(8); + } + + /** + * Tags the profiled resources with the specified tag values. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; + * @param \Google\Cloud\Dlp\V2\DataProfileAction\TagResources $var + * @return $this + */ + public function setTagResources($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\TagResources::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Publishes a portion of each profile to Dataplex Universal Catalog with + * the aspect type Sensitive Data Protection Profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog publish_to_dataplex_catalog = 9; + * @return \Google\Cloud\Dlp\V2\DataProfileAction\PublishToDataplexCatalog|null + */ + public function getPublishToDataplexCatalog() + { + return $this->readOneof(9); + } + + public function hasPublishToDataplexCatalog() + { + return $this->hasOneof(9); + } + + /** + * Publishes a portion of each profile to Dataplex Universal Catalog with + * the aspect type Sensitive Data Protection Profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog publish_to_dataplex_catalog = 9; + * @param \Google\Cloud\Dlp\V2\DataProfileAction\PublishToDataplexCatalog $var + * @return $this + */ + public function setPublishToDataplexCatalog($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\PublishToDataplexCatalog::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * @return string + */ + public function getAction() + { + return $this->whichOneof("action"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/EventType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/EventType.php new file mode 100644 index 000000000000..f2bc860254d4 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/EventType.php @@ -0,0 +1,77 @@ +google.privacy.dlp.v2.DataProfileAction.EventType + */ +class EventType +{ + /** + * Unused. + * + * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; + */ + const EVENT_TYPE_UNSPECIFIED = 0; + /** + * New profile (not a re-profile). + * + * Generated from protobuf enum NEW_PROFILE = 1; + */ + const NEW_PROFILE = 1; + /** + * One of the following profile metrics changed: Data risk score, + * Sensitivity score, Resource visibility, Encryption type, Predicted + * infoTypes, Other infoTypes + * + * Generated from protobuf enum CHANGED_PROFILE = 2; + */ + const CHANGED_PROFILE = 2; + /** + * Table data risk score or sensitivity score increased. + * + * Generated from protobuf enum SCORE_INCREASED = 3; + */ + const SCORE_INCREASED = 3; + /** + * A user (non-internal) error occurred. + * + * Generated from protobuf enum ERROR_CHANGED = 4; + */ + const ERROR_CHANGED = 4; + + private static $valueToName = [ + self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', + self::NEW_PROFILE => 'NEW_PROFILE', + self::CHANGED_PROFILE => 'CHANGED_PROFILE', + self::SCORE_INCREASED => 'SCORE_INCREASED', + self::ERROR_CHANGED => 'ERROR_CHANGED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/Export.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/Export.php new file mode 100644 index 000000000000..8669571dff0c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/Export.php @@ -0,0 +1,242 @@ +google.privacy.dlp.v2.DataProfileAction.Export + */ +class Export extends \Google\Protobuf\Internal\Message +{ + /** + * Store all profiles to BigQuery. + * * The system will create a new dataset and table for you if none are + * are provided. The dataset will be named + * `sensitive_data_protection_discovery` and table will be named + * `discovery_profiles`. This table will be placed in the same project as + * the container project running the scan. After the first profile is + * generated and the dataset and table are created, the discovery scan + * configuration will be updated with the dataset and table names. + * * See [Analyze data profiles stored in + * BigQuery](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles). + * * See [Sample queries for your BigQuery + * table](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#sample_sql_queries). + * * Data is inserted using [streaming + * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) + * and so data may be in the buffer for a period of time after the + * profile has finished. + * * The Pub/Sub notification is sent before the streaming buffer is + * guaranteed to be written, so data may not be instantly + * visible to queries by the time your topic receives the Pub/Sub + * notification. + * * The best practice is to use the same table for an entire organization + * so that you can take advantage of the [provided Looker + * reports](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#use_a_premade_report). + * If you use VPC Service Controls to define security perimeters, then + * you must use a separate table for each boundary. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable profile_table = 1; + */ + protected $profile_table = null; + /** + * Store sample [data profile + * findings][google.privacy.dlp.v2.DataProfileFinding] in an existing table + * or a new table in an existing dataset. Each regeneration will result in + * new rows in BigQuery. Data is inserted using [streaming + * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) + * and so data may be in the buffer for a period of time after the profile + * has finished. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 2; + */ + protected $sample_findings_table = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\BigQueryTable $profile_table + * Store all profiles to BigQuery. + * * The system will create a new dataset and table for you if none are + * are provided. The dataset will be named + * `sensitive_data_protection_discovery` and table will be named + * `discovery_profiles`. This table will be placed in the same project as + * the container project running the scan. After the first profile is + * generated and the dataset and table are created, the discovery scan + * configuration will be updated with the dataset and table names. + * * See [Analyze data profiles stored in + * BigQuery](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles). + * * See [Sample queries for your BigQuery + * table](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#sample_sql_queries). + * * Data is inserted using [streaming + * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) + * and so data may be in the buffer for a period of time after the + * profile has finished. + * * The Pub/Sub notification is sent before the streaming buffer is + * guaranteed to be written, so data may not be instantly + * visible to queries by the time your topic receives the Pub/Sub + * notification. + * * The best practice is to use the same table for an entire organization + * so that you can take advantage of the [provided Looker + * reports](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#use_a_premade_report). + * If you use VPC Service Controls to define security perimeters, then + * you must use a separate table for each boundary. + * @type \Google\Cloud\Dlp\V2\BigQueryTable $sample_findings_table + * Store sample [data profile + * findings][google.privacy.dlp.v2.DataProfileFinding] in an existing table + * or a new table in an existing dataset. Each regeneration will result in + * new rows in BigQuery. Data is inserted using [streaming + * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) + * and so data may be in the buffer for a period of time after the profile + * has finished. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Store all profiles to BigQuery. + * * The system will create a new dataset and table for you if none are + * are provided. The dataset will be named + * `sensitive_data_protection_discovery` and table will be named + * `discovery_profiles`. This table will be placed in the same project as + * the container project running the scan. After the first profile is + * generated and the dataset and table are created, the discovery scan + * configuration will be updated with the dataset and table names. + * * See [Analyze data profiles stored in + * BigQuery](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles). + * * See [Sample queries for your BigQuery + * table](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#sample_sql_queries). + * * Data is inserted using [streaming + * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) + * and so data may be in the buffer for a period of time after the + * profile has finished. + * * The Pub/Sub notification is sent before the streaming buffer is + * guaranteed to be written, so data may not be instantly + * visible to queries by the time your topic receives the Pub/Sub + * notification. + * * The best practice is to use the same table for an entire organization + * so that you can take advantage of the [provided Looker + * reports](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#use_a_premade_report). + * If you use VPC Service Controls to define security perimeters, then + * you must use a separate table for each boundary. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable profile_table = 1; + * @return \Google\Cloud\Dlp\V2\BigQueryTable|null + */ + public function getProfileTable() + { + return $this->profile_table; + } + + public function hasProfileTable() + { + return isset($this->profile_table); + } + + public function clearProfileTable() + { + unset($this->profile_table); + } + + /** + * Store all profiles to BigQuery. + * * The system will create a new dataset and table for you if none are + * are provided. The dataset will be named + * `sensitive_data_protection_discovery` and table will be named + * `discovery_profiles`. This table will be placed in the same project as + * the container project running the scan. After the first profile is + * generated and the dataset and table are created, the discovery scan + * configuration will be updated with the dataset and table names. + * * See [Analyze data profiles stored in + * BigQuery](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles). + * * See [Sample queries for your BigQuery + * table](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#sample_sql_queries). + * * Data is inserted using [streaming + * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) + * and so data may be in the buffer for a period of time after the + * profile has finished. + * * The Pub/Sub notification is sent before the streaming buffer is + * guaranteed to be written, so data may not be instantly + * visible to queries by the time your topic receives the Pub/Sub + * notification. + * * The best practice is to use the same table for an entire organization + * so that you can take advantage of the [provided Looker + * reports](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#use_a_premade_report). + * If you use VPC Service Controls to define security perimeters, then + * you must use a separate table for each boundary. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable profile_table = 1; + * @param \Google\Cloud\Dlp\V2\BigQueryTable $var + * @return $this + */ + public function setProfileTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); + $this->profile_table = $var; + + return $this; + } + + /** + * Store sample [data profile + * findings][google.privacy.dlp.v2.DataProfileFinding] in an existing table + * or a new table in an existing dataset. Each regeneration will result in + * new rows in BigQuery. Data is inserted using [streaming + * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) + * and so data may be in the buffer for a period of time after the profile + * has finished. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 2; + * @return \Google\Cloud\Dlp\V2\BigQueryTable|null + */ + public function getSampleFindingsTable() + { + return $this->sample_findings_table; + } + + public function hasSampleFindingsTable() + { + return isset($this->sample_findings_table); + } + + public function clearSampleFindingsTable() + { + unset($this->sample_findings_table); + } + + /** + * Store sample [data profile + * findings][google.privacy.dlp.v2.DataProfileFinding] in an existing table + * or a new table in an existing dataset. Each regeneration will result in + * new rows in BigQuery. Data is inserted using [streaming + * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) + * and so data may be in the buffer for a period of time after the profile + * has finished. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 2; + * @param \Google\Cloud\Dlp\V2\BigQueryTable $var + * @return $this + */ + public function setSampleFindingsTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); + $this->sample_findings_table = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification.php new file mode 100644 index 000000000000..8b2078f4fb12 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification.php @@ -0,0 +1,201 @@ +google.privacy.dlp.v2.DataProfileAction.PubSubNotification + */ +class PubSubNotification extends \Google\Protobuf\Internal\Message +{ + /** + * Cloud Pub/Sub topic to send notifications to. + * Format is projects/{project}/topics/{topic}. + * + * Generated from protobuf field string topic = 1; + */ + protected $topic = ''; + /** + * The type of event that triggers a Pub/Sub. At most one + * `PubSubNotification` per EventType is permitted. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; + */ + protected $event = 0; + /** + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; + */ + protected $pubsub_condition = null; + /** + * How much data to include in the Pub/Sub message. If the user wishes to + * limit the size of the message, they can use resource_name and fetch the + * profile fields they wish to. Per table profile (not per column). + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; + */ + protected $detail_of_message = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $topic + * Cloud Pub/Sub topic to send notifications to. + * Format is projects/{project}/topics/{topic}. + * @type int $event + * The type of event that triggers a Pub/Sub. At most one + * `PubSubNotification` per EventType is permitted. + * @type \Google\Cloud\Dlp\V2\DataProfilePubSubCondition $pubsub_condition + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + * @type int $detail_of_message + * How much data to include in the Pub/Sub message. If the user wishes to + * limit the size of the message, they can use resource_name and fetch the + * profile fields they wish to. Per table profile (not per column). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Cloud Pub/Sub topic to send notifications to. + * Format is projects/{project}/topics/{topic}. + * + * Generated from protobuf field string topic = 1; + * @return string + */ + public function getTopic() + { + return $this->topic; + } + + /** + * Cloud Pub/Sub topic to send notifications to. + * Format is projects/{project}/topics/{topic}. + * + * Generated from protobuf field string topic = 1; + * @param string $var + * @return $this + */ + public function setTopic($var) + { + GPBUtil::checkString($var, True); + $this->topic = $var; + + return $this; + } + + /** + * The type of event that triggers a Pub/Sub. At most one + * `PubSubNotification` per EventType is permitted. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; + * @return int + */ + public function getEvent() + { + return $this->event; + } + + /** + * The type of event that triggers a Pub/Sub. At most one + * `PubSubNotification` per EventType is permitted. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; + * @param int $var + * @return $this + */ + public function setEvent($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileAction\EventType::class); + $this->event = $var; + + return $this; + } + + /** + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; + * @return \Google\Cloud\Dlp\V2\DataProfilePubSubCondition|null + */ + public function getPubsubCondition() + { + return $this->pubsub_condition; + } + + public function hasPubsubCondition() + { + return isset($this->pubsub_condition); + } + + public function clearPubsubCondition() + { + unset($this->pubsub_condition); + } + + /** + * Conditions (e.g., data risk or sensitivity level) for triggering a + * Pub/Sub. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; + * @param \Google\Cloud\Dlp\V2\DataProfilePubSubCondition $var + * @return $this + */ + public function setPubsubCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition::class); + $this->pubsub_condition = $var; + + return $this; + } + + /** + * How much data to include in the Pub/Sub message. If the user wishes to + * limit the size of the message, they can use resource_name and fetch the + * profile fields they wish to. Per table profile (not per column). + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; + * @return int + */ + public function getDetailOfMessage() + { + return $this->detail_of_message; + } + + /** + * How much data to include in the Pub/Sub message. If the user wishes to + * limit the size of the message, they can use resource_name and fetch the + * profile fields they wish to. Per table profile (not per column). + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; + * @param int $var + * @return $this + */ + public function setDetailOfMessage($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileAction\PubSubNotification\DetailLevel::class); + $this->detail_of_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification/DetailLevel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification/DetailLevel.php new file mode 100644 index 000000000000..f92fba77b873 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification/DetailLevel.php @@ -0,0 +1,68 @@ +google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel + */ +class DetailLevel +{ + /** + * Unused. + * + * Generated from protobuf enum DETAIL_LEVEL_UNSPECIFIED = 0; + */ + const DETAIL_LEVEL_UNSPECIFIED = 0; + /** + * The full table data profile. + * + * Generated from protobuf enum TABLE_PROFILE = 1; + */ + const TABLE_PROFILE = 1; + /** + * The name of the profiled resource. + * + * Generated from protobuf enum RESOURCE_NAME = 2; + */ + const RESOURCE_NAME = 2; + /** + * The full file store data profile. + * + * Generated from protobuf enum FILE_STORE_PROFILE = 3; + */ + const FILE_STORE_PROFILE = 3; + + private static $valueToName = [ + self::DETAIL_LEVEL_UNSPECIFIED => 'DETAIL_LEVEL_UNSPECIFIED', + self::TABLE_PROFILE => 'TABLE_PROFILE', + self::RESOURCE_NAME => 'RESOURCE_NAME', + self::FILE_STORE_PROFILE => 'FILE_STORE_PROFILE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToChronicle.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToChronicle.php new file mode 100644 index 000000000000..8e3085810a2a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToChronicle.php @@ -0,0 +1,33 @@ +google.privacy.dlp.v2.DataProfileAction.PublishToChronicle + */ +class PublishToChronicle extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToDataplexCatalog.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToDataplexCatalog.php new file mode 100644 index 000000000000..011f5f0f676f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToDataplexCatalog.php @@ -0,0 +1,89 @@ +google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog + */ +class PublishToDataplexCatalog extends \Google\Protobuf\Internal\Message +{ + /** + * Whether creating a Dataplex Universal Catalog aspect for a profiled + * resource should lower the risk of the profile for that resource. This + * also lowers the data risk of resources at the lower levels of the + * resource hierarchy. For example, reducing the data risk of a table data + * profile also reduces the data risk of the constituent column data + * profiles. + * + * Generated from protobuf field bool lower_data_risk_to_low = 1; + */ + protected $lower_data_risk_to_low = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $lower_data_risk_to_low + * Whether creating a Dataplex Universal Catalog aspect for a profiled + * resource should lower the risk of the profile for that resource. This + * also lowers the data risk of resources at the lower levels of the + * resource hierarchy. For example, reducing the data risk of a table data + * profile also reduces the data risk of the constituent column data + * profiles. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Whether creating a Dataplex Universal Catalog aspect for a profiled + * resource should lower the risk of the profile for that resource. This + * also lowers the data risk of resources at the lower levels of the + * resource hierarchy. For example, reducing the data risk of a table data + * profile also reduces the data risk of the constituent column data + * profiles. + * + * Generated from protobuf field bool lower_data_risk_to_low = 1; + * @return bool + */ + public function getLowerDataRiskToLow() + { + return $this->lower_data_risk_to_low; + } + + /** + * Whether creating a Dataplex Universal Catalog aspect for a profiled + * resource should lower the risk of the profile for that resource. This + * also lowers the data risk of resources at the lower levels of the + * resource hierarchy. For example, reducing the data risk of a table data + * profile also reduces the data risk of the constituent column data + * profiles. + * + * Generated from protobuf field bool lower_data_risk_to_low = 1; + * @param bool $var + * @return $this + */ + public function setLowerDataRiskToLow($var) + { + GPBUtil::checkBool($var); + $this->lower_data_risk_to_low = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToSecurityCommandCenter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToSecurityCommandCenter.php new file mode 100644 index 000000000000..b7ebfb007258 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToSecurityCommandCenter.php @@ -0,0 +1,34 @@ +google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter + */ +class PublishToSecurityCommandCenter extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources.php new file mode 100644 index 000000000000..9c6c3633d382 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources.php @@ -0,0 +1,188 @@ +google.privacy.dlp.v2.DataProfileAction.TagResources + */ +class TagResources extends \Google\Protobuf\Internal\Message +{ + /** + * The tags to associate with different conditions. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; + */ + private $tag_conditions; + /** + * The profile generations for which the tag should be attached to + * resources. If you attach a tag to only new profiles, then if the + * sensitivity score of a profile subsequently changes, its tag doesn't + * change. By default, this field includes only new profiles. To include + * both new and updated profiles for tagging, this field should explicitly + * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; + */ + private $profile_generations_to_tag; + /** + * Whether applying a tag to a resource should lower the risk of the profile + * for that resource. For example, in conjunction with an [IAM deny + * policy](https://cloud.google.com/iam/docs/deny-overview), you can deny + * all principals a permission if a tag value is present, mitigating the + * risk of the resource. This also lowers the data risk of resources at the + * lower levels of the resource hierarchy. For example, reducing the data + * risk of a table data profile also reduces the data risk of the + * constituent column data profiles. + * + * Generated from protobuf field bool lower_data_risk_to_low = 3; + */ + protected $lower_data_risk_to_low = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagCondition[] $tag_conditions + * The tags to associate with different conditions. + * @type int[] $profile_generations_to_tag + * The profile generations for which the tag should be attached to + * resources. If you attach a tag to only new profiles, then if the + * sensitivity score of a profile subsequently changes, its tag doesn't + * change. By default, this field includes only new profiles. To include + * both new and updated profiles for tagging, this field should explicitly + * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`. + * @type bool $lower_data_risk_to_low + * Whether applying a tag to a resource should lower the risk of the profile + * for that resource. For example, in conjunction with an [IAM deny + * policy](https://cloud.google.com/iam/docs/deny-overview), you can deny + * all principals a permission if a tag value is present, mitigating the + * risk of the resource. This also lowers the data risk of resources at the + * lower levels of the resource hierarchy. For example, reducing the data + * risk of a table data profile also reduces the data risk of the + * constituent column data profiles. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The tags to associate with different conditions. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagCondition> + */ + public function getTagConditions() + { + return $this->tag_conditions; + } + + /** + * The tags to associate with different conditions. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; + * @param \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagCondition[] $var + * @return $this + */ + public function setTagConditions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagCondition::class); + $this->tag_conditions = $arr; + + return $this; + } + + /** + * The profile generations for which the tag should be attached to + * resources. If you attach a tag to only new profiles, then if the + * sensitivity score of a profile subsequently changes, its tag doesn't + * change. By default, this field includes only new profiles. To include + * both new and updated profiles for tagging, this field should explicitly + * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; + * @return RepeatedField + */ + public function getProfileGenerationsToTag() + { + return $this->profile_generations_to_tag; + } + + /** + * The profile generations for which the tag should be attached to + * resources. If you attach a tag to only new profiles, then if the + * sensitivity score of a profile subsequently changes, its tag doesn't + * change. By default, this field includes only new profiles. To include + * both new and updated profiles for tagging, this field should explicitly + * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; + * @param int[] $var + * @return $this + */ + public function setProfileGenerationsToTag($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\ProfileGeneration::class); + $this->profile_generations_to_tag = $arr; + + return $this; + } + + /** + * Whether applying a tag to a resource should lower the risk of the profile + * for that resource. For example, in conjunction with an [IAM deny + * policy](https://cloud.google.com/iam/docs/deny-overview), you can deny + * all principals a permission if a tag value is present, mitigating the + * risk of the resource. This also lowers the data risk of resources at the + * lower levels of the resource hierarchy. For example, reducing the data + * risk of a table data profile also reduces the data risk of the + * constituent column data profiles. + * + * Generated from protobuf field bool lower_data_risk_to_low = 3; + * @return bool + */ + public function getLowerDataRiskToLow() + { + return $this->lower_data_risk_to_low; + } + + /** + * Whether applying a tag to a resource should lower the risk of the profile + * for that resource. For example, in conjunction with an [IAM deny + * policy](https://cloud.google.com/iam/docs/deny-overview), you can deny + * all principals a permission if a tag value is present, mitigating the + * risk of the resource. This also lowers the data risk of resources at the + * lower levels of the resource hierarchy. For example, reducing the data + * risk of a table data profile also reduces the data risk of the + * constituent column data profiles. + * + * Generated from protobuf field bool lower_data_risk_to_low = 3; + * @param bool $var + * @return $this + */ + public function setLowerDataRiskToLow($var) + { + GPBUtil::checkBool($var); + $this->lower_data_risk_to_low = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagCondition.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagCondition.php new file mode 100644 index 000000000000..a718a955c11a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagCondition.php @@ -0,0 +1,123 @@ +google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition + */ +class TagCondition extends \Google\Protobuf\Internal\Message +{ + /** + * The tag value to attach to resources. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; + */ + protected $tag = null; + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagValue $tag + * The tag value to attach to resources. + * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score + * Conditions attaching the tag to a resource on its profile having this + * sensitivity score. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The tag value to attach to resources. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; + * @return \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagValue|null + */ + public function getTag() + { + return $this->tag; + } + + public function hasTag() + { + return isset($this->tag); + } + + public function clearTag() + { + unset($this->tag); + } + + /** + * The tag value to attach to resources. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; + * @param \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagValue $var + * @return $this + */ + public function setTag($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagValue::class); + $this->tag = $var; + + return $this; + } + + /** + * Conditions attaching the tag to a resource on its profile having this + * sensitivity score. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; + * @return \Google\Cloud\Dlp\V2\SensitivityScore|null + */ + public function getSensitivityScore() + { + return $this->readOneof(2); + } + + public function hasSensitivityScore() + { + return $this->hasOneof(2); + } + + /** + * Conditions attaching the tag to a resource on its profile having this + * sensitivity score. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; + * @param \Google\Cloud\Dlp\V2\SensitivityScore $var + * @return $this + */ + public function setSensitivityScore($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagValue.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagValue.php new file mode 100644 index 000000000000..525bbe9a7852 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagValue.php @@ -0,0 +1,84 @@ +google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue + */ +class TagValue extends \Google\Protobuf\Internal\Message +{ + protected $format; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $namespaced_value + * The namespaced name for the tag value to attach to resources. Must be + * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for + * example, "123456/environment/prod" for an organization parent, or + * "my-project/environment/prod" for a project parent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The namespaced name for the tag value to attach to resources. Must be + * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for + * example, "123456/environment/prod" for an organization parent, or + * "my-project/environment/prod" for a project parent. + * + * Generated from protobuf field string namespaced_value = 1; + * @return string + */ + public function getNamespacedValue() + { + return $this->readOneof(1); + } + + public function hasNamespacedValue() + { + return $this->hasOneof(1); + } + + /** + * The namespaced name for the tag value to attach to resources. Must be + * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for + * example, "123456/environment/prod" for an organization parent, or + * "my-project/environment/prod" for a project parent. + * + * Generated from protobuf field string namespaced_value = 1; + * @param string $var + * @return $this + */ + public function setNamespacedValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getFormat() + { + return $this->whichOneof("format"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileBigQueryRowSchema.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileBigQueryRowSchema.php new file mode 100644 index 000000000000..bd8d244749c1 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileBigQueryRowSchema.php @@ -0,0 +1,142 @@ +google.privacy.dlp.v2.DataProfileBigQueryRowSchema + */ +class DataProfileBigQueryRowSchema extends \Google\Protobuf\Internal\Message +{ + protected $data_profile; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\TableDataProfile $table_profile + * Table data profile column + * @type \Google\Cloud\Dlp\V2\ColumnDataProfile $column_profile + * Column data profile column + * @type \Google\Cloud\Dlp\V2\FileStoreDataProfile $file_store_profile + * File store data profile column. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Table data profile column + * + * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile table_profile = 1; + * @return \Google\Cloud\Dlp\V2\TableDataProfile|null + */ + public function getTableProfile() + { + return $this->readOneof(1); + } + + public function hasTableProfile() + { + return $this->hasOneof(1); + } + + /** + * Table data profile column + * + * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile table_profile = 1; + * @param \Google\Cloud\Dlp\V2\TableDataProfile $var + * @return $this + */ + public function setTableProfile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableDataProfile::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Column data profile column + * + * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile column_profile = 2; + * @return \Google\Cloud\Dlp\V2\ColumnDataProfile|null + */ + public function getColumnProfile() + { + return $this->readOneof(2); + } + + public function hasColumnProfile() + { + return $this->hasOneof(2); + } + + /** + * Column data profile column + * + * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile column_profile = 2; + * @param \Google\Cloud\Dlp\V2\ColumnDataProfile $var + * @return $this + */ + public function setColumnProfile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ColumnDataProfile::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * File store data profile column. + * + * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + * @return \Google\Cloud\Dlp\V2\FileStoreDataProfile|null + */ + public function getFileStoreProfile() + { + return $this->readOneof(3); + } + + public function hasFileStoreProfile() + { + return $this->hasOneof(3); + } + + /** + * File store data profile column. + * + * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + * @param \Google\Cloud\Dlp\V2\FileStoreDataProfile $var + * @return $this + */ + public function setFileStoreProfile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FileStoreDataProfile::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getDataProfile() + { + return $this->whichOneof("data_profile"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileConfigSnapshot.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileConfigSnapshot.php new file mode 100644 index 000000000000..a81c221cafca --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileConfigSnapshot.php @@ -0,0 +1,274 @@ +google.privacy.dlp.v2.DataProfileConfigSnapshot + */ +class DataProfileConfigSnapshot extends \Google\Protobuf\Internal\Message +{ + /** + * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; + */ + protected $inspect_config = null; + /** + * A copy of the configuration used to generate this profile. This is + * deprecated, and the DiscoveryConfig field is preferred moving forward. + * DataProfileJobConfig will still be written here for Discovery in BigQuery + * for backwards compatibility, but will not be updated with new fields, while + * DiscoveryConfig will. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * @deprecated + */ + protected $data_profile_job = null; + /** + * A copy of the configuration used to generate this profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + */ + protected $discovery_config = null; + /** + * Name of the inspection template used to generate this profile + * + * Generated from protobuf field string inspect_template_name = 5; + */ + protected $inspect_template_name = ''; + /** + * Timestamp when the template was modified + * + * Generated from protobuf field .google.protobuf.Timestamp inspect_template_modified_time = 6; + */ + protected $inspect_template_modified_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config + * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + * @type \Google\Cloud\Dlp\V2\DataProfileJobConfig $data_profile_job + * A copy of the configuration used to generate this profile. This is + * deprecated, and the DiscoveryConfig field is preferred moving forward. + * DataProfileJobConfig will still be written here for Discovery in BigQuery + * for backwards compatibility, but will not be updated with new fields, while + * DiscoveryConfig will. + * @type \Google\Cloud\Dlp\V2\DiscoveryConfig $discovery_config + * A copy of the configuration used to generate this profile. + * @type string $inspect_template_name + * Name of the inspection template used to generate this profile + * @type \Google\Protobuf\Timestamp $inspect_template_modified_time + * Timestamp when the template was modified + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; + * @return \Google\Cloud\Dlp\V2\InspectConfig|null + */ + public function getInspectConfig() + { + return $this->inspect_config; + } + + public function hasInspectConfig() + { + return isset($this->inspect_config); + } + + public function clearInspectConfig() + { + unset($this->inspect_config); + } + + /** + * A copy of the inspection config used to generate this profile. This + * is a copy of the inspect_template specified in `DataProfileJobConfig`. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; + * @param \Google\Cloud\Dlp\V2\InspectConfig $var + * @return $this + */ + public function setInspectConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); + $this->inspect_config = $var; + + return $this; + } + + /** + * A copy of the configuration used to generate this profile. This is + * deprecated, and the DiscoveryConfig field is preferred moving forward. + * DataProfileJobConfig will still be written here for Discovery in BigQuery + * for backwards compatibility, but will not be updated with new fields, while + * DiscoveryConfig will. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * @return \Google\Cloud\Dlp\V2\DataProfileJobConfig|null + * @deprecated + */ + public function getDataProfileJob() + { + if (isset($this->data_profile_job)) { + @trigger_error('data_profile_job is deprecated.', E_USER_DEPRECATED); + } + return $this->data_profile_job; + } + + public function hasDataProfileJob() + { + if (isset($this->data_profile_job)) { + @trigger_error('data_profile_job is deprecated.', E_USER_DEPRECATED); + } + return isset($this->data_profile_job); + } + + public function clearDataProfileJob() + { + @trigger_error('data_profile_job is deprecated.', E_USER_DEPRECATED); + unset($this->data_profile_job); + } + + /** + * A copy of the configuration used to generate this profile. This is + * deprecated, and the DiscoveryConfig field is preferred moving forward. + * DataProfileJobConfig will still be written here for Discovery in BigQuery + * for backwards compatibility, but will not be updated with new fields, while + * DiscoveryConfig will. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * @param \Google\Cloud\Dlp\V2\DataProfileJobConfig $var + * @return $this + * @deprecated + */ + public function setDataProfileJob($var) + { + @trigger_error('data_profile_job is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileJobConfig::class); + $this->data_profile_job = $var; + + return $this; + } + + /** + * A copy of the configuration used to generate this profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + * @return \Google\Cloud\Dlp\V2\DiscoveryConfig|null + */ + public function getDiscoveryConfig() + { + return $this->discovery_config; + } + + public function hasDiscoveryConfig() + { + return isset($this->discovery_config); + } + + public function clearDiscoveryConfig() + { + unset($this->discovery_config); + } + + /** + * A copy of the configuration used to generate this profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + * @param \Google\Cloud\Dlp\V2\DiscoveryConfig $var + * @return $this + */ + public function setDiscoveryConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryConfig::class); + $this->discovery_config = $var; + + return $this; + } + + /** + * Name of the inspection template used to generate this profile + * + * Generated from protobuf field string inspect_template_name = 5; + * @return string + */ + public function getInspectTemplateName() + { + return $this->inspect_template_name; + } + + /** + * Name of the inspection template used to generate this profile + * + * Generated from protobuf field string inspect_template_name = 5; + * @param string $var + * @return $this + */ + public function setInspectTemplateName($var) + { + GPBUtil::checkString($var, True); + $this->inspect_template_name = $var; + + return $this; + } + + /** + * Timestamp when the template was modified + * + * Generated from protobuf field .google.protobuf.Timestamp inspect_template_modified_time = 6; + * @return \Google\Protobuf\Timestamp|null + */ + public function getInspectTemplateModifiedTime() + { + return $this->inspect_template_modified_time; + } + + public function hasInspectTemplateModifiedTime() + { + return isset($this->inspect_template_modified_time); + } + + public function clearInspectTemplateModifiedTime() + { + unset($this->inspect_template_modified_time); + } + + /** + * Timestamp when the template was modified + * + * Generated from protobuf field .google.protobuf.Timestamp inspect_template_modified_time = 6; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setInspectTemplateModifiedTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->inspect_template_modified_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFinding.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFinding.php new file mode 100644 index 000000000000..6f7a99076514 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFinding.php @@ -0,0 +1,452 @@ +google.privacy.dlp.v2.DataProfileFinding + */ +class DataProfileFinding extends \Google\Protobuf\Internal\Message +{ + /** + * The content that was found. Even if the content is not textual, it + * may be converted to a textual representation here. If the finding exceeds + * 4096 bytes in length, the quote may be omitted. + * + * Generated from protobuf field string quote = 1; + */ + protected $quote = ''; + /** + * The [type of + * content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) + * that might have been found. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType infotype = 2; + */ + protected $infotype = null; + /** + * Contains data parsed from quotes. Currently supported infoTypes: DATE, + * DATE_OF_BIRTH, and TIME. + * + * Generated from protobuf field .google.privacy.dlp.v2.QuoteInfo quote_info = 3; + */ + protected $quote_info = null; + /** + * Resource name of the data profile associated with the finding. + * + * Generated from protobuf field string data_profile_resource_name = 4; + */ + protected $data_profile_resource_name = ''; + /** + * A unique identifier for the finding. + * + * Generated from protobuf field string finding_id = 5; + */ + protected $finding_id = ''; + /** + * Timestamp when the finding was detected. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 6; + */ + protected $timestamp = null; + /** + * Where the content was found. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileFindingLocation location = 7; + */ + protected $location = null; + /** + * How broadly a resource has been shared. + * + * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 8; + */ + protected $resource_visibility = 0; + /** + * The [full resource + * name](https://cloud.google.com/apis/design/resource_names#full_resource_name) + * of the resource profiled for this finding. + * + * Generated from protobuf field string full_resource_name = 9; + */ + protected $full_resource_name = ''; + /** + * The type of the resource that was profiled. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 10; + */ + protected $data_source_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $quote + * The content that was found. Even if the content is not textual, it + * may be converted to a textual representation here. If the finding exceeds + * 4096 bytes in length, the quote may be omitted. + * @type \Google\Cloud\Dlp\V2\InfoType $infotype + * The [type of + * content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) + * that might have been found. + * @type \Google\Cloud\Dlp\V2\QuoteInfo $quote_info + * Contains data parsed from quotes. Currently supported infoTypes: DATE, + * DATE_OF_BIRTH, and TIME. + * @type string $data_profile_resource_name + * Resource name of the data profile associated with the finding. + * @type string $finding_id + * A unique identifier for the finding. + * @type \Google\Protobuf\Timestamp $timestamp + * Timestamp when the finding was detected. + * @type \Google\Cloud\Dlp\V2\DataProfileFindingLocation $location + * Where the content was found. + * @type int $resource_visibility + * How broadly a resource has been shared. + * @type string $full_resource_name + * The [full resource + * name](https://cloud.google.com/apis/design/resource_names#full_resource_name) + * of the resource profiled for this finding. + * @type \Google\Cloud\Dlp\V2\DataSourceType $data_source_type + * The type of the resource that was profiled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The content that was found. Even if the content is not textual, it + * may be converted to a textual representation here. If the finding exceeds + * 4096 bytes in length, the quote may be omitted. + * + * Generated from protobuf field string quote = 1; + * @return string + */ + public function getQuote() + { + return $this->quote; + } + + /** + * The content that was found. Even if the content is not textual, it + * may be converted to a textual representation here. If the finding exceeds + * 4096 bytes in length, the quote may be omitted. + * + * Generated from protobuf field string quote = 1; + * @param string $var + * @return $this + */ + public function setQuote($var) + { + GPBUtil::checkString($var, True); + $this->quote = $var; + + return $this; + } + + /** + * The [type of + * content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) + * that might have been found. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType infotype = 2; + * @return \Google\Cloud\Dlp\V2\InfoType|null + */ + public function getInfotype() + { + return $this->infotype; + } + + public function hasInfotype() + { + return isset($this->infotype); + } + + public function clearInfotype() + { + unset($this->infotype); + } + + /** + * The [type of + * content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) + * that might have been found. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType infotype = 2; + * @param \Google\Cloud\Dlp\V2\InfoType $var + * @return $this + */ + public function setInfotype($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); + $this->infotype = $var; + + return $this; + } + + /** + * Contains data parsed from quotes. Currently supported infoTypes: DATE, + * DATE_OF_BIRTH, and TIME. + * + * Generated from protobuf field .google.privacy.dlp.v2.QuoteInfo quote_info = 3; + * @return \Google\Cloud\Dlp\V2\QuoteInfo|null + */ + public function getQuoteInfo() + { + return $this->quote_info; + } + + public function hasQuoteInfo() + { + return isset($this->quote_info); + } + + public function clearQuoteInfo() + { + unset($this->quote_info); + } + + /** + * Contains data parsed from quotes. Currently supported infoTypes: DATE, + * DATE_OF_BIRTH, and TIME. + * + * Generated from protobuf field .google.privacy.dlp.v2.QuoteInfo quote_info = 3; + * @param \Google\Cloud\Dlp\V2\QuoteInfo $var + * @return $this + */ + public function setQuoteInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\QuoteInfo::class); + $this->quote_info = $var; + + return $this; + } + + /** + * Resource name of the data profile associated with the finding. + * + * Generated from protobuf field string data_profile_resource_name = 4; + * @return string + */ + public function getDataProfileResourceName() + { + return $this->data_profile_resource_name; + } + + /** + * Resource name of the data profile associated with the finding. + * + * Generated from protobuf field string data_profile_resource_name = 4; + * @param string $var + * @return $this + */ + public function setDataProfileResourceName($var) + { + GPBUtil::checkString($var, True); + $this->data_profile_resource_name = $var; + + return $this; + } + + /** + * A unique identifier for the finding. + * + * Generated from protobuf field string finding_id = 5; + * @return string + */ + public function getFindingId() + { + return $this->finding_id; + } + + /** + * A unique identifier for the finding. + * + * Generated from protobuf field string finding_id = 5; + * @param string $var + * @return $this + */ + public function setFindingId($var) + { + GPBUtil::checkString($var, True); + $this->finding_id = $var; + + return $this; + } + + /** + * Timestamp when the finding was detected. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 6; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTimestamp() + { + return $this->timestamp; + } + + public function hasTimestamp() + { + return isset($this->timestamp); + } + + public function clearTimestamp() + { + unset($this->timestamp); + } + + /** + * Timestamp when the finding was detected. + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 6; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTimestamp($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->timestamp = $var; + + return $this; + } + + /** + * Where the content was found. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileFindingLocation location = 7; + * @return \Google\Cloud\Dlp\V2\DataProfileFindingLocation|null + */ + public function getLocation() + { + return $this->location; + } + + public function hasLocation() + { + return isset($this->location); + } + + public function clearLocation() + { + unset($this->location); + } + + /** + * Where the content was found. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileFindingLocation location = 7; + * @param \Google\Cloud\Dlp\V2\DataProfileFindingLocation $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileFindingLocation::class); + $this->location = $var; + + return $this; + } + + /** + * How broadly a resource has been shared. + * + * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 8; + * @return int + */ + public function getResourceVisibility() + { + return $this->resource_visibility; + } + + /** + * How broadly a resource has been shared. + * + * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 8; + * @param int $var + * @return $this + */ + public function setResourceVisibility($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ResourceVisibility::class); + $this->resource_visibility = $var; + + return $this; + } + + /** + * The [full resource + * name](https://cloud.google.com/apis/design/resource_names#full_resource_name) + * of the resource profiled for this finding. + * + * Generated from protobuf field string full_resource_name = 9; + * @return string + */ + public function getFullResourceName() + { + return $this->full_resource_name; + } + + /** + * The [full resource + * name](https://cloud.google.com/apis/design/resource_names#full_resource_name) + * of the resource profiled for this finding. + * + * Generated from protobuf field string full_resource_name = 9; + * @param string $var + * @return $this + */ + public function setFullResourceName($var) + { + GPBUtil::checkString($var, True); + $this->full_resource_name = $var; + + return $this; + } + + /** + * The type of the resource that was profiled. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 10; + * @return \Google\Cloud\Dlp\V2\DataSourceType|null + */ + public function getDataSourceType() + { + return $this->data_source_type; + } + + public function hasDataSourceType() + { + return isset($this->data_source_type); + } + + public function clearDataSourceType() + { + unset($this->data_source_type); + } + + /** + * The type of the resource that was profiled. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 10; + * @param \Google\Cloud\Dlp\V2\DataSourceType $var + * @return $this + */ + public function setDataSourceType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataSourceType::class); + $this->data_source_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFindingLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFindingLocation.php new file mode 100644 index 000000000000..5fe456381489 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFindingLocation.php @@ -0,0 +1,128 @@ +google.privacy.dlp.v2.DataProfileFindingLocation + */ +class DataProfileFindingLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the container where the finding is located. + * The top-level name is the source file name or table name. Names of some + * common storage containers are formatted as follows: + * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` + * * Cloud Storage files: `gs://{bucket}/{path}` + * + * Generated from protobuf field string container_name = 1; + */ + protected $container_name = ''; + protected $location_extra_details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $container_name + * Name of the container where the finding is located. + * The top-level name is the source file name or table name. Names of some + * common storage containers are formatted as follows: + * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` + * * Cloud Storage files: `gs://{bucket}/{path}` + * @type \Google\Cloud\Dlp\V2\DataProfileFindingRecordLocation $data_profile_finding_record_location + * Location of a finding within a resource that produces a table data + * profile. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Name of the container where the finding is located. + * The top-level name is the source file name or table name. Names of some + * common storage containers are formatted as follows: + * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` + * * Cloud Storage files: `gs://{bucket}/{path}` + * + * Generated from protobuf field string container_name = 1; + * @return string + */ + public function getContainerName() + { + return $this->container_name; + } + + /** + * Name of the container where the finding is located. + * The top-level name is the source file name or table name. Names of some + * common storage containers are formatted as follows: + * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` + * * Cloud Storage files: `gs://{bucket}/{path}` + * + * Generated from protobuf field string container_name = 1; + * @param string $var + * @return $this + */ + public function setContainerName($var) + { + GPBUtil::checkString($var, True); + $this->container_name = $var; + + return $this; + } + + /** + * Location of a finding within a resource that produces a table data + * profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileFindingRecordLocation data_profile_finding_record_location = 2; + * @return \Google\Cloud\Dlp\V2\DataProfileFindingRecordLocation|null + */ + public function getDataProfileFindingRecordLocation() + { + return $this->readOneof(2); + } + + public function hasDataProfileFindingRecordLocation() + { + return $this->hasOneof(2); + } + + /** + * Location of a finding within a resource that produces a table data + * profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileFindingRecordLocation data_profile_finding_record_location = 2; + * @param \Google\Cloud\Dlp\V2\DataProfileFindingRecordLocation $var + * @return $this + */ + public function setDataProfileFindingRecordLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileFindingRecordLocation::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getLocationExtraDetails() + { + return $this->whichOneof("location_extra_details"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFindingRecordLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFindingRecordLocation.php new file mode 100644 index 000000000000..76b0ce7a99da --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFindingRecordLocation.php @@ -0,0 +1,77 @@ +google.privacy.dlp.v2.DataProfileFindingRecordLocation + */ +class DataProfileFindingRecordLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Field ID of the column containing the finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + */ + protected $field = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FieldId $field + * Field ID of the column containing the finding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Field ID of the column containing the finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getField() + { + return $this->field; + } + + public function hasField() + { + return isset($this->field); + } + + public function clearField() + { + unset($this->field); + } + + /** + * Field ID of the column containing the finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->field = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileJobConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileJobConfig.php new file mode 100644 index 000000000000..1a3ae20f7743 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileJobConfig.php @@ -0,0 +1,284 @@ +google.privacy.dlp.v2.DataProfileJobConfig + */ +class DataProfileJobConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The data to scan. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileLocation location = 1; + */ + protected $location = null; + /** + * The project that will run the scan. The DLP service + * account that exists within this project must have access to all resources + * that are profiled, and the DLP API must be enabled. + * + * Generated from protobuf field string project_id = 5; + */ + protected $project_id = ''; + /** + * Must be set only when scanning other clouds. + * + * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8; + */ + protected $other_cloud_starting_location = null; + /** + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. + * + * Generated from protobuf field repeated string inspect_templates = 7; + */ + private $inspect_templates; + /** + * Actions to execute at the completion of the job. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; + */ + private $data_profile_actions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DataProfileLocation $location + * The data to scan. + * @type string $project_id + * The project that will run the scan. The DLP service + * account that exists within this project must have access to all resources + * that are profiled, and the DLP API must be enabled. + * @type \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation $other_cloud_starting_location + * Must be set only when scanning other clouds. + * @type string[] $inspect_templates + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. + * @type \Google\Cloud\Dlp\V2\DataProfileAction[] $data_profile_actions + * Actions to execute at the completion of the job. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The data to scan. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileLocation location = 1; + * @return \Google\Cloud\Dlp\V2\DataProfileLocation|null + */ + public function getLocation() + { + return $this->location; + } + + public function hasLocation() + { + return isset($this->location); + } + + public function clearLocation() + { + unset($this->location); + } + + /** + * The data to scan. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileLocation location = 1; + * @param \Google\Cloud\Dlp\V2\DataProfileLocation $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileLocation::class); + $this->location = $var; + + return $this; + } + + /** + * The project that will run the scan. The DLP service + * account that exists within this project must have access to all resources + * that are profiled, and the DLP API must be enabled. + * + * Generated from protobuf field string project_id = 5; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * The project that will run the scan. The DLP service + * account that exists within this project must have access to all resources + * that are profiled, and the DLP API must be enabled. + * + * Generated from protobuf field string project_id = 5; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Must be set only when scanning other clouds. + * + * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8; + * @return \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation|null + */ + public function getOtherCloudStartingLocation() + { + return $this->other_cloud_starting_location; + } + + public function hasOtherCloudStartingLocation() + { + return isset($this->other_cloud_starting_location); + } + + public function clearOtherCloudStartingLocation() + { + unset($this->other_cloud_starting_location); + } + + /** + * Must be set only when scanning other clouds. + * + * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8; + * @param \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation $var + * @return $this + */ + public function setOtherCloudStartingLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation::class); + $this->other_cloud_starting_location = $var; + + return $this; + } + + /** + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. + * + * Generated from protobuf field repeated string inspect_templates = 7; + * @return RepeatedField + */ + public function getInspectTemplates() + { + return $this->inspect_templates; + } + + /** + * Detection logic for profile generation. + * Not all template features are used by profiles. FindingLimits, + * include_quote and exclude_info_types have no impact on + * data profiling. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. + * + * Generated from protobuf field repeated string inspect_templates = 7; + * @param string[] $var + * @return $this + */ + public function setInspectTemplates($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->inspect_templates = $arr; + + return $this; + } + + /** + * Actions to execute at the completion of the job. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; + * @return RepeatedField<\Google\Cloud\Dlp\V2\DataProfileAction> + */ + public function getDataProfileActions() + { + return $this->data_profile_actions; + } + + /** + * Actions to execute at the completion of the job. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; + * @param \Google\Cloud\Dlp\V2\DataProfileAction[] $var + * @return $this + */ + public function setDataProfileActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DataProfileAction::class); + $this->data_profile_actions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileLocation.php new file mode 100644 index 000000000000..028ada3f3168 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileLocation.php @@ -0,0 +1,108 @@ +google.privacy.dlp.v2.DataProfileLocation + */ +class DataProfileLocation extends \Google\Protobuf\Internal\Message +{ + protected $location; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $organization_id + * The ID of an organization to scan. + * @type int|string $folder_id + * The ID of the folder within an organization to scan. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The ID of an organization to scan. + * + * Generated from protobuf field int64 organization_id = 1; + * @return int|string + */ + public function getOrganizationId() + { + return $this->readOneof(1); + } + + public function hasOrganizationId() + { + return $this->hasOneof(1); + } + + /** + * The ID of an organization to scan. + * + * Generated from protobuf field int64 organization_id = 1; + * @param int|string $var + * @return $this + */ + public function setOrganizationId($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The ID of the folder within an organization to scan. + * + * Generated from protobuf field int64 folder_id = 2; + * @return int|string + */ + public function getFolderId() + { + return $this->readOneof(2); + } + + public function hasFolderId() + { + return $this->hasOneof(2); + } + + /** + * The ID of the folder within an organization to scan. + * + * Generated from protobuf field int64 folder_id = 2; + * @param int|string $var + * @return $this + */ + public function setFolderId($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getLocation() + { + return $this->whichOneof("location"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition.php new file mode 100644 index 000000000000..ea8e925d2f09 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition.php @@ -0,0 +1,77 @@ +google.privacy.dlp.v2.DataProfilePubSubCondition + */ +class DataProfilePubSubCondition extends \Google\Protobuf\Internal\Message +{ + /** + * An expression. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1; + */ + protected $expressions = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubExpressions $expressions + * An expression. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * An expression. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1; + * @return \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubExpressions|null + */ + public function getExpressions() + { + return $this->expressions; + } + + public function hasExpressions() + { + return isset($this->expressions); + } + + public function clearExpressions() + { + unset($this->expressions); + } + + /** + * An expression. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1; + * @param \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubExpressions $var + * @return $this + */ + public function setExpressions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubExpressions::class); + $this->expressions = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/ProfileScoreBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/ProfileScoreBucket.php new file mode 100644 index 000000000000..eefb05eb30ec --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/ProfileScoreBucket.php @@ -0,0 +1,61 @@ +google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket + */ +class ProfileScoreBucket +{ + /** + * Unused. + * + * Generated from protobuf enum PROFILE_SCORE_BUCKET_UNSPECIFIED = 0; + */ + const PROFILE_SCORE_BUCKET_UNSPECIFIED = 0; + /** + * High risk/sensitivity detected. + * + * Generated from protobuf enum HIGH = 1; + */ + const HIGH = 1; + /** + * Medium or high risk/sensitivity detected. + * + * Generated from protobuf enum MEDIUM_OR_HIGH = 2; + */ + const MEDIUM_OR_HIGH = 2; + + private static $valueToName = [ + self::PROFILE_SCORE_BUCKET_UNSPECIFIED => 'PROFILE_SCORE_BUCKET_UNSPECIFIED', + self::HIGH => 'HIGH', + self::MEDIUM_OR_HIGH => 'MEDIUM_OR_HIGH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubCondition.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubCondition.php new file mode 100644 index 000000000000..1e33f6e03d20 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubCondition.php @@ -0,0 +1,108 @@ +google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition + */ +class PubSubCondition extends \Google\Protobuf\Internal\Message +{ + protected $value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $minimum_risk_score + * The minimum data risk score that triggers the condition. + * @type int $minimum_sensitivity_score + * The minimum sensitivity level that triggers the condition. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The minimum data risk score that triggers the condition. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1; + * @return int + */ + public function getMinimumRiskScore() + { + return $this->readOneof(1); + } + + public function hasMinimumRiskScore() + { + return $this->hasOneof(1); + } + + /** + * The minimum data risk score that triggers the condition. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1; + * @param int $var + * @return $this + */ + public function setMinimumRiskScore($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\ProfileScoreBucket::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The minimum sensitivity level that triggers the condition. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2; + * @return int + */ + public function getMinimumSensitivityScore() + { + return $this->readOneof(2); + } + + public function hasMinimumSensitivityScore() + { + return $this->hasOneof(2); + } + + /** + * The minimum sensitivity level that triggers the condition. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2; + * @param int $var + * @return $this + */ + public function setMinimumSensitivityScore($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\ProfileScoreBucket::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getValue() + { + return $this->whichOneof("value"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions.php new file mode 100644 index 000000000000..6d5002224d54 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions.php @@ -0,0 +1,101 @@ +google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions + */ +class PubSubExpressions extends \Google\Protobuf\Internal\Message +{ + /** + * The operator to apply to the collection of conditions. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1; + */ + protected $logical_operator = 0; + /** + * Conditions to apply to the expression. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2; + */ + private $conditions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $logical_operator + * The operator to apply to the collection of conditions. + * @type \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubCondition[] $conditions + * Conditions to apply to the expression. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The operator to apply to the collection of conditions. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1; + * @return int + */ + public function getLogicalOperator() + { + return $this->logical_operator; + } + + /** + * The operator to apply to the collection of conditions. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1; + * @param int $var + * @return $this + */ + public function setLogicalOperator($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubExpressions\PubSubLogicalOperator::class); + $this->logical_operator = $var; + + return $this; + } + + /** + * Conditions to apply to the expression. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2; + * @return RepeatedField<\Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubCondition> + */ + public function getConditions() + { + return $this->conditions; + } + + /** + * Conditions to apply to the expression. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2; + * @param \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubCondition[] $var + * @return $this + */ + public function setConditions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubCondition::class); + $this->conditions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions/PubSubLogicalOperator.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions/PubSubLogicalOperator.php new file mode 100644 index 000000000000..fa2c8e0248d1 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions/PubSubLogicalOperator.php @@ -0,0 +1,65 @@ +google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator + */ +class PubSubLogicalOperator +{ + /** + * Unused. + * + * Generated from protobuf enum LOGICAL_OPERATOR_UNSPECIFIED = 0; + */ + const LOGICAL_OPERATOR_UNSPECIFIED = 0; + /** + * Conditional OR. + * + * Generated from protobuf enum OR = 1; + */ + const PBOR = 1; + /** + * Conditional AND. + * + * Generated from protobuf enum AND = 2; + */ + const PBAND = 2; + + private static $valueToName = [ + self::LOGICAL_OPERATOR_UNSPECIFIED => 'LOGICAL_OPERATOR_UNSPECIFIED', + self::PBOR => 'OR', + self::PBAND => 'AND', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubMessage.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubMessage.php new file mode 100644 index 000000000000..96e2f2976e4f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubMessage.php @@ -0,0 +1,173 @@ +google.privacy.dlp.v2.DataProfilePubSubMessage + */ +class DataProfilePubSubMessage extends \Google\Protobuf\Internal\Message +{ + /** + * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + * + * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile profile = 1; + */ + protected $profile = null; + /** + * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `file_store_path` will be populated. + * + * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + */ + protected $file_store_profile = null; + /** + * The event that caused the Pub/Sub message to be sent. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; + */ + protected $event = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\TableDataProfile $profile + * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + * @type \Google\Cloud\Dlp\V2\FileStoreDataProfile $file_store_profile + * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `file_store_path` will be populated. + * @type int $event + * The event that caused the Pub/Sub message to be sent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + * + * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile profile = 1; + * @return \Google\Cloud\Dlp\V2\TableDataProfile|null + */ + public function getProfile() + { + return $this->profile; + } + + public function hasProfile() + { + return isset($this->profile); + } + + public function clearProfile() + { + unset($this->profile); + } + + /** + * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `full_resource` will be populated. + * + * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile profile = 1; + * @param \Google\Cloud\Dlp\V2\TableDataProfile $var + * @return $this + */ + public function setProfile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableDataProfile::class); + $this->profile = $var; + + return $this; + } + + /** + * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `file_store_path` will be populated. + * + * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + * @return \Google\Cloud\Dlp\V2\FileStoreDataProfile|null + */ + public function getFileStoreProfile() + { + return $this->file_store_profile; + } + + public function hasFileStoreProfile() + { + return isset($this->file_store_profile); + } + + public function clearFileStoreProfile() + { + unset($this->file_store_profile); + } + + /** + * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated. + * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and + * `file_store_path` will be populated. + * + * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; + * @param \Google\Cloud\Dlp\V2\FileStoreDataProfile $var + * @return $this + */ + public function setFileStoreProfile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FileStoreDataProfile::class); + $this->file_store_profile = $var; + + return $this; + } + + /** + * The event that caused the Pub/Sub message to be sent. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; + * @return int + */ + public function getEvent() + { + return $this->event; + } + + /** + * The event that caused the Pub/Sub message to be sent. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; + * @param int $var + * @return $this + */ + public function setEvent($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileAction\EventType::class); + $this->event = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileUpdateFrequency.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileUpdateFrequency.php new file mode 100644 index 000000000000..4b4fc355a7b8 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileUpdateFrequency.php @@ -0,0 +1,69 @@ +google.privacy.dlp.v2.DataProfileUpdateFrequency + */ +class DataProfileUpdateFrequency +{ + /** + * Unspecified. + * + * Generated from protobuf enum UPDATE_FREQUENCY_UNSPECIFIED = 0; + */ + const UPDATE_FREQUENCY_UNSPECIFIED = 0; + /** + * After the data profile is created, it will never be updated. + * + * Generated from protobuf enum UPDATE_FREQUENCY_NEVER = 1; + */ + const UPDATE_FREQUENCY_NEVER = 1; + /** + * The data profile can be updated up to once every 24 hours. + * + * Generated from protobuf enum UPDATE_FREQUENCY_DAILY = 2; + */ + const UPDATE_FREQUENCY_DAILY = 2; + /** + * The data profile can be updated up to once every 30 days. Default. + * + * Generated from protobuf enum UPDATE_FREQUENCY_MONTHLY = 4; + */ + const UPDATE_FREQUENCY_MONTHLY = 4; + + private static $valueToName = [ + self::UPDATE_FREQUENCY_UNSPECIFIED => 'UPDATE_FREQUENCY_UNSPECIFIED', + self::UPDATE_FREQUENCY_NEVER => 'UPDATE_FREQUENCY_NEVER', + self::UPDATE_FREQUENCY_DAILY => 'UPDATE_FREQUENCY_DAILY', + self::UPDATE_FREQUENCY_MONTHLY => 'UPDATE_FREQUENCY_MONTHLY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel.php new file mode 100644 index 000000000000..a7ae54004c05 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel.php @@ -0,0 +1,68 @@ +google.privacy.dlp.v2.DataRiskLevel + */ +class DataRiskLevel extends \Google\Protobuf\Internal\Message +{ + /** + * The score applied to the resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1; + */ + protected $score = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $score + * The score applied to the resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The score applied to the resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1; + * @return int + */ + public function getScore() + { + return $this->score; + } + + /** + * The score applied to the resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1; + * @param int $var + * @return $this + */ + public function setScore($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataRiskLevel\DataRiskLevelScore::class); + $this->score = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel/DataRiskLevelScore.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel/DataRiskLevelScore.php new file mode 100644 index 000000000000..f997465b5460 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel/DataRiskLevelScore.php @@ -0,0 +1,81 @@ +google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore + */ +class DataRiskLevelScore +{ + /** + * Unused. + * + * Generated from protobuf enum RISK_SCORE_UNSPECIFIED = 0; + */ + const RISK_SCORE_UNSPECIFIED = 0; + /** + * Low risk - Lower indication of sensitive data that appears to have + * additional access restrictions in place or no indication of sensitive + * data found. + * + * Generated from protobuf enum RISK_LOW = 10; + */ + const RISK_LOW = 10; + /** + * Unable to determine risk. + * + * Generated from protobuf enum RISK_UNKNOWN = 12; + */ + const RISK_UNKNOWN = 12; + /** + * Medium risk - Sensitive data may be present but additional access or fine + * grain access restrictions appear to be present. Consider limiting + * access even further or transform data to mask. + * + * Generated from protobuf enum RISK_MODERATE = 20; + */ + const RISK_MODERATE = 20; + /** + * High risk – SPII may be present. Access controls may include public + * ACLs. Exfiltration of data may lead to user data loss. Re-identification + * of users may be possible. Consider limiting usage and or removing SPII. + * + * Generated from protobuf enum RISK_HIGH = 30; + */ + const RISK_HIGH = 30; + + private static $valueToName = [ + self::RISK_SCORE_UNSPECIFIED => 'RISK_SCORE_UNSPECIFIED', + self::RISK_LOW => 'RISK_LOW', + self::RISK_UNKNOWN => 'RISK_UNKNOWN', + self::RISK_MODERATE => 'RISK_MODERATE', + self::RISK_HIGH => 'RISK_HIGH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataSourceType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataSourceType.php new file mode 100644 index 000000000000..7b5188e4eddb --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataSourceType.php @@ -0,0 +1,87 @@ +google.privacy.dlp.v2.DataSourceType + */ +class DataSourceType extends \Google\Protobuf\Internal\Message +{ + /** + * A string that identifies the type of resource being profiled. + * Current values: + * * google/bigquery/table + * * google/project + * * google/sql/table + * * google/gcs/bucket + * + * Generated from protobuf field string data_source = 1; + */ + protected $data_source = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $data_source + * A string that identifies the type of resource being profiled. + * Current values: + * * google/bigquery/table + * * google/project + * * google/sql/table + * * google/gcs/bucket + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A string that identifies the type of resource being profiled. + * Current values: + * * google/bigquery/table + * * google/project + * * google/sql/table + * * google/gcs/bucket + * + * Generated from protobuf field string data_source = 1; + * @return string + */ + public function getDataSource() + { + return $this->data_source; + } + + /** + * A string that identifies the type of resource being profiled. + * Current values: + * * google/bigquery/table + * * google/project + * * google/sql/table + * * google/gcs/bucket + * + * Generated from protobuf field string data_source = 1; + * @param string $var + * @return $this + */ + public function setDataSource($var) + { + GPBUtil::checkString($var, True); + $this->data_source = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceCollection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceCollection.php new file mode 100644 index 000000000000..7f217523160f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceCollection.php @@ -0,0 +1,76 @@ +google.privacy.dlp.v2.DatabaseResourceCollection + */ +class DatabaseResourceCollection extends \Google\Protobuf\Internal\Message +{ + protected $pattern; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DatabaseResourceRegexes $include_regexes + * A collection of regular expressions to match a database resource against. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A collection of regular expressions to match a database resource against. + * + * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceRegexes include_regexes = 1; + * @return \Google\Cloud\Dlp\V2\DatabaseResourceRegexes|null + */ + public function getIncludeRegexes() + { + return $this->readOneof(1); + } + + public function hasIncludeRegexes() + { + return $this->hasOneof(1); + } + + /** + * A collection of regular expressions to match a database resource against. + * + * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceRegexes include_regexes = 1; + * @param \Google\Cloud\Dlp\V2\DatabaseResourceRegexes $var + * @return $this + */ + public function setIncludeRegexes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DatabaseResourceRegexes::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getPattern() + { + return $this->whichOneof("pattern"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceReference.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceReference.php new file mode 100644 index 000000000000..00e861dc8f1a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceReference.php @@ -0,0 +1,181 @@ +google.privacy.dlp.v2.DatabaseResourceReference + */ +class DatabaseResourceReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. If within a project-level config, then this must match the + * config's project ID. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $project_id = ''; + /** + * Required. The instance where this resource is located. For example: Cloud + * SQL instance ID. + * + * Generated from protobuf field string instance = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $instance = ''; + /** + * Required. Name of a database within the instance. + * + * Generated from protobuf field string database = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $database = ''; + /** + * Required. Name of a database resource, for example, a table within the + * database. + * + * Generated from protobuf field string database_resource = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $database_resource = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * Required. If within a project-level config, then this must match the + * config's project ID. + * @type string $instance + * Required. The instance where this resource is located. For example: Cloud + * SQL instance ID. + * @type string $database + * Required. Name of a database within the instance. + * @type string $database_resource + * Required. Name of a database resource, for example, a table within the + * database. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. If within a project-level config, then this must match the + * config's project ID. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Required. If within a project-level config, then this must match the + * config's project ID. + * + * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Required. The instance where this resource is located. For example: Cloud + * SQL instance ID. + * + * Generated from protobuf field string instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getInstance() + { + return $this->instance; + } + + /** + * Required. The instance where this resource is located. For example: Cloud + * SQL instance ID. + * + * Generated from protobuf field string instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setInstance($var) + { + GPBUtil::checkString($var, True); + $this->instance = $var; + + return $this; + } + + /** + * Required. Name of a database within the instance. + * + * Generated from protobuf field string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDatabase() + { + return $this->database; + } + + /** + * Required. Name of a database within the instance. + * + * Generated from protobuf field string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDatabase($var) + { + GPBUtil::checkString($var, True); + $this->database = $var; + + return $this; + } + + /** + * Required. Name of a database resource, for example, a table within the + * database. + * + * Generated from protobuf field string database_resource = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDatabaseResource() + { + return $this->database_resource; + } + + /** + * Required. Name of a database resource, for example, a table within the + * database. + * + * Generated from protobuf field string database_resource = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDatabaseResource($var) + { + GPBUtil::checkString($var, True); + $this->database_resource = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegex.php new file mode 100644 index 000000000000..fd1f5b4e053d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegex.php @@ -0,0 +1,188 @@ +google.privacy.dlp.v2.DatabaseResourceRegex + */ +class DatabaseResourceRegex extends \Google\Protobuf\Internal\Message +{ + /** + * For organizations, if unset, will match all projects. Has no effect + * for configurations created within a project. + * + * Generated from protobuf field string project_id_regex = 1; + */ + protected $project_id_regex = ''; + /** + * Regex to test the instance name against. If empty, all instances match. + * + * Generated from protobuf field string instance_regex = 2; + */ + protected $instance_regex = ''; + /** + * Regex to test the database name against. If empty, all databases match. + * + * Generated from protobuf field string database_regex = 3; + */ + protected $database_regex = ''; + /** + * Regex to test the database resource's name against. An example of a + * database resource name is a table's name. Other database resource names + * like view names could be included in the future. If empty, all database + * resources match. + * + * Generated from protobuf field string database_resource_name_regex = 4; + */ + protected $database_resource_name_regex = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id_regex + * For organizations, if unset, will match all projects. Has no effect + * for configurations created within a project. + * @type string $instance_regex + * Regex to test the instance name against. If empty, all instances match. + * @type string $database_regex + * Regex to test the database name against. If empty, all databases match. + * @type string $database_resource_name_regex + * Regex to test the database resource's name against. An example of a + * database resource name is a table's name. Other database resource names + * like view names could be included in the future. If empty, all database + * resources match. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * For organizations, if unset, will match all projects. Has no effect + * for configurations created within a project. + * + * Generated from protobuf field string project_id_regex = 1; + * @return string + */ + public function getProjectIdRegex() + { + return $this->project_id_regex; + } + + /** + * For organizations, if unset, will match all projects. Has no effect + * for configurations created within a project. + * + * Generated from protobuf field string project_id_regex = 1; + * @param string $var + * @return $this + */ + public function setProjectIdRegex($var) + { + GPBUtil::checkString($var, True); + $this->project_id_regex = $var; + + return $this; + } + + /** + * Regex to test the instance name against. If empty, all instances match. + * + * Generated from protobuf field string instance_regex = 2; + * @return string + */ + public function getInstanceRegex() + { + return $this->instance_regex; + } + + /** + * Regex to test the instance name against. If empty, all instances match. + * + * Generated from protobuf field string instance_regex = 2; + * @param string $var + * @return $this + */ + public function setInstanceRegex($var) + { + GPBUtil::checkString($var, True); + $this->instance_regex = $var; + + return $this; + } + + /** + * Regex to test the database name against. If empty, all databases match. + * + * Generated from protobuf field string database_regex = 3; + * @return string + */ + public function getDatabaseRegex() + { + return $this->database_regex; + } + + /** + * Regex to test the database name against. If empty, all databases match. + * + * Generated from protobuf field string database_regex = 3; + * @param string $var + * @return $this + */ + public function setDatabaseRegex($var) + { + GPBUtil::checkString($var, True); + $this->database_regex = $var; + + return $this; + } + + /** + * Regex to test the database resource's name against. An example of a + * database resource name is a table's name. Other database resource names + * like view names could be included in the future. If empty, all database + * resources match. + * + * Generated from protobuf field string database_resource_name_regex = 4; + * @return string + */ + public function getDatabaseResourceNameRegex() + { + return $this->database_resource_name_regex; + } + + /** + * Regex to test the database resource's name against. An example of a + * database resource name is a table's name. Other database resource names + * like view names could be included in the future. If empty, all database + * resources match. + * + * Generated from protobuf field string database_resource_name_regex = 4; + * @param string $var + * @return $this + */ + public function setDatabaseResourceNameRegex($var) + { + GPBUtil::checkString($var, True); + $this->database_resource_name_regex = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegexes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegexes.php new file mode 100644 index 000000000000..b302ddb6f166 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegexes.php @@ -0,0 +1,80 @@ +google.privacy.dlp.v2.DatabaseResourceRegexes + */ +class DatabaseResourceRegexes extends \Google\Protobuf\Internal\Message +{ + /** + * A group of regular expression patterns to match against one or more + * database resources. + * Maximum of 100 entries. The sum of all regular expression's length can't + * exceed 10 KiB. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DatabaseResourceRegex patterns = 1; + */ + private $patterns; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DatabaseResourceRegex[] $patterns + * A group of regular expression patterns to match against one or more + * database resources. + * Maximum of 100 entries. The sum of all regular expression's length can't + * exceed 10 KiB. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A group of regular expression patterns to match against one or more + * database resources. + * Maximum of 100 entries. The sum of all regular expression's length can't + * exceed 10 KiB. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DatabaseResourceRegex patterns = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\DatabaseResourceRegex> + */ + public function getPatterns() + { + return $this->patterns; + } + + /** + * A group of regular expression patterns to match against one or more + * database resources. + * Maximum of 100 entries. The sum of all regular expression's length can't + * exceed 10 KiB. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DatabaseResourceRegex patterns = 1; + * @param \Google\Cloud\Dlp\V2\DatabaseResourceRegex[] $var + * @return $this + */ + public function setPatterns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DatabaseResourceRegex::class); + $this->patterns = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreKey.php new file mode 100644 index 000000000000..6f278ce38458 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreKey.php @@ -0,0 +1,77 @@ +google.privacy.dlp.v2.DatastoreKey + */ +class DatastoreKey extends \Google\Protobuf\Internal\Message +{ + /** + * Datastore entity key. + * + * Generated from protobuf field .google.privacy.dlp.v2.Key entity_key = 1; + */ + protected $entity_key = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Key $entity_key + * Datastore entity key. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Datastore entity key. + * + * Generated from protobuf field .google.privacy.dlp.v2.Key entity_key = 1; + * @return \Google\Cloud\Dlp\V2\Key|null + */ + public function getEntityKey() + { + return $this->entity_key; + } + + public function hasEntityKey() + { + return isset($this->entity_key); + } + + public function clearEntityKey() + { + unset($this->entity_key); + } + + /** + * Datastore entity key. + * + * Generated from protobuf field .google.privacy.dlp.v2.Key entity_key = 1; + * @param \Google\Cloud\Dlp\V2\Key $var + * @return $this + */ + public function setEntityKey($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Key::class); + $this->entity_key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreOptions.php new file mode 100644 index 000000000000..f6b5af24bcca --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreOptions.php @@ -0,0 +1,125 @@ +google.privacy.dlp.v2.DatastoreOptions + */ +class DatastoreOptions extends \Google\Protobuf\Internal\Message +{ + /** + * A partition ID identifies a grouping of entities. The grouping is always + * by project and namespace, however the namespace ID may be empty. + * + * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; + */ + protected $partition_id = null; + /** + * The kind to process. + * + * Generated from protobuf field .google.privacy.dlp.v2.KindExpression kind = 2; + */ + protected $kind = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\PartitionId $partition_id + * A partition ID identifies a grouping of entities. The grouping is always + * by project and namespace, however the namespace ID may be empty. + * @type \Google\Cloud\Dlp\V2\KindExpression $kind + * The kind to process. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * A partition ID identifies a grouping of entities. The grouping is always + * by project and namespace, however the namespace ID may be empty. + * + * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; + * @return \Google\Cloud\Dlp\V2\PartitionId|null + */ + public function getPartitionId() + { + return $this->partition_id; + } + + public function hasPartitionId() + { + return isset($this->partition_id); + } + + public function clearPartitionId() + { + unset($this->partition_id); + } + + /** + * A partition ID identifies a grouping of entities. The grouping is always + * by project and namespace, however the namespace ID may be empty. + * + * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; + * @param \Google\Cloud\Dlp\V2\PartitionId $var + * @return $this + */ + public function setPartitionId($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PartitionId::class); + $this->partition_id = $var; + + return $this; + } + + /** + * The kind to process. + * + * Generated from protobuf field .google.privacy.dlp.v2.KindExpression kind = 2; + * @return \Google\Cloud\Dlp\V2\KindExpression|null + */ + public function getKind() + { + return $this->kind; + } + + public function hasKind() + { + return isset($this->kind); + } + + public function clearKind() + { + unset($this->kind); + } + + /** + * The kind to process. + * + * Generated from protobuf field .google.privacy.dlp.v2.KindExpression kind = 2; + * @param \Google\Cloud\Dlp\V2\KindExpression $var + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\KindExpression::class); + $this->kind = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateShiftConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateShiftConfig.php new file mode 100644 index 000000000000..188c45c4069d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateShiftConfig.php @@ -0,0 +1,220 @@ +google.privacy.dlp.v2.DateShiftConfig + */ +class DateShiftConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Range of shift in days. Actual shift will be selected at random + * within this range (inclusive ends). Negative means shift to earlier in + * time. Must not be more than 365250 days (1000 years) each direction. + * For example, 3 means shift date to at most 3 days into the future. + * + * Generated from protobuf field int32 upper_bound_days = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $upper_bound_days = 0; + /** + * Required. For example, -5 means shift date to at most 5 days back in the + * past. + * + * Generated from protobuf field int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $lower_bound_days = 0; + /** + * Points to the field that contains the context, for example, an entity id. + * If set, must also set cryptoKey. If set, shift will be consistent for the + * given context. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; + */ + protected $context = null; + protected $method; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $upper_bound_days + * Required. Range of shift in days. Actual shift will be selected at random + * within this range (inclusive ends). Negative means shift to earlier in + * time. Must not be more than 365250 days (1000 years) each direction. + * For example, 3 means shift date to at most 3 days into the future. + * @type int $lower_bound_days + * Required. For example, -5 means shift date to at most 5 days back in the + * past. + * @type \Google\Cloud\Dlp\V2\FieldId $context + * Points to the field that contains the context, for example, an entity id. + * If set, must also set cryptoKey. If set, shift will be consistent for the + * given context. + * @type \Google\Cloud\Dlp\V2\CryptoKey $crypto_key + * Causes the shift to be computed based on this key and the context. This + * results in the same shift for the same context and crypto_key. If + * set, must also set context. Can only be applied to table items. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Range of shift in days. Actual shift will be selected at random + * within this range (inclusive ends). Negative means shift to earlier in + * time. Must not be more than 365250 days (1000 years) each direction. + * For example, 3 means shift date to at most 3 days into the future. + * + * Generated from protobuf field int32 upper_bound_days = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getUpperBoundDays() + { + return $this->upper_bound_days; + } + + /** + * Required. Range of shift in days. Actual shift will be selected at random + * within this range (inclusive ends). Negative means shift to earlier in + * time. Must not be more than 365250 days (1000 years) each direction. + * For example, 3 means shift date to at most 3 days into the future. + * + * Generated from protobuf field int32 upper_bound_days = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setUpperBoundDays($var) + { + GPBUtil::checkInt32($var); + $this->upper_bound_days = $var; + + return $this; + } + + /** + * Required. For example, -5 means shift date to at most 5 days back in the + * past. + * + * Generated from protobuf field int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getLowerBoundDays() + { + return $this->lower_bound_days; + } + + /** + * Required. For example, -5 means shift date to at most 5 days back in the + * past. + * + * Generated from protobuf field int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setLowerBoundDays($var) + { + GPBUtil::checkInt32($var); + $this->lower_bound_days = $var; + + return $this; + } + + /** + * Points to the field that contains the context, for example, an entity id. + * If set, must also set cryptoKey. If set, shift will be consistent for the + * given context. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getContext() + { + return $this->context; + } + + public function hasContext() + { + return isset($this->context); + } + + public function clearContext() + { + unset($this->context); + } + + /** + * Points to the field that contains the context, for example, an entity id. + * If set, must also set cryptoKey. If set, shift will be consistent for the + * given context. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setContext($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->context = $var; + + return $this; + } + + /** + * Causes the shift to be computed based on this key and the context. This + * results in the same shift for the same context and crypto_key. If + * set, must also set context. Can only be applied to table items. + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 4; + * @return \Google\Cloud\Dlp\V2\CryptoKey|null + */ + public function getCryptoKey() + { + return $this->readOneof(4); + } + + public function hasCryptoKey() + { + return $this->hasOneof(4); + } + + /** + * Causes the shift to be computed based on this key and the context. This + * results in the same shift for the same context and crypto_key. If + * set, must also set context. Can only be applied to table items. + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 4; + * @param \Google\Cloud\Dlp\V2\CryptoKey $var + * @return $this + */ + public function setCryptoKey($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoKey::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getMethod() + { + return $this->whichOneof("method"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime.php new file mode 100644 index 000000000000..637d6bca9f84 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime.php @@ -0,0 +1,204 @@ +google.privacy.dlp.v2.DateTime + */ +class DateTime extends \Google\Protobuf\Internal\Message +{ + /** + * One or more of the following must be set. + * Must be a valid date or time value. + * + * Generated from protobuf field .google.type.Date date = 1; + */ + protected $date = null; + /** + * Day of week + * + * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; + */ + protected $day_of_week = 0; + /** + * Time of day + * + * Generated from protobuf field .google.type.TimeOfDay time = 3; + */ + protected $time = null; + /** + * Time zone + * + * Generated from protobuf field .google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4; + */ + protected $time_zone = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\Date $date + * One or more of the following must be set. + * Must be a valid date or time value. + * @type int $day_of_week + * Day of week + * @type \Google\Type\TimeOfDay $time + * Time of day + * @type \Google\Cloud\Dlp\V2\DateTime\TimeZone $time_zone + * Time zone + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * One or more of the following must be set. + * Must be a valid date or time value. + * + * Generated from protobuf field .google.type.Date date = 1; + * @return \Google\Type\Date|null + */ + public function getDate() + { + return $this->date; + } + + public function hasDate() + { + return isset($this->date); + } + + public function clearDate() + { + unset($this->date); + } + + /** + * One or more of the following must be set. + * Must be a valid date or time value. + * + * Generated from protobuf field .google.type.Date date = 1; + * @param \Google\Type\Date $var + * @return $this + */ + public function setDate($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->date = $var; + + return $this; + } + + /** + * Day of week + * + * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; + * @return int + */ + public function getDayOfWeek() + { + return $this->day_of_week; + } + + /** + * Day of week + * + * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; + * @param int $var + * @return $this + */ + public function setDayOfWeek($var) + { + GPBUtil::checkEnum($var, \Google\Type\DayOfWeek::class); + $this->day_of_week = $var; + + return $this; + } + + /** + * Time of day + * + * Generated from protobuf field .google.type.TimeOfDay time = 3; + * @return \Google\Type\TimeOfDay|null + */ + public function getTime() + { + return $this->time; + } + + public function hasTime() + { + return isset($this->time); + } + + public function clearTime() + { + unset($this->time); + } + + /** + * Time of day + * + * Generated from protobuf field .google.type.TimeOfDay time = 3; + * @param \Google\Type\TimeOfDay $var + * @return $this + */ + public function setTime($var) + { + GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); + $this->time = $var; + + return $this; + } + + /** + * Time zone + * + * Generated from protobuf field .google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4; + * @return \Google\Cloud\Dlp\V2\DateTime\TimeZone|null + */ + public function getTimeZone() + { + return $this->time_zone; + } + + public function hasTimeZone() + { + return isset($this->time_zone); + } + + public function clearTimeZone() + { + unset($this->time_zone); + } + + /** + * Time zone + * + * Generated from protobuf field .google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4; + * @param \Google\Cloud\Dlp\V2\DateTime\TimeZone $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DateTime\TimeZone::class); + $this->time_zone = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime/TimeZone.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime/TimeZone.php new file mode 100644 index 000000000000..3d1ac87f375c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime/TimeZone.php @@ -0,0 +1,71 @@ +google.privacy.dlp.v2.DateTime.TimeZone + */ +class TimeZone extends \Google\Protobuf\Internal\Message +{ + /** + * Set only if the offset can be determined. Positive for time ahead of UTC. + * E.g. For "UTC-9", this value is -540. + * + * Generated from protobuf field int32 offset_minutes = 1; + */ + protected $offset_minutes = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $offset_minutes + * Set only if the offset can be determined. Positive for time ahead of UTC. + * E.g. For "UTC-9", this value is -540. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Set only if the offset can be determined. Positive for time ahead of UTC. + * E.g. For "UTC-9", this value is -540. + * + * Generated from protobuf field int32 offset_minutes = 1; + * @return int + */ + public function getOffsetMinutes() + { + return $this->offset_minutes; + } + + /** + * Set only if the offset can be determined. Positive for time ahead of UTC. + * E.g. For "UTC-9", this value is -540. + * + * Generated from protobuf field int32 offset_minutes = 1; + * @param int $var + * @return $this + */ + public function setOffsetMinutes($var) + { + GPBUtil::checkInt32($var); + $this->offset_minutes = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyConfig.php new file mode 100644 index 000000000000..2c0ecec153a9 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyConfig.php @@ -0,0 +1,198 @@ +google.privacy.dlp.v2.DeidentifyConfig + */ +class DeidentifyConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Mode for handling transformation errors. If left unspecified, the default + * mode is `TransformationErrorHandling.ThrowError`. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + */ + protected $transformation_error_handling = null; + protected $transformation; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoTypeTransformations $info_type_transformations + * Treat the dataset as free-form text and apply the same free text + * transformation everywhere. + * @type \Google\Cloud\Dlp\V2\RecordTransformations $record_transformations + * Treat the dataset as structured. Transformations can be applied to + * specific locations within structured datasets, such as transforming + * a column within a table. + * @type \Google\Cloud\Dlp\V2\ImageTransformations $image_transformations + * Treat the dataset as an image and redact. + * @type \Google\Cloud\Dlp\V2\TransformationErrorHandling $transformation_error_handling + * Mode for handling transformation errors. If left unspecified, the default + * mode is `TransformationErrorHandling.ThrowError`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Treat the dataset as free-form text and apply the same free text + * transformation everywhere. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 1; + * @return \Google\Cloud\Dlp\V2\InfoTypeTransformations|null + */ + public function getInfoTypeTransformations() + { + return $this->readOneof(1); + } + + public function hasInfoTypeTransformations() + { + return $this->hasOneof(1); + } + + /** + * Treat the dataset as free-form text and apply the same free text + * transformation everywhere. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 1; + * @param \Google\Cloud\Dlp\V2\InfoTypeTransformations $var + * @return $this + */ + public function setInfoTypeTransformations($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoTypeTransformations::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Treat the dataset as structured. Transformations can be applied to + * specific locations within structured datasets, such as transforming + * a column within a table. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordTransformations record_transformations = 2; + * @return \Google\Cloud\Dlp\V2\RecordTransformations|null + */ + public function getRecordTransformations() + { + return $this->readOneof(2); + } + + public function hasRecordTransformations() + { + return $this->hasOneof(2); + } + + /** + * Treat the dataset as structured. Transformations can be applied to + * specific locations within structured datasets, such as transforming + * a column within a table. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordTransformations record_transformations = 2; + * @param \Google\Cloud\Dlp\V2\RecordTransformations $var + * @return $this + */ + public function setRecordTransformations($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordTransformations::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Treat the dataset as an image and redact. + * + * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations image_transformations = 4; + * @return \Google\Cloud\Dlp\V2\ImageTransformations|null + */ + public function getImageTransformations() + { + return $this->readOneof(4); + } + + public function hasImageTransformations() + { + return $this->hasOneof(4); + } + + /** + * Treat the dataset as an image and redact. + * + * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations image_transformations = 4; + * @param \Google\Cloud\Dlp\V2\ImageTransformations $var + * @return $this + */ + public function setImageTransformations($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageTransformations::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Mode for handling transformation errors. If left unspecified, the default + * mode is `TransformationErrorHandling.ThrowError`. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + * @return \Google\Cloud\Dlp\V2\TransformationErrorHandling|null + */ + public function getTransformationErrorHandling() + { + return $this->transformation_error_handling; + } + + public function hasTransformationErrorHandling() + { + return isset($this->transformation_error_handling); + } + + public function clearTransformationErrorHandling() + { + unset($this->transformation_error_handling); + } + + /** + * Mode for handling transformation errors. If left unspecified, the default + * mode is `TransformationErrorHandling.ThrowError`. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; + * @param \Google\Cloud\Dlp\V2\TransformationErrorHandling $var + * @return $this + */ + public function setTransformationErrorHandling($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationErrorHandling::class); + $this->transformation_error_handling = $var; + + return $this; + } + + /** + * @return string + */ + public function getTransformation() + { + return $this->whichOneof("transformation"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentRequest.php new file mode 100644 index 000000000000..89fa92f66c1c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentRequest.php @@ -0,0 +1,417 @@ +google.privacy.dlp.v2.DeidentifyContentRequest + */ +class DeidentifyContentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Configuration for the de-identification of the content item. + * Items specified here will override the template referenced by the + * deidentify_template_name argument. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2; + */ + protected $deidentify_config = null; + /** + * Configuration for the inspector. + * Items specified here will override the template referenced by the + * inspect_template_name argument. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; + */ + protected $inspect_config = null; + /** + * The item to de-identify. Will be treated as text. + * This value must be of type + * [Table][google.privacy.dlp.v2.Table] if your + * [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config] + * is a + * [RecordTransformations][google.privacy.dlp.v2.RecordTransformations] + * object. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; + */ + protected $item = null; + /** + * Template to use. Any configuration directly specified in + * inspect_config will override those set in the template. Singular fields + * that are set in this request will replace their corresponding fields in the + * template. Repeated fields are appended. Singular sub-messages and groups + * are recursively merged. + * + * Generated from protobuf field string inspect_template_name = 5; + */ + protected $inspect_template_name = ''; + /** + * Template to use. Any configuration directly specified in + * deidentify_config will override those set in the template. Singular fields + * that are set in this request will replace their corresponding fields in the + * template. Repeated fields are appended. Singular sub-messages and groups + * are recursively merged. + * + * Generated from protobuf field string deidentify_template_name = 6; + */ + protected $deidentify_template_name = ''; + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 7; + */ + protected $location_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * @type \Google\Cloud\Dlp\V2\DeidentifyConfig $deidentify_config + * Configuration for the de-identification of the content item. + * Items specified here will override the template referenced by the + * deidentify_template_name argument. + * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config + * Configuration for the inspector. + * Items specified here will override the template referenced by the + * inspect_template_name argument. + * @type \Google\Cloud\Dlp\V2\ContentItem $item + * The item to de-identify. Will be treated as text. + * This value must be of type + * [Table][google.privacy.dlp.v2.Table] if your + * [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config] + * is a + * [RecordTransformations][google.privacy.dlp.v2.RecordTransformations] + * object. + * @type string $inspect_template_name + * Template to use. Any configuration directly specified in + * inspect_config will override those set in the template. Singular fields + * that are set in this request will replace their corresponding fields in the + * template. Repeated fields are appended. Singular sub-messages and groups + * are recursively merged. + * @type string $deidentify_template_name + * Template to use. Any configuration directly specified in + * deidentify_config will override those set in the template. Singular fields + * that are set in this request will replace their corresponding fields in the + * template. Repeated fields are appended. Singular sub-messages and groups + * are recursively merged. + * @type string $location_id + * Deprecated. This field has no effect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Configuration for the de-identification of the content item. + * Items specified here will override the template referenced by the + * deidentify_template_name argument. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2; + * @return \Google\Cloud\Dlp\V2\DeidentifyConfig|null + */ + public function getDeidentifyConfig() + { + return $this->deidentify_config; + } + + public function hasDeidentifyConfig() + { + return isset($this->deidentify_config); + } + + public function clearDeidentifyConfig() + { + unset($this->deidentify_config); + } + + /** + * Configuration for the de-identification of the content item. + * Items specified here will override the template referenced by the + * deidentify_template_name argument. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2; + * @param \Google\Cloud\Dlp\V2\DeidentifyConfig $var + * @return $this + */ + public function setDeidentifyConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyConfig::class); + $this->deidentify_config = $var; + + return $this; + } + + /** + * Configuration for the inspector. + * Items specified here will override the template referenced by the + * inspect_template_name argument. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; + * @return \Google\Cloud\Dlp\V2\InspectConfig|null + */ + public function getInspectConfig() + { + return $this->inspect_config; + } + + public function hasInspectConfig() + { + return isset($this->inspect_config); + } + + public function clearInspectConfig() + { + unset($this->inspect_config); + } + + /** + * Configuration for the inspector. + * Items specified here will override the template referenced by the + * inspect_template_name argument. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; + * @param \Google\Cloud\Dlp\V2\InspectConfig $var + * @return $this + */ + public function setInspectConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); + $this->inspect_config = $var; + + return $this; + } + + /** + * The item to de-identify. Will be treated as text. + * This value must be of type + * [Table][google.privacy.dlp.v2.Table] if your + * [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config] + * is a + * [RecordTransformations][google.privacy.dlp.v2.RecordTransformations] + * object. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; + * @return \Google\Cloud\Dlp\V2\ContentItem|null + */ + public function getItem() + { + return $this->item; + } + + public function hasItem() + { + return isset($this->item); + } + + public function clearItem() + { + unset($this->item); + } + + /** + * The item to de-identify. Will be treated as text. + * This value must be of type + * [Table][google.privacy.dlp.v2.Table] if your + * [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config] + * is a + * [RecordTransformations][google.privacy.dlp.v2.RecordTransformations] + * object. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; + * @param \Google\Cloud\Dlp\V2\ContentItem $var + * @return $this + */ + public function setItem($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); + $this->item = $var; + + return $this; + } + + /** + * Template to use. Any configuration directly specified in + * inspect_config will override those set in the template. Singular fields + * that are set in this request will replace their corresponding fields in the + * template. Repeated fields are appended. Singular sub-messages and groups + * are recursively merged. + * + * Generated from protobuf field string inspect_template_name = 5; + * @return string + */ + public function getInspectTemplateName() + { + return $this->inspect_template_name; + } + + /** + * Template to use. Any configuration directly specified in + * inspect_config will override those set in the template. Singular fields + * that are set in this request will replace their corresponding fields in the + * template. Repeated fields are appended. Singular sub-messages and groups + * are recursively merged. + * + * Generated from protobuf field string inspect_template_name = 5; + * @param string $var + * @return $this + */ + public function setInspectTemplateName($var) + { + GPBUtil::checkString($var, True); + $this->inspect_template_name = $var; + + return $this; + } + + /** + * Template to use. Any configuration directly specified in + * deidentify_config will override those set in the template. Singular fields + * that are set in this request will replace their corresponding fields in the + * template. Repeated fields are appended. Singular sub-messages and groups + * are recursively merged. + * + * Generated from protobuf field string deidentify_template_name = 6; + * @return string + */ + public function getDeidentifyTemplateName() + { + return $this->deidentify_template_name; + } + + /** + * Template to use. Any configuration directly specified in + * deidentify_config will override those set in the template. Singular fields + * that are set in this request will replace their corresponding fields in the + * template. Repeated fields are appended. Singular sub-messages and groups + * are recursively merged. + * + * Generated from protobuf field string deidentify_template_name = 6; + * @param string $var + * @return $this + */ + public function setDeidentifyTemplateName($var) + { + GPBUtil::checkString($var, True); + $this->deidentify_template_name = $var; + + return $this; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 7; + * @return string + */ + public function getLocationId() + { + return $this->location_id; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 7; + * @param string $var + * @return $this + */ + public function setLocationId($var) + { + GPBUtil::checkString($var, True); + $this->location_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentResponse.php new file mode 100644 index 000000000000..74c7ff5478db --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentResponse.php @@ -0,0 +1,121 @@ +google.privacy.dlp.v2.DeidentifyContentResponse + */ +class DeidentifyContentResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The de-identified item. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; + */ + protected $item = null; + /** + * An overview of the changes that were made on the `item`. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; + */ + protected $overview = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\ContentItem $item + * The de-identified item. + * @type \Google\Cloud\Dlp\V2\TransformationOverview $overview + * An overview of the changes that were made on the `item`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The de-identified item. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; + * @return \Google\Cloud\Dlp\V2\ContentItem|null + */ + public function getItem() + { + return $this->item; + } + + public function hasItem() + { + return isset($this->item); + } + + public function clearItem() + { + unset($this->item); + } + + /** + * The de-identified item. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; + * @param \Google\Cloud\Dlp\V2\ContentItem $var + * @return $this + */ + public function setItem($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); + $this->item = $var; + + return $this; + } + + /** + * An overview of the changes that were made on the `item`. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; + * @return \Google\Cloud\Dlp\V2\TransformationOverview|null + */ + public function getOverview() + { + return $this->overview; + } + + public function hasOverview() + { + return isset($this->overview); + } + + public function clearOverview() + { + unset($this->overview); + } + + /** + * An overview of the changes that were made on the `item`. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; + * @param \Google\Cloud\Dlp\V2\TransformationOverview $var + * @return $this + */ + public function setOverview($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationOverview::class); + $this->overview = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails.php new file mode 100644 index 000000000000..535d155ea665 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails.php @@ -0,0 +1,122 @@ +google.privacy.dlp.v2.DeidentifyDataSourceDetails + */ +class DeidentifyDataSourceDetails extends \Google\Protobuf\Internal\Message +{ + /** + * De-identification config used for the request. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; + */ + protected $requested_options = null; + /** + * Stats about the de-identification operation. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; + */ + protected $deidentify_stats = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails\RequestedDeidentifyOptions $requested_options + * De-identification config used for the request. + * @type \Google\Cloud\Dlp\V2\DeidentifyDataSourceStats $deidentify_stats + * Stats about the de-identification operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * De-identification config used for the request. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; + * @return \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails\RequestedDeidentifyOptions|null + */ + public function getRequestedOptions() + { + return $this->requested_options; + } + + public function hasRequestedOptions() + { + return isset($this->requested_options); + } + + public function clearRequestedOptions() + { + unset($this->requested_options); + } + + /** + * De-identification config used for the request. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; + * @param \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails\RequestedDeidentifyOptions $var + * @return $this + */ + public function setRequestedOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails\RequestedDeidentifyOptions::class); + $this->requested_options = $var; + + return $this; + } + + /** + * Stats about the de-identification operation. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; + * @return \Google\Cloud\Dlp\V2\DeidentifyDataSourceStats|null + */ + public function getDeidentifyStats() + { + return $this->deidentify_stats; + } + + public function hasDeidentifyStats() + { + return isset($this->deidentify_stats); + } + + public function clearDeidentifyStats() + { + unset($this->deidentify_stats); + } + + /** + * Stats about the de-identification operation. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; + * @param \Google\Cloud\Dlp\V2\DeidentifyDataSourceStats $var + * @return $this + */ + public function setDeidentifyStats($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyDataSourceStats::class); + $this->deidentify_stats = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails/RequestedDeidentifyOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails/RequestedDeidentifyOptions.php new file mode 100644 index 000000000000..c952ce01d9ba --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails/RequestedDeidentifyOptions.php @@ -0,0 +1,181 @@ +google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions + */ +class RequestedDeidentifyOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Snapshot of the state of the `DeidentifyTemplate` from the + * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time + * this job was run. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; + */ + protected $snapshot_deidentify_template = null; + /** + * Snapshot of the state of the structured `DeidentifyTemplate` from the + * `Deidentify` action at the time this job was run. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; + */ + protected $snapshot_structured_deidentify_template = null; + /** + * Snapshot of the state of the image transformation `DeidentifyTemplate` + * from the `Deidentify` action at the time this job was run. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; + */ + protected $snapshot_image_redact_template = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate $snapshot_deidentify_template + * Snapshot of the state of the `DeidentifyTemplate` from the + * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time + * this job was run. + * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate $snapshot_structured_deidentify_template + * Snapshot of the state of the structured `DeidentifyTemplate` from the + * `Deidentify` action at the time this job was run. + * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate $snapshot_image_redact_template + * Snapshot of the state of the image transformation `DeidentifyTemplate` + * from the `Deidentify` action at the time this job was run. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Snapshot of the state of the `DeidentifyTemplate` from the + * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time + * this job was run. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; + * @return \Google\Cloud\Dlp\V2\DeidentifyTemplate|null + */ + public function getSnapshotDeidentifyTemplate() + { + return $this->snapshot_deidentify_template; + } + + public function hasSnapshotDeidentifyTemplate() + { + return isset($this->snapshot_deidentify_template); + } + + public function clearSnapshotDeidentifyTemplate() + { + unset($this->snapshot_deidentify_template); + } + + /** + * Snapshot of the state of the `DeidentifyTemplate` from the + * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time + * this job was run. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; + * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $var + * @return $this + */ + public function setSnapshotDeidentifyTemplate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); + $this->snapshot_deidentify_template = $var; + + return $this; + } + + /** + * Snapshot of the state of the structured `DeidentifyTemplate` from the + * `Deidentify` action at the time this job was run. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; + * @return \Google\Cloud\Dlp\V2\DeidentifyTemplate|null + */ + public function getSnapshotStructuredDeidentifyTemplate() + { + return $this->snapshot_structured_deidentify_template; + } + + public function hasSnapshotStructuredDeidentifyTemplate() + { + return isset($this->snapshot_structured_deidentify_template); + } + + public function clearSnapshotStructuredDeidentifyTemplate() + { + unset($this->snapshot_structured_deidentify_template); + } + + /** + * Snapshot of the state of the structured `DeidentifyTemplate` from the + * `Deidentify` action at the time this job was run. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; + * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $var + * @return $this + */ + public function setSnapshotStructuredDeidentifyTemplate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); + $this->snapshot_structured_deidentify_template = $var; + + return $this; + } + + /** + * Snapshot of the state of the image transformation `DeidentifyTemplate` + * from the `Deidentify` action at the time this job was run. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; + * @return \Google\Cloud\Dlp\V2\DeidentifyTemplate|null + */ + public function getSnapshotImageRedactTemplate() + { + return $this->snapshot_image_redact_template; + } + + public function hasSnapshotImageRedactTemplate() + { + return isset($this->snapshot_image_redact_template); + } + + public function clearSnapshotImageRedactTemplate() + { + unset($this->snapshot_image_redact_template); + } + + /** + * Snapshot of the state of the image transformation `DeidentifyTemplate` + * from the `Deidentify` action at the time this job was run. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; + * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $var + * @return $this + */ + public function setSnapshotImageRedactTemplate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); + $this->snapshot_image_redact_template = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceStats.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceStats.php new file mode 100644 index 000000000000..e38c21b34cf3 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceStats.php @@ -0,0 +1,135 @@ +google.privacy.dlp.v2.DeidentifyDataSourceStats + */ +class DeidentifyDataSourceStats extends \Google\Protobuf\Internal\Message +{ + /** + * Total size in bytes that were transformed in some way. + * + * Generated from protobuf field int64 transformed_bytes = 1; + */ + protected $transformed_bytes = 0; + /** + * Number of successfully applied transformations. + * + * Generated from protobuf field int64 transformation_count = 2; + */ + protected $transformation_count = 0; + /** + * Number of errors encountered while trying to apply transformations. + * + * Generated from protobuf field int64 transformation_error_count = 3; + */ + protected $transformation_error_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $transformed_bytes + * Total size in bytes that were transformed in some way. + * @type int|string $transformation_count + * Number of successfully applied transformations. + * @type int|string $transformation_error_count + * Number of errors encountered while trying to apply transformations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Total size in bytes that were transformed in some way. + * + * Generated from protobuf field int64 transformed_bytes = 1; + * @return int|string + */ + public function getTransformedBytes() + { + return $this->transformed_bytes; + } + + /** + * Total size in bytes that were transformed in some way. + * + * Generated from protobuf field int64 transformed_bytes = 1; + * @param int|string $var + * @return $this + */ + public function setTransformedBytes($var) + { + GPBUtil::checkInt64($var); + $this->transformed_bytes = $var; + + return $this; + } + + /** + * Number of successfully applied transformations. + * + * Generated from protobuf field int64 transformation_count = 2; + * @return int|string + */ + public function getTransformationCount() + { + return $this->transformation_count; + } + + /** + * Number of successfully applied transformations. + * + * Generated from protobuf field int64 transformation_count = 2; + * @param int|string $var + * @return $this + */ + public function setTransformationCount($var) + { + GPBUtil::checkInt64($var); + $this->transformation_count = $var; + + return $this; + } + + /** + * Number of errors encountered while trying to apply transformations. + * + * Generated from protobuf field int64 transformation_error_count = 3; + * @return int|string + */ + public function getTransformationErrorCount() + { + return $this->transformation_error_count; + } + + /** + * Number of errors encountered while trying to apply transformations. + * + * Generated from protobuf field int64 transformation_error_count = 3; + * @param int|string $var + * @return $this + */ + public function setTransformationErrorCount($var) + { + GPBUtil::checkInt64($var); + $this->transformation_error_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyTemplate.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyTemplate.php new file mode 100644 index 000000000000..627ae3405038 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyTemplate.php @@ -0,0 +1,282 @@ +google.privacy.dlp.v2.DeidentifyTemplate + */ +class DeidentifyTemplate extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The template name. + * The template will have one of the following formats: + * `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR + * `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Display name (max 256 chars). + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * Short description (max 256 chars). + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * Output only. The creation timestamp of an inspectTemplate. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The last update timestamp of an inspectTemplate. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * The core content of the template. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6; + */ + protected $deidentify_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The template name. + * The template will have one of the following formats: + * `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR + * `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID` + * @type string $display_name + * Display name (max 256 chars). + * @type string $description + * Short description (max 256 chars). + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The creation timestamp of an inspectTemplate. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The last update timestamp of an inspectTemplate. + * @type \Google\Cloud\Dlp\V2\DeidentifyConfig $deidentify_config + * The core content of the template. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The template name. + * The template will have one of the following formats: + * `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR + * `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The template name. + * The template will have one of the following formats: + * `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR + * `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Display name (max 256 chars). + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name (max 256 chars). + * + * Generated from protobuf field string display_name = 2; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Short description (max 256 chars). + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Short description (max 256 chars). + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. The creation timestamp of an inspectTemplate. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The creation timestamp of an inspectTemplate. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The last update timestamp of an inspectTemplate. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The last update timestamp of an inspectTemplate. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * The core content of the template. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6; + * @return \Google\Cloud\Dlp\V2\DeidentifyConfig|null + */ + public function getDeidentifyConfig() + { + return $this->deidentify_config; + } + + public function hasDeidentifyConfig() + { + return isset($this->deidentify_config); + } + + public function clearDeidentifyConfig() + { + unset($this->deidentify_config); + } + + /** + * The core content of the template. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6; + * @param \Google\Cloud\Dlp\V2\DeidentifyConfig $var + * @return $this + */ + public function setDeidentifyConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyConfig::class); + $this->deidentify_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteConnectionRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteConnectionRequest.php new file mode 100644 index 000000000000..2896d85a7f80 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteConnectionRequest.php @@ -0,0 +1,86 @@ +google.privacy.dlp.v2.DeleteConnectionRequest + */ +class DeleteConnectionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the Connection to be deleted, in the format: + * `projects/{project}/locations/{location}/connections/{connection}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the Connection to be deleted, in the format: + * `projects/{project}/locations/{location}/connections/{connection}`. Please see + * {@see DlpServiceClient::connectionName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\DeleteConnectionRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the Connection to be deleted, in the format: + * `projects/{project}/locations/{location}/connections/{connection}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the Connection to be deleted, in the format: + * `projects/{project}/locations/{location}/connections/{connection}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the Connection to be deleted, in the format: + * `projects/{project}/locations/{location}/connections/{connection}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDeidentifyTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDeidentifyTemplateRequest.php new file mode 100644 index 000000000000..dda435e03c7b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDeidentifyTemplateRequest.php @@ -0,0 +1,96 @@ +google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest + */ +class DeleteDeidentifyTemplateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the organization and deidentify template to be + * deleted, for example + * `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the organization and deidentify template to be + * deleted, for example + * `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. Please see + * {@see DlpServiceClient::deidentifyTemplateName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\DeleteDeidentifyTemplateRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the organization and deidentify template to be + * deleted, for example + * `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the organization and deidentify template to be + * deleted, for example + * `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the organization and deidentify template to be + * deleted, for example + * `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDiscoveryConfigRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDiscoveryConfigRequest.php new file mode 100644 index 000000000000..e4d498a20b9a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDiscoveryConfigRequest.php @@ -0,0 +1,86 @@ +google.privacy.dlp.v2.DeleteDiscoveryConfigRequest + */ +class DeleteDiscoveryConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the project and the config, for example + * `projects/dlp-test-project/discoveryConfigs/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the project and the config, for example + * `projects/dlp-test-project/discoveryConfigs/53234423`. Please see + * {@see DlpServiceClient::discoveryConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\DeleteDiscoveryConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the project and the config, for example + * `projects/dlp-test-project/discoveryConfigs/53234423`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the project and the config, for example + * `projects/dlp-test-project/discoveryConfigs/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the project and the config, for example + * `projects/dlp-test-project/discoveryConfigs/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDlpJobRequest.php new file mode 100644 index 000000000000..985db26de861 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDlpJobRequest.php @@ -0,0 +1,81 @@ +google.privacy.dlp.v2.DeleteDlpJobRequest + */ +class DeleteDlpJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the DlpJob resource to be deleted. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the DlpJob resource to be deleted. Please see + * {@see DlpServiceClient::dlpJobName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\DeleteDlpJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the DlpJob resource to be deleted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the DlpJob resource to be deleted. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the DlpJob resource to be deleted. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteFileStoreDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteFileStoreDataProfileRequest.php new file mode 100644 index 000000000000..42e56865dde5 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteFileStoreDataProfileRequest.php @@ -0,0 +1,81 @@ +google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest + */ +class DeleteFileStoreDataProfileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the file store data profile. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the file store data profile. Please see + * {@see DlpServiceClient::fileStoreDataProfileName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\DeleteFileStoreDataProfileRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the file store data profile. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the file store data profile. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the file store data profile. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteInspectTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteInspectTemplateRequest.php new file mode 100644 index 000000000000..c2fdcf815e99 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteInspectTemplateRequest.php @@ -0,0 +1,91 @@ +google.privacy.dlp.v2.DeleteInspectTemplateRequest + */ +class DeleteInspectTemplateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the organization and inspectTemplate to be + * deleted, for example `organizations/433245324/inspectTemplates/432452342` + * or projects/project-id/inspectTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the organization and inspectTemplate to be + * deleted, for example `organizations/433245324/inspectTemplates/432452342` + * or projects/project-id/inspectTemplates/432452342. Please see + * {@see DlpServiceClient::inspectTemplateName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\DeleteInspectTemplateRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the organization and inspectTemplate to be + * deleted, for example `organizations/433245324/inspectTemplates/432452342` + * or projects/project-id/inspectTemplates/432452342. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the organization and inspectTemplate to be + * deleted, for example `organizations/433245324/inspectTemplates/432452342` + * or projects/project-id/inspectTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the organization and inspectTemplate to be + * deleted, for example `organizations/433245324/inspectTemplates/432452342` + * or projects/project-id/inspectTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteJobTriggerRequest.php new file mode 100644 index 000000000000..cc74d0a0dc36 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteJobTriggerRequest.php @@ -0,0 +1,86 @@ +google.privacy.dlp.v2.DeleteJobTriggerRequest + */ +class DeleteJobTriggerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. Please see + * {@see DlpServiceClient::jobTriggerName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\DeleteJobTriggerRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteStoredInfoTypeRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteStoredInfoTypeRequest.php new file mode 100644 index 000000000000..f5539488908b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteStoredInfoTypeRequest.php @@ -0,0 +1,91 @@ +google.privacy.dlp.v2.DeleteStoredInfoTypeRequest + */ +class DeleteStoredInfoTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the organization and storedInfoType to be + * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the organization and storedInfoType to be + * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. Please see + * {@see DlpServiceClient::storedInfoTypeName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\DeleteStoredInfoTypeRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the organization and storedInfoType to be + * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the organization and storedInfoType to be + * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the organization and storedInfoType to be + * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteTableDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteTableDataProfileRequest.php new file mode 100644 index 000000000000..214eb53f0022 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteTableDataProfileRequest.php @@ -0,0 +1,81 @@ +google.privacy.dlp.v2.DeleteTableDataProfileRequest + */ +class DeleteTableDataProfileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the table data profile. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the table data profile. Please see + * {@see DlpServiceClient::tableDataProfileName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\DeleteTableDataProfileRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the table data profile. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the table data profile. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the table data profile. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Disabled.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Disabled.php new file mode 100644 index 000000000000..29b9fa81c491 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Disabled.php @@ -0,0 +1,33 @@ +google.privacy.dlp.v2.Disabled + */ +class Disabled extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions.php new file mode 100644 index 000000000000..1e0f7dc6ea58 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions.php @@ -0,0 +1,204 @@ +google.privacy.dlp.v2.DiscoveryBigQueryConditions + */ +class DiscoveryBigQueryConditions extends \Google\Protobuf\Internal\Message +{ + /** + * BigQuery table must have been created after this date. Used to avoid + * backfilling. + * + * Generated from protobuf field .google.protobuf.Timestamp created_after = 1; + */ + protected $created_after = null; + /** + * At least one of the conditions must be true for a table to be scanned. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions or_conditions = 4; + */ + protected $or_conditions = null; + protected $included_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $created_after + * BigQuery table must have been created after this date. Used to avoid + * backfilling. + * @type \Google\Cloud\Dlp\V2\BigQueryTableTypes $types + * Restrict discovery to specific table types. + * @type int $type_collection + * Restrict discovery to categories of table types. + * @type \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions\OrConditions $or_conditions + * At least one of the conditions must be true for a table to be scanned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * BigQuery table must have been created after this date. Used to avoid + * backfilling. + * + * Generated from protobuf field .google.protobuf.Timestamp created_after = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreatedAfter() + { + return $this->created_after; + } + + public function hasCreatedAfter() + { + return isset($this->created_after); + } + + public function clearCreatedAfter() + { + unset($this->created_after); + } + + /** + * BigQuery table must have been created after this date. Used to avoid + * backfilling. + * + * Generated from protobuf field .google.protobuf.Timestamp created_after = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreatedAfter($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->created_after = $var; + + return $this; + } + + /** + * Restrict discovery to specific table types. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableTypes types = 2; + * @return \Google\Cloud\Dlp\V2\BigQueryTableTypes|null + */ + public function getTypes() + { + return $this->readOneof(2); + } + + public function hasTypes() + { + return $this->hasOneof(2); + } + + /** + * Restrict discovery to specific table types. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableTypes types = 2; + * @param \Google\Cloud\Dlp\V2\BigQueryTableTypes $var + * @return $this + */ + public function setTypes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTableTypes::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Restrict discovery to categories of table types. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableTypeCollection type_collection = 3; + * @return int + */ + public function getTypeCollection() + { + return $this->readOneof(3); + } + + public function hasTypeCollection() + { + return $this->hasOneof(3); + } + + /** + * Restrict discovery to categories of table types. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableTypeCollection type_collection = 3; + * @param int $var + * @return $this + */ + public function setTypeCollection($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\BigQueryTableTypeCollection::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * At least one of the conditions must be true for a table to be scanned. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions or_conditions = 4; + * @return \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions\OrConditions|null + */ + public function getOrConditions() + { + return $this->or_conditions; + } + + public function hasOrConditions() + { + return isset($this->or_conditions); + } + + public function clearOrConditions() + { + unset($this->or_conditions); + } + + /** + * At least one of the conditions must be true for a table to be scanned. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions or_conditions = 4; + * @param \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions\OrConditions $var + * @return $this + */ + public function setOrConditions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions\OrConditions::class); + $this->or_conditions = $var; + + return $this; + } + + /** + * @return string + */ + public function getIncludedTypes() + { + return $this->whichOneof("included_types"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions/OrConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions/OrConditions.php new file mode 100644 index 000000000000..81ebe465331c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions/OrConditions.php @@ -0,0 +1,120 @@ +google.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions + */ +class OrConditions extends \Google\Protobuf\Internal\Message +{ + /** + * Minimum number of rows that should be present before Cloud DLP + * profiles a table + * + * Generated from protobuf field int32 min_row_count = 1; + */ + protected $min_row_count = 0; + /** + * Minimum age a table must have before Cloud DLP can profile it. Value must + * be 1 hour or greater. + * + * Generated from protobuf field .google.protobuf.Duration min_age = 2; + */ + protected $min_age = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $min_row_count + * Minimum number of rows that should be present before Cloud DLP + * profiles a table + * @type \Google\Protobuf\Duration $min_age + * Minimum age a table must have before Cloud DLP can profile it. Value must + * be 1 hour or greater. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Minimum number of rows that should be present before Cloud DLP + * profiles a table + * + * Generated from protobuf field int32 min_row_count = 1; + * @return int + */ + public function getMinRowCount() + { + return $this->min_row_count; + } + + /** + * Minimum number of rows that should be present before Cloud DLP + * profiles a table + * + * Generated from protobuf field int32 min_row_count = 1; + * @param int $var + * @return $this + */ + public function setMinRowCount($var) + { + GPBUtil::checkInt32($var); + $this->min_row_count = $var; + + return $this; + } + + /** + * Minimum age a table must have before Cloud DLP can profile it. Value must + * be 1 hour or greater. + * + * Generated from protobuf field .google.protobuf.Duration min_age = 2; + * @return \Google\Protobuf\Duration|null + */ + public function getMinAge() + { + return $this->min_age; + } + + public function hasMinAge() + { + return isset($this->min_age); + } + + public function clearMinAge() + { + unset($this->min_age); + } + + /** + * Minimum age a table must have before Cloud DLP can profile it. Value must + * be 1 hour or greater. + * + * Generated from protobuf field .google.protobuf.Duration min_age = 2; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setMinAge($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->min_age = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter.php new file mode 100644 index 000000000000..43de277bfef8 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter.php @@ -0,0 +1,167 @@ +google.privacy.dlp.v2.DiscoveryBigQueryFilter + */ +class DiscoveryBigQueryFilter extends \Google\Protobuf\Internal\Message +{ + protected $filter; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\BigQueryTableCollection $tables + * A specific set of tables for this filter to apply to. A table collection + * must be specified in only one filter per config. + * If a table id or dataset is empty, Cloud DLP assumes all tables in that + * collection must be profiled. Must specify a project ID. + * @type \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter\AllOtherBigQueryTables $other_tables + * Catch-all. This should always be the last filter in the list because + * anything above it will apply first. Should only appear once in a + * configuration. If none is specified, a default one will be added + * automatically. + * @type \Google\Cloud\Dlp\V2\TableReference $table_reference + * The table to scan. Discovery configurations including this can only + * include one DiscoveryTarget (the DiscoveryTarget with this + * TableReference). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A specific set of tables for this filter to apply to. A table collection + * must be specified in only one filter per config. + * If a table id or dataset is empty, Cloud DLP assumes all tables in that + * collection must be profiled. Must specify a project ID. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableCollection tables = 1; + * @return \Google\Cloud\Dlp\V2\BigQueryTableCollection|null + */ + public function getTables() + { + return $this->readOneof(1); + } + + public function hasTables() + { + return $this->hasOneof(1); + } + + /** + * A specific set of tables for this filter to apply to. A table collection + * must be specified in only one filter per config. + * If a table id or dataset is empty, Cloud DLP assumes all tables in that + * collection must be profiled. Must specify a project ID. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableCollection tables = 1; + * @param \Google\Cloud\Dlp\V2\BigQueryTableCollection $var + * @return $this + */ + public function setTables($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTableCollection::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Catch-all. This should always be the last filter in the list because + * anything above it will apply first. Should only appear once in a + * configuration. If none is specified, a default one will be added + * automatically. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryFilter.AllOtherBigQueryTables other_tables = 2; + * @return \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter\AllOtherBigQueryTables|null + */ + public function getOtherTables() + { + return $this->readOneof(2); + } + + public function hasOtherTables() + { + return $this->hasOneof(2); + } + + /** + * Catch-all. This should always be the last filter in the list because + * anything above it will apply first. Should only appear once in a + * configuration. If none is specified, a default one will be added + * automatically. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryFilter.AllOtherBigQueryTables other_tables = 2; + * @param \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter\AllOtherBigQueryTables $var + * @return $this + */ + public function setOtherTables($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter\AllOtherBigQueryTables::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The table to scan. Discovery configurations including this can only + * include one DiscoveryTarget (the DiscoveryTarget with this + * TableReference). + * + * Generated from protobuf field .google.privacy.dlp.v2.TableReference table_reference = 3; + * @return \Google\Cloud\Dlp\V2\TableReference|null + */ + public function getTableReference() + { + return $this->readOneof(3); + } + + public function hasTableReference() + { + return $this->hasOneof(3); + } + + /** + * The table to scan. Discovery configurations including this can only + * include one DiscoveryTarget (the DiscoveryTarget with this + * TableReference). + * + * Generated from protobuf field .google.privacy.dlp.v2.TableReference table_reference = 3; + * @param \Google\Cloud\Dlp\V2\TableReference $var + * @return $this + */ + public function setTableReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableReference::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getFilter() + { + return $this->whichOneof("filter"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter/AllOtherBigQueryTables.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter/AllOtherBigQueryTables.php new file mode 100644 index 000000000000..4adc7bba6ccf --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter/AllOtherBigQueryTables.php @@ -0,0 +1,35 @@ +google.privacy.dlp.v2.DiscoveryBigQueryFilter.AllOtherBigQueryTables + */ +class AllOtherBigQueryTables extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions.php new file mode 100644 index 000000000000..96c0b9dd3b49 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions.php @@ -0,0 +1,114 @@ +google.privacy.dlp.v2.DiscoveryCloudSqlConditions + */ +class DiscoveryCloudSqlConditions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Database engines that should be profiled. + * Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $database_engines; + /** + * Data profiles will only be generated for the database resource types + * specified in this field. + * If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3; + */ + private $types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int[] $database_engines + * Optional. Database engines that should be profiled. + * Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + * @type int[] $types + * Data profiles will only be generated for the database resource types + * specified in this field. + * If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Database engines that should be profiled. + * Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getDatabaseEngines() + { + return $this->database_engines; + } + + /** + * Optional. Database engines that should be profiled. + * Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int[] $var + * @return $this + */ + public function setDatabaseEngines($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions\DatabaseEngine::class); + $this->database_engines = $arr; + + return $this; + } + + /** + * Data profiles will only be generated for the database resource types + * specified in this field. + * If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3; + * @return RepeatedField + */ + public function getTypes() + { + return $this->types; + } + + /** + * Data profiles will only be generated for the database resource types + * specified in this field. + * If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3; + * @param int[] $var + * @return $this + */ + public function setTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions\DatabaseResourceType::class); + $this->types = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseEngine.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseEngine.php new file mode 100644 index 000000000000..f111e0d5a90c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseEngine.php @@ -0,0 +1,68 @@ +google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine + */ +class DatabaseEngine +{ + /** + * Unused. + * + * Generated from protobuf enum DATABASE_ENGINE_UNSPECIFIED = 0; + */ + const DATABASE_ENGINE_UNSPECIFIED = 0; + /** + * Include all supported database engines. + * + * Generated from protobuf enum ALL_SUPPORTED_DATABASE_ENGINES = 1; + */ + const ALL_SUPPORTED_DATABASE_ENGINES = 1; + /** + * MySQL database. + * + * Generated from protobuf enum MYSQL = 2; + */ + const MYSQL = 2; + /** + * PostgreSQL database. + * + * Generated from protobuf enum POSTGRES = 3; + */ + const POSTGRES = 3; + + private static $valueToName = [ + self::DATABASE_ENGINE_UNSPECIFIED => 'DATABASE_ENGINE_UNSPECIFIED', + self::ALL_SUPPORTED_DATABASE_ENGINES => 'ALL_SUPPORTED_DATABASE_ENGINES', + self::MYSQL => 'MYSQL', + self::POSTGRES => 'POSTGRES', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseResourceType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseResourceType.php new file mode 100644 index 000000000000..dc91b62c837a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseResourceType.php @@ -0,0 +1,61 @@ +google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType + */ +class DatabaseResourceType +{ + /** + * Unused. + * + * Generated from protobuf enum DATABASE_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + const DATABASE_RESOURCE_TYPE_UNSPECIFIED = 0; + /** + * Includes database resource types that become supported at a later time. + * + * Generated from protobuf enum DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES = 1; + */ + const DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES = 1; + /** + * Tables. + * + * Generated from protobuf enum DATABASE_RESOURCE_TYPE_TABLE = 2; + */ + const DATABASE_RESOURCE_TYPE_TABLE = 2; + + private static $valueToName = [ + self::DATABASE_RESOURCE_TYPE_UNSPECIFIED => 'DATABASE_RESOURCE_TYPE_UNSPECIFIED', + self::DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES => 'DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES', + self::DATABASE_RESOURCE_TYPE_TABLE => 'DATABASE_RESOURCE_TYPE_TABLE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlFilter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlFilter.php new file mode 100644 index 000000000000..6123f8644c35 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlFilter.php @@ -0,0 +1,155 @@ +google.privacy.dlp.v2.DiscoveryCloudSqlFilter + */ +class DiscoveryCloudSqlFilter extends \Google\Protobuf\Internal\Message +{ + protected $filter; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DatabaseResourceCollection $collection + * A specific set of database resources for this filter to apply to. + * @type \Google\Cloud\Dlp\V2\AllOtherDatabaseResources $others + * Catch-all. This should always be the last target in the list because + * anything above it will apply first. Should only appear once in a + * configuration. If none is specified, a default one will be added + * automatically. + * @type \Google\Cloud\Dlp\V2\DatabaseResourceReference $database_resource_reference + * The database resource to scan. Targets including this can only include + * one target (the target with this database resource reference). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A specific set of database resources for this filter to apply to. + * + * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceCollection collection = 1; + * @return \Google\Cloud\Dlp\V2\DatabaseResourceCollection|null + */ + public function getCollection() + { + return $this->readOneof(1); + } + + public function hasCollection() + { + return $this->hasOneof(1); + } + + /** + * A specific set of database resources for this filter to apply to. + * + * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceCollection collection = 1; + * @param \Google\Cloud\Dlp\V2\DatabaseResourceCollection $var + * @return $this + */ + public function setCollection($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DatabaseResourceCollection::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Catch-all. This should always be the last target in the list because + * anything above it will apply first. Should only appear once in a + * configuration. If none is specified, a default one will be added + * automatically. + * + * Generated from protobuf field .google.privacy.dlp.v2.AllOtherDatabaseResources others = 2; + * @return \Google\Cloud\Dlp\V2\AllOtherDatabaseResources|null + */ + public function getOthers() + { + return $this->readOneof(2); + } + + public function hasOthers() + { + return $this->hasOneof(2); + } + + /** + * Catch-all. This should always be the last target in the list because + * anything above it will apply first. Should only appear once in a + * configuration. If none is specified, a default one will be added + * automatically. + * + * Generated from protobuf field .google.privacy.dlp.v2.AllOtherDatabaseResources others = 2; + * @param \Google\Cloud\Dlp\V2\AllOtherDatabaseResources $var + * @return $this + */ + public function setOthers($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AllOtherDatabaseResources::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The database resource to scan. Targets including this can only include + * one target (the target with this database resource reference). + * + * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceReference database_resource_reference = 3; + * @return \Google\Cloud\Dlp\V2\DatabaseResourceReference|null + */ + public function getDatabaseResourceReference() + { + return $this->readOneof(3); + } + + public function hasDatabaseResourceReference() + { + return $this->hasOneof(3); + } + + /** + * The database resource to scan. Targets including this can only include + * one target (the target with this database resource reference). + * + * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceReference database_resource_reference = 3; + * @param \Google\Cloud\Dlp\V2\DatabaseResourceReference $var + * @return $this + */ + public function setDatabaseResourceReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DatabaseResourceReference::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getFilter() + { + return $this->whichOneof("filter"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence.php new file mode 100644 index 000000000000..6cf5d214c32a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence.php @@ -0,0 +1,177 @@ +google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence + */ +class DiscoveryCloudSqlGenerationCadence extends \Google\Protobuf\Internal\Message +{ + /** + * When to reprofile if the schema has changed. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence schema_modified_cadence = 1; + */ + protected $schema_modified_cadence = null; + /** + * Data changes (non-schema changes) in Cloud SQL tables can't trigger + * reprofiling. If you set this field, profiles are refreshed at this + * frequency regardless of whether the underlying tables have changed. + * Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 2; + */ + protected $refresh_frequency = 0; + /** + * Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to update. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + */ + protected $inspect_template_modified_cadence = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence\SchemaModifiedCadence $schema_modified_cadence + * When to reprofile if the schema has changed. + * @type int $refresh_frequency + * Data changes (non-schema changes) in Cloud SQL tables can't trigger + * reprofiling. If you set this field, profiles are refreshed at this + * frequency regardless of whether the underlying tables have changed. + * Defaults to never. + * @type \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $inspect_template_modified_cadence + * Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * When to reprofile if the schema has changed. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence schema_modified_cadence = 1; + * @return \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence\SchemaModifiedCadence|null + */ + public function getSchemaModifiedCadence() + { + return $this->schema_modified_cadence; + } + + public function hasSchemaModifiedCadence() + { + return isset($this->schema_modified_cadence); + } + + public function clearSchemaModifiedCadence() + { + unset($this->schema_modified_cadence); + } + + /** + * When to reprofile if the schema has changed. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence schema_modified_cadence = 1; + * @param \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence\SchemaModifiedCadence $var + * @return $this + */ + public function setSchemaModifiedCadence($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence\SchemaModifiedCadence::class); + $this->schema_modified_cadence = $var; + + return $this; + } + + /** + * Data changes (non-schema changes) in Cloud SQL tables can't trigger + * reprofiling. If you set this field, profiles are refreshed at this + * frequency regardless of whether the underlying tables have changed. + * Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 2; + * @return int + */ + public function getRefreshFrequency() + { + return $this->refresh_frequency; + } + + /** + * Data changes (non-schema changes) in Cloud SQL tables can't trigger + * reprofiling. If you set this field, profiles are refreshed at this + * frequency regardless of whether the underlying tables have changed. + * Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 2; + * @param int $var + * @return $this + */ + public function setRefreshFrequency($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); + $this->refresh_frequency = $var; + + return $this; + } + + /** + * Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to update. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * @return \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence|null + */ + public function getInspectTemplateModifiedCadence() + { + return $this->inspect_template_modified_cadence; + } + + public function hasInspectTemplateModifiedCadence() + { + return isset($this->inspect_template_modified_cadence); + } + + public function clearInspectTemplateModifiedCadence() + { + unset($this->inspect_template_modified_cadence); + } + + /** + * Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to update. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * @param \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $var + * @return $this + */ + public function setInspectTemplateModifiedCadence($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence::class); + $this->inspect_template_modified_cadence = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence.php new file mode 100644 index 000000000000..4124a9a1b255 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence.php @@ -0,0 +1,109 @@ +google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence + */ +class SchemaModifiedCadence extends \Google\Protobuf\Internal\Message +{ + /** + * The types of schema modifications to consider. + * Defaults to NEW_COLUMNS. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.CloudSqlSchemaModification types = 1; + */ + private $types; + /** + * Frequency to regenerate data profiles when the schema is modified. + * Defaults to monthly. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; + */ + protected $frequency = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int[] $types + * The types of schema modifications to consider. + * Defaults to NEW_COLUMNS. + * @type int $frequency + * Frequency to regenerate data profiles when the schema is modified. + * Defaults to monthly. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The types of schema modifications to consider. + * Defaults to NEW_COLUMNS. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.CloudSqlSchemaModification types = 1; + * @return RepeatedField + */ + public function getTypes() + { + return $this->types; + } + + /** + * The types of schema modifications to consider. + * Defaults to NEW_COLUMNS. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.CloudSqlSchemaModification types = 1; + * @param int[] $var + * @return $this + */ + public function setTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence\SchemaModifiedCadence\CloudSqlSchemaModification::class); + $this->types = $arr; + + return $this; + } + + /** + * Frequency to regenerate data profiles when the schema is modified. + * Defaults to monthly. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; + * @return int + */ + public function getFrequency() + { + return $this->frequency; + } + + /** + * Frequency to regenerate data profiles when the schema is modified. + * Defaults to monthly. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; + * @param int $var + * @return $this + */ + public function setFrequency($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); + $this->frequency = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence/CloudSqlSchemaModification.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence/CloudSqlSchemaModification.php new file mode 100644 index 000000000000..d7faecdf8aca --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence/CloudSqlSchemaModification.php @@ -0,0 +1,61 @@ +google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.CloudSqlSchemaModification + */ +class CloudSqlSchemaModification +{ + /** + * Unused. + * + * Generated from protobuf enum SQL_SCHEMA_MODIFICATION_UNSPECIFIED = 0; + */ + const SQL_SCHEMA_MODIFICATION_UNSPECIFIED = 0; + /** + * New columns have appeared. + * + * Generated from protobuf enum NEW_COLUMNS = 1; + */ + const NEW_COLUMNS = 1; + /** + * Columns have been removed from the table. + * + * Generated from protobuf enum REMOVED_COLUMNS = 2; + */ + const REMOVED_COLUMNS = 2; + + private static $valueToName = [ + self::SQL_SCHEMA_MODIFICATION_UNSPECIFIED => 'SQL_SCHEMA_MODIFICATION_UNSPECIFIED', + self::NEW_COLUMNS => 'NEW_COLUMNS', + self::REMOVED_COLUMNS => 'REMOVED_COLUMNS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions.php new file mode 100644 index 000000000000..7d913394158a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions.php @@ -0,0 +1,123 @@ +google.privacy.dlp.v2.DiscoveryCloudStorageConditions + */ +class DiscoveryCloudStorageConditions extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Only objects with the specified attributes will be scanned. If an + * object has one of the specified attributes but is inside an excluded + * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A + * profile will be created even if no objects match the + * included_object_attributes. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $included_object_attributes; + /** + * Required. Only objects with the specified attributes will be scanned. + * Defaults to [ALL_SUPPORTED_BUCKETS] if unset. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $included_bucket_attributes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int[] $included_object_attributes + * Required. Only objects with the specified attributes will be scanned. If an + * object has one of the specified attributes but is inside an excluded + * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A + * profile will be created even if no objects match the + * included_object_attributes. + * @type int[] $included_bucket_attributes + * Required. Only objects with the specified attributes will be scanned. + * Defaults to [ALL_SUPPORTED_BUCKETS] if unset. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Only objects with the specified attributes will be scanned. If an + * object has one of the specified attributes but is inside an excluded + * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A + * profile will be created even if no objects match the + * included_object_attributes. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField + */ + public function getIncludedObjectAttributes() + { + return $this->included_object_attributes; + } + + /** + * Required. Only objects with the specified attributes will be scanned. If an + * object has one of the specified attributes but is inside an excluded + * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A + * profile will be created even if no objects match the + * included_object_attributes. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int[] $var + * @return $this + */ + public function setIncludedObjectAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions\CloudStorageObjectAttribute::class); + $this->included_object_attributes = $arr; + + return $this; + } + + /** + * Required. Only objects with the specified attributes will be scanned. + * Defaults to [ALL_SUPPORTED_BUCKETS] if unset. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField + */ + public function getIncludedBucketAttributes() + { + return $this->included_bucket_attributes; + } + + /** + * Required. Only objects with the specified attributes will be scanned. + * Defaults to [ALL_SUPPORTED_BUCKETS] if unset. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int[] $var + * @return $this + */ + public function setIncludedBucketAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions\CloudStorageBucketAttribute::class); + $this->included_bucket_attributes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageBucketAttribute.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageBucketAttribute.php new file mode 100644 index 000000000000..b964ca9ca8be --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageBucketAttribute.php @@ -0,0 +1,73 @@ +google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute + */ +class CloudStorageBucketAttribute +{ + /** + * Unused. + * + * Generated from protobuf enum CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED = 0; + */ + const CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED = 0; + /** + * Scan buckets regardless of the attribute. + * + * Generated from protobuf enum ALL_SUPPORTED_BUCKETS = 1; + */ + const ALL_SUPPORTED_BUCKETS = 1; + /** + * Buckets with [Autoclass](https://cloud.google.com/storage/docs/autoclass) + * disabled. Only one of + * AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set. + * + * Generated from protobuf enum AUTOCLASS_DISABLED = 2; + */ + const AUTOCLASS_DISABLED = 2; + /** + * Buckets with [Autoclass](https://cloud.google.com/storage/docs/autoclass) + * enabled. Only one of + * AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set. Scanning + * Autoclass-enabled buckets can affect object storage classes. + * + * Generated from protobuf enum AUTOCLASS_ENABLED = 3; + */ + const AUTOCLASS_ENABLED = 3; + + private static $valueToName = [ + self::CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED => 'CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED', + self::ALL_SUPPORTED_BUCKETS => 'ALL_SUPPORTED_BUCKETS', + self::AUTOCLASS_DISABLED => 'AUTOCLASS_DISABLED', + self::AUTOCLASS_ENABLED => 'AUTOCLASS_ENABLED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageObjectAttribute.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageObjectAttribute.php new file mode 100644 index 000000000000..b973469865b4 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageObjectAttribute.php @@ -0,0 +1,109 @@ +google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute + */ +class CloudStorageObjectAttribute +{ + /** + * Unused. + * + * Generated from protobuf enum CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED = 0; + */ + const CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED = 0; + /** + * Scan objects regardless of the attribute. + * + * Generated from protobuf enum ALL_SUPPORTED_OBJECTS = 1; + */ + const ALL_SUPPORTED_OBJECTS = 1; + /** + * Scan objects with the standard storage class. + * + * Generated from protobuf enum STANDARD = 2; + */ + const STANDARD = 2; + /** + * Scan objects with the nearline storage class. This will incur retrieval + * fees. + * + * Generated from protobuf enum NEARLINE = 3; + */ + const NEARLINE = 3; + /** + * Scan objects with the coldline storage class. This will incur retrieval + * fees. + * + * Generated from protobuf enum COLDLINE = 4; + */ + const COLDLINE = 4; + /** + * Scan objects with the archive storage class. This will incur retrieval + * fees. + * + * Generated from protobuf enum ARCHIVE = 5; + */ + const ARCHIVE = 5; + /** + * Scan objects with the regional storage class. + * + * Generated from protobuf enum REGIONAL = 6; + */ + const REGIONAL = 6; + /** + * Scan objects with the multi-regional storage class. + * + * Generated from protobuf enum MULTI_REGIONAL = 7; + */ + const MULTI_REGIONAL = 7; + /** + * Scan objects with the dual-regional storage class. This will incur + * retrieval fees. + * + * Generated from protobuf enum DURABLE_REDUCED_AVAILABILITY = 8; + */ + const DURABLE_REDUCED_AVAILABILITY = 8; + + private static $valueToName = [ + self::CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED => 'CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED', + self::ALL_SUPPORTED_OBJECTS => 'ALL_SUPPORTED_OBJECTS', + self::STANDARD => 'STANDARD', + self::NEARLINE => 'NEARLINE', + self::COLDLINE => 'COLDLINE', + self::ARCHIVE => 'ARCHIVE', + self::REGIONAL => 'REGIONAL', + self::MULTI_REGIONAL => 'MULTI_REGIONAL', + self::DURABLE_REDUCED_AVAILABILITY => 'DURABLE_REDUCED_AVAILABILITY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageFilter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageFilter.php new file mode 100644 index 000000000000..1bdc66a39922 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageFilter.php @@ -0,0 +1,161 @@ +google.privacy.dlp.v2.DiscoveryCloudStorageFilter + */ +class DiscoveryCloudStorageFilter extends \Google\Protobuf\Internal\Message +{ + protected $filter; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FileStoreCollection $collection + * Optional. A specific set of buckets for this filter to apply to. + * @type \Google\Cloud\Dlp\V2\CloudStorageResourceReference $cloud_storage_resource_reference + * Optional. The bucket to scan. Targets including this can only include one + * target (the target with this bucket). This enables profiling the contents + * of a single bucket, while the other options allow for easy profiling of + * many bucets within a project or an organization. + * @type \Google\Cloud\Dlp\V2\AllOtherResources $others + * Optional. Catch-all. This should always be the last target in the list + * because anything above it will apply first. Should only appear once in a + * configuration. If none is specified, a default one will be added + * automatically. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A specific set of buckets for this filter to apply to. + * + * Generated from protobuf field .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dlp\V2\FileStoreCollection|null + */ + public function getCollection() + { + return $this->readOneof(1); + } + + public function hasCollection() + { + return $this->hasOneof(1); + } + + /** + * Optional. A specific set of buckets for this filter to apply to. + * + * Generated from protobuf field .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dlp\V2\FileStoreCollection $var + * @return $this + */ + public function setCollection($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FileStoreCollection::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Optional. The bucket to scan. Targets including this can only include one + * target (the target with this bucket). This enables profiling the contents + * of a single bucket, while the other options allow for easy profiling of + * many bucets within a project or an organization. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dlp\V2\CloudStorageResourceReference|null + */ + public function getCloudStorageResourceReference() + { + return $this->readOneof(2); + } + + public function hasCloudStorageResourceReference() + { + return $this->hasOneof(2); + } + + /** + * Optional. The bucket to scan. Targets including this can only include one + * target (the target with this bucket). This enables profiling the contents + * of a single bucket, while the other options allow for easy profiling of + * many bucets within a project or an organization. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dlp\V2\CloudStorageResourceReference $var + * @return $this + */ + public function setCloudStorageResourceReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageResourceReference::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Optional. Catch-all. This should always be the last target in the list + * because anything above it will apply first. Should only appear once in a + * configuration. If none is specified, a default one will be added + * automatically. + * + * Generated from protobuf field .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dlp\V2\AllOtherResources|null + */ + public function getOthers() + { + return $this->readOneof(100); + } + + public function hasOthers() + { + return $this->hasOneof(100); + } + + /** + * Optional. Catch-all. This should always be the last target in the list + * because anything above it will apply first. Should only appear once in a + * configuration. If none is specified, a default one will be added + * automatically. + * + * Generated from protobuf field .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dlp\V2\AllOtherResources $var + * @return $this + */ + public function setOthers($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AllOtherResources::class); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * @return string + */ + public function getFilter() + { + return $this->whichOneof("filter"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageGenerationCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageGenerationCadence.php new file mode 100644 index 000000000000..8826077e2016 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageGenerationCadence.php @@ -0,0 +1,129 @@ +google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence + */ +class DiscoveryCloudStorageGenerationCadence extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you + * set this field, profiles are refreshed at this frequency regardless of + * whether the underlying buckets have changed. Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $refresh_frequency = 0; + /** + * Optional. Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to update. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $inspect_template_modified_cadence = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $refresh_frequency + * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you + * set this field, profiles are refreshed at this frequency regardless of + * whether the underlying buckets have changed. Defaults to never. + * @type \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $inspect_template_modified_cadence + * Optional. Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you + * set this field, profiles are refreshed at this frequency regardless of + * whether the underlying buckets have changed. Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getRefreshFrequency() + { + return $this->refresh_frequency; + } + + /** + * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you + * set this field, profiles are refreshed at this frequency regardless of + * whether the underlying buckets have changed. Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setRefreshFrequency($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); + $this->refresh_frequency = $var; + + return $this; + } + + /** + * Optional. Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to update. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence|null + */ + public function getInspectTemplateModifiedCadence() + { + return $this->inspect_template_modified_cadence; + } + + public function hasInspectTemplateModifiedCadence() + { + return isset($this->inspect_template_modified_cadence); + } + + public function clearInspectTemplateModifiedCadence() + { + unset($this->inspect_template_modified_cadence); + } + + /** + * Optional. Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to update. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $var + * @return $this + */ + public function setInspectTemplateModifiedCadence($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence::class); + $this->inspect_template_modified_cadence = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig.php new file mode 100644 index 000000000000..9d25f99eba2f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig.php @@ -0,0 +1,616 @@ +google.privacy.dlp.v2.DiscoveryConfig + */ +class DiscoveryConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Unique resource name for the DiscoveryConfig, assigned by the service when + * the DiscoveryConfig is created, for example + * `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Display name (max 100 chars) + * + * Generated from protobuf field string display_name = 11; + */ + protected $display_name = ''; + /** + * Only set when the parent is an org. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2; + */ + protected $org_config = null; + /** + * Must be set only when scanning other clouds. + * + * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12; + */ + protected $other_cloud_starting_location = null; + /** + * Detection logic for profile generation. + * Not all template features are used by Discovery. FindingLimits, + * include_quote and exclude_info_types have no impact on + * Discovery. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. + * + * Generated from protobuf field repeated string inspect_templates = 3; + */ + private $inspect_templates; + /** + * Actions to execute at the completion of scanning. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; + */ + private $actions; + /** + * Target to match against for determining what to scan and how frequently. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; + */ + private $targets; + /** + * Output only. A stream of errors encountered when the config was activated. + * Repeated errors may result in the config automatically being paused. Output + * only field. Will return the last 100 errors. Whenever the config is + * modified this list will be cleared. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $errors; + /** + * Output only. The creation timestamp of a DiscoveryConfig. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The last update timestamp of a DiscoveryConfig. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. The timestamp of the last time this config was executed. + * + * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_run_time = null; + /** + * Required. A status for this configuration. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $status = 0; + /** + * Optional. Processing location configuration. Vertex AI dataset scanning + * will set processing_location.image_fallback_type to MultiRegionProcessing + * by default. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation processing_location = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $processing_location = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Unique resource name for the DiscoveryConfig, assigned by the service when + * the DiscoveryConfig is created, for example + * `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`. + * @type string $display_name + * Display name (max 100 chars) + * @type \Google\Cloud\Dlp\V2\DiscoveryConfig\OrgConfig $org_config + * Only set when the parent is an org. + * @type \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation $other_cloud_starting_location + * Must be set only when scanning other clouds. + * @type string[] $inspect_templates + * Detection logic for profile generation. + * Not all template features are used by Discovery. FindingLimits, + * include_quote and exclude_info_types have no impact on + * Discovery. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. + * @type \Google\Cloud\Dlp\V2\DataProfileAction[] $actions + * Actions to execute at the completion of scanning. + * @type \Google\Cloud\Dlp\V2\DiscoveryTarget[] $targets + * Target to match against for determining what to scan and how frequently. + * @type \Google\Cloud\Dlp\V2\Error[] $errors + * Output only. A stream of errors encountered when the config was activated. + * Repeated errors may result in the config automatically being paused. Output + * only field. Will return the last 100 errors. Whenever the config is + * modified this list will be cleared. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The creation timestamp of a DiscoveryConfig. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The last update timestamp of a DiscoveryConfig. + * @type \Google\Protobuf\Timestamp $last_run_time + * Output only. The timestamp of the last time this config was executed. + * @type int $status + * Required. A status for this configuration. + * @type \Google\Cloud\Dlp\V2\ProcessingLocation $processing_location + * Optional. Processing location configuration. Vertex AI dataset scanning + * will set processing_location.image_fallback_type to MultiRegionProcessing + * by default. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Unique resource name for the DiscoveryConfig, assigned by the service when + * the DiscoveryConfig is created, for example + * `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Unique resource name for the DiscoveryConfig, assigned by the service when + * the DiscoveryConfig is created, for example + * `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Display name (max 100 chars) + * + * Generated from protobuf field string display_name = 11; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name (max 100 chars) + * + * Generated from protobuf field string display_name = 11; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Only set when the parent is an org. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2; + * @return \Google\Cloud\Dlp\V2\DiscoveryConfig\OrgConfig|null + */ + public function getOrgConfig() + { + return $this->org_config; + } + + public function hasOrgConfig() + { + return isset($this->org_config); + } + + public function clearOrgConfig() + { + unset($this->org_config); + } + + /** + * Only set when the parent is an org. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2; + * @param \Google\Cloud\Dlp\V2\DiscoveryConfig\OrgConfig $var + * @return $this + */ + public function setOrgConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryConfig\OrgConfig::class); + $this->org_config = $var; + + return $this; + } + + /** + * Must be set only when scanning other clouds. + * + * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12; + * @return \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation|null + */ + public function getOtherCloudStartingLocation() + { + return $this->other_cloud_starting_location; + } + + public function hasOtherCloudStartingLocation() + { + return isset($this->other_cloud_starting_location); + } + + public function clearOtherCloudStartingLocation() + { + unset($this->other_cloud_starting_location); + } + + /** + * Must be set only when scanning other clouds. + * + * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12; + * @param \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation $var + * @return $this + */ + public function setOtherCloudStartingLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation::class); + $this->other_cloud_starting_location = $var; + + return $this; + } + + /** + * Detection logic for profile generation. + * Not all template features are used by Discovery. FindingLimits, + * include_quote and exclude_info_types have no impact on + * Discovery. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. + * + * Generated from protobuf field repeated string inspect_templates = 3; + * @return RepeatedField + */ + public function getInspectTemplates() + { + return $this->inspect_templates; + } + + /** + * Detection logic for profile generation. + * Not all template features are used by Discovery. FindingLimits, + * include_quote and exclude_info_types have no impact on + * Discovery. + * Multiple templates may be provided if there is data in multiple regions. + * At most one template must be specified per-region (including "global"). + * Each region is scanned using the applicable template. If no region-specific + * template is specified, but a "global" template is specified, it will be + * copied to that region and used instead. If no global or region-specific + * template is provided for a region with data, that region's data will not be + * scanned. + * For more information, see + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. + * + * Generated from protobuf field repeated string inspect_templates = 3; + * @param string[] $var + * @return $this + */ + public function setInspectTemplates($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->inspect_templates = $arr; + + return $this; + } + + /** + * Actions to execute at the completion of scanning. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; + * @return RepeatedField<\Google\Cloud\Dlp\V2\DataProfileAction> + */ + public function getActions() + { + return $this->actions; + } + + /** + * Actions to execute at the completion of scanning. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; + * @param \Google\Cloud\Dlp\V2\DataProfileAction[] $var + * @return $this + */ + public function setActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DataProfileAction::class); + $this->actions = $arr; + + return $this; + } + + /** + * Target to match against for determining what to scan and how frequently. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; + * @return RepeatedField<\Google\Cloud\Dlp\V2\DiscoveryTarget> + */ + public function getTargets() + { + return $this->targets; + } + + /** + * Target to match against for determining what to scan and how frequently. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; + * @param \Google\Cloud\Dlp\V2\DiscoveryTarget[] $var + * @return $this + */ + public function setTargets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DiscoveryTarget::class); + $this->targets = $arr; + + return $this; + } + + /** + * Output only. A stream of errors encountered when the config was activated. + * Repeated errors may result in the config automatically being paused. Output + * only field. Will return the last 100 errors. Whenever the config is + * modified this list will be cleared. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Error> + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Output only. A stream of errors encountered when the config was activated. + * Repeated errors may result in the config automatically being paused. Output + * only field. Will return the last 100 errors. Whenever the config is + * modified this list will be cleared. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dlp\V2\Error[] $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); + $this->errors = $arr; + + return $this; + } + + /** + * Output only. The creation timestamp of a DiscoveryConfig. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The creation timestamp of a DiscoveryConfig. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The last update timestamp of a DiscoveryConfig. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The last update timestamp of a DiscoveryConfig. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. The timestamp of the last time this config was executed. + * + * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastRunTime() + { + return $this->last_run_time; + } + + public function hasLastRunTime() + { + return isset($this->last_run_time); + } + + public function clearLastRunTime() + { + unset($this->last_run_time); + } + + /** + * Output only. The timestamp of the last time this config was executed. + * + * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastRunTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_run_time = $var; + + return $this; + } + + /** + * Required. A status for this configuration. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * Required. A status for this configuration. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DiscoveryConfig\Status::class); + $this->status = $var; + + return $this; + } + + /** + * Optional. Processing location configuration. Vertex AI dataset scanning + * will set processing_location.image_fallback_type to MultiRegionProcessing + * by default. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation processing_location = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dlp\V2\ProcessingLocation|null + */ + public function getProcessingLocation() + { + return $this->processing_location; + } + + public function hasProcessingLocation() + { + return isset($this->processing_location); + } + + public function clearProcessingLocation() + { + unset($this->processing_location); + } + + /** + * Optional. Processing location configuration. Vertex AI dataset scanning + * will set processing_location.image_fallback_type to MultiRegionProcessing + * by default. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation processing_location = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dlp\V2\ProcessingLocation $var + * @return $this + */ + public function setProcessingLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProcessingLocation::class); + $this->processing_location = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/OrgConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/OrgConfig.php new file mode 100644 index 000000000000..d89b7620a4b2 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/OrgConfig.php @@ -0,0 +1,119 @@ +google.privacy.dlp.v2.DiscoveryConfig.OrgConfig + */ +class OrgConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The data to scan: folder, org, or project + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryStartingLocation location = 1; + */ + protected $location = null; + /** + * The project that will run the scan. The DLP service + * account that exists within this project must have access to all resources + * that are profiled, and the DLP API must be enabled. + * + * Generated from protobuf field string project_id = 2; + */ + protected $project_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DiscoveryStartingLocation $location + * The data to scan: folder, org, or project + * @type string $project_id + * The project that will run the scan. The DLP service + * account that exists within this project must have access to all resources + * that are profiled, and the DLP API must be enabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The data to scan: folder, org, or project + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryStartingLocation location = 1; + * @return \Google\Cloud\Dlp\V2\DiscoveryStartingLocation|null + */ + public function getLocation() + { + return $this->location; + } + + public function hasLocation() + { + return isset($this->location); + } + + public function clearLocation() + { + unset($this->location); + } + + /** + * The data to scan: folder, org, or project + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryStartingLocation location = 1; + * @param \Google\Cloud\Dlp\V2\DiscoveryStartingLocation $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryStartingLocation::class); + $this->location = $var; + + return $this; + } + + /** + * The project that will run the scan. The DLP service + * account that exists within this project must have access to all resources + * that are profiled, and the DLP API must be enabled. + * + * Generated from protobuf field string project_id = 2; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * The project that will run the scan. The DLP service + * account that exists within this project must have access to all resources + * that are profiled, and the DLP API must be enabled. + * + * Generated from protobuf field string project_id = 2; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/Status.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/Status.php new file mode 100644 index 000000000000..143cec63fe99 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/Status.php @@ -0,0 +1,62 @@ +google.privacy.dlp.v2.DiscoveryConfig.Status + */ +class Status +{ + /** + * Unused + * + * Generated from protobuf enum STATUS_UNSPECIFIED = 0; + */ + const STATUS_UNSPECIFIED = 0; + /** + * The discovery config is currently active. + * + * Generated from protobuf enum RUNNING = 1; + */ + const RUNNING = 1; + /** + * The discovery config is paused temporarily. + * + * Generated from protobuf enum PAUSED = 2; + */ + const PAUSED = 2; + + private static $valueToName = [ + self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', + self::RUNNING => 'RUNNING', + self::PAUSED => 'PAUSED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryFileStoreConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryFileStoreConditions.php new file mode 100644 index 000000000000..540d4d424c17 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryFileStoreConditions.php @@ -0,0 +1,173 @@ +google.privacy.dlp.v2.DiscoveryFileStoreConditions + */ +class DiscoveryFileStoreConditions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. File store must have been created after this date. Used to avoid + * backfilling. + * + * Generated from protobuf field .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $created_after = null; + /** + * Optional. Minimum age a file store must have. If set, the value must be 1 + * hour or greater. + * + * Generated from protobuf field .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $min_age = null; + protected $conditions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $created_after + * Optional. File store must have been created after this date. Used to avoid + * backfilling. + * @type \Google\Protobuf\Duration $min_age + * Optional. Minimum age a file store must have. If set, the value must be 1 + * hour or greater. + * @type \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions $cloud_storage_conditions + * Optional. Cloud Storage conditions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Optional. File store must have been created after this date. Used to avoid + * backfilling. + * + * Generated from protobuf field .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreatedAfter() + { + return $this->created_after; + } + + public function hasCreatedAfter() + { + return isset($this->created_after); + } + + public function clearCreatedAfter() + { + unset($this->created_after); + } + + /** + * Optional. File store must have been created after this date. Used to avoid + * backfilling. + * + * Generated from protobuf field .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreatedAfter($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->created_after = $var; + + return $this; + } + + /** + * Optional. Minimum age a file store must have. If set, the value must be 1 + * hour or greater. + * + * Generated from protobuf field .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Duration|null + */ + public function getMinAge() + { + return $this->min_age; + } + + public function hasMinAge() + { + return isset($this->min_age); + } + + public function clearMinAge() + { + unset($this->min_age); + } + + /** + * Optional. Minimum age a file store must have. If set, the value must be 1 + * hour or greater. + * + * Generated from protobuf field .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setMinAge($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->min_age = $var; + + return $this; + } + + /** + * Optional. Cloud Storage conditions. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions|null + */ + public function getCloudStorageConditions() + { + return $this->readOneof(3); + } + + public function hasCloudStorageConditions() + { + return $this->hasOneof(3); + } + + /** + * Optional. Cloud Storage conditions. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions $var + * @return $this + */ + public function setCloudStorageConditions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getConditions() + { + return $this->whichOneof("conditions"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryGenerationCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryGenerationCadence.php new file mode 100644 index 000000000000..fc8d373c1089 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryGenerationCadence.php @@ -0,0 +1,214 @@ +google.privacy.dlp.v2.DiscoveryGenerationCadence + */ +class DiscoveryGenerationCadence extends \Google\Protobuf\Internal\Message +{ + /** + * Governs when to update data profiles when a schema is modified. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoverySchemaModifiedCadence schema_modified_cadence = 1; + */ + protected $schema_modified_cadence = null; + /** + * Governs when to update data profiles when a table is modified. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryTableModifiedCadence table_modified_cadence = 2; + */ + protected $table_modified_cadence = null; + /** + * Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to update. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + */ + protected $inspect_template_modified_cadence = null; + /** + * Frequency at which profiles should be updated, regardless of whether the + * underlying resource has changed. Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; + */ + protected $refresh_frequency = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DiscoverySchemaModifiedCadence $schema_modified_cadence + * Governs when to update data profiles when a schema is modified. + * @type \Google\Cloud\Dlp\V2\DiscoveryTableModifiedCadence $table_modified_cadence + * Governs when to update data profiles when a table is modified. + * @type \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $inspect_template_modified_cadence + * Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to update. + * @type int $refresh_frequency + * Frequency at which profiles should be updated, regardless of whether the + * underlying resource has changed. Defaults to never. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Governs when to update data profiles when a schema is modified. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoverySchemaModifiedCadence schema_modified_cadence = 1; + * @return \Google\Cloud\Dlp\V2\DiscoverySchemaModifiedCadence|null + */ + public function getSchemaModifiedCadence() + { + return $this->schema_modified_cadence; + } + + public function hasSchemaModifiedCadence() + { + return isset($this->schema_modified_cadence); + } + + public function clearSchemaModifiedCadence() + { + unset($this->schema_modified_cadence); + } + + /** + * Governs when to update data profiles when a schema is modified. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoverySchemaModifiedCadence schema_modified_cadence = 1; + * @param \Google\Cloud\Dlp\V2\DiscoverySchemaModifiedCadence $var + * @return $this + */ + public function setSchemaModifiedCadence($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoverySchemaModifiedCadence::class); + $this->schema_modified_cadence = $var; + + return $this; + } + + /** + * Governs when to update data profiles when a table is modified. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryTableModifiedCadence table_modified_cadence = 2; + * @return \Google\Cloud\Dlp\V2\DiscoveryTableModifiedCadence|null + */ + public function getTableModifiedCadence() + { + return $this->table_modified_cadence; + } + + public function hasTableModifiedCadence() + { + return isset($this->table_modified_cadence); + } + + public function clearTableModifiedCadence() + { + unset($this->table_modified_cadence); + } + + /** + * Governs when to update data profiles when a table is modified. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryTableModifiedCadence table_modified_cadence = 2; + * @param \Google\Cloud\Dlp\V2\DiscoveryTableModifiedCadence $var + * @return $this + */ + public function setTableModifiedCadence($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryTableModifiedCadence::class); + $this->table_modified_cadence = $var; + + return $this; + } + + /** + * Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to update. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * @return \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence|null + */ + public function getInspectTemplateModifiedCadence() + { + return $this->inspect_template_modified_cadence; + } + + public function hasInspectTemplateModifiedCadence() + { + return isset($this->inspect_template_modified_cadence); + } + + public function clearInspectTemplateModifiedCadence() + { + unset($this->inspect_template_modified_cadence); + } + + /** + * Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to update. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; + * @param \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $var + * @return $this + */ + public function setInspectTemplateModifiedCadence($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence::class); + $this->inspect_template_modified_cadence = $var; + + return $this; + } + + /** + * Frequency at which profiles should be updated, regardless of whether the + * underlying resource has changed. Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; + * @return int + */ + public function getRefreshFrequency() + { + return $this->refresh_frequency; + } + + /** + * Frequency at which profiles should be updated, regardless of whether the + * underlying resource has changed. Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; + * @param int $var + * @return $this + */ + public function setRefreshFrequency($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); + $this->refresh_frequency = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryInspectTemplateModifiedCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryInspectTemplateModifiedCadence.php new file mode 100644 index 000000000000..c946ec1d8291 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryInspectTemplateModifiedCadence.php @@ -0,0 +1,72 @@ +google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence + */ +class DiscoveryInspectTemplateModifiedCadence extends \Google\Protobuf\Internal\Message +{ + /** + * How frequently data profiles can be updated when the template is modified. + * Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; + */ + protected $frequency = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $frequency + * How frequently data profiles can be updated when the template is modified. + * Defaults to never. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * How frequently data profiles can be updated when the template is modified. + * Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; + * @return int + */ + public function getFrequency() + { + return $this->frequency; + } + + /** + * How frequently data profiles can be updated when the template is modified. + * Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; + * @param int $var + * @return $this + */ + public function setFrequency($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); + $this->frequency = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudConditions.php new file mode 100644 index 000000000000..97818465b4f9 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudConditions.php @@ -0,0 +1,124 @@ +google.privacy.dlp.v2.DiscoveryOtherCloudConditions + */ +class DiscoveryOtherCloudConditions extends \Google\Protobuf\Internal\Message +{ + /** + * Minimum age a resource must be before Cloud DLP can profile it. Value must + * be 1 hour or greater. + * + * Generated from protobuf field .google.protobuf.Duration min_age = 1; + */ + protected $min_age = null; + protected $conditions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $min_age + * Minimum age a resource must be before Cloud DLP can profile it. Value must + * be 1 hour or greater. + * @type \Google\Cloud\Dlp\V2\AmazonS3BucketConditions $amazon_s3_bucket_conditions + * Amazon S3 bucket conditions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Minimum age a resource must be before Cloud DLP can profile it. Value must + * be 1 hour or greater. + * + * Generated from protobuf field .google.protobuf.Duration min_age = 1; + * @return \Google\Protobuf\Duration|null + */ + public function getMinAge() + { + return $this->min_age; + } + + public function hasMinAge() + { + return isset($this->min_age); + } + + public function clearMinAge() + { + unset($this->min_age); + } + + /** + * Minimum age a resource must be before Cloud DLP can profile it. Value must + * be 1 hour or greater. + * + * Generated from protobuf field .google.protobuf.Duration min_age = 1; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setMinAge($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->min_age = $var; + + return $this; + } + + /** + * Amazon S3 bucket conditions. + * + * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3BucketConditions amazon_s3_bucket_conditions = 2; + * @return \Google\Cloud\Dlp\V2\AmazonS3BucketConditions|null + */ + public function getAmazonS3BucketConditions() + { + return $this->readOneof(2); + } + + public function hasAmazonS3BucketConditions() + { + return $this->hasOneof(2); + } + + /** + * Amazon S3 bucket conditions. + * + * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3BucketConditions amazon_s3_bucket_conditions = 2; + * @param \Google\Cloud\Dlp\V2\AmazonS3BucketConditions $var + * @return $this + */ + public function setAmazonS3BucketConditions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AmazonS3BucketConditions::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getConditions() + { + return $this->whichOneof("conditions"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudFilter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudFilter.php new file mode 100644 index 000000000000..0d5a69fd792d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudFilter.php @@ -0,0 +1,154 @@ +google.privacy.dlp.v2.DiscoveryOtherCloudFilter + */ +class DiscoveryOtherCloudFilter extends \Google\Protobuf\Internal\Message +{ + protected $filter; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\OtherCloudResourceCollection $collection + * A collection of resources for this filter to apply to. + * @type \Google\Cloud\Dlp\V2\OtherCloudSingleResourceReference $single_resource + * The resource to scan. Configs using this filter can only have one target + * (the target with this single resource reference). + * @type \Google\Cloud\Dlp\V2\AllOtherResources $others + * Optional. Catch-all. This should always be the last target in the list + * because anything above it will apply first. Should only appear once in a + * configuration. If none is specified, a default one will be added + * automatically. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A collection of resources for this filter to apply to. + * + * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudResourceCollection collection = 1; + * @return \Google\Cloud\Dlp\V2\OtherCloudResourceCollection|null + */ + public function getCollection() + { + return $this->readOneof(1); + } + + public function hasCollection() + { + return $this->hasOneof(1); + } + + /** + * A collection of resources for this filter to apply to. + * + * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudResourceCollection collection = 1; + * @param \Google\Cloud\Dlp\V2\OtherCloudResourceCollection $var + * @return $this + */ + public function setCollection($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudResourceCollection::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The resource to scan. Configs using this filter can only have one target + * (the target with this single resource reference). + * + * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudSingleResourceReference single_resource = 2; + * @return \Google\Cloud\Dlp\V2\OtherCloudSingleResourceReference|null + */ + public function getSingleResource() + { + return $this->readOneof(2); + } + + public function hasSingleResource() + { + return $this->hasOneof(2); + } + + /** + * The resource to scan. Configs using this filter can only have one target + * (the target with this single resource reference). + * + * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudSingleResourceReference single_resource = 2; + * @param \Google\Cloud\Dlp\V2\OtherCloudSingleResourceReference $var + * @return $this + */ + public function setSingleResource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudSingleResourceReference::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Optional. Catch-all. This should always be the last target in the list + * because anything above it will apply first. Should only appear once in a + * configuration. If none is specified, a default one will be added + * automatically. + * + * Generated from protobuf field .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dlp\V2\AllOtherResources|null + */ + public function getOthers() + { + return $this->readOneof(100); + } + + public function hasOthers() + { + return $this->hasOneof(100); + } + + /** + * Optional. Catch-all. This should always be the last target in the list + * because anything above it will apply first. Should only appear once in a + * configuration. If none is specified, a default one will be added + * automatically. + * + * Generated from protobuf field .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dlp\V2\AllOtherResources $var + * @return $this + */ + public function setOthers($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AllOtherResources::class); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * @return string + */ + public function getFilter() + { + return $this->whichOneof("filter"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudGenerationCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudGenerationCadence.php new file mode 100644 index 000000000000..ddb252883134 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudGenerationCadence.php @@ -0,0 +1,125 @@ +google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence + */ +class DiscoveryOtherCloudGenerationCadence extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Frequency to update profiles regardless of whether the underlying + * resource has changes. Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $refresh_frequency = 0; + /** + * Optional. Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to update. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $inspect_template_modified_cadence = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $refresh_frequency + * Optional. Frequency to update profiles regardless of whether the underlying + * resource has changes. Defaults to never. + * @type \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $inspect_template_modified_cadence + * Optional. Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Frequency to update profiles regardless of whether the underlying + * resource has changes. Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getRefreshFrequency() + { + return $this->refresh_frequency; + } + + /** + * Optional. Frequency to update profiles regardless of whether the underlying + * resource has changes. Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setRefreshFrequency($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); + $this->refresh_frequency = $var; + + return $this; + } + + /** + * Optional. Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to update. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence|null + */ + public function getInspectTemplateModifiedCadence() + { + return $this->inspect_template_modified_cadence; + } + + public function hasInspectTemplateModifiedCadence() + { + return isset($this->inspect_template_modified_cadence); + } + + public function clearInspectTemplateModifiedCadence() + { + unset($this->inspect_template_modified_cadence); + } + + /** + * Optional. Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to update. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $var + * @return $this + */ + public function setInspectTemplateModifiedCadence($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence::class); + $this->inspect_template_modified_cadence = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoverySchemaModifiedCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoverySchemaModifiedCadence.php new file mode 100644 index 000000000000..76859e84b2d7 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoverySchemaModifiedCadence.php @@ -0,0 +1,113 @@ +google.privacy.dlp.v2.DiscoverySchemaModifiedCadence + */ +class DiscoverySchemaModifiedCadence extends \Google\Protobuf\Internal\Message +{ + /** + * The type of events to consider when deciding if the table's schema + * has been modified and should have the profile updated. Defaults to + * NEW_COLUMNS. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQuerySchemaModification types = 1; + */ + private $types; + /** + * How frequently profiles may be updated when schemas are + * modified. Defaults to monthly. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; + */ + protected $frequency = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int[] $types + * The type of events to consider when deciding if the table's schema + * has been modified and should have the profile updated. Defaults to + * NEW_COLUMNS. + * @type int $frequency + * How frequently profiles may be updated when schemas are + * modified. Defaults to monthly. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The type of events to consider when deciding if the table's schema + * has been modified and should have the profile updated. Defaults to + * NEW_COLUMNS. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQuerySchemaModification types = 1; + * @return RepeatedField + */ + public function getTypes() + { + return $this->types; + } + + /** + * The type of events to consider when deciding if the table's schema + * has been modified and should have the profile updated. Defaults to + * NEW_COLUMNS. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQuerySchemaModification types = 1; + * @param int[] $var + * @return $this + */ + public function setTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\BigQuerySchemaModification::class); + $this->types = $arr; + + return $this; + } + + /** + * How frequently profiles may be updated when schemas are + * modified. Defaults to monthly. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; + * @return int + */ + public function getFrequency() + { + return $this->frequency; + } + + /** + * How frequently profiles may be updated when schemas are + * modified. Defaults to monthly. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; + * @param int $var + * @return $this + */ + public function setFrequency($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); + $this->frequency = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryStartingLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryStartingLocation.php new file mode 100644 index 000000000000..42c48b52c042 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryStartingLocation.php @@ -0,0 +1,109 @@ +google.privacy.dlp.v2.DiscoveryStartingLocation + */ +class DiscoveryStartingLocation extends \Google\Protobuf\Internal\Message +{ + protected $location; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $organization_id + * The ID of an organization to scan. + * @type int|string $folder_id + * The ID of the folder within an organization to be scanned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The ID of an organization to scan. + * + * Generated from protobuf field int64 organization_id = 1; + * @return int|string + */ + public function getOrganizationId() + { + return $this->readOneof(1); + } + + public function hasOrganizationId() + { + return $this->hasOneof(1); + } + + /** + * The ID of an organization to scan. + * + * Generated from protobuf field int64 organization_id = 1; + * @param int|string $var + * @return $this + */ + public function setOrganizationId($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The ID of the folder within an organization to be scanned. + * + * Generated from protobuf field int64 folder_id = 2; + * @return int|string + */ + public function getFolderId() + { + return $this->readOneof(2); + } + + public function hasFolderId() + { + return $this->hasOneof(2); + } + + /** + * The ID of the folder within an organization to be scanned. + * + * Generated from protobuf field int64 folder_id = 2; + * @param int|string $var + * @return $this + */ + public function setFolderId($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getLocation() + { + return $this->whichOneof("location"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTableModifiedCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTableModifiedCadence.php new file mode 100644 index 000000000000..4311065aab85 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTableModifiedCadence.php @@ -0,0 +1,113 @@ +google.privacy.dlp.v2.DiscoveryTableModifiedCadence + */ +class DiscoveryTableModifiedCadence extends \Google\Protobuf\Internal\Message +{ + /** + * The type of events to consider when deciding if the table has been + * modified and should have the profile updated. Defaults to + * MODIFIED_TIMESTAMP. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableModification types = 1; + */ + private $types; + /** + * How frequently data profiles can be updated when tables are modified. + * Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; + */ + protected $frequency = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int[] $types + * The type of events to consider when deciding if the table has been + * modified and should have the profile updated. Defaults to + * MODIFIED_TIMESTAMP. + * @type int $frequency + * How frequently data profiles can be updated when tables are modified. + * Defaults to never. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The type of events to consider when deciding if the table has been + * modified and should have the profile updated. Defaults to + * MODIFIED_TIMESTAMP. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableModification types = 1; + * @return RepeatedField + */ + public function getTypes() + { + return $this->types; + } + + /** + * The type of events to consider when deciding if the table has been + * modified and should have the profile updated. Defaults to + * MODIFIED_TIMESTAMP. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableModification types = 1; + * @param int[] $var + * @return $this + */ + public function setTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\BigQueryTableModification::class); + $this->types = $arr; + + return $this; + } + + /** + * How frequently data profiles can be updated when tables are modified. + * Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; + * @return int + */ + public function getFrequency() + { + return $this->frequency; + } + + /** + * How frequently data profiles can be updated when tables are modified. + * Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; + * @param int $var + * @return $this + */ + public function setFrequency($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); + $this->frequency = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTarget.php new file mode 100644 index 000000000000..655db31a3139 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTarget.php @@ -0,0 +1,279 @@ +google.privacy.dlp.v2.DiscoveryTarget + */ +class DiscoveryTarget extends \Google\Protobuf\Internal\Message +{ + protected $target; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\BigQueryDiscoveryTarget $big_query_target + * BigQuery target for Discovery. The first target to match a table will be + * the one applied. + * @type \Google\Cloud\Dlp\V2\CloudSqlDiscoveryTarget $cloud_sql_target + * Cloud SQL target for Discovery. The first target to match a table will be + * the one applied. + * @type \Google\Cloud\Dlp\V2\SecretsDiscoveryTarget $secrets_target + * Discovery target that looks for credentials and secrets stored in cloud + * resource metadata and reports them as vulnerabilities to Security Command + * Center. Only one target of this type is allowed. + * @type \Google\Cloud\Dlp\V2\CloudStorageDiscoveryTarget $cloud_storage_target + * Cloud Storage target for Discovery. The first target to match a table + * will be the one applied. + * @type \Google\Cloud\Dlp\V2\OtherCloudDiscoveryTarget $other_cloud_target + * Other clouds target for discovery. The first target to match a resource + * will be the one applied. + * @type \Google\Cloud\Dlp\V2\VertexDatasetDiscoveryTarget $vertex_dataset_target + * Vertex AI dataset target for Discovery. The first target to match a + * dataset will be the one applied. Note that discovery for Vertex AI can + * incur Cloud Storage Class B operation charges for storage.objects.get + * operations and retrieval fees. For more information, see [Cloud Storage + * pricing](https://cloud.google.com/storage/pricing#price-tables). + * Note that discovery for Vertex AI dataset will not be able to scan images + * unless DiscoveryConfig.processing_location.image_fallback_location has + * multi_region_processing or global_processing configured. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * BigQuery target for Discovery. The first target to match a table will be + * the one applied. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryDiscoveryTarget big_query_target = 1; + * @return \Google\Cloud\Dlp\V2\BigQueryDiscoveryTarget|null + */ + public function getBigQueryTarget() + { + return $this->readOneof(1); + } + + public function hasBigQueryTarget() + { + return $this->hasOneof(1); + } + + /** + * BigQuery target for Discovery. The first target to match a table will be + * the one applied. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryDiscoveryTarget big_query_target = 1; + * @param \Google\Cloud\Dlp\V2\BigQueryDiscoveryTarget $var + * @return $this + */ + public function setBigQueryTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryDiscoveryTarget::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Cloud SQL target for Discovery. The first target to match a table will be + * the one applied. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlDiscoveryTarget cloud_sql_target = 2; + * @return \Google\Cloud\Dlp\V2\CloudSqlDiscoveryTarget|null + */ + public function getCloudSqlTarget() + { + return $this->readOneof(2); + } + + public function hasCloudSqlTarget() + { + return $this->hasOneof(2); + } + + /** + * Cloud SQL target for Discovery. The first target to match a table will be + * the one applied. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlDiscoveryTarget cloud_sql_target = 2; + * @param \Google\Cloud\Dlp\V2\CloudSqlDiscoveryTarget $var + * @return $this + */ + public function setCloudSqlTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudSqlDiscoveryTarget::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Discovery target that looks for credentials and secrets stored in cloud + * resource metadata and reports them as vulnerabilities to Security Command + * Center. Only one target of this type is allowed. + * + * Generated from protobuf field .google.privacy.dlp.v2.SecretsDiscoveryTarget secrets_target = 3; + * @return \Google\Cloud\Dlp\V2\SecretsDiscoveryTarget|null + */ + public function getSecretsTarget() + { + return $this->readOneof(3); + } + + public function hasSecretsTarget() + { + return $this->hasOneof(3); + } + + /** + * Discovery target that looks for credentials and secrets stored in cloud + * resource metadata and reports them as vulnerabilities to Security Command + * Center. Only one target of this type is allowed. + * + * Generated from protobuf field .google.privacy.dlp.v2.SecretsDiscoveryTarget secrets_target = 3; + * @param \Google\Cloud\Dlp\V2\SecretsDiscoveryTarget $var + * @return $this + */ + public function setSecretsTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SecretsDiscoveryTarget::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Cloud Storage target for Discovery. The first target to match a table + * will be the one applied. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; + * @return \Google\Cloud\Dlp\V2\CloudStorageDiscoveryTarget|null + */ + public function getCloudStorageTarget() + { + return $this->readOneof(4); + } + + public function hasCloudStorageTarget() + { + return $this->hasOneof(4); + } + + /** + * Cloud Storage target for Discovery. The first target to match a table + * will be the one applied. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; + * @param \Google\Cloud\Dlp\V2\CloudStorageDiscoveryTarget $var + * @return $this + */ + public function setCloudStorageTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageDiscoveryTarget::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Other clouds target for discovery. The first target to match a resource + * will be the one applied. + * + * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryTarget other_cloud_target = 5; + * @return \Google\Cloud\Dlp\V2\OtherCloudDiscoveryTarget|null + */ + public function getOtherCloudTarget() + { + return $this->readOneof(5); + } + + public function hasOtherCloudTarget() + { + return $this->hasOneof(5); + } + + /** + * Other clouds target for discovery. The first target to match a resource + * will be the one applied. + * + * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryTarget other_cloud_target = 5; + * @param \Google\Cloud\Dlp\V2\OtherCloudDiscoveryTarget $var + * @return $this + */ + public function setOtherCloudTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudDiscoveryTarget::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Vertex AI dataset target for Discovery. The first target to match a + * dataset will be the one applied. Note that discovery for Vertex AI can + * incur Cloud Storage Class B operation charges for storage.objects.get + * operations and retrieval fees. For more information, see [Cloud Storage + * pricing](https://cloud.google.com/storage/pricing#price-tables). + * Note that discovery for Vertex AI dataset will not be able to scan images + * unless DiscoveryConfig.processing_location.image_fallback_location has + * multi_region_processing or global_processing configured. + * + * Generated from protobuf field .google.privacy.dlp.v2.VertexDatasetDiscoveryTarget vertex_dataset_target = 7; + * @return \Google\Cloud\Dlp\V2\VertexDatasetDiscoveryTarget|null + */ + public function getVertexDatasetTarget() + { + return $this->readOneof(7); + } + + public function hasVertexDatasetTarget() + { + return $this->hasOneof(7); + } + + /** + * Vertex AI dataset target for Discovery. The first target to match a + * dataset will be the one applied. Note that discovery for Vertex AI can + * incur Cloud Storage Class B operation charges for storage.objects.get + * operations and retrieval fees. For more information, see [Cloud Storage + * pricing](https://cloud.google.com/storage/pricing#price-tables). + * Note that discovery for Vertex AI dataset will not be able to scan images + * unless DiscoveryConfig.processing_location.image_fallback_location has + * multi_region_processing or global_processing configured. + * + * Generated from protobuf field .google.privacy.dlp.v2.VertexDatasetDiscoveryTarget vertex_dataset_target = 7; + * @param \Google\Cloud\Dlp\V2\VertexDatasetDiscoveryTarget $var + * @return $this + */ + public function setVertexDatasetTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\VertexDatasetDiscoveryTarget::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * @return string + */ + public function getTarget() + { + return $this->whichOneof("target"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetConditions.php new file mode 100644 index 000000000000..98ea83a4a0d4 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetConditions.php @@ -0,0 +1,130 @@ +google.privacy.dlp.v2.DiscoveryVertexDatasetConditions + */ +class DiscoveryVertexDatasetConditions extends \Google\Protobuf\Internal\Message +{ + /** + * Vertex AI dataset must have been created after this date. Used to avoid + * backfilling. + * + * Generated from protobuf field .google.protobuf.Timestamp created_after = 1; + */ + protected $created_after = null; + /** + * Minimum age a Vertex AI dataset must have. If set, the value must be 1 hour + * or greater. + * + * Generated from protobuf field .google.protobuf.Duration min_age = 2; + */ + protected $min_age = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $created_after + * Vertex AI dataset must have been created after this date. Used to avoid + * backfilling. + * @type \Google\Protobuf\Duration $min_age + * Minimum age a Vertex AI dataset must have. If set, the value must be 1 hour + * or greater. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Vertex AI dataset must have been created after this date. Used to avoid + * backfilling. + * + * Generated from protobuf field .google.protobuf.Timestamp created_after = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreatedAfter() + { + return $this->created_after; + } + + public function hasCreatedAfter() + { + return isset($this->created_after); + } + + public function clearCreatedAfter() + { + unset($this->created_after); + } + + /** + * Vertex AI dataset must have been created after this date. Used to avoid + * backfilling. + * + * Generated from protobuf field .google.protobuf.Timestamp created_after = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreatedAfter($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->created_after = $var; + + return $this; + } + + /** + * Minimum age a Vertex AI dataset must have. If set, the value must be 1 hour + * or greater. + * + * Generated from protobuf field .google.protobuf.Duration min_age = 2; + * @return \Google\Protobuf\Duration|null + */ + public function getMinAge() + { + return $this->min_age; + } + + public function hasMinAge() + { + return isset($this->min_age); + } + + public function clearMinAge() + { + unset($this->min_age); + } + + /** + * Minimum age a Vertex AI dataset must have. If set, the value must be 1 hour + * or greater. + * + * Generated from protobuf field .google.protobuf.Duration min_age = 2; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setMinAge($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->min_age = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetFilter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetFilter.php new file mode 100644 index 000000000000..bfed65d02416 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetFilter.php @@ -0,0 +1,155 @@ +google.privacy.dlp.v2.DiscoveryVertexDatasetFilter + */ +class DiscoveryVertexDatasetFilter extends \Google\Protobuf\Internal\Message +{ + protected $filter; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\VertexDatasetCollection $collection + * A specific set of Vertex AI datasets for this filter to apply to. + * @type \Google\Cloud\Dlp\V2\VertexDatasetResourceReference $vertex_dataset_resource_reference + * The dataset resource to scan. Targets including this can only include + * one target (the target with this dataset resource reference). + * @type \Google\Cloud\Dlp\V2\AllOtherResources $others + * Catch-all. This should always be the last target in the list because + * anything above it will apply first. Should only appear once in a + * configuration. If none is specified, a default one will be added + * automatically. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A specific set of Vertex AI datasets for this filter to apply to. + * + * Generated from protobuf field .google.privacy.dlp.v2.VertexDatasetCollection collection = 1; + * @return \Google\Cloud\Dlp\V2\VertexDatasetCollection|null + */ + public function getCollection() + { + return $this->readOneof(1); + } + + public function hasCollection() + { + return $this->hasOneof(1); + } + + /** + * A specific set of Vertex AI datasets for this filter to apply to. + * + * Generated from protobuf field .google.privacy.dlp.v2.VertexDatasetCollection collection = 1; + * @param \Google\Cloud\Dlp\V2\VertexDatasetCollection $var + * @return $this + */ + public function setCollection($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\VertexDatasetCollection::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The dataset resource to scan. Targets including this can only include + * one target (the target with this dataset resource reference). + * + * Generated from protobuf field .google.privacy.dlp.v2.VertexDatasetResourceReference vertex_dataset_resource_reference = 2; + * @return \Google\Cloud\Dlp\V2\VertexDatasetResourceReference|null + */ + public function getVertexDatasetResourceReference() + { + return $this->readOneof(2); + } + + public function hasVertexDatasetResourceReference() + { + return $this->hasOneof(2); + } + + /** + * The dataset resource to scan. Targets including this can only include + * one target (the target with this dataset resource reference). + * + * Generated from protobuf field .google.privacy.dlp.v2.VertexDatasetResourceReference vertex_dataset_resource_reference = 2; + * @param \Google\Cloud\Dlp\V2\VertexDatasetResourceReference $var + * @return $this + */ + public function setVertexDatasetResourceReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\VertexDatasetResourceReference::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Catch-all. This should always be the last target in the list because + * anything above it will apply first. Should only appear once in a + * configuration. If none is specified, a default one will be added + * automatically. + * + * Generated from protobuf field .google.privacy.dlp.v2.AllOtherResources others = 100; + * @return \Google\Cloud\Dlp\V2\AllOtherResources|null + */ + public function getOthers() + { + return $this->readOneof(100); + } + + public function hasOthers() + { + return $this->hasOneof(100); + } + + /** + * Catch-all. This should always be the last target in the list because + * anything above it will apply first. Should only appear once in a + * configuration. If none is specified, a default one will be added + * automatically. + * + * Generated from protobuf field .google.privacy.dlp.v2.AllOtherResources others = 100; + * @param \Google\Cloud\Dlp\V2\AllOtherResources $var + * @return $this + */ + public function setOthers($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AllOtherResources::class); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * @return string + */ + public function getFilter() + { + return $this->whichOneof("filter"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetGenerationCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetGenerationCadence.php new file mode 100644 index 000000000000..fae45ec8c974 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetGenerationCadence.php @@ -0,0 +1,133 @@ +google.privacy.dlp.v2.DiscoveryVertexDatasetGenerationCadence + */ +class DiscoveryVertexDatasetGenerationCadence extends \Google\Protobuf\Internal\Message +{ + /** + * If you set this field, profiles are refreshed at this + * frequency regardless of whether the underlying datasets have changed. + * Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1; + */ + protected $refresh_frequency = 0; + /** + * Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to be + * updated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2; + */ + protected $inspect_template_modified_cadence = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $refresh_frequency + * If you set this field, profiles are refreshed at this + * frequency regardless of whether the underlying datasets have changed. + * Defaults to never. + * @type \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $inspect_template_modified_cadence + * Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to be + * updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * If you set this field, profiles are refreshed at this + * frequency regardless of whether the underlying datasets have changed. + * Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1; + * @return int + */ + public function getRefreshFrequency() + { + return $this->refresh_frequency; + } + + /** + * If you set this field, profiles are refreshed at this + * frequency regardless of whether the underlying datasets have changed. + * Defaults to never. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1; + * @param int $var + * @return $this + */ + public function setRefreshFrequency($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); + $this->refresh_frequency = $var; + + return $this; + } + + /** + * Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to be + * updated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2; + * @return \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence|null + */ + public function getInspectTemplateModifiedCadence() + { + return $this->inspect_template_modified_cadence; + } + + public function hasInspectTemplateModifiedCadence() + { + return isset($this->inspect_template_modified_cadence); + } + + public function clearInspectTemplateModifiedCadence() + { + unset($this->inspect_template_modified_cadence); + } + + /** + * Governs when to update data profiles when the inspection rules + * defined by the `InspectTemplate` change. + * If not set, changing the template will not cause a data profile to be + * updated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2; + * @param \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $var + * @return $this + */ + public function setInspectTemplateModifiedCadence($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence::class); + $this->inspect_template_modified_cadence = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob.php new file mode 100644 index 000000000000..94b9b9ad6653 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob.php @@ -0,0 +1,492 @@ +google.privacy.dlp.v2.DlpJob + */ +class DlpJob extends \Google\Protobuf\Internal\Message +{ + /** + * The server-assigned name. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The type of job. + * + * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 2; + */ + protected $type = 0; + /** + * State of a job. + * + * Generated from protobuf field .google.privacy.dlp.v2.DlpJob.JobState state = 3; + */ + protected $state = 0; + /** + * Time when the job was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; + */ + protected $create_time = null; + /** + * Time when the job started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 7; + */ + protected $start_time = null; + /** + * Time when the job finished. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 8; + */ + protected $end_time = null; + /** + * Time when the job was last modified by the system. + * + * Generated from protobuf field .google.protobuf.Timestamp last_modified = 15; + */ + protected $last_modified = null; + /** + * If created by a job trigger, the resource name of the trigger that + * instantiated the job. + * + * Generated from protobuf field string job_trigger_name = 10; + */ + protected $job_trigger_name = ''; + /** + * A stream of errors encountered running the job. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 11; + */ + private $errors; + /** + * Events that should occur after the job has completed. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ActionDetails action_details = 12; + */ + private $action_details; + protected $details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The server-assigned name. + * @type int $type + * The type of job. + * @type int $state + * State of a job. + * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails $risk_details + * Results from analyzing risk of a data source. + * @type \Google\Cloud\Dlp\V2\InspectDataSourceDetails $inspect_details + * Results from inspecting a data source. + * @type \Google\Protobuf\Timestamp $create_time + * Time when the job was created. + * @type \Google\Protobuf\Timestamp $start_time + * Time when the job started. + * @type \Google\Protobuf\Timestamp $end_time + * Time when the job finished. + * @type \Google\Protobuf\Timestamp $last_modified + * Time when the job was last modified by the system. + * @type string $job_trigger_name + * If created by a job trigger, the resource name of the trigger that + * instantiated the job. + * @type \Google\Cloud\Dlp\V2\Error[] $errors + * A stream of errors encountered running the job. + * @type \Google\Cloud\Dlp\V2\ActionDetails[] $action_details + * Events that should occur after the job has completed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The server-assigned name. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The server-assigned name. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The type of job. + * + * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 2; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of job. + * + * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 2; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DlpJobType::class); + $this->type = $var; + + return $this; + } + + /** + * State of a job. + * + * Generated from protobuf field .google.privacy.dlp.v2.DlpJob.JobState state = 3; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * State of a job. + * + * Generated from protobuf field .google.privacy.dlp.v2.DlpJob.JobState state = 3; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DlpJob\JobState::class); + $this->state = $var; + + return $this; + } + + /** + * Results from analyzing risk of a data source. + * + * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails risk_details = 4; + * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails|null + */ + public function getRiskDetails() + { + return $this->readOneof(4); + } + + public function hasRiskDetails() + { + return $this->hasOneof(4); + } + + /** + * Results from analyzing risk of a data source. + * + * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails risk_details = 4; + * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails $var + * @return $this + */ + public function setRiskDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Results from inspecting a data source. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails inspect_details = 5; + * @return \Google\Cloud\Dlp\V2\InspectDataSourceDetails|null + */ + public function getInspectDetails() + { + return $this->readOneof(5); + } + + public function hasInspectDetails() + { + return $this->hasOneof(5); + } + + /** + * Results from inspecting a data source. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails inspect_details = 5; + * @param \Google\Cloud\Dlp\V2\InspectDataSourceDetails $var + * @return $this + */ + public function setInspectDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectDataSourceDetails::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Time when the job was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Time when the job was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Time when the job started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 7; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Time when the job started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 7; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Time when the job finished. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 8; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Time when the job finished. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 8; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Time when the job was last modified by the system. + * + * Generated from protobuf field .google.protobuf.Timestamp last_modified = 15; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastModified() + { + return $this->last_modified; + } + + public function hasLastModified() + { + return isset($this->last_modified); + } + + public function clearLastModified() + { + unset($this->last_modified); + } + + /** + * Time when the job was last modified by the system. + * + * Generated from protobuf field .google.protobuf.Timestamp last_modified = 15; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastModified($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_modified = $var; + + return $this; + } + + /** + * If created by a job trigger, the resource name of the trigger that + * instantiated the job. + * + * Generated from protobuf field string job_trigger_name = 10; + * @return string + */ + public function getJobTriggerName() + { + return $this->job_trigger_name; + } + + /** + * If created by a job trigger, the resource name of the trigger that + * instantiated the job. + * + * Generated from protobuf field string job_trigger_name = 10; + * @param string $var + * @return $this + */ + public function setJobTriggerName($var) + { + GPBUtil::checkString($var, True); + $this->job_trigger_name = $var; + + return $this; + } + + /** + * A stream of errors encountered running the job. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 11; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Error> + */ + public function getErrors() + { + return $this->errors; + } + + /** + * A stream of errors encountered running the job. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 11; + * @param \Google\Cloud\Dlp\V2\Error[] $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); + $this->errors = $arr; + + return $this; + } + + /** + * Events that should occur after the job has completed. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ActionDetails action_details = 12; + * @return RepeatedField<\Google\Cloud\Dlp\V2\ActionDetails> + */ + public function getActionDetails() + { + return $this->action_details; + } + + /** + * Events that should occur after the job has completed. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ActionDetails action_details = 12; + * @param \Google\Cloud\Dlp\V2\ActionDetails[] $var + * @return $this + */ + public function setActionDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ActionDetails::class); + $this->action_details = $arr; + + return $this; + } + + /** + * @return string + */ + public function getDetails() + { + return $this->whichOneof("details"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob/JobState.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob/JobState.php new file mode 100644 index 000000000000..069f4f896d3e --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob/JobState.php @@ -0,0 +1,93 @@ +google.privacy.dlp.v2.DlpJob.JobState + */ +class JobState +{ + /** + * Unused. + * + * Generated from protobuf enum JOB_STATE_UNSPECIFIED = 0; + */ + const JOB_STATE_UNSPECIFIED = 0; + /** + * The job has not yet started. + * + * Generated from protobuf enum PENDING = 1; + */ + const PENDING = 1; + /** + * The job is currently running. Once a job has finished it will transition + * to FAILED or DONE. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The job is no longer running. + * + * Generated from protobuf enum DONE = 3; + */ + const DONE = 3; + /** + * The job was canceled before it could be completed. + * + * Generated from protobuf enum CANCELED = 4; + */ + const CANCELED = 4; + /** + * The job had an error and did not complete. + * + * Generated from protobuf enum FAILED = 5; + */ + const FAILED = 5; + /** + * The job is currently accepting findings via hybridInspect. + * A hybrid job in ACTIVE state may continue to have findings added to it + * through the calling of hybridInspect. After the job has finished no more + * calls to hybridInspect may be made. ACTIVE jobs can transition to DONE. + * + * Generated from protobuf enum ACTIVE = 6; + */ + const ACTIVE = 6; + + private static $valueToName = [ + self::JOB_STATE_UNSPECIFIED => 'JOB_STATE_UNSPECIFIED', + self::PENDING => 'PENDING', + self::RUNNING => 'RUNNING', + self::DONE => 'DONE', + self::CANCELED => 'CANCELED', + self::FAILED => 'FAILED', + self::ACTIVE => 'ACTIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJobType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJobType.php new file mode 100644 index 000000000000..c34fc91f3d4f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJobType.php @@ -0,0 +1,61 @@ +google.privacy.dlp.v2.DlpJobType + */ +class DlpJobType +{ + /** + * Defaults to INSPECT_JOB. + * + * Generated from protobuf enum DLP_JOB_TYPE_UNSPECIFIED = 0; + */ + const DLP_JOB_TYPE_UNSPECIFIED = 0; + /** + * The job inspected Google Cloud for sensitive data. + * + * Generated from protobuf enum INSPECT_JOB = 1; + */ + const INSPECT_JOB = 1; + /** + * The job executed a Risk Analysis computation. + * + * Generated from protobuf enum RISK_ANALYSIS_JOB = 2; + */ + const RISK_ANALYSIS_JOB = 2; + + private static $valueToName = [ + self::DLP_JOB_TYPE_UNSPECIFIED => 'DLP_JOB_TYPE_UNSPECIFIED', + self::INSPECT_JOB => 'INSPECT_JOB', + self::RISK_ANALYSIS_JOB => 'RISK_ANALYSIS_JOB', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DocumentLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DocumentLocation.php new file mode 100644 index 000000000000..1e77bafe9ea3 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DocumentLocation.php @@ -0,0 +1,71 @@ +google.privacy.dlp.v2.DocumentLocation + */ +class DocumentLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Offset of the line, from the beginning of the file, where the finding + * is located. + * + * Generated from protobuf field int64 file_offset = 1; + */ + protected $file_offset = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $file_offset + * Offset of the line, from the beginning of the file, where the finding + * is located. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Offset of the line, from the beginning of the file, where the finding + * is located. + * + * Generated from protobuf field int64 file_offset = 1; + * @return int|string + */ + public function getFileOffset() + { + return $this->file_offset; + } + + /** + * Offset of the line, from the beginning of the file, where the finding + * is located. + * + * Generated from protobuf field int64 file_offset = 1; + * @param int|string $var + * @return $this + */ + public function setFileOffset($var) + { + GPBUtil::checkInt64($var); + $this->file_offset = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain.php new file mode 100644 index 000000000000..0d79d99e3b33 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain.php @@ -0,0 +1,101 @@ +google.privacy.dlp.v2.Domain + */ +class Domain extends \Google\Protobuf\Internal\Message +{ + /** + * A domain category that this profile is related to. + * + * Generated from protobuf field .google.privacy.dlp.v2.Domain.Category category = 1; + */ + protected $category = 0; + /** + * The collection of signals that influenced selection of the category. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + */ + private $signals; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $category + * A domain category that this profile is related to. + * @type int[] $signals + * The collection of signals that influenced selection of the category. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A domain category that this profile is related to. + * + * Generated from protobuf field .google.privacy.dlp.v2.Domain.Category category = 1; + * @return int + */ + public function getCategory() + { + return $this->category; + } + + /** + * A domain category that this profile is related to. + * + * Generated from protobuf field .google.privacy.dlp.v2.Domain.Category category = 1; + * @param int $var + * @return $this + */ + public function setCategory($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Domain\Category::class); + $this->category = $var; + + return $this; + } + + /** + * The collection of signals that influenced selection of the category. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * @return RepeatedField + */ + public function getSignals() + { + return $this->signals; + } + + /** + * The collection of signals that influenced selection of the category. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; + * @param int[] $var + * @return $this + */ + public function setSignals($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\Domain\Signal::class); + $this->signals = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain/Category.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain/Category.php new file mode 100644 index 000000000000..f59c6bea1366 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain/Category.php @@ -0,0 +1,64 @@ +google.privacy.dlp.v2.Domain.Category + */ +class Category +{ + /** + * Category unspecified. + * + * Generated from protobuf enum CATEGORY_UNSPECIFIED = 0; + */ + const CATEGORY_UNSPECIFIED = 0; + /** + * Indicates that the data profile is related to artificial intelligence. + * When set, all findings stored to Security Command Center will set the + * corresponding AI domain field of `Finding` objects. + * + * Generated from protobuf enum AI = 1; + */ + const AI = 1; + /** + * Indicates that the data profile is related to code. + * + * Generated from protobuf enum CODE = 2; + */ + const CODE = 2; + + private static $valueToName = [ + self::CATEGORY_UNSPECIFIED => 'CATEGORY_UNSPECIFIED', + self::AI => 'AI', + self::CODE => 'CODE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain/Signal.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain/Signal.php new file mode 100644 index 000000000000..f4f8981eac3e --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain/Signal.php @@ -0,0 +1,104 @@ +google.privacy.dlp.v2.Domain.Signal + */ +class Signal +{ + /** + * Unused. + * + * Generated from protobuf enum SIGNAL_UNSPECIFIED = 0; + */ + const SIGNAL_UNSPECIFIED = 0; + /** + * One or more machine learning models are present. + * + * Generated from protobuf enum MODEL = 1; + */ + const MODEL = 1; + /** + * A table appears to contain text embeddings. + * + * Generated from protobuf enum TEXT_EMBEDDING = 2; + */ + const TEXT_EMBEDDING = 2; + /** + * A table appears to contain embeddings of any type (for example, text, + * image, multimodal). The `TEXT_EMBEDDING` signal might also be present if + * the table contains text embeddings. + * + * Generated from protobuf enum EMBEDDING = 7; + */ + const EMBEDDING = 7; + /** + * The [Cloud SQL Vertex + * AI](https://cloud.google.com/sql/docs/postgres/integrate-cloud-sql-with-vertex-ai) + * plugin is installed on the database. + * + * Generated from protobuf enum VERTEX_PLUGIN = 3; + */ + const VERTEX_PLUGIN = 3; + /** + * Support for [Cloud SQL vector + * embeddings](https://cloud.google.com/sql/docs/mysql/enable-vector-search) + * is enabled on the database. + * + * Generated from protobuf enum VECTOR_PLUGIN = 4; + */ + const VECTOR_PLUGIN = 4; + /** + * Source code is present. + * + * Generated from protobuf enum SOURCE_CODE = 5; + */ + const SOURCE_CODE = 5; + /** + * If the service determines the category type. For example, Vertex AI + * assets would always have a `Category` of `AI`. + * + * Generated from protobuf enum SERVICE = 6; + */ + const SERVICE = 6; + + private static $valueToName = [ + self::SIGNAL_UNSPECIFIED => 'SIGNAL_UNSPECIFIED', + self::MODEL => 'MODEL', + self::TEXT_EMBEDDING => 'TEXT_EMBEDDING', + self::EMBEDDING => 'EMBEDDING', + self::VERTEX_PLUGIN => 'VERTEX_PLUGIN', + self::VECTOR_PLUGIN => 'VECTOR_PLUGIN', + self::SOURCE_CODE => 'SOURCE_CODE', + self::SERVICE => 'SERVICE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Encloses.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Encloses.php new file mode 100644 index 000000000000..921de4403228 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Encloses.php @@ -0,0 +1,33 @@ +google.privacy.dlp.v2.Encloses + */ +class Encloses extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EncryptionStatus.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EncryptionStatus.php new file mode 100644 index 000000000000..a21080206e59 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EncryptionStatus.php @@ -0,0 +1,61 @@ +google.privacy.dlp.v2.EncryptionStatus + */ +class EncryptionStatus +{ + /** + * Unused. + * + * Generated from protobuf enum ENCRYPTION_STATUS_UNSPECIFIED = 0; + */ + const ENCRYPTION_STATUS_UNSPECIFIED = 0; + /** + * Google manages server-side encryption keys on your behalf. + * + * Generated from protobuf enum ENCRYPTION_GOOGLE_MANAGED = 1; + */ + const ENCRYPTION_GOOGLE_MANAGED = 1; + /** + * Customer provides the key. + * + * Generated from protobuf enum ENCRYPTION_CUSTOMER_MANAGED = 2; + */ + const ENCRYPTION_CUSTOMER_MANAGED = 2; + + private static $valueToName = [ + self::ENCRYPTION_STATUS_UNSPECIFIED => 'ENCRYPTION_STATUS_UNSPECIFIED', + self::ENCRYPTION_GOOGLE_MANAGED => 'ENCRYPTION_GOOGLE_MANAGED', + self::ENCRYPTION_CUSTOMER_MANAGED => 'ENCRYPTION_CUSTOMER_MANAGED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EntityId.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EntityId.php new file mode 100644 index 000000000000..6b426cfdb1c8 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EntityId.php @@ -0,0 +1,81 @@ +google.privacy.dlp.v2.EntityId + */ +class EntityId extends \Google\Protobuf\Internal\Message +{ + /** + * Composite key indicating which field contains the entity identifier. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + */ + protected $field = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FieldId $field + * Composite key indicating which field contains the entity identifier. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Composite key indicating which field contains the entity identifier. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getField() + { + return $this->field; + } + + public function hasField() + { + return isset($this->field); + } + + public function clearField() + { + unset($this->field); + } + + /** + * Composite key indicating which field contains the entity identifier. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->field = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error.php new file mode 100644 index 000000000000..1ff418cf4ff2 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error.php @@ -0,0 +1,150 @@ +google.privacy.dlp.v2.Error + */ +class Error extends \Google\Protobuf\Internal\Message +{ + /** + * Detailed error codes and messages. + * + * Generated from protobuf field .google.rpc.Status details = 1; + */ + protected $details = null; + /** + * The times the error occurred. List includes the oldest timestamp and the + * last 9 timestamps. + * + * Generated from protobuf field repeated .google.protobuf.Timestamp timestamps = 2; + */ + private $timestamps; + /** + * Additional information about the error. + * + * Generated from protobuf field .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; + */ + protected $extra_info = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Rpc\Status $details + * Detailed error codes and messages. + * @type \Google\Protobuf\Timestamp[] $timestamps + * The times the error occurred. List includes the oldest timestamp and the + * last 9 timestamps. + * @type int $extra_info + * Additional information about the error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Detailed error codes and messages. + * + * Generated from protobuf field .google.rpc.Status details = 1; + * @return \Google\Rpc\Status|null + */ + public function getDetails() + { + return $this->details; + } + + public function hasDetails() + { + return isset($this->details); + } + + public function clearDetails() + { + unset($this->details); + } + + /** + * Detailed error codes and messages. + * + * Generated from protobuf field .google.rpc.Status details = 1; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setDetails($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->details = $var; + + return $this; + } + + /** + * The times the error occurred. List includes the oldest timestamp and the + * last 9 timestamps. + * + * Generated from protobuf field repeated .google.protobuf.Timestamp timestamps = 2; + * @return RepeatedField<\Google\Protobuf\Timestamp> + */ + public function getTimestamps() + { + return $this->timestamps; + } + + /** + * The times the error occurred. List includes the oldest timestamp and the + * last 9 timestamps. + * + * Generated from protobuf field repeated .google.protobuf.Timestamp timestamps = 2; + * @param \Google\Protobuf\Timestamp[] $var + * @return $this + */ + public function setTimestamps($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Timestamp::class); + $this->timestamps = $arr; + + return $this; + } + + /** + * Additional information about the error. + * + * Generated from protobuf field .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; + * @return int + */ + public function getExtraInfo() + { + return $this->extra_info; + } + + /** + * Additional information about the error. + * + * Generated from protobuf field .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; + * @param int $var + * @return $this + */ + public function setExtraInfo($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Error\ErrorExtraInfo::class); + $this->extra_info = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error/ErrorExtraInfo.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error/ErrorExtraInfo.php new file mode 100644 index 000000000000..727edfbea8f6 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error/ErrorExtraInfo.php @@ -0,0 +1,61 @@ +google.privacy.dlp.v2.Error.ErrorExtraInfo + */ +class ErrorExtraInfo +{ + /** + * Unused. + * + * Generated from protobuf enum ERROR_INFO_UNSPECIFIED = 0; + */ + const ERROR_INFO_UNSPECIFIED = 0; + /** + * Image scan is not available in the region. + * + * Generated from protobuf enum IMAGE_SCAN_UNAVAILABLE_IN_REGION = 1; + */ + const IMAGE_SCAN_UNAVAILABLE_IN_REGION = 1; + /** + * File store cluster is not supported for profile generation. + * + * Generated from protobuf enum FILE_STORE_CLUSTER_UNSUPPORTED = 2; + */ + const FILE_STORE_CLUSTER_UNSUPPORTED = 2; + + private static $valueToName = [ + self::ERROR_INFO_UNSPECIFIED => 'ERROR_INFO_UNSPECIFIED', + self::IMAGE_SCAN_UNAVAILABLE_IN_REGION => 'IMAGE_SCAN_UNAVAILABLE_IN_REGION', + self::FILE_STORE_CLUSTER_UNSUPPORTED => 'FILE_STORE_CLUSTER_UNSUPPORTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByHotword.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByHotword.php new file mode 100644 index 000000000000..05e0f9fdce5d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByHotword.php @@ -0,0 +1,136 @@ +google.privacy.dlp.v2.ExcludeByHotword + */ +class ExcludeByHotword extends \Google\Protobuf\Internal\Message +{ + /** + * Regular expression pattern defining what qualifies as a hotword. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; + */ + protected $hotword_regex = null; + /** + * Range of characters within which the entire hotword must reside. + * The total length of the window cannot exceed 1000 characters. + * The windowBefore property in proximity should be set to 1 if the hotword + * needs to be included in a column header. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; + */ + protected $proximity = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\CustomInfoType\Regex $hotword_regex + * Regular expression pattern defining what qualifies as a hotword. + * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity $proximity + * Range of characters within which the entire hotword must reside. + * The total length of the window cannot exceed 1000 characters. + * The windowBefore property in proximity should be set to 1 if the hotword + * needs to be included in a column header. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Regular expression pattern defining what qualifies as a hotword. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\Regex|null + */ + public function getHotwordRegex() + { + return $this->hotword_regex; + } + + public function hasHotwordRegex() + { + return isset($this->hotword_regex); + } + + public function clearHotwordRegex() + { + unset($this->hotword_regex); + } + + /** + * Regular expression pattern defining what qualifies as a hotword. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\Regex $var + * @return $this + */ + public function setHotwordRegex($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Regex::class); + $this->hotword_regex = $var; + + return $this; + } + + /** + * Range of characters within which the entire hotword must reside. + * The total length of the window cannot exceed 1000 characters. + * The windowBefore property in proximity should be set to 1 if the hotword + * needs to be included in a column header. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity|null + */ + public function getProximity() + { + return $this->proximity; + } + + public function hasProximity() + { + return isset($this->proximity); + } + + public function clearProximity() + { + unset($this->proximity); + } + + /** + * Range of characters within which the entire hotword must reside. + * The total length of the window cannot exceed 1000 characters. + * The windowBefore property in proximity should be set to 1 if the hotword + * needs to be included in a column header. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity $var + * @return $this + */ + public function setProximity($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity::class); + $this->proximity = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByImageFindings.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByImageFindings.php new file mode 100644 index 000000000000..12562beaa474 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByImageFindings.php @@ -0,0 +1,158 @@ +google.privacy.dlp.v2.ExcludeByImageFindings + */ +class ExcludeByImageFindings extends \Google\Protobuf\Internal\Message +{ + /** + * A list of image-supported infoTypes—excluding [document + * infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to + * be used as context for the exclusion rule. A finding is excluded if + * its bounding box has the specified spatial relationship (defined by + * `image_containment_type`) with a finding of an infoType in this list. + * For example, if `InspectionRuleSet.info_types` includes + * `OBJECT_TYPE/PERSON` and this `exclusion_rule` specifies `info_types` as + * `OBJECT_TYPE/PERSON/PASSPORT` with `image_containment_type` set to + * `encloses`, then `OBJECT_TYPE/PERSON` findings will be excluded if they + * are fully contained within the bounding box of an + * `OBJECT_TYPE/PERSON/PASSPORT` finding. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + private $info_types; + /** + * Specifies the required spatial relationship between the bounding boxes + * of the target finding and the context infoType findings. + * + * Generated from protobuf field .google.privacy.dlp.v2.ImageContainmentType image_containment_type = 2; + */ + protected $image_containment_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoType[] $info_types + * A list of image-supported infoTypes—excluding [document + * infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to + * be used as context for the exclusion rule. A finding is excluded if + * its bounding box has the specified spatial relationship (defined by + * `image_containment_type`) with a finding of an infoType in this list. + * For example, if `InspectionRuleSet.info_types` includes + * `OBJECT_TYPE/PERSON` and this `exclusion_rule` specifies `info_types` as + * `OBJECT_TYPE/PERSON/PASSPORT` with `image_containment_type` set to + * `encloses`, then `OBJECT_TYPE/PERSON` findings will be excluded if they + * are fully contained within the bounding box of an + * `OBJECT_TYPE/PERSON/PASSPORT` finding. + * @type \Google\Cloud\Dlp\V2\ImageContainmentType $image_containment_type + * Specifies the required spatial relationship between the bounding boxes + * of the target finding and the context infoType findings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A list of image-supported infoTypes—excluding [document + * infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to + * be used as context for the exclusion rule. A finding is excluded if + * its bounding box has the specified spatial relationship (defined by + * `image_containment_type`) with a finding of an infoType in this list. + * For example, if `InspectionRuleSet.info_types` includes + * `OBJECT_TYPE/PERSON` and this `exclusion_rule` specifies `info_types` as + * `OBJECT_TYPE/PERSON/PASSPORT` with `image_containment_type` set to + * `encloses`, then `OBJECT_TYPE/PERSON` findings will be excluded if they + * are fully contained within the bounding box of an + * `OBJECT_TYPE/PERSON/PASSPORT` finding. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoType> + */ + public function getInfoTypes() + { + return $this->info_types; + } + + /** + * A list of image-supported infoTypes—excluding [document + * infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to + * be used as context for the exclusion rule. A finding is excluded if + * its bounding box has the specified spatial relationship (defined by + * `image_containment_type`) with a finding of an infoType in this list. + * For example, if `InspectionRuleSet.info_types` includes + * `OBJECT_TYPE/PERSON` and this `exclusion_rule` specifies `info_types` as + * `OBJECT_TYPE/PERSON/PASSPORT` with `image_containment_type` set to + * `encloses`, then `OBJECT_TYPE/PERSON` findings will be excluded if they + * are fully contained within the bounding box of an + * `OBJECT_TYPE/PERSON/PASSPORT` finding. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + * @param \Google\Cloud\Dlp\V2\InfoType[] $var + * @return $this + */ + public function setInfoTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_types = $arr; + + return $this; + } + + /** + * Specifies the required spatial relationship between the bounding boxes + * of the target finding and the context infoType findings. + * + * Generated from protobuf field .google.privacy.dlp.v2.ImageContainmentType image_containment_type = 2; + * @return \Google\Cloud\Dlp\V2\ImageContainmentType|null + */ + public function getImageContainmentType() + { + return $this->image_containment_type; + } + + public function hasImageContainmentType() + { + return isset($this->image_containment_type); + } + + public function clearImageContainmentType() + { + unset($this->image_containment_type); + } + + /** + * Specifies the required spatial relationship between the bounding boxes + * of the target finding and the context infoType findings. + * + * Generated from protobuf field .google.privacy.dlp.v2.ImageContainmentType image_containment_type = 2; + * @param \Google\Cloud\Dlp\V2\ImageContainmentType $var + * @return $this + */ + public function setImageContainmentType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageContainmentType::class); + $this->image_containment_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeInfoTypes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeInfoTypes.php new file mode 100644 index 000000000000..295ad4aae151 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeInfoTypes.php @@ -0,0 +1,95 @@ +google.privacy.dlp.v2.ExcludeInfoTypes + */ +class ExcludeInfoTypes extends \Google\Protobuf\Internal\Message +{ + /** + * InfoType list in ExclusionRule rule drops a finding when it overlaps or + * contained within with a finding of an infoType from this list. For + * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and + * `exclusion_rule` containing `exclude_info_types.info_types` with + * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap + * with EMAIL_ADDRESS finding. + * That leads to "555-222-2222\@example.org" to generate only a single + * finding, namely email address. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + private $info_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoType[] $info_types + * InfoType list in ExclusionRule rule drops a finding when it overlaps or + * contained within with a finding of an infoType from this list. For + * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and + * `exclusion_rule` containing `exclude_info_types.info_types` with + * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap + * with EMAIL_ADDRESS finding. + * That leads to "555-222-2222\@example.org" to generate only a single + * finding, namely email address. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * InfoType list in ExclusionRule rule drops a finding when it overlaps or + * contained within with a finding of an infoType from this list. For + * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and + * `exclusion_rule` containing `exclude_info_types.info_types` with + * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap + * with EMAIL_ADDRESS finding. + * That leads to "555-222-2222\@example.org" to generate only a single + * finding, namely email address. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoType> + */ + public function getInfoTypes() + { + return $this->info_types; + } + + /** + * InfoType list in ExclusionRule rule drops a finding when it overlaps or + * contained within with a finding of an infoType from this list. For + * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and + * `exclusion_rule` containing `exclude_info_types.info_types` with + * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap + * with EMAIL_ADDRESS finding. + * That leads to "555-222-2222\@example.org" to generate only a single + * finding, namely email address. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + * @param \Google\Cloud\Dlp\V2\InfoType[] $var + * @return $this + */ + public function setInfoTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_types = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExclusionRule.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExclusionRule.php new file mode 100644 index 000000000000..2a0ed6d113f6 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExclusionRule.php @@ -0,0 +1,248 @@ +google.privacy.dlp.v2.ExclusionRule + */ +class ExclusionRule extends \Google\Protobuf\Internal\Message +{ + /** + * How the rule is applied, see MatchingType documentation for details. + * + * Generated from protobuf field .google.privacy.dlp.v2.MatchingType matching_type = 4; + */ + protected $matching_type = 0; + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $dictionary + * Dictionary which defines the rule. + * @type \Google\Cloud\Dlp\V2\CustomInfoType\Regex $regex + * Regular expression which defines the rule. + * @type \Google\Cloud\Dlp\V2\ExcludeInfoTypes $exclude_info_types + * Set of infoTypes for which findings would affect this rule. + * @type \Google\Cloud\Dlp\V2\ExcludeByHotword $exclude_by_hotword + * Drop if the hotword rule is contained in the proximate context. For + * tabular data, the context includes the column name. + * @type \Google\Cloud\Dlp\V2\ExcludeByImageFindings $exclude_by_image_findings + * Exclude findings based on image containment rules. For example, exclude + * an image finding if it overlaps with another image finding. + * @type int $matching_type + * How the rule is applied, see MatchingType documentation for details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Dictionary which defines the rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary|null + */ + public function getDictionary() + { + return $this->readOneof(1); + } + + public function hasDictionary() + { + return $this->hasOneof(1); + } + + /** + * Dictionary which defines the rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $var + * @return $this + */ + public function setDictionary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Regular expression which defines the rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\Regex|null + */ + public function getRegex() + { + return $this->readOneof(2); + } + + public function hasRegex() + { + return $this->hasOneof(2); + } + + /** + * Regular expression which defines the rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\Regex $var + * @return $this + */ + public function setRegex($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Regex::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Set of infoTypes for which findings would affect this rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; + * @return \Google\Cloud\Dlp\V2\ExcludeInfoTypes|null + */ + public function getExcludeInfoTypes() + { + return $this->readOneof(3); + } + + public function hasExcludeInfoTypes() + { + return $this->hasOneof(3); + } + + /** + * Set of infoTypes for which findings would affect this rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; + * @param \Google\Cloud\Dlp\V2\ExcludeInfoTypes $var + * @return $this + */ + public function setExcludeInfoTypes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ExcludeInfoTypes::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Drop if the hotword rule is contained in the proximate context. For + * tabular data, the context includes the column name. + * + * Generated from protobuf field .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5; + * @return \Google\Cloud\Dlp\V2\ExcludeByHotword|null + */ + public function getExcludeByHotword() + { + return $this->readOneof(5); + } + + public function hasExcludeByHotword() + { + return $this->hasOneof(5); + } + + /** + * Drop if the hotword rule is contained in the proximate context. For + * tabular data, the context includes the column name. + * + * Generated from protobuf field .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5; + * @param \Google\Cloud\Dlp\V2\ExcludeByHotword $var + * @return $this + */ + public function setExcludeByHotword($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ExcludeByHotword::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Exclude findings based on image containment rules. For example, exclude + * an image finding if it overlaps with another image finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6; + * @return \Google\Cloud\Dlp\V2\ExcludeByImageFindings|null + */ + public function getExcludeByImageFindings() + { + return $this->readOneof(6); + } + + public function hasExcludeByImageFindings() + { + return $this->hasOneof(6); + } + + /** + * Exclude findings based on image containment rules. For example, exclude + * an image finding if it overlaps with another image finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6; + * @param \Google\Cloud\Dlp\V2\ExcludeByImageFindings $var + * @return $this + */ + public function setExcludeByImageFindings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ExcludeByImageFindings::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * How the rule is applied, see MatchingType documentation for details. + * + * Generated from protobuf field .google.privacy.dlp.v2.MatchingType matching_type = 4; + * @return int + */ + public function getMatchingType() + { + return $this->matching_type; + } + + /** + * How the rule is applied, see MatchingType documentation for details. + * + * Generated from protobuf field .google.privacy.dlp.v2.MatchingType matching_type = 4; + * @param int $var + * @return $this + */ + public function setMatchingType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\MatchingType::class); + $this->matching_type = $var; + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldId.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldId.php new file mode 100644 index 000000000000..bb4628f46efa --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldId.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.FieldId + */ +class FieldId extends \Google\Protobuf\Internal\Message +{ + /** + * Name describing the field. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Name describing the field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Name describing the field. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Name describing the field. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldTransformation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldTransformation.php new file mode 100644 index 000000000000..4a60eb679b4f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldTransformation.php @@ -0,0 +1,225 @@ +google.privacy.dlp.v2.FieldTransformation + */ +class FieldTransformation extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Input field(s) to apply the transformation to. + * When you have columns that reference their position within a list, + * omit the index from the FieldId. FieldId name matching ignores the index. + * For example, instead of "contact.nums[0].type", use "contact.nums.type". + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $fields; + /** + * Only apply the transformation if the condition evaluates to true for the + * given `RecordCondition`. The conditions are allowed to reference fields + * that are not used in the actual transformation. + * Example Use Cases: + * - Apply a different bucket transformation to an age column if the zip code + * column for the same record is within a specific range. + * - Redact a field if the date of birth field is greater than 85. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 3; + */ + protected $condition = null; + protected $transformation; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FieldId[] $fields + * Required. Input field(s) to apply the transformation to. + * When you have columns that reference their position within a list, + * omit the index from the FieldId. FieldId name matching ignores the index. + * For example, instead of "contact.nums[0].type", use "contact.nums.type". + * @type \Google\Cloud\Dlp\V2\RecordCondition $condition + * Only apply the transformation if the condition evaluates to true for the + * given `RecordCondition`. The conditions are allowed to reference fields + * that are not used in the actual transformation. + * Example Use Cases: + * - Apply a different bucket transformation to an age column if the zip code + * column for the same record is within a specific range. + * - Redact a field if the date of birth field is greater than 85. + * @type \Google\Cloud\Dlp\V2\PrimitiveTransformation $primitive_transformation + * Apply the transformation to the entire field. + * @type \Google\Cloud\Dlp\V2\InfoTypeTransformations $info_type_transformations + * Treat the contents of the field as free text, and selectively + * transform content that matches an `InfoType`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Input field(s) to apply the transformation to. + * When you have columns that reference their position within a list, + * omit the index from the FieldId. FieldId name matching ignores the index. + * For example, instead of "contact.nums[0].type", use "contact.nums.type". + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldId> + */ + public function getFields() + { + return $this->fields; + } + + /** + * Required. Input field(s) to apply the transformation to. + * When you have columns that reference their position within a list, + * omit the index from the FieldId. FieldId name matching ignores the index. + * For example, instead of "contact.nums[0].type", use "contact.nums.type". + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\FieldId[] $var + * @return $this + */ + public function setFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); + $this->fields = $arr; + + return $this; + } + + /** + * Only apply the transformation if the condition evaluates to true for the + * given `RecordCondition`. The conditions are allowed to reference fields + * that are not used in the actual transformation. + * Example Use Cases: + * - Apply a different bucket transformation to an age column if the zip code + * column for the same record is within a specific range. + * - Redact a field if the date of birth field is greater than 85. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 3; + * @return \Google\Cloud\Dlp\V2\RecordCondition|null + */ + public function getCondition() + { + return $this->condition; + } + + public function hasCondition() + { + return isset($this->condition); + } + + public function clearCondition() + { + unset($this->condition); + } + + /** + * Only apply the transformation if the condition evaluates to true for the + * given `RecordCondition`. The conditions are allowed to reference fields + * that are not used in the actual transformation. + * Example Use Cases: + * - Apply a different bucket transformation to an age column if the zip code + * column for the same record is within a specific range. + * - Redact a field if the date of birth field is greater than 85. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 3; + * @param \Google\Cloud\Dlp\V2\RecordCondition $var + * @return $this + */ + public function setCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordCondition::class); + $this->condition = $var; + + return $this; + } + + /** + * Apply the transformation to the entire field. + * + * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4; + * @return \Google\Cloud\Dlp\V2\PrimitiveTransformation|null + */ + public function getPrimitiveTransformation() + { + return $this->readOneof(4); + } + + public function hasPrimitiveTransformation() + { + return $this->hasOneof(4); + } + + /** + * Apply the transformation to the entire field. + * + * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4; + * @param \Google\Cloud\Dlp\V2\PrimitiveTransformation $var + * @return $this + */ + public function setPrimitiveTransformation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrimitiveTransformation::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Treat the contents of the field as free text, and selectively + * transform content that matches an `InfoType`. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5; + * @return \Google\Cloud\Dlp\V2\InfoTypeTransformations|null + */ + public function getInfoTypeTransformations() + { + return $this->readOneof(5); + } + + public function hasInfoTypeTransformations() + { + return $this->hasOneof(5); + } + + /** + * Treat the contents of the field as free text, and selectively + * transform content that matches an `InfoType`. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5; + * @param \Google\Cloud\Dlp\V2\InfoTypeTransformations $var + * @return $this + */ + public function setInfoTypeTransformations($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoTypeTransformations::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * @return string + */ + public function getTransformation() + { + return $this->whichOneof("transformation"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterSummary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterSummary.php new file mode 100644 index 000000000000..52b324fb9fdf --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterSummary.php @@ -0,0 +1,367 @@ +google.privacy.dlp.v2.FileClusterSummary + */ +class FileClusterSummary extends \Google\Protobuf\Internal\Message +{ + /** + * The file cluster type. + * + * Generated from protobuf field .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + */ + protected $file_cluster_type = null; + /** + * InfoTypes detected in this cluster. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + */ + private $file_store_info_type_summaries; + /** + * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW + * if nothing has been scanned. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + */ + protected $sensitivity_score = null; + /** + * The data risk level of this cluster. RISK_LOW if nothing has been + * scanned. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + */ + protected $data_risk_level = null; + /** + * A list of errors detected while scanning this cluster. The list is + * truncated to 10 per cluster. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6; + */ + private $errors; + /** + * A sample of file types scanned in this cluster. Empty if no files were + * scanned. File extensions can be derived from the file name or the file + * content. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + */ + private $file_extensions_scanned; + /** + * A sample of file types seen in this cluster. Empty if no files were seen. + * File extensions can be derived from the file name or the file content. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + */ + private $file_extensions_seen; + /** + * True if no files exist in this cluster. If the file store had more files + * than could be listed, this will be false even if no files for this cluster + * were seen and file_extensions_seen is empty. + * + * Generated from protobuf field bool no_files_exist = 9; + */ + protected $no_files_exist = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FileClusterType $file_cluster_type + * The file cluster type. + * @type \Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary[] $file_store_info_type_summaries + * InfoTypes detected in this cluster. + * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score + * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW + * if nothing has been scanned. + * @type \Google\Cloud\Dlp\V2\DataRiskLevel $data_risk_level + * The data risk level of this cluster. RISK_LOW if nothing has been + * scanned. + * @type \Google\Cloud\Dlp\V2\Error[] $errors + * A list of errors detected while scanning this cluster. The list is + * truncated to 10 per cluster. + * @type \Google\Cloud\Dlp\V2\FileExtensionInfo[] $file_extensions_scanned + * A sample of file types scanned in this cluster. Empty if no files were + * scanned. File extensions can be derived from the file name or the file + * content. + * @type \Google\Cloud\Dlp\V2\FileExtensionInfo[] $file_extensions_seen + * A sample of file types seen in this cluster. Empty if no files were seen. + * File extensions can be derived from the file name or the file content. + * @type bool $no_files_exist + * True if no files exist in this cluster. If the file store had more files + * than could be listed, this will be false even if no files for this cluster + * were seen and file_extensions_seen is empty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The file cluster type. + * + * Generated from protobuf field .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + * @return \Google\Cloud\Dlp\V2\FileClusterType|null + */ + public function getFileClusterType() + { + return $this->file_cluster_type; + } + + public function hasFileClusterType() + { + return isset($this->file_cluster_type); + } + + public function clearFileClusterType() + { + unset($this->file_cluster_type); + } + + /** + * The file cluster type. + * + * Generated from protobuf field .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; + * @param \Google\Cloud\Dlp\V2\FileClusterType $var + * @return $this + */ + public function setFileClusterType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FileClusterType::class); + $this->file_cluster_type = $var; + + return $this; + } + + /** + * InfoTypes detected in this cluster. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * @return RepeatedField<\Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary> + */ + public function getFileStoreInfoTypeSummaries() + { + return $this->file_store_info_type_summaries; + } + + /** + * InfoTypes detected in this cluster. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; + * @param \Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary[] $var + * @return $this + */ + public function setFileStoreInfoTypeSummaries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary::class); + $this->file_store_info_type_summaries = $arr; + + return $this; + } + + /** + * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW + * if nothing has been scanned. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + * @return \Google\Cloud\Dlp\V2\SensitivityScore|null + */ + public function getSensitivityScore() + { + return $this->sensitivity_score; + } + + public function hasSensitivityScore() + { + return isset($this->sensitivity_score); + } + + public function clearSensitivityScore() + { + unset($this->sensitivity_score); + } + + /** + * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW + * if nothing has been scanned. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + * @param \Google\Cloud\Dlp\V2\SensitivityScore $var + * @return $this + */ + public function setSensitivityScore($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); + $this->sensitivity_score = $var; + + return $this; + } + + /** + * The data risk level of this cluster. RISK_LOW if nothing has been + * scanned. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + * @return \Google\Cloud\Dlp\V2\DataRiskLevel|null + */ + public function getDataRiskLevel() + { + return $this->data_risk_level; + } + + public function hasDataRiskLevel() + { + return isset($this->data_risk_level); + } + + public function clearDataRiskLevel() + { + unset($this->data_risk_level); + } + + /** + * The data risk level of this cluster. RISK_LOW if nothing has been + * scanned. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; + * @param \Google\Cloud\Dlp\V2\DataRiskLevel $var + * @return $this + */ + public function setDataRiskLevel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataRiskLevel::class); + $this->data_risk_level = $var; + + return $this; + } + + /** + * A list of errors detected while scanning this cluster. The list is + * truncated to 10 per cluster. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Error> + */ + public function getErrors() + { + return $this->errors; + } + + /** + * A list of errors detected while scanning this cluster. The list is + * truncated to 10 per cluster. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6; + * @param \Google\Cloud\Dlp\V2\Error[] $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); + $this->errors = $arr; + + return $this; + } + + /** + * A sample of file types scanned in this cluster. Empty if no files were + * scanned. File extensions can be derived from the file name or the file + * content. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + * @return RepeatedField<\Google\Cloud\Dlp\V2\FileExtensionInfo> + */ + public function getFileExtensionsScanned() + { + return $this->file_extensions_scanned; + } + + /** + * A sample of file types scanned in this cluster. Empty if no files were + * scanned. File extensions can be derived from the file name or the file + * content. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; + * @param \Google\Cloud\Dlp\V2\FileExtensionInfo[] $var + * @return $this + */ + public function setFileExtensionsScanned($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileExtensionInfo::class); + $this->file_extensions_scanned = $arr; + + return $this; + } + + /** + * A sample of file types seen in this cluster. Empty if no files were seen. + * File extensions can be derived from the file name or the file content. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + * @return RepeatedField<\Google\Cloud\Dlp\V2\FileExtensionInfo> + */ + public function getFileExtensionsSeen() + { + return $this->file_extensions_seen; + } + + /** + * A sample of file types seen in this cluster. Empty if no files were seen. + * File extensions can be derived from the file name or the file content. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; + * @param \Google\Cloud\Dlp\V2\FileExtensionInfo[] $var + * @return $this + */ + public function setFileExtensionsSeen($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileExtensionInfo::class); + $this->file_extensions_seen = $arr; + + return $this; + } + + /** + * True if no files exist in this cluster. If the file store had more files + * than could be listed, this will be false even if no files for this cluster + * were seen and file_extensions_seen is empty. + * + * Generated from protobuf field bool no_files_exist = 9; + * @return bool + */ + public function getNoFilesExist() + { + return $this->no_files_exist; + } + + /** + * True if no files exist in this cluster. If the file store had more files + * than could be listed, this will be false even if no files for this cluster + * were seen and file_extensions_seen is empty. + * + * Generated from protobuf field bool no_files_exist = 9; + * @param bool $var + * @return $this + */ + public function setNoFilesExist($var) + { + GPBUtil::checkBool($var); + $this->no_files_exist = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType.php new file mode 100644 index 000000000000..efa4e6d367b2 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType.php @@ -0,0 +1,75 @@ +google.privacy.dlp.v2.FileClusterType + */ +class FileClusterType extends \Google\Protobuf\Internal\Message +{ + protected $file_cluster_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $cluster + * Cluster type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Cluster type. + * + * Generated from protobuf field .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; + * @return int + */ + public function getCluster() + { + return $this->readOneof(1); + } + + public function hasCluster() + { + return $this->hasOneof(1); + } + + /** + * Cluster type. + * + * Generated from protobuf field .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; + * @param int $var + * @return $this + */ + public function setCluster($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\FileClusterType\Cluster::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getFileClusterType() + { + return $this->whichOneof("file_cluster_type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType/Cluster.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType/Cluster.php new file mode 100644 index 000000000000..5dc8f9d8e7ea --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType/Cluster.php @@ -0,0 +1,118 @@ +google.privacy.dlp.v2.FileClusterType.Cluster + */ +class Cluster +{ + /** + * Unused. + * + * Generated from protobuf enum CLUSTER_UNSPECIFIED = 0; + */ + const CLUSTER_UNSPECIFIED = 0; + /** + * Unsupported files. + * + * Generated from protobuf enum CLUSTER_UNKNOWN = 1; + */ + const CLUSTER_UNKNOWN = 1; + /** + * Plain text. + * + * Generated from protobuf enum CLUSTER_TEXT = 2; + */ + const CLUSTER_TEXT = 2; + /** + * Structured data like CSV, TSV etc. + * + * Generated from protobuf enum CLUSTER_STRUCTURED_DATA = 3; + */ + const CLUSTER_STRUCTURED_DATA = 3; + /** + * Source code. + * + * Generated from protobuf enum CLUSTER_SOURCE_CODE = 4; + */ + const CLUSTER_SOURCE_CODE = 4; + /** + * Rich document like docx, xlsx etc. + * + * Generated from protobuf enum CLUSTER_RICH_DOCUMENT = 5; + */ + const CLUSTER_RICH_DOCUMENT = 5; + /** + * Images like jpeg, bmp. + * + * Generated from protobuf enum CLUSTER_IMAGE = 6; + */ + const CLUSTER_IMAGE = 6; + /** + * Archives and containers like .zip, .tar etc. + * + * Generated from protobuf enum CLUSTER_ARCHIVE = 7; + */ + const CLUSTER_ARCHIVE = 7; + /** + * Multimedia like .mp4, .avi etc. + * + * Generated from protobuf enum CLUSTER_MULTIMEDIA = 8; + */ + const CLUSTER_MULTIMEDIA = 8; + /** + * Executable files like .exe, .class, .apk etc. + * + * Generated from protobuf enum CLUSTER_EXECUTABLE = 9; + */ + const CLUSTER_EXECUTABLE = 9; + /** + * AI models like .tflite etc. + * + * Generated from protobuf enum CLUSTER_AI_MODEL = 10; + */ + const CLUSTER_AI_MODEL = 10; + + private static $valueToName = [ + self::CLUSTER_UNSPECIFIED => 'CLUSTER_UNSPECIFIED', + self::CLUSTER_UNKNOWN => 'CLUSTER_UNKNOWN', + self::CLUSTER_TEXT => 'CLUSTER_TEXT', + self::CLUSTER_STRUCTURED_DATA => 'CLUSTER_STRUCTURED_DATA', + self::CLUSTER_SOURCE_CODE => 'CLUSTER_SOURCE_CODE', + self::CLUSTER_RICH_DOCUMENT => 'CLUSTER_RICH_DOCUMENT', + self::CLUSTER_IMAGE => 'CLUSTER_IMAGE', + self::CLUSTER_ARCHIVE => 'CLUSTER_ARCHIVE', + self::CLUSTER_MULTIMEDIA => 'CLUSTER_MULTIMEDIA', + self::CLUSTER_EXECUTABLE => 'CLUSTER_EXECUTABLE', + self::CLUSTER_AI_MODEL => 'CLUSTER_AI_MODEL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileExtensionInfo.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileExtensionInfo.php new file mode 100644 index 000000000000..54ffb06382e9 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileExtensionInfo.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.FileExtensionInfo + */ +class FileExtensionInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The file extension if set. (aka .pdf, .jpg, .txt) + * + * Generated from protobuf field string file_extension = 1; + */ + protected $file_extension = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $file_extension + * The file extension if set. (aka .pdf, .jpg, .txt) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The file extension if set. (aka .pdf, .jpg, .txt) + * + * Generated from protobuf field string file_extension = 1; + * @return string + */ + public function getFileExtension() + { + return $this->file_extension; + } + + /** + * The file extension if set. (aka .pdf, .jpg, .txt) + * + * Generated from protobuf field string file_extension = 1; + * @param string $var + * @return $this + */ + public function setFileExtension($var) + { + GPBUtil::checkString($var, True); + $this->file_extension = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreCollection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreCollection.php new file mode 100644 index 000000000000..85ac83d96d2f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreCollection.php @@ -0,0 +1,150 @@ +google.privacy.dlp.v2.FileStoreCollection + */ +class FileStoreCollection extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. To be included in the collection, a resource must meet all of the + * following requirements: + * - If tag filters are provided, match all provided tag filters. + * - If one or more patterns are specified, match at least one pattern. + * For a resource to match the tag filters, the resource must have all of the + * provided tags attached. Tags refer to Resource Manager tags bound to the + * resource or its ancestors. For more information, see [Manage + * schedules](https://cloud.google.com/sensitive-data-protection/docs/profile-project-cloud-storage#manage-schedules). + * + * Generated from protobuf field .google.privacy.dlp.v2.TagFilters include_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $include_tags = null; + protected $pattern; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FileStoreRegexes $include_regexes + * Optional. A collection of regular expressions to match a file store + * against. + * @type \Google\Cloud\Dlp\V2\TagFilters $include_tags + * Optional. To be included in the collection, a resource must meet all of the + * following requirements: + * - If tag filters are provided, match all provided tag filters. + * - If one or more patterns are specified, match at least one pattern. + * For a resource to match the tag filters, the resource must have all of the + * provided tags attached. Tags refer to Resource Manager tags bound to the + * resource or its ancestors. For more information, see [Manage + * schedules](https://cloud.google.com/sensitive-data-protection/docs/profile-project-cloud-storage#manage-schedules). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A collection of regular expressions to match a file store + * against. + * + * Generated from protobuf field .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dlp\V2\FileStoreRegexes|null + */ + public function getIncludeRegexes() + { + return $this->readOneof(1); + } + + public function hasIncludeRegexes() + { + return $this->hasOneof(1); + } + + /** + * Optional. A collection of regular expressions to match a file store + * against. + * + * Generated from protobuf field .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dlp\V2\FileStoreRegexes $var + * @return $this + */ + public function setIncludeRegexes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FileStoreRegexes::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Optional. To be included in the collection, a resource must meet all of the + * following requirements: + * - If tag filters are provided, match all provided tag filters. + * - If one or more patterns are specified, match at least one pattern. + * For a resource to match the tag filters, the resource must have all of the + * provided tags attached. Tags refer to Resource Manager tags bound to the + * resource or its ancestors. For more information, see [Manage + * schedules](https://cloud.google.com/sensitive-data-protection/docs/profile-project-cloud-storage#manage-schedules). + * + * Generated from protobuf field .google.privacy.dlp.v2.TagFilters include_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dlp\V2\TagFilters|null + */ + public function getIncludeTags() + { + return $this->include_tags; + } + + public function hasIncludeTags() + { + return isset($this->include_tags); + } + + public function clearIncludeTags() + { + unset($this->include_tags); + } + + /** + * Optional. To be included in the collection, a resource must meet all of the + * following requirements: + * - If tag filters are provided, match all provided tag filters. + * - If one or more patterns are specified, match at least one pattern. + * For a resource to match the tag filters, the resource must have all of the + * provided tags attached. Tags refer to Resource Manager tags bound to the + * resource or its ancestors. For more information, see [Manage + * schedules](https://cloud.google.com/sensitive-data-protection/docs/profile-project-cloud-storage#manage-schedules). + * + * Generated from protobuf field .google.privacy.dlp.v2.TagFilters include_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dlp\V2\TagFilters $var + * @return $this + */ + public function setIncludeTags($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TagFilters::class); + $this->include_tags = $var; + + return $this; + } + + /** + * @return string + */ + public function getPattern() + { + return $this->whichOneof("pattern"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile.php new file mode 100644 index 000000000000..a6d6fde184db --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile.php @@ -0,0 +1,1143 @@ +google.privacy.dlp.v2.FileStoreDataProfile + */ +class FileStoreDataProfile extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the profile. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The resource type that was profiled. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + */ + protected $data_source_type = null; + /** + * The resource name of the project data profile for this file store. + * + * Generated from protobuf field string project_data_profile = 3; + */ + protected $project_data_profile = ''; + /** + * The Google Cloud project ID that owns the resource. + * For Amazon S3 buckets, this is the AWS Account Id. + * + * Generated from protobuf field string project_id = 4; + */ + protected $project_id = ''; + /** + * The location of the file store. + * * Cloud Storage: + * https://cloud.google.com/storage/docs/locations#available-locations + * * Amazon S3: + * https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints + * + * Generated from protobuf field string file_store_location = 5; + */ + protected $file_store_location = ''; + /** + * For resources that have multiple storage locations, these are those + * regions. For Cloud Storage this is the list of regions chosen for + * dual-region storage. `file_store_location` will normally be the + * corresponding multi-region for the list of individual locations. The first + * region is always picked as the processing and storage location for the data + * profile. + * + * Generated from protobuf field repeated string data_storage_locations = 19; + */ + private $data_storage_locations; + /** + * The location type of the file store (region, dual-region, multi-region, + * etc). If dual-region, expect data_storage_locations to be populated. + * + * Generated from protobuf field string location_type = 20; + */ + protected $location_type = ''; + /** + * The file store path. + * * Cloud Storage: `gs://{bucket}` + * * Amazon S3: `s3://{bucket}` + * * Vertex AI dataset: + * `projects/{project_number}/locations/{location}/datasets/{dataset_id}` + * + * Generated from protobuf field string file_store_path = 6; + */ + protected $file_store_path = ''; + /** + * The resource name of the resource profiled. + * https://cloud.google.com/apis/design/resource_names#full_resource_name + * Example format of an S3 bucket full resource name: + * `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}` + * + * Generated from protobuf field string full_resource = 24; + */ + protected $full_resource = ''; + /** + * The snapshot of the configurations used to generate the profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + */ + protected $config_snapshot = null; + /** + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + */ + protected $profile_status = null; + /** + * State of a profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; + */ + protected $state = 0; + /** + * The last time the profile was generated. + * + * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 10; + */ + protected $profile_last_generated = null; + /** + * How broadly a resource has been shared. + * + * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; + */ + protected $resource_visibility = 0; + /** + * The sensitivity score of this resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + */ + protected $sensitivity_score = null; + /** + * The data risk level of this resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + */ + protected $data_risk_level = null; + /** + * The time the file store was first created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 14; + */ + protected $create_time = null; + /** + * The time the file store was last modified. + * + * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 15; + */ + protected $last_modified_time = null; + /** + * FileClusterSummary per each cluster. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + */ + private $file_cluster_summaries; + /** + * Attributes of the resource being profiled. + * Currently used attributes: + * * customer_managed_encryption: boolean + * - true: the resource is encrypted with a customer-managed key. + * - false: the resource is encrypted with a provider-managed key. + * + * Generated from protobuf field map resource_attributes = 17; + */ + private $resource_attributes; + /** + * The labels applied to the resource at the time the profile was generated. + * + * Generated from protobuf field map resource_labels = 18; + */ + private $resource_labels; + /** + * InfoTypes detected in this file store. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + */ + private $file_store_info_type_summaries; + /** + * The BigQuery table to which the sample findings are written. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 22; + */ + protected $sample_findings_table = null; + /** + * The file store does not have any files. If the profiling operation failed, + * this is false. + * + * Generated from protobuf field bool file_store_is_empty = 23; + */ + protected $file_store_is_empty = false; + /** + * The tags attached to the resource, including any tags attached during + * profiling. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Tag tags = 25; + */ + private $tags; + /** + * Resources related to this profile. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.RelatedResource related_resources = 26; + */ + private $related_resources; + /** + * Domains associated with the profile. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain domains = 27; + */ + private $domains; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the profile. + * @type \Google\Cloud\Dlp\V2\DataSourceType $data_source_type + * The resource type that was profiled. + * @type string $project_data_profile + * The resource name of the project data profile for this file store. + * @type string $project_id + * The Google Cloud project ID that owns the resource. + * For Amazon S3 buckets, this is the AWS Account Id. + * @type string $file_store_location + * The location of the file store. + * * Cloud Storage: + * https://cloud.google.com/storage/docs/locations#available-locations + * * Amazon S3: + * https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints + * @type string[] $data_storage_locations + * For resources that have multiple storage locations, these are those + * regions. For Cloud Storage this is the list of regions chosen for + * dual-region storage. `file_store_location` will normally be the + * corresponding multi-region for the list of individual locations. The first + * region is always picked as the processing and storage location for the data + * profile. + * @type string $location_type + * The location type of the file store (region, dual-region, multi-region, + * etc). If dual-region, expect data_storage_locations to be populated. + * @type string $file_store_path + * The file store path. + * * Cloud Storage: `gs://{bucket}` + * * Amazon S3: `s3://{bucket}` + * * Vertex AI dataset: + * `projects/{project_number}/locations/{location}/datasets/{dataset_id}` + * @type string $full_resource + * The resource name of the resource profiled. + * https://cloud.google.com/apis/design/resource_names#full_resource_name + * Example format of an S3 bucket full resource name: + * `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}` + * @type \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot $config_snapshot + * The snapshot of the configurations used to generate the profile. + * @type \Google\Cloud\Dlp\V2\ProfileStatus $profile_status + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + * @type int $state + * State of a profile. + * @type \Google\Protobuf\Timestamp $profile_last_generated + * The last time the profile was generated. + * @type int $resource_visibility + * How broadly a resource has been shared. + * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score + * The sensitivity score of this resource. + * @type \Google\Cloud\Dlp\V2\DataRiskLevel $data_risk_level + * The data risk level of this resource. + * @type \Google\Protobuf\Timestamp $create_time + * The time the file store was first created. + * @type \Google\Protobuf\Timestamp $last_modified_time + * The time the file store was last modified. + * @type \Google\Cloud\Dlp\V2\FileClusterSummary[] $file_cluster_summaries + * FileClusterSummary per each cluster. + * @type array|\Google\Protobuf\Internal\MapField $resource_attributes + * Attributes of the resource being profiled. + * Currently used attributes: + * * customer_managed_encryption: boolean + * - true: the resource is encrypted with a customer-managed key. + * - false: the resource is encrypted with a provider-managed key. + * @type array|\Google\Protobuf\Internal\MapField $resource_labels + * The labels applied to the resource at the time the profile was generated. + * @type \Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary[] $file_store_info_type_summaries + * InfoTypes detected in this file store. + * @type \Google\Cloud\Dlp\V2\BigQueryTable $sample_findings_table + * The BigQuery table to which the sample findings are written. + * @type bool $file_store_is_empty + * The file store does not have any files. If the profiling operation failed, + * this is false. + * @type \Google\Cloud\Dlp\V2\Tag[] $tags + * The tags attached to the resource, including any tags attached during + * profiling. + * @type \Google\Cloud\Dlp\V2\RelatedResource[] $related_resources + * Resources related to this profile. + * @type \Google\Cloud\Dlp\V2\Domain[] $domains + * Domains associated with the profile. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The name of the profile. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the profile. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The resource type that was profiled. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + * @return \Google\Cloud\Dlp\V2\DataSourceType|null + */ + public function getDataSourceType() + { + return $this->data_source_type; + } + + public function hasDataSourceType() + { + return isset($this->data_source_type); + } + + public function clearDataSourceType() + { + unset($this->data_source_type); + } + + /** + * The resource type that was profiled. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 2; + * @param \Google\Cloud\Dlp\V2\DataSourceType $var + * @return $this + */ + public function setDataSourceType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataSourceType::class); + $this->data_source_type = $var; + + return $this; + } + + /** + * The resource name of the project data profile for this file store. + * + * Generated from protobuf field string project_data_profile = 3; + * @return string + */ + public function getProjectDataProfile() + { + return $this->project_data_profile; + } + + /** + * The resource name of the project data profile for this file store. + * + * Generated from protobuf field string project_data_profile = 3; + * @param string $var + * @return $this + */ + public function setProjectDataProfile($var) + { + GPBUtil::checkString($var, True); + $this->project_data_profile = $var; + + return $this; + } + + /** + * The Google Cloud project ID that owns the resource. + * For Amazon S3 buckets, this is the AWS Account Id. + * + * Generated from protobuf field string project_id = 4; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * The Google Cloud project ID that owns the resource. + * For Amazon S3 buckets, this is the AWS Account Id. + * + * Generated from protobuf field string project_id = 4; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * The location of the file store. + * * Cloud Storage: + * https://cloud.google.com/storage/docs/locations#available-locations + * * Amazon S3: + * https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints + * + * Generated from protobuf field string file_store_location = 5; + * @return string + */ + public function getFileStoreLocation() + { + return $this->file_store_location; + } + + /** + * The location of the file store. + * * Cloud Storage: + * https://cloud.google.com/storage/docs/locations#available-locations + * * Amazon S3: + * https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints + * + * Generated from protobuf field string file_store_location = 5; + * @param string $var + * @return $this + */ + public function setFileStoreLocation($var) + { + GPBUtil::checkString($var, True); + $this->file_store_location = $var; + + return $this; + } + + /** + * For resources that have multiple storage locations, these are those + * regions. For Cloud Storage this is the list of regions chosen for + * dual-region storage. `file_store_location` will normally be the + * corresponding multi-region for the list of individual locations. The first + * region is always picked as the processing and storage location for the data + * profile. + * + * Generated from protobuf field repeated string data_storage_locations = 19; + * @return RepeatedField + */ + public function getDataStorageLocations() + { + return $this->data_storage_locations; + } + + /** + * For resources that have multiple storage locations, these are those + * regions. For Cloud Storage this is the list of regions chosen for + * dual-region storage. `file_store_location` will normally be the + * corresponding multi-region for the list of individual locations. The first + * region is always picked as the processing and storage location for the data + * profile. + * + * Generated from protobuf field repeated string data_storage_locations = 19; + * @param string[] $var + * @return $this + */ + public function setDataStorageLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->data_storage_locations = $arr; + + return $this; + } + + /** + * The location type of the file store (region, dual-region, multi-region, + * etc). If dual-region, expect data_storage_locations to be populated. + * + * Generated from protobuf field string location_type = 20; + * @return string + */ + public function getLocationType() + { + return $this->location_type; + } + + /** + * The location type of the file store (region, dual-region, multi-region, + * etc). If dual-region, expect data_storage_locations to be populated. + * + * Generated from protobuf field string location_type = 20; + * @param string $var + * @return $this + */ + public function setLocationType($var) + { + GPBUtil::checkString($var, True); + $this->location_type = $var; + + return $this; + } + + /** + * The file store path. + * * Cloud Storage: `gs://{bucket}` + * * Amazon S3: `s3://{bucket}` + * * Vertex AI dataset: + * `projects/{project_number}/locations/{location}/datasets/{dataset_id}` + * + * Generated from protobuf field string file_store_path = 6; + * @return string + */ + public function getFileStorePath() + { + return $this->file_store_path; + } + + /** + * The file store path. + * * Cloud Storage: `gs://{bucket}` + * * Amazon S3: `s3://{bucket}` + * * Vertex AI dataset: + * `projects/{project_number}/locations/{location}/datasets/{dataset_id}` + * + * Generated from protobuf field string file_store_path = 6; + * @param string $var + * @return $this + */ + public function setFileStorePath($var) + { + GPBUtil::checkString($var, True); + $this->file_store_path = $var; + + return $this; + } + + /** + * The resource name of the resource profiled. + * https://cloud.google.com/apis/design/resource_names#full_resource_name + * Example format of an S3 bucket full resource name: + * `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}` + * + * Generated from protobuf field string full_resource = 24; + * @return string + */ + public function getFullResource() + { + return $this->full_resource; + } + + /** + * The resource name of the resource profiled. + * https://cloud.google.com/apis/design/resource_names#full_resource_name + * Example format of an S3 bucket full resource name: + * `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}` + * + * Generated from protobuf field string full_resource = 24; + * @param string $var + * @return $this + */ + public function setFullResource($var) + { + GPBUtil::checkString($var, True); + $this->full_resource = $var; + + return $this; + } + + /** + * The snapshot of the configurations used to generate the profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + * @return \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot|null + */ + public function getConfigSnapshot() + { + return $this->config_snapshot; + } + + public function hasConfigSnapshot() + { + return isset($this->config_snapshot); + } + + public function clearConfigSnapshot() + { + unset($this->config_snapshot); + } + + /** + * The snapshot of the configurations used to generate the profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + * @param \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot $var + * @return $this + */ + public function setConfigSnapshot($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot::class); + $this->config_snapshot = $var; + + return $this; + } + + /** + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + * @return \Google\Cloud\Dlp\V2\ProfileStatus|null + */ + public function getProfileStatus() + { + return $this->profile_status; + } + + public function hasProfileStatus() + { + return isset($this->profile_status); + } + + public function clearProfileStatus() + { + unset($this->profile_status); + } + + /** + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 8; + * @param \Google\Cloud\Dlp\V2\ProfileStatus $var + * @return $this + */ + public function setProfileStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProfileStatus::class); + $this->profile_status = $var; + + return $this; + } + + /** + * State of a profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * State of a profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\FileStoreDataProfile\State::class); + $this->state = $var; + + return $this; + } + + /** + * The last time the profile was generated. + * + * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 10; + * @return \Google\Protobuf\Timestamp|null + */ + public function getProfileLastGenerated() + { + return $this->profile_last_generated; + } + + public function hasProfileLastGenerated() + { + return isset($this->profile_last_generated); + } + + public function clearProfileLastGenerated() + { + unset($this->profile_last_generated); + } + + /** + * The last time the profile was generated. + * + * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 10; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setProfileLastGenerated($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->profile_last_generated = $var; + + return $this; + } + + /** + * How broadly a resource has been shared. + * + * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; + * @return int + */ + public function getResourceVisibility() + { + return $this->resource_visibility; + } + + /** + * How broadly a resource has been shared. + * + * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; + * @param int $var + * @return $this + */ + public function setResourceVisibility($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ResourceVisibility::class); + $this->resource_visibility = $var; + + return $this; + } + + /** + * The sensitivity score of this resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + * @return \Google\Cloud\Dlp\V2\SensitivityScore|null + */ + public function getSensitivityScore() + { + return $this->sensitivity_score; + } + + public function hasSensitivityScore() + { + return isset($this->sensitivity_score); + } + + public function clearSensitivityScore() + { + unset($this->sensitivity_score); + } + + /** + * The sensitivity score of this resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; + * @param \Google\Cloud\Dlp\V2\SensitivityScore $var + * @return $this + */ + public function setSensitivityScore($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); + $this->sensitivity_score = $var; + + return $this; + } + + /** + * The data risk level of this resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + * @return \Google\Cloud\Dlp\V2\DataRiskLevel|null + */ + public function getDataRiskLevel() + { + return $this->data_risk_level; + } + + public function hasDataRiskLevel() + { + return isset($this->data_risk_level); + } + + public function clearDataRiskLevel() + { + unset($this->data_risk_level); + } + + /** + * The data risk level of this resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; + * @param \Google\Cloud\Dlp\V2\DataRiskLevel $var + * @return $this + */ + public function setDataRiskLevel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataRiskLevel::class); + $this->data_risk_level = $var; + + return $this; + } + + /** + * The time the file store was first created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 14; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * The time the file store was first created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 14; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * The time the file store was last modified. + * + * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 15; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastModifiedTime() + { + return $this->last_modified_time; + } + + public function hasLastModifiedTime() + { + return isset($this->last_modified_time); + } + + public function clearLastModifiedTime() + { + unset($this->last_modified_time); + } + + /** + * The time the file store was last modified. + * + * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 15; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastModifiedTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_modified_time = $var; + + return $this; + } + + /** + * FileClusterSummary per each cluster. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + * @return RepeatedField<\Google\Cloud\Dlp\V2\FileClusterSummary> + */ + public function getFileClusterSummaries() + { + return $this->file_cluster_summaries; + } + + /** + * FileClusterSummary per each cluster. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; + * @param \Google\Cloud\Dlp\V2\FileClusterSummary[] $var + * @return $this + */ + public function setFileClusterSummaries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileClusterSummary::class); + $this->file_cluster_summaries = $arr; + + return $this; + } + + /** + * Attributes of the resource being profiled. + * Currently used attributes: + * * customer_managed_encryption: boolean + * - true: the resource is encrypted with a customer-managed key. + * - false: the resource is encrypted with a provider-managed key. + * + * Generated from protobuf field map resource_attributes = 17; + * @return \Google\Protobuf\Internal\MapField + */ + public function getResourceAttributes() + { + return $this->resource_attributes; + } + + /** + * Attributes of the resource being profiled. + * Currently used attributes: + * * customer_managed_encryption: boolean + * - true: the resource is encrypted with a customer-managed key. + * - false: the resource is encrypted with a provider-managed key. + * + * Generated from protobuf field map resource_attributes = 17; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setResourceAttributes($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); + $this->resource_attributes = $arr; + + return $this; + } + + /** + * The labels applied to the resource at the time the profile was generated. + * + * Generated from protobuf field map resource_labels = 18; + * @return \Google\Protobuf\Internal\MapField + */ + public function getResourceLabels() + { + return $this->resource_labels; + } + + /** + * The labels applied to the resource at the time the profile was generated. + * + * Generated from protobuf field map resource_labels = 18; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setResourceLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->resource_labels = $arr; + + return $this; + } + + /** + * InfoTypes detected in this file store. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * @return RepeatedField<\Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary> + */ + public function getFileStoreInfoTypeSummaries() + { + return $this->file_store_info_type_summaries; + } + + /** + * InfoTypes detected in this file store. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; + * @param \Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary[] $var + * @return $this + */ + public function setFileStoreInfoTypeSummaries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary::class); + $this->file_store_info_type_summaries = $arr; + + return $this; + } + + /** + * The BigQuery table to which the sample findings are written. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 22; + * @return \Google\Cloud\Dlp\V2\BigQueryTable|null + */ + public function getSampleFindingsTable() + { + return $this->sample_findings_table; + } + + public function hasSampleFindingsTable() + { + return isset($this->sample_findings_table); + } + + public function clearSampleFindingsTable() + { + unset($this->sample_findings_table); + } + + /** + * The BigQuery table to which the sample findings are written. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 22; + * @param \Google\Cloud\Dlp\V2\BigQueryTable $var + * @return $this + */ + public function setSampleFindingsTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); + $this->sample_findings_table = $var; + + return $this; + } + + /** + * The file store does not have any files. If the profiling operation failed, + * this is false. + * + * Generated from protobuf field bool file_store_is_empty = 23; + * @return bool + */ + public function getFileStoreIsEmpty() + { + return $this->file_store_is_empty; + } + + /** + * The file store does not have any files. If the profiling operation failed, + * this is false. + * + * Generated from protobuf field bool file_store_is_empty = 23; + * @param bool $var + * @return $this + */ + public function setFileStoreIsEmpty($var) + { + GPBUtil::checkBool($var); + $this->file_store_is_empty = $var; + + return $this; + } + + /** + * The tags attached to the resource, including any tags attached during + * profiling. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Tag tags = 25; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Tag> + */ + public function getTags() + { + return $this->tags; + } + + /** + * The tags attached to the resource, including any tags attached during + * profiling. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Tag tags = 25; + * @param \Google\Cloud\Dlp\V2\Tag[] $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Tag::class); + $this->tags = $arr; + + return $this; + } + + /** + * Resources related to this profile. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.RelatedResource related_resources = 26; + * @return RepeatedField<\Google\Cloud\Dlp\V2\RelatedResource> + */ + public function getRelatedResources() + { + return $this->related_resources; + } + + /** + * Resources related to this profile. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.RelatedResource related_resources = 26; + * @param \Google\Cloud\Dlp\V2\RelatedResource[] $var + * @return $this + */ + public function setRelatedResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\RelatedResource::class); + $this->related_resources = $arr; + + return $this; + } + + /** + * Domains associated with the profile. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain domains = 27; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Domain> + */ + public function getDomains() + { + return $this->domains; + } + + /** + * Domains associated with the profile. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain domains = 27; + * @param \Google\Cloud\Dlp\V2\Domain[] $var + * @return $this + */ + public function setDomains($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Domain::class); + $this->domains = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile/State.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile/State.php new file mode 100644 index 000000000000..d4daac73c392 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile/State.php @@ -0,0 +1,64 @@ +google.privacy.dlp.v2.FileStoreDataProfile.State + */ +class State +{ + /** + * Unused. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The profile is currently running. Once a profile has finished it will + * transition to DONE. + * + * Generated from protobuf enum RUNNING = 1; + */ + const RUNNING = 1; + /** + * The profile is no longer generating. + * If profile_status.status.code is 0, the profile succeeded, otherwise, it + * failed. + * + * Generated from protobuf enum DONE = 2; + */ + const DONE = 2; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::RUNNING => 'RUNNING', + self::DONE => 'DONE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreInfoTypeSummary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreInfoTypeSummary.php new file mode 100644 index 000000000000..839dc72ac511 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreInfoTypeSummary.php @@ -0,0 +1,77 @@ +google.privacy.dlp.v2.FileStoreInfoTypeSummary + */ +class FileStoreInfoTypeSummary extends \Google\Protobuf\Internal\Message +{ + /** + * The InfoType seen. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + */ + protected $info_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoType $info_type + * The InfoType seen. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The InfoType seen. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @return \Google\Cloud\Dlp\V2\InfoType|null + */ + public function getInfoType() + { + return $this->info_type; + } + + public function hasInfoType() + { + return isset($this->info_type); + } + + public function clearInfoType() + { + unset($this->info_type); + } + + /** + * The InfoType seen. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @param \Google\Cloud\Dlp\V2\InfoType $var + * @return $this + */ + public function setInfoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegex.php new file mode 100644 index 000000000000..94a76625848c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegex.php @@ -0,0 +1,75 @@ +google.privacy.dlp.v2.FileStoreRegex + */ +class FileStoreRegex extends \Google\Protobuf\Internal\Message +{ + protected $resource_regex; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\CloudStorageRegex $cloud_storage_regex + * Optional. Regex for Cloud Storage. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Regex for Cloud Storage. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dlp\V2\CloudStorageRegex|null + */ + public function getCloudStorageRegex() + { + return $this->readOneof(1); + } + + public function hasCloudStorageRegex() + { + return $this->hasOneof(1); + } + + /** + * Optional. Regex for Cloud Storage. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dlp\V2\CloudStorageRegex $var + * @return $this + */ + public function setCloudStorageRegex($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageRegex::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getResourceRegex() + { + return $this->whichOneof("resource_regex"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegexes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegexes.php new file mode 100644 index 000000000000..40b5e3bd5091 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegexes.php @@ -0,0 +1,76 @@ +google.privacy.dlp.v2.FileStoreRegexes + */ +class FileStoreRegexes extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The group of regular expression patterns to match against one or + * more file stores. Maximum of 100 entries. The sum of all regular + * expression's length can't exceed 10 KiB. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $patterns; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FileStoreRegex[] $patterns + * Required. The group of regular expression patterns to match against one or + * more file stores. Maximum of 100 entries. The sum of all regular + * expression's length can't exceed 10 KiB. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. The group of regular expression patterns to match against one or + * more file stores. Maximum of 100 entries. The sum of all regular + * expression's length can't exceed 10 KiB. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Dlp\V2\FileStoreRegex> + */ + public function getPatterns() + { + return $this->patterns; + } + + /** + * Required. The group of regular expression patterns to match against one or + * more file stores. Maximum of 100 entries. The sum of all regular + * expression's length can't exceed 10 KiB. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\FileStoreRegex[] $var + * @return $this + */ + public function setPatterns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileStoreRegex::class); + $this->patterns = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileType.php new file mode 100644 index 000000000000..4cf2e8f31733 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileType.php @@ -0,0 +1,150 @@ +google.privacy.dlp.v2.FileType + */ +class FileType +{ + /** + * Includes all files. + * + * Generated from protobuf enum FILE_TYPE_UNSPECIFIED = 0; + */ + const FILE_TYPE_UNSPECIFIED = 0; + /** + * Includes all file extensions not covered by another entry. Binary + * scanning attempts to convert the content of the file to utf_8 to scan + * the file. + * If you wish to avoid this fall back, specify one or more of the other + * file types in your storage scan. + * + * Generated from protobuf enum BINARY_FILE = 1; + */ + const BINARY_FILE = 1; + /** + * Included file extensions: + * asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart, + * dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, + * mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, + * properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, + * shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml, + * ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, + * yml, yaml. + * + * Generated from protobuf enum TEXT_FILE = 2; + */ + const TEXT_FILE = 2; + /** + * Included file extensions: + * bmp, gif, jpg, jpeg, jpe, png. Setting + * [bytes_limit_per_file][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file] + * or + * [bytes_limit_per_file_percent][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file] + * has no effect on image files. Image inspection is restricted to the + * `global`, `us`, `asia`, and `europe` regions. + * + * Generated from protobuf enum IMAGE = 3; + */ + const IMAGE = 3; + /** + * Microsoft Word files larger than 30 MB will be scanned as binary files. + * Included file extensions: + * docx, dotx, docm, dotm. Setting `bytes_limit_per_file` or + * `bytes_limit_per_file_percent` has no effect on Word files. + * + * Generated from protobuf enum WORD = 5; + */ + const WORD = 5; + /** + * PDF files larger than 30 MB will be scanned as binary files. + * Included file extensions: + * pdf. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent` + * has no effect on PDF files. + * + * Generated from protobuf enum PDF = 6; + */ + const PDF = 6; + /** + * Included file extensions: + * avro + * + * Generated from protobuf enum AVRO = 7; + */ + const AVRO = 7; + /** + * Included file extensions: + * csv + * + * Generated from protobuf enum CSV = 8; + */ + const CSV = 8; + /** + * Included file extensions: + * tsv + * + * Generated from protobuf enum TSV = 9; + */ + const TSV = 9; + /** + * Microsoft PowerPoint files larger than 30 MB will be scanned as binary + * files. Included file extensions: + * pptx, pptm, potx, potm, pot. Setting `bytes_limit_per_file` or + * `bytes_limit_per_file_percent` has no effect on PowerPoint files. + * + * Generated from protobuf enum POWERPOINT = 11; + */ + const POWERPOINT = 11; + /** + * Microsoft Excel files larger than 30 MB will be scanned as binary files. + * Included file extensions: + * xlsx, xlsm, xltx, xltm. Setting `bytes_limit_per_file` or + * `bytes_limit_per_file_percent` has no effect on Excel files. + * + * Generated from protobuf enum EXCEL = 12; + */ + const EXCEL = 12; + + private static $valueToName = [ + self::FILE_TYPE_UNSPECIFIED => 'FILE_TYPE_UNSPECIFIED', + self::BINARY_FILE => 'BINARY_FILE', + self::TEXT_FILE => 'TEXT_FILE', + self::IMAGE => 'IMAGE', + self::WORD => 'WORD', + self::PDF => 'PDF', + self::AVRO => 'AVRO', + self::CSV => 'CSV', + self::TSV => 'TSV', + self::POWERPOINT => 'POWERPOINT', + self::EXCEL => 'EXCEL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Finding.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Finding.php new file mode 100644 index 000000000000..56cd7de44e3d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Finding.php @@ -0,0 +1,593 @@ +google.privacy.dlp.v2.Finding + */ +class Finding extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name in format + * projects/{project}/locations/{location}/findings/{finding} Populated only + * when viewing persisted findings. + * + * Generated from protobuf field string name = 14; + */ + protected $name = ''; + /** + * The content that was found. Even if the content is not textual, it + * may be converted to a textual representation here. + * Provided if `include_quote` is true and the finding is + * less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes + * in length, the quote may be omitted. + * + * Generated from protobuf field string quote = 1; + */ + protected $quote = ''; + /** + * The type of content that might have been found. + * Provided if `excluded_types` is false. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; + */ + protected $info_type = null; + /** + * Confidence of how likely it is that the `info_type` is correct. + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 3; + */ + protected $likelihood = 0; + /** + * Where the content was found. + * + * Generated from protobuf field .google.privacy.dlp.v2.Location location = 4; + */ + protected $location = null; + /** + * Timestamp when finding was detected. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; + */ + protected $create_time = null; + /** + * Contains data parsed from quotes. Only populated if include_quote was set + * to true and a supported infoType was requested. Currently supported + * infoTypes: DATE, DATE_OF_BIRTH and TIME. + * + * Generated from protobuf field .google.privacy.dlp.v2.QuoteInfo quote_info = 7; + */ + protected $quote_info = null; + /** + * The job that stored the finding. + * + * Generated from protobuf field string resource_name = 8 [(.google.api.resource_reference) = { + */ + protected $resource_name = ''; + /** + * Job trigger name, if applicable, for this finding. + * + * Generated from protobuf field string trigger_name = 9 [(.google.api.resource_reference) = { + */ + protected $trigger_name = ''; + /** + * The labels associated with this `Finding`. + * Label keys must be between 1 and 63 characters long and must conform + * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. + * Label values must be between 0 and 63 characters long and must conform + * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + * No more than 10 labels can be associated with a given finding. + * Examples: + * * `"environment" : "production"` + * * `"pipeline" : "etl"` + * + * Generated from protobuf field map labels = 10; + */ + private $labels; + /** + * Time the job started that produced this finding. + * + * Generated from protobuf field .google.protobuf.Timestamp job_create_time = 11; + */ + protected $job_create_time = null; + /** + * The job that stored the finding. + * + * Generated from protobuf field string job_name = 13 [(.google.api.resource_reference) = { + */ + protected $job_name = ''; + /** + * The unique finding id. + * + * Generated from protobuf field string finding_id = 15; + */ + protected $finding_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource name in format + * projects/{project}/locations/{location}/findings/{finding} Populated only + * when viewing persisted findings. + * @type string $quote + * The content that was found. Even if the content is not textual, it + * may be converted to a textual representation here. + * Provided if `include_quote` is true and the finding is + * less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes + * in length, the quote may be omitted. + * @type \Google\Cloud\Dlp\V2\InfoType $info_type + * The type of content that might have been found. + * Provided if `excluded_types` is false. + * @type int $likelihood + * Confidence of how likely it is that the `info_type` is correct. + * @type \Google\Cloud\Dlp\V2\Location $location + * Where the content was found. + * @type \Google\Protobuf\Timestamp $create_time + * Timestamp when finding was detected. + * @type \Google\Cloud\Dlp\V2\QuoteInfo $quote_info + * Contains data parsed from quotes. Only populated if include_quote was set + * to true and a supported infoType was requested. Currently supported + * infoTypes: DATE, DATE_OF_BIRTH and TIME. + * @type string $resource_name + * The job that stored the finding. + * @type string $trigger_name + * Job trigger name, if applicable, for this finding. + * @type array|\Google\Protobuf\Internal\MapField $labels + * The labels associated with this `Finding`. + * Label keys must be between 1 and 63 characters long and must conform + * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. + * Label values must be between 0 and 63 characters long and must conform + * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + * No more than 10 labels can be associated with a given finding. + * Examples: + * * `"environment" : "production"` + * * `"pipeline" : "etl"` + * @type \Google\Protobuf\Timestamp $job_create_time + * Time the job started that produced this finding. + * @type string $job_name + * The job that stored the finding. + * @type string $finding_id + * The unique finding id. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Resource name in format + * projects/{project}/locations/{location}/findings/{finding} Populated only + * when viewing persisted findings. + * + * Generated from protobuf field string name = 14; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource name in format + * projects/{project}/locations/{location}/findings/{finding} Populated only + * when viewing persisted findings. + * + * Generated from protobuf field string name = 14; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The content that was found. Even if the content is not textual, it + * may be converted to a textual representation here. + * Provided if `include_quote` is true and the finding is + * less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes + * in length, the quote may be omitted. + * + * Generated from protobuf field string quote = 1; + * @return string + */ + public function getQuote() + { + return $this->quote; + } + + /** + * The content that was found. Even if the content is not textual, it + * may be converted to a textual representation here. + * Provided if `include_quote` is true and the finding is + * less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes + * in length, the quote may be omitted. + * + * Generated from protobuf field string quote = 1; + * @param string $var + * @return $this + */ + public function setQuote($var) + { + GPBUtil::checkString($var, True); + $this->quote = $var; + + return $this; + } + + /** + * The type of content that might have been found. + * Provided if `excluded_types` is false. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; + * @return \Google\Cloud\Dlp\V2\InfoType|null + */ + public function getInfoType() + { + return $this->info_type; + } + + public function hasInfoType() + { + return isset($this->info_type); + } + + public function clearInfoType() + { + unset($this->info_type); + } + + /** + * The type of content that might have been found. + * Provided if `excluded_types` is false. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; + * @param \Google\Cloud\Dlp\V2\InfoType $var + * @return $this + */ + public function setInfoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_type = $var; + + return $this; + } + + /** + * Confidence of how likely it is that the `info_type` is correct. + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 3; + * @return int + */ + public function getLikelihood() + { + return $this->likelihood; + } + + /** + * Confidence of how likely it is that the `info_type` is correct. + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 3; + * @param int $var + * @return $this + */ + public function setLikelihood($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); + $this->likelihood = $var; + + return $this; + } + + /** + * Where the content was found. + * + * Generated from protobuf field .google.privacy.dlp.v2.Location location = 4; + * @return \Google\Cloud\Dlp\V2\Location|null + */ + public function getLocation() + { + return $this->location; + } + + public function hasLocation() + { + return isset($this->location); + } + + public function clearLocation() + { + unset($this->location); + } + + /** + * Where the content was found. + * + * Generated from protobuf field .google.privacy.dlp.v2.Location location = 4; + * @param \Google\Cloud\Dlp\V2\Location $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Location::class); + $this->location = $var; + + return $this; + } + + /** + * Timestamp when finding was detected. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Timestamp when finding was detected. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Contains data parsed from quotes. Only populated if include_quote was set + * to true and a supported infoType was requested. Currently supported + * infoTypes: DATE, DATE_OF_BIRTH and TIME. + * + * Generated from protobuf field .google.privacy.dlp.v2.QuoteInfo quote_info = 7; + * @return \Google\Cloud\Dlp\V2\QuoteInfo|null + */ + public function getQuoteInfo() + { + return $this->quote_info; + } + + public function hasQuoteInfo() + { + return isset($this->quote_info); + } + + public function clearQuoteInfo() + { + unset($this->quote_info); + } + + /** + * Contains data parsed from quotes. Only populated if include_quote was set + * to true and a supported infoType was requested. Currently supported + * infoTypes: DATE, DATE_OF_BIRTH and TIME. + * + * Generated from protobuf field .google.privacy.dlp.v2.QuoteInfo quote_info = 7; + * @param \Google\Cloud\Dlp\V2\QuoteInfo $var + * @return $this + */ + public function setQuoteInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\QuoteInfo::class); + $this->quote_info = $var; + + return $this; + } + + /** + * The job that stored the finding. + * + * Generated from protobuf field string resource_name = 8 [(.google.api.resource_reference) = { + * @return string + */ + public function getResourceName() + { + return $this->resource_name; + } + + /** + * The job that stored the finding. + * + * Generated from protobuf field string resource_name = 8 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setResourceName($var) + { + GPBUtil::checkString($var, True); + $this->resource_name = $var; + + return $this; + } + + /** + * Job trigger name, if applicable, for this finding. + * + * Generated from protobuf field string trigger_name = 9 [(.google.api.resource_reference) = { + * @return string + */ + public function getTriggerName() + { + return $this->trigger_name; + } + + /** + * Job trigger name, if applicable, for this finding. + * + * Generated from protobuf field string trigger_name = 9 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTriggerName($var) + { + GPBUtil::checkString($var, True); + $this->trigger_name = $var; + + return $this; + } + + /** + * The labels associated with this `Finding`. + * Label keys must be between 1 and 63 characters long and must conform + * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. + * Label values must be between 0 and 63 characters long and must conform + * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + * No more than 10 labels can be associated with a given finding. + * Examples: + * * `"environment" : "production"` + * * `"pipeline" : "etl"` + * + * Generated from protobuf field map labels = 10; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * The labels associated with this `Finding`. + * Label keys must be between 1 and 63 characters long and must conform + * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. + * Label values must be between 0 and 63 characters long and must conform + * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + * No more than 10 labels can be associated with a given finding. + * Examples: + * * `"environment" : "production"` + * * `"pipeline" : "etl"` + * + * Generated from protobuf field map labels = 10; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Time the job started that produced this finding. + * + * Generated from protobuf field .google.protobuf.Timestamp job_create_time = 11; + * @return \Google\Protobuf\Timestamp|null + */ + public function getJobCreateTime() + { + return $this->job_create_time; + } + + public function hasJobCreateTime() + { + return isset($this->job_create_time); + } + + public function clearJobCreateTime() + { + unset($this->job_create_time); + } + + /** + * Time the job started that produced this finding. + * + * Generated from protobuf field .google.protobuf.Timestamp job_create_time = 11; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setJobCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->job_create_time = $var; + + return $this; + } + + /** + * The job that stored the finding. + * + * Generated from protobuf field string job_name = 13 [(.google.api.resource_reference) = { + * @return string + */ + public function getJobName() + { + return $this->job_name; + } + + /** + * The job that stored the finding. + * + * Generated from protobuf field string job_name = 13 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setJobName($var) + { + GPBUtil::checkString($var, True); + $this->job_name = $var; + + return $this; + } + + /** + * The unique finding id. + * + * Generated from protobuf field string finding_id = 15; + * @return string + */ + public function getFindingId() + { + return $this->finding_id; + } + + /** + * The unique finding id. + * + * Generated from protobuf field string finding_id = 15; + * @param string $var + * @return $this + */ + public function setFindingId($var) + { + GPBUtil::checkString($var, True); + $this->finding_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FinishDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FinishDlpJobRequest.php new file mode 100644 index 000000000000..daf2d73ba3ea --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FinishDlpJobRequest.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.FinishDlpJobRequest + */ +class FinishDlpJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the DlpJob resource to be finished. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the DlpJob resource to be finished. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the DlpJob resource to be finished. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the DlpJob resource to be finished. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FixedSizeBucketingConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FixedSizeBucketingConfig.php new file mode 100644 index 000000000000..3b89b6708103 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FixedSizeBucketingConfig.php @@ -0,0 +1,196 @@ +google.privacy.dlp.v2.FixedSizeBucketingConfig + */ +class FixedSizeBucketingConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Lower bound value of buckets. All values less than `lower_bound` + * are grouped together into a single bucket; for example if `lower_bound` = + * 10, then all values less than 10 are replaced with the value "-10". + * + * Generated from protobuf field .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $lower_bound = null; + /** + * Required. Upper bound value of buckets. All values greater than upper_bound + * are grouped together into a single bucket; for example if `upper_bound` = + * 89, then all values greater than 89 are replaced with the value "89+". + * + * Generated from protobuf field .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $upper_bound = null; + /** + * Required. Size of each bucket (except for minimum and maximum buckets). So + * if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the + * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, + * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. + * + * Generated from protobuf field double bucket_size = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $bucket_size = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Value $lower_bound + * Required. Lower bound value of buckets. All values less than `lower_bound` + * are grouped together into a single bucket; for example if `lower_bound` = + * 10, then all values less than 10 are replaced with the value "-10". + * @type \Google\Cloud\Dlp\V2\Value $upper_bound + * Required. Upper bound value of buckets. All values greater than upper_bound + * are grouped together into a single bucket; for example if `upper_bound` = + * 89, then all values greater than 89 are replaced with the value "89+". + * @type float $bucket_size + * Required. Size of each bucket (except for minimum and maximum buckets). So + * if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the + * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, + * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Lower bound value of buckets. All values less than `lower_bound` + * are grouped together into a single bucket; for example if `lower_bound` = + * 10, then all values less than 10 are replaced with the value "-10". + * + * Generated from protobuf field .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\Value|null + */ + public function getLowerBound() + { + return $this->lower_bound; + } + + public function hasLowerBound() + { + return isset($this->lower_bound); + } + + public function clearLowerBound() + { + unset($this->lower_bound); + } + + /** + * Required. Lower bound value of buckets. All values less than `lower_bound` + * are grouped together into a single bucket; for example if `lower_bound` = + * 10, then all values less than 10 are replaced with the value "-10". + * + * Generated from protobuf field .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\Value $var + * @return $this + */ + public function setLowerBound($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); + $this->lower_bound = $var; + + return $this; + } + + /** + * Required. Upper bound value of buckets. All values greater than upper_bound + * are grouped together into a single bucket; for example if `upper_bound` = + * 89, then all values greater than 89 are replaced with the value "89+". + * + * Generated from protobuf field .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\Value|null + */ + public function getUpperBound() + { + return $this->upper_bound; + } + + public function hasUpperBound() + { + return isset($this->upper_bound); + } + + public function clearUpperBound() + { + unset($this->upper_bound); + } + + /** + * Required. Upper bound value of buckets. All values greater than upper_bound + * are grouped together into a single bucket; for example if `upper_bound` = + * 89, then all values greater than 89 are replaced with the value "89+". + * + * Generated from protobuf field .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\Value $var + * @return $this + */ + public function setUpperBound($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); + $this->upper_bound = $var; + + return $this; + } + + /** + * Required. Size of each bucket (except for minimum and maximum buckets). So + * if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the + * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, + * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. + * + * Generated from protobuf field double bucket_size = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return float + */ + public function getBucketSize() + { + return $this->bucket_size; + } + + /** + * Required. Size of each bucket (except for minimum and maximum buckets). So + * if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the + * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, + * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. + * + * Generated from protobuf field double bucket_size = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param float $var + * @return $this + */ + public function setBucketSize($var) + { + GPBUtil::checkDouble($var); + $this->bucket_size = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FullyInside.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FullyInside.php new file mode 100644 index 000000000000..2e6a6509f298 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FullyInside.php @@ -0,0 +1,33 @@ +google.privacy.dlp.v2.FullyInside + */ +class FullyInside extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetColumnDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetColumnDataProfileRequest.php new file mode 100644 index 000000000000..d41efd70e51e --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetColumnDataProfileRequest.php @@ -0,0 +1,86 @@ +google.privacy.dlp.v2.GetColumnDataProfileRequest + */ +class GetColumnDataProfileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name, for example + * `organizations/12345/locations/us/columnDataProfiles/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name, for example + * `organizations/12345/locations/us/columnDataProfiles/53234423`. Please see + * {@see DlpServiceClient::columnDataProfileName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\GetColumnDataProfileRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name, for example + * `organizations/12345/locations/us/columnDataProfiles/53234423`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name, for example + * `organizations/12345/locations/us/columnDataProfiles/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name, for example + * `organizations/12345/locations/us/columnDataProfiles/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetConnectionRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetConnectionRequest.php new file mode 100644 index 000000000000..97af159f022b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetConnectionRequest.php @@ -0,0 +1,86 @@ +google.privacy.dlp.v2.GetConnectionRequest + */ +class GetConnectionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name in the format: + * `projects/{project}/locations/{location}/connections/{connection}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name in the format: + * `projects/{project}/locations/{location}/connections/{connection}`. Please see + * {@see DlpServiceClient::connectionName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\GetConnectionRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name in the format: + * `projects/{project}/locations/{location}/connections/{connection}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name in the format: + * `projects/{project}/locations/{location}/connections/{connection}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name in the format: + * `projects/{project}/locations/{location}/connections/{connection}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDeidentifyTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDeidentifyTemplateRequest.php new file mode 100644 index 000000000000..e5b3d4a6920a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDeidentifyTemplateRequest.php @@ -0,0 +1,91 @@ +google.privacy.dlp.v2.GetDeidentifyTemplateRequest + */ +class GetDeidentifyTemplateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the organization and deidentify template to be + * read, for example `organizations/433245324/deidentifyTemplates/432452342` + * or projects/project-id/deidentifyTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the organization and deidentify template to be + * read, for example `organizations/433245324/deidentifyTemplates/432452342` + * or projects/project-id/deidentifyTemplates/432452342. Please see + * {@see DlpServiceClient::deidentifyTemplateName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\GetDeidentifyTemplateRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the organization and deidentify template to be + * read, for example `organizations/433245324/deidentifyTemplates/432452342` + * or projects/project-id/deidentifyTemplates/432452342. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the organization and deidentify template to be + * read, for example `organizations/433245324/deidentifyTemplates/432452342` + * or projects/project-id/deidentifyTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the organization and deidentify template to be + * read, for example `organizations/433245324/deidentifyTemplates/432452342` + * or projects/project-id/deidentifyTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDiscoveryConfigRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDiscoveryConfigRequest.php new file mode 100644 index 000000000000..3dcd4d11d37f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDiscoveryConfigRequest.php @@ -0,0 +1,86 @@ +google.privacy.dlp.v2.GetDiscoveryConfigRequest + */ +class GetDiscoveryConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the project and the configuration, for example + * `projects/dlp-test-project/discoveryConfigs/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the project and the configuration, for example + * `projects/dlp-test-project/discoveryConfigs/53234423`. Please see + * {@see DlpServiceClient::discoveryConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\GetDiscoveryConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the project and the configuration, for example + * `projects/dlp-test-project/discoveryConfigs/53234423`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the project and the configuration, for example + * `projects/dlp-test-project/discoveryConfigs/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the project and the configuration, for example + * `projects/dlp-test-project/discoveryConfigs/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDlpJobRequest.php new file mode 100644 index 000000000000..e3d1980991ef --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDlpJobRequest.php @@ -0,0 +1,82 @@ +google.privacy.dlp.v2.GetDlpJobRequest + */ +class GetDlpJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the DlpJob resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the DlpJob resource. Please see + * {@see DlpServiceClient::dlpJobName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\GetDlpJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the DlpJob resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the DlpJob resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the DlpJob resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetFileStoreDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetFileStoreDataProfileRequest.php new file mode 100644 index 000000000000..5f031358670c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetFileStoreDataProfileRequest.php @@ -0,0 +1,86 @@ +google.privacy.dlp.v2.GetFileStoreDataProfileRequest + */ +class GetFileStoreDataProfileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name, for example + * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name, for example + * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. Please see + * {@see DlpServiceClient::projectDataProfileName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\GetFileStoreDataProfileRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name, for example + * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name, for example + * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name, for example + * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetInspectTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetInspectTemplateRequest.php new file mode 100644 index 000000000000..b98ec1b68c37 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetInspectTemplateRequest.php @@ -0,0 +1,91 @@ +google.privacy.dlp.v2.GetInspectTemplateRequest + */ +class GetInspectTemplateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the organization and inspectTemplate to be read, + * for example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the organization and inspectTemplate to be read, + * for example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. Please see + * {@see DlpServiceClient::inspectTemplateName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\GetInspectTemplateRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the organization and inspectTemplate to be read, + * for example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the organization and inspectTemplate to be read, + * for example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the organization and inspectTemplate to be read, + * for example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetJobTriggerRequest.php new file mode 100644 index 000000000000..5d61062304dd --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetJobTriggerRequest.php @@ -0,0 +1,86 @@ +google.privacy.dlp.v2.GetJobTriggerRequest + */ +class GetJobTriggerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. Please see + * {@see DlpServiceClient::jobTriggerName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\GetJobTriggerRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetProjectDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetProjectDataProfileRequest.php new file mode 100644 index 000000000000..0aed9e2aa1b6 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetProjectDataProfileRequest.php @@ -0,0 +1,86 @@ +google.privacy.dlp.v2.GetProjectDataProfileRequest + */ +class GetProjectDataProfileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name, for example + * `organizations/12345/locations/us/projectDataProfiles/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name, for example + * `organizations/12345/locations/us/projectDataProfiles/53234423`. Please see + * {@see DlpServiceClient::projectDataProfileName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\GetProjectDataProfileRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name, for example + * `organizations/12345/locations/us/projectDataProfiles/53234423`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name, for example + * `organizations/12345/locations/us/projectDataProfiles/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name, for example + * `organizations/12345/locations/us/projectDataProfiles/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetStoredInfoTypeRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetStoredInfoTypeRequest.php new file mode 100644 index 000000000000..9493f904532f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetStoredInfoTypeRequest.php @@ -0,0 +1,91 @@ +google.privacy.dlp.v2.GetStoredInfoTypeRequest + */ +class GetStoredInfoTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the organization and storedInfoType to be read, + * for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name of the organization and storedInfoType to be read, + * for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. Please see + * {@see DlpServiceClient::storedInfoTypeName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\GetStoredInfoTypeRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the organization and storedInfoType to be read, + * for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the organization and storedInfoType to be read, + * for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the organization and storedInfoType to be read, + * for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetTableDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetTableDataProfileRequest.php new file mode 100644 index 000000000000..9d7fb622fa5b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetTableDataProfileRequest.php @@ -0,0 +1,86 @@ +google.privacy.dlp.v2.GetTableDataProfileRequest + */ +class GetTableDataProfileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name, for example + * `organizations/12345/locations/us/tableDataProfiles/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Resource name, for example + * `organizations/12345/locations/us/tableDataProfiles/53234423`. Please see + * {@see DlpServiceClient::tableDataProfileName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\GetTableDataProfileRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name, for example + * `organizations/12345/locations/us/tableDataProfiles/53234423`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name, for example + * `organizations/12345/locations/us/tableDataProfiles/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name, for example + * `organizations/12345/locations/us/tableDataProfiles/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridContentItem.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridContentItem.php new file mode 100644 index 000000000000..7a84ecffd1cb --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridContentItem.php @@ -0,0 +1,122 @@ +google.privacy.dlp.v2.HybridContentItem + */ +class HybridContentItem extends \Google\Protobuf\Internal\Message +{ + /** + * The item to inspect. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; + */ + protected $item = null; + /** + * Supplementary information that will be added to each finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + */ + protected $finding_details = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\ContentItem $item + * The item to inspect. + * @type \Google\Cloud\Dlp\V2\HybridFindingDetails $finding_details + * Supplementary information that will be added to each finding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The item to inspect. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; + * @return \Google\Cloud\Dlp\V2\ContentItem|null + */ + public function getItem() + { + return $this->item; + } + + public function hasItem() + { + return isset($this->item); + } + + public function clearItem() + { + unset($this->item); + } + + /** + * The item to inspect. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; + * @param \Google\Cloud\Dlp\V2\ContentItem $var + * @return $this + */ + public function setItem($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); + $this->item = $var; + + return $this; + } + + /** + * Supplementary information that will be added to each finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + * @return \Google\Cloud\Dlp\V2\HybridFindingDetails|null + */ + public function getFindingDetails() + { + return $this->finding_details; + } + + public function hasFindingDetails() + { + return isset($this->finding_details); + } + + public function clearFindingDetails() + { + unset($this->finding_details); + } + + /** + * Supplementary information that will be added to each finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; + * @param \Google\Cloud\Dlp\V2\HybridFindingDetails $var + * @return $this + */ + public function setFindingDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\HybridFindingDetails::class); + $this->finding_details = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridFindingDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridFindingDetails.php new file mode 100644 index 000000000000..72c5d2714e4e --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridFindingDetails.php @@ -0,0 +1,303 @@ +google.privacy.dlp.v2.HybridFindingDetails + */ +class HybridFindingDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Details about the container where the content being inspected is from. + * + * Generated from protobuf field .google.privacy.dlp.v2.Container container_details = 1; + */ + protected $container_details = null; + /** + * Offset in bytes of the line, from the beginning of the file, where the + * finding is located. Populate if the item being scanned is only part of a + * bigger item, such as a shard of a file and you want to track the absolute + * position of the finding. + * + * Generated from protobuf field int64 file_offset = 2; + */ + protected $file_offset = 0; + /** + * Offset of the row for tables. Populate if the row(s) being scanned are + * part of a bigger dataset and you want to keep track of their absolute + * position. + * + * Generated from protobuf field int64 row_offset = 3; + */ + protected $row_offset = 0; + /** + * If the container is a table, additional information to make findings + * meaningful such as the columns that are primary keys. If not known ahead + * of time, can also be set within each inspect hybrid call and the two + * will be merged. Note that identifying_fields will only be stored to + * BigQuery, and only if the BigQuery action has been included. + * + * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + protected $table_options = null; + /** + * Labels to represent user provided metadata about the data being inspected. + * If configured by the job, some key values may be required. + * The labels associated with `Finding`'s produced by hybrid + * inspection. + * Label keys must be between 1 and 63 characters long and must conform + * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. + * Label values must be between 0 and 63 characters long and must conform + * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + * No more than 10 labels can be associated with a given finding. + * Examples: + * * `"environment" : "production"` + * * `"pipeline" : "etl"` + * + * Generated from protobuf field map labels = 5; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Container $container_details + * Details about the container where the content being inspected is from. + * @type int|string $file_offset + * Offset in bytes of the line, from the beginning of the file, where the + * finding is located. Populate if the item being scanned is only part of a + * bigger item, such as a shard of a file and you want to track the absolute + * position of the finding. + * @type int|string $row_offset + * Offset of the row for tables. Populate if the row(s) being scanned are + * part of a bigger dataset and you want to keep track of their absolute + * position. + * @type \Google\Cloud\Dlp\V2\TableOptions $table_options + * If the container is a table, additional information to make findings + * meaningful such as the columns that are primary keys. If not known ahead + * of time, can also be set within each inspect hybrid call and the two + * will be merged. Note that identifying_fields will only be stored to + * BigQuery, and only if the BigQuery action has been included. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Labels to represent user provided metadata about the data being inspected. + * If configured by the job, some key values may be required. + * The labels associated with `Finding`'s produced by hybrid + * inspection. + * Label keys must be between 1 and 63 characters long and must conform + * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. + * Label values must be between 0 and 63 characters long and must conform + * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + * No more than 10 labels can be associated with a given finding. + * Examples: + * * `"environment" : "production"` + * * `"pipeline" : "etl"` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Details about the container where the content being inspected is from. + * + * Generated from protobuf field .google.privacy.dlp.v2.Container container_details = 1; + * @return \Google\Cloud\Dlp\V2\Container|null + */ + public function getContainerDetails() + { + return $this->container_details; + } + + public function hasContainerDetails() + { + return isset($this->container_details); + } + + public function clearContainerDetails() + { + unset($this->container_details); + } + + /** + * Details about the container where the content being inspected is from. + * + * Generated from protobuf field .google.privacy.dlp.v2.Container container_details = 1; + * @param \Google\Cloud\Dlp\V2\Container $var + * @return $this + */ + public function setContainerDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Container::class); + $this->container_details = $var; + + return $this; + } + + /** + * Offset in bytes of the line, from the beginning of the file, where the + * finding is located. Populate if the item being scanned is only part of a + * bigger item, such as a shard of a file and you want to track the absolute + * position of the finding. + * + * Generated from protobuf field int64 file_offset = 2; + * @return int|string + */ + public function getFileOffset() + { + return $this->file_offset; + } + + /** + * Offset in bytes of the line, from the beginning of the file, where the + * finding is located. Populate if the item being scanned is only part of a + * bigger item, such as a shard of a file and you want to track the absolute + * position of the finding. + * + * Generated from protobuf field int64 file_offset = 2; + * @param int|string $var + * @return $this + */ + public function setFileOffset($var) + { + GPBUtil::checkInt64($var); + $this->file_offset = $var; + + return $this; + } + + /** + * Offset of the row for tables. Populate if the row(s) being scanned are + * part of a bigger dataset and you want to keep track of their absolute + * position. + * + * Generated from protobuf field int64 row_offset = 3; + * @return int|string + */ + public function getRowOffset() + { + return $this->row_offset; + } + + /** + * Offset of the row for tables. Populate if the row(s) being scanned are + * part of a bigger dataset and you want to keep track of their absolute + * position. + * + * Generated from protobuf field int64 row_offset = 3; + * @param int|string $var + * @return $this + */ + public function setRowOffset($var) + { + GPBUtil::checkInt64($var); + $this->row_offset = $var; + + return $this; + } + + /** + * If the container is a table, additional information to make findings + * meaningful such as the columns that are primary keys. If not known ahead + * of time, can also be set within each inspect hybrid call and the two + * will be merged. Note that identifying_fields will only be stored to + * BigQuery, and only if the BigQuery action has been included. + * + * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; + * @return \Google\Cloud\Dlp\V2\TableOptions|null + */ + public function getTableOptions() + { + return $this->table_options; + } + + public function hasTableOptions() + { + return isset($this->table_options); + } + + public function clearTableOptions() + { + unset($this->table_options); + } + + /** + * If the container is a table, additional information to make findings + * meaningful such as the columns that are primary keys. If not known ahead + * of time, can also be set within each inspect hybrid call and the two + * will be merged. Note that identifying_fields will only be stored to + * BigQuery, and only if the BigQuery action has been included. + * + * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; + * @param \Google\Cloud\Dlp\V2\TableOptions $var + * @return $this + */ + public function setTableOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableOptions::class); + $this->table_options = $var; + + return $this; + } + + /** + * Labels to represent user provided metadata about the data being inspected. + * If configured by the job, some key values may be required. + * The labels associated with `Finding`'s produced by hybrid + * inspection. + * Label keys must be between 1 and 63 characters long and must conform + * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. + * Label values must be between 0 and 63 characters long and must conform + * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + * No more than 10 labels can be associated with a given finding. + * Examples: + * * `"environment" : "production"` + * * `"pipeline" : "etl"` + * + * Generated from protobuf field map labels = 5; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Labels to represent user provided metadata about the data being inspected. + * If configured by the job, some key values may be required. + * The labels associated with `Finding`'s produced by hybrid + * inspection. + * Label keys must be between 1 and 63 characters long and must conform + * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. + * Label values must be between 0 and 63 characters long and must conform + * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + * No more than 10 labels can be associated with a given finding. + * Examples: + * * `"environment" : "production"` + * * `"pipeline" : "etl"` + * + * Generated from protobuf field map labels = 5; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectDlpJobRequest.php new file mode 100644 index 000000000000..6ce3951321ec --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectDlpJobRequest.php @@ -0,0 +1,130 @@ +google.privacy.dlp.v2.HybridInspectDlpJobRequest + */ +class HybridInspectDlpJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the job to execute a hybrid inspect on, for + * example `projects/dlp-test-project/dlpJob/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The item to inspect. + * + * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + protected $hybrid_item = null; + + /** + * @param string $name Required. Resource name of the job to execute a hybrid inspect on, for + * example `projects/dlp-test-project/dlpJob/53234423`. Please see + * {@see DlpServiceClient::dlpJobName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\HybridInspectDlpJobRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the job to execute a hybrid inspect on, for + * example `projects/dlp-test-project/dlpJob/53234423`. + * @type \Google\Cloud\Dlp\V2\HybridContentItem $hybrid_item + * The item to inspect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the job to execute a hybrid inspect on, for + * example `projects/dlp-test-project/dlpJob/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the job to execute a hybrid inspect on, for + * example `projects/dlp-test-project/dlpJob/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The item to inspect. + * + * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + * @return \Google\Cloud\Dlp\V2\HybridContentItem|null + */ + public function getHybridItem() + { + return $this->hybrid_item; + } + + public function hasHybridItem() + { + return isset($this->hybrid_item); + } + + public function clearHybridItem() + { + unset($this->hybrid_item); + } + + /** + * The item to inspect. + * + * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + * @param \Google\Cloud\Dlp\V2\HybridContentItem $var + * @return $this + */ + public function setHybridItem($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\HybridContentItem::class); + $this->hybrid_item = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectJobTriggerRequest.php new file mode 100644 index 000000000000..0f26f95c98e5 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectJobTriggerRequest.php @@ -0,0 +1,130 @@ +google.privacy.dlp.v2.HybridInspectJobTriggerRequest + */ +class HybridInspectJobTriggerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the trigger to execute a hybrid inspect on, for + * example `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The item to inspect. + * + * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + */ + protected $hybrid_item = null; + + /** + * @param string $name Required. Resource name of the trigger to execute a hybrid inspect on, for + * example `projects/dlp-test-project/jobTriggers/53234423`. Please see + * {@see DlpServiceClient::jobTriggerName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\HybridInspectJobTriggerRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the trigger to execute a hybrid inspect on, for + * example `projects/dlp-test-project/jobTriggers/53234423`. + * @type \Google\Cloud\Dlp\V2\HybridContentItem $hybrid_item + * The item to inspect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the trigger to execute a hybrid inspect on, for + * example `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the trigger to execute a hybrid inspect on, for + * example `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The item to inspect. + * + * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + * @return \Google\Cloud\Dlp\V2\HybridContentItem|null + */ + public function getHybridItem() + { + return $this->hybrid_item; + } + + public function hasHybridItem() + { + return isset($this->hybrid_item); + } + + public function clearHybridItem() + { + unset($this->hybrid_item); + } + + /** + * The item to inspect. + * + * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; + * @param \Google\Cloud\Dlp\V2\HybridContentItem $var + * @return $this + */ + public function setHybridItem($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\HybridContentItem::class); + $this->hybrid_item = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectResponse.php new file mode 100644 index 000000000000..ba79c75528a9 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectResponse.php @@ -0,0 +1,33 @@ +google.privacy.dlp.v2.HybridInspectResponse + */ +class HybridInspectResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectStatistics.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectStatistics.php new file mode 100644 index 000000000000..f5c4b6be8337 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectStatistics.php @@ -0,0 +1,155 @@ +google.privacy.dlp.v2.HybridInspectStatistics + */ +class HybridInspectStatistics extends \Google\Protobuf\Internal\Message +{ + /** + * The number of hybrid inspection requests processed within this job. + * + * Generated from protobuf field int64 processed_count = 1; + */ + protected $processed_count = 0; + /** + * The number of hybrid inspection requests aborted because the job ran + * out of quota or was ended before they could be processed. + * + * Generated from protobuf field int64 aborted_count = 2; + */ + protected $aborted_count = 0; + /** + * The number of hybrid requests currently being processed. Only populated + * when called via method `getDlpJob`. + * A burst of traffic may cause hybrid inspect requests to be enqueued. + * Processing will take place as quickly as possible, but resource limitations + * may impact how long a request is enqueued for. + * + * Generated from protobuf field int64 pending_count = 3; + */ + protected $pending_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $processed_count + * The number of hybrid inspection requests processed within this job. + * @type int|string $aborted_count + * The number of hybrid inspection requests aborted because the job ran + * out of quota or was ended before they could be processed. + * @type int|string $pending_count + * The number of hybrid requests currently being processed. Only populated + * when called via method `getDlpJob`. + * A burst of traffic may cause hybrid inspect requests to be enqueued. + * Processing will take place as quickly as possible, but resource limitations + * may impact how long a request is enqueued for. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The number of hybrid inspection requests processed within this job. + * + * Generated from protobuf field int64 processed_count = 1; + * @return int|string + */ + public function getProcessedCount() + { + return $this->processed_count; + } + + /** + * The number of hybrid inspection requests processed within this job. + * + * Generated from protobuf field int64 processed_count = 1; + * @param int|string $var + * @return $this + */ + public function setProcessedCount($var) + { + GPBUtil::checkInt64($var); + $this->processed_count = $var; + + return $this; + } + + /** + * The number of hybrid inspection requests aborted because the job ran + * out of quota or was ended before they could be processed. + * + * Generated from protobuf field int64 aborted_count = 2; + * @return int|string + */ + public function getAbortedCount() + { + return $this->aborted_count; + } + + /** + * The number of hybrid inspection requests aborted because the job ran + * out of quota or was ended before they could be processed. + * + * Generated from protobuf field int64 aborted_count = 2; + * @param int|string $var + * @return $this + */ + public function setAbortedCount($var) + { + GPBUtil::checkInt64($var); + $this->aborted_count = $var; + + return $this; + } + + /** + * The number of hybrid requests currently being processed. Only populated + * when called via method `getDlpJob`. + * A burst of traffic may cause hybrid inspect requests to be enqueued. + * Processing will take place as quickly as possible, but resource limitations + * may impact how long a request is enqueued for. + * + * Generated from protobuf field int64 pending_count = 3; + * @return int|string + */ + public function getPendingCount() + { + return $this->pending_count; + } + + /** + * The number of hybrid requests currently being processed. Only populated + * when called via method `getDlpJob`. + * A burst of traffic may cause hybrid inspect requests to be enqueued. + * Processing will take place as quickly as possible, but resource limitations + * may impact how long a request is enqueued for. + * + * Generated from protobuf field int64 pending_count = 3; + * @param int|string $var + * @return $this + */ + public function setPendingCount($var) + { + GPBUtil::checkInt64($var); + $this->pending_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridOptions.php new file mode 100644 index 000000000000..c95cd147a029 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridOptions.php @@ -0,0 +1,240 @@ +google.privacy.dlp.v2.HybridOptions + */ +class HybridOptions extends \Google\Protobuf\Internal\Message +{ + /** + * A short description of where the data is coming from. Will be stored once + * in the job. 256 max length. + * + * Generated from protobuf field string description = 1; + */ + protected $description = ''; + /** + * These are labels that each inspection request must include within their + * 'finding_labels' map. Request may contain others, but any missing one of + * these will be rejected. + * Label keys must be between 1 and 63 characters long and must conform + * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. + * No more than 10 keys can be required. + * + * Generated from protobuf field repeated string required_finding_label_keys = 2; + */ + private $required_finding_label_keys; + /** + * To organize findings, these labels will be added to each finding. + * Label keys must be between 1 and 63 characters long and must conform + * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. + * Label values must be between 0 and 63 characters long and must conform + * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + * No more than 10 labels can be associated with a given finding. + * Examples: + * * `"environment" : "production"` + * * `"pipeline" : "etl"` + * + * Generated from protobuf field map labels = 3; + */ + private $labels; + /** + * If the container is a table, additional information to make findings + * meaningful such as the columns that are primary keys. + * + * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; + */ + protected $table_options = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $description + * A short description of where the data is coming from. Will be stored once + * in the job. 256 max length. + * @type string[] $required_finding_label_keys + * These are labels that each inspection request must include within their + * 'finding_labels' map. Request may contain others, but any missing one of + * these will be rejected. + * Label keys must be between 1 and 63 characters long and must conform + * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. + * No more than 10 keys can be required. + * @type array|\Google\Protobuf\Internal\MapField $labels + * To organize findings, these labels will be added to each finding. + * Label keys must be between 1 and 63 characters long and must conform + * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. + * Label values must be between 0 and 63 characters long and must conform + * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + * No more than 10 labels can be associated with a given finding. + * Examples: + * * `"environment" : "production"` + * * `"pipeline" : "etl"` + * @type \Google\Cloud\Dlp\V2\TableOptions $table_options + * If the container is a table, additional information to make findings + * meaningful such as the columns that are primary keys. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * A short description of where the data is coming from. Will be stored once + * in the job. 256 max length. + * + * Generated from protobuf field string description = 1; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A short description of where the data is coming from. Will be stored once + * in the job. 256 max length. + * + * Generated from protobuf field string description = 1; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * These are labels that each inspection request must include within their + * 'finding_labels' map. Request may contain others, but any missing one of + * these will be rejected. + * Label keys must be between 1 and 63 characters long and must conform + * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. + * No more than 10 keys can be required. + * + * Generated from protobuf field repeated string required_finding_label_keys = 2; + * @return RepeatedField + */ + public function getRequiredFindingLabelKeys() + { + return $this->required_finding_label_keys; + } + + /** + * These are labels that each inspection request must include within their + * 'finding_labels' map. Request may contain others, but any missing one of + * these will be rejected. + * Label keys must be between 1 and 63 characters long and must conform + * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. + * No more than 10 keys can be required. + * + * Generated from protobuf field repeated string required_finding_label_keys = 2; + * @param string[] $var + * @return $this + */ + public function setRequiredFindingLabelKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->required_finding_label_keys = $arr; + + return $this; + } + + /** + * To organize findings, these labels will be added to each finding. + * Label keys must be between 1 and 63 characters long and must conform + * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. + * Label values must be between 0 and 63 characters long and must conform + * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + * No more than 10 labels can be associated with a given finding. + * Examples: + * * `"environment" : "production"` + * * `"pipeline" : "etl"` + * + * Generated from protobuf field map labels = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * To organize findings, these labels will be added to each finding. + * Label keys must be between 1 and 63 characters long and must conform + * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. + * Label values must be between 0 and 63 characters long and must conform + * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + * No more than 10 labels can be associated with a given finding. + * Examples: + * * `"environment" : "production"` + * * `"pipeline" : "etl"` + * + * Generated from protobuf field map labels = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * If the container is a table, additional information to make findings + * meaningful such as the columns that are primary keys. + * + * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; + * @return \Google\Cloud\Dlp\V2\TableOptions|null + */ + public function getTableOptions() + { + return $this->table_options; + } + + public function hasTableOptions() + { + return isset($this->table_options); + } + + public function clearTableOptions() + { + unset($this->table_options); + } + + /** + * If the container is a table, additional information to make findings + * meaningful such as the columns that are primary keys. + * + * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; + * @param \Google\Cloud\Dlp\V2\TableOptions $var + * @return $this + */ + public function setTableOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableOptions::class); + $this->table_options = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageContainmentType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageContainmentType.php new file mode 100644 index 000000000000..46e5f958183d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageContainmentType.php @@ -0,0 +1,150 @@ +google.privacy.dlp.v2.ImageContainmentType + */ +class ImageContainmentType extends \Google\Protobuf\Internal\Message +{ + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Encloses $encloses + * The context finding's bounding box must fully contain the target + * finding's bounding box. + * @type \Google\Cloud\Dlp\V2\FullyInside $fully_inside + * The context finding's bounding box must be fully inside the target + * finding's bounding box. + * @type \Google\Cloud\Dlp\V2\Overlap $overlaps + * The context finding's bounding box and the target finding's bounding box + * must have a non-zero intersection. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The context finding's bounding box must fully contain the target + * finding's bounding box. + * + * Generated from protobuf field .google.privacy.dlp.v2.Encloses encloses = 1; + * @return \Google\Cloud\Dlp\V2\Encloses|null + */ + public function getEncloses() + { + return $this->readOneof(1); + } + + public function hasEncloses() + { + return $this->hasOneof(1); + } + + /** + * The context finding's bounding box must fully contain the target + * finding's bounding box. + * + * Generated from protobuf field .google.privacy.dlp.v2.Encloses encloses = 1; + * @param \Google\Cloud\Dlp\V2\Encloses $var + * @return $this + */ + public function setEncloses($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Encloses::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The context finding's bounding box must be fully inside the target + * finding's bounding box. + * + * Generated from protobuf field .google.privacy.dlp.v2.FullyInside fully_inside = 2; + * @return \Google\Cloud\Dlp\V2\FullyInside|null + */ + public function getFullyInside() + { + return $this->readOneof(2); + } + + public function hasFullyInside() + { + return $this->hasOneof(2); + } + + /** + * The context finding's bounding box must be fully inside the target + * finding's bounding box. + * + * Generated from protobuf field .google.privacy.dlp.v2.FullyInside fully_inside = 2; + * @param \Google\Cloud\Dlp\V2\FullyInside $var + * @return $this + */ + public function setFullyInside($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FullyInside::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The context finding's bounding box and the target finding's bounding box + * must have a non-zero intersection. + * + * Generated from protobuf field .google.privacy.dlp.v2.Overlap overlaps = 3; + * @return \Google\Cloud\Dlp\V2\Overlap|null + */ + public function getOverlaps() + { + return $this->readOneof(3); + } + + public function hasOverlaps() + { + return $this->hasOneof(3); + } + + /** + * The context finding's bounding box and the target finding's bounding box + * must have a non-zero intersection. + * + * Generated from protobuf field .google.privacy.dlp.v2.Overlap overlaps = 3; + * @param \Google\Cloud\Dlp\V2\Overlap $var + * @return $this + */ + public function setOverlaps($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Overlap::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageLocation.php new file mode 100644 index 000000000000..434d080d67de --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageLocation.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.ImageLocation + */ +class ImageLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Bounding boxes locating the pixels within the image containing the finding. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1; + */ + private $bounding_boxes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\BoundingBox[] $bounding_boxes + * Bounding boxes locating the pixels within the image containing the finding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Bounding boxes locating the pixels within the image containing the finding. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\BoundingBox> + */ + public function getBoundingBoxes() + { + return $this->bounding_boxes; + } + + /** + * Bounding boxes locating the pixels within the image containing the finding. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1; + * @param \Google\Cloud\Dlp\V2\BoundingBox[] $var + * @return $this + */ + public function setBoundingBoxes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\BoundingBox::class); + $this->bounding_boxes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations.php new file mode 100644 index 000000000000..a3cf7209d6fb --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.ImageTransformations + */ +class ImageTransformations extends \Google\Protobuf\Internal\Message +{ + /** + * List of transforms to make. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; + */ + private $transforms; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation[] $transforms + * List of transforms to make. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * List of transforms to make. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; + * @return RepeatedField<\Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation> + */ + public function getTransforms() + { + return $this->transforms; + } + + /** + * List of transforms to make. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; + * @param \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation[] $var + * @return $this + */ + public function setTransforms($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation::class); + $this->transforms = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation.php new file mode 100644 index 000000000000..9f4d62ec5879 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation.php @@ -0,0 +1,198 @@ +google.privacy.dlp.v2.ImageTransformations.ImageTransformation + */ +class ImageTransformation extends \Google\Protobuf\Internal\Message +{ + /** + * The color to use when redacting content from an image. If not + * specified, the default is black. + * + * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; + */ + protected $redaction_color = null; + protected $target; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\SelectedInfoTypes $selected_info_types + * Apply transformation to the selected info_types. + * @type \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllInfoTypes $all_info_types + * Apply transformation to all findings not specified in other + * ImageTransformation's selected_info_types. Only one instance is allowed + * within the ImageTransformations message. + * @type \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllText $all_text + * Apply transformation to all text that doesn't match an infoType. Only + * one instance is allowed within the ImageTransformations message. + * @type \Google\Cloud\Dlp\V2\Color $redaction_color + * The color to use when redacting content from an image. If not + * specified, the default is black. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Apply transformation to the selected info_types. + * + * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4; + * @return \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\SelectedInfoTypes|null + */ + public function getSelectedInfoTypes() + { + return $this->readOneof(4); + } + + public function hasSelectedInfoTypes() + { + return $this->hasOneof(4); + } + + /** + * Apply transformation to the selected info_types. + * + * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4; + * @param \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\SelectedInfoTypes $var + * @return $this + */ + public function setSelectedInfoTypes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\SelectedInfoTypes::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Apply transformation to all findings not specified in other + * ImageTransformation's selected_info_types. Only one instance is allowed + * within the ImageTransformations message. + * + * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5; + * @return \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllInfoTypes|null + */ + public function getAllInfoTypes() + { + return $this->readOneof(5); + } + + public function hasAllInfoTypes() + { + return $this->hasOneof(5); + } + + /** + * Apply transformation to all findings not specified in other + * ImageTransformation's selected_info_types. Only one instance is allowed + * within the ImageTransformations message. + * + * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5; + * @param \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllInfoTypes $var + * @return $this + */ + public function setAllInfoTypes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllInfoTypes::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Apply transformation to all text that doesn't match an infoType. Only + * one instance is allowed within the ImageTransformations message. + * + * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6; + * @return \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllText|null + */ + public function getAllText() + { + return $this->readOneof(6); + } + + public function hasAllText() + { + return $this->hasOneof(6); + } + + /** + * Apply transformation to all text that doesn't match an infoType. Only + * one instance is allowed within the ImageTransformations message. + * + * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6; + * @param \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllText $var + * @return $this + */ + public function setAllText($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllText::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * The color to use when redacting content from an image. If not + * specified, the default is black. + * + * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; + * @return \Google\Cloud\Dlp\V2\Color|null + */ + public function getRedactionColor() + { + return $this->redaction_color; + } + + public function hasRedactionColor() + { + return isset($this->redaction_color); + } + + public function clearRedactionColor() + { + unset($this->redaction_color); + } + + /** + * The color to use when redacting content from an image. If not + * specified, the default is black. + * + * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; + * @param \Google\Cloud\Dlp\V2\Color $var + * @return $this + */ + public function setRedactionColor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Color::class); + $this->redaction_color = $var; + + return $this; + } + + /** + * @return string + */ + public function getTarget() + { + return $this->whichOneof("target"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllInfoTypes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllInfoTypes.php new file mode 100644 index 000000000000..2e5db4af91e2 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllInfoTypes.php @@ -0,0 +1,33 @@ +google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes + */ +class AllInfoTypes extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllText.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllText.php new file mode 100644 index 000000000000..341ff5aaa6f3 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllText.php @@ -0,0 +1,33 @@ +google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText + */ +class AllText extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/SelectedInfoTypes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/SelectedInfoTypes.php new file mode 100644 index 000000000000..2c59bc1e9bcb --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/SelectedInfoTypes.php @@ -0,0 +1,71 @@ +google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes + */ +class SelectedInfoTypes extends \Google\Protobuf\Internal\Message +{ + /** + * Required. InfoTypes to apply the transformation to. Required. Provided + * InfoType must be unique within the ImageTransformations message. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + private $info_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoType[] $info_types + * Required. InfoTypes to apply the transformation to. Required. Provided + * InfoType must be unique within the ImageTransformations message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. InfoTypes to apply the transformation to. Required. Provided + * InfoType must be unique within the ImageTransformations message. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoType> + */ + public function getInfoTypes() + { + return $this->info_types; + } + + /** + * Required. InfoTypes to apply the transformation to. Required. Provided + * InfoType must be unique within the ImageTransformations message. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\InfoType[] $var + * @return $this + */ + public function setInfoTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_types = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoType.php new file mode 100644 index 000000000000..eae50fcd3a2d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoType.php @@ -0,0 +1,173 @@ +google.privacy.dlp.v2.InfoType + */ +class InfoType extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the information type. Either a name of your choosing when + * creating a CustomInfoType, or one of the names listed + * at + * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference + * when specifying a built-in type. When sending Cloud DLP results to Data + * Catalog, infoType names should conform to the pattern + * `[A-Za-z0-9$_-]{1,64}`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Optional version name for this InfoType. + * + * Generated from protobuf field string version = 2; + */ + protected $version = ''; + /** + * Optional custom sensitivity for this InfoType. + * This only applies to data profiling. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + */ + protected $sensitivity_score = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Name of the information type. Either a name of your choosing when + * creating a CustomInfoType, or one of the names listed + * at + * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference + * when specifying a built-in type. When sending Cloud DLP results to Data + * Catalog, infoType names should conform to the pattern + * `[A-Za-z0-9$_-]{1,64}`. + * @type string $version + * Optional version name for this InfoType. + * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score + * Optional custom sensitivity for this InfoType. + * This only applies to data profiling. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Name of the information type. Either a name of your choosing when + * creating a CustomInfoType, or one of the names listed + * at + * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference + * when specifying a built-in type. When sending Cloud DLP results to Data + * Catalog, infoType names should conform to the pattern + * `[A-Za-z0-9$_-]{1,64}`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Name of the information type. Either a name of your choosing when + * creating a CustomInfoType, or one of the names listed + * at + * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference + * when specifying a built-in type. When sending Cloud DLP results to Data + * Catalog, infoType names should conform to the pattern + * `[A-Za-z0-9$_-]{1,64}`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional version name for this InfoType. + * + * Generated from protobuf field string version = 2; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Optional version name for this InfoType. + * + * Generated from protobuf field string version = 2; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Optional custom sensitivity for this InfoType. + * This only applies to data profiling. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + * @return \Google\Cloud\Dlp\V2\SensitivityScore|null + */ + public function getSensitivityScore() + { + return $this->sensitivity_score; + } + + public function hasSensitivityScore() + { + return isset($this->sensitivity_score); + } + + public function clearSensitivityScore() + { + unset($this->sensitivity_score); + } + + /** + * Optional custom sensitivity for this InfoType. + * This only applies to data profiling. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; + * @param \Google\Cloud\Dlp\V2\SensitivityScore $var + * @return $this + */ + public function setSensitivityScore($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); + $this->sensitivity_score = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory.php new file mode 100644 index 000000000000..bcc094a2381f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory.php @@ -0,0 +1,145 @@ +google.privacy.dlp.v2.InfoTypeCategory + */ +class InfoTypeCategory extends \Google\Protobuf\Internal\Message +{ + protected $category; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $location_category + * The region or country that issued the ID or document represented by the + * infoType. + * @type int $industry_category + * The group of relevant businesses where this infoType is commonly used + * @type int $type_category + * The class of identifiers where this infoType belongs + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The region or country that issued the ID or document represented by the + * infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1; + * @return int + */ + public function getLocationCategory() + { + return $this->readOneof(1); + } + + public function hasLocationCategory() + { + return $this->hasOneof(1); + } + + /** + * The region or country that issued the ID or document represented by the + * infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1; + * @param int $var + * @return $this + */ + public function setLocationCategory($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\InfoTypeCategory\LocationCategory::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The group of relevant businesses where this infoType is commonly used + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2; + * @return int + */ + public function getIndustryCategory() + { + return $this->readOneof(2); + } + + public function hasIndustryCategory() + { + return $this->hasOneof(2); + } + + /** + * The group of relevant businesses where this infoType is commonly used + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2; + * @param int $var + * @return $this + */ + public function setIndustryCategory($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\InfoTypeCategory\IndustryCategory::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The class of identifiers where this infoType belongs + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3; + * @return int + */ + public function getTypeCategory() + { + return $this->readOneof(3); + } + + public function hasTypeCategory() + { + return $this->hasOneof(3); + } + + /** + * The class of identifiers where this infoType belongs + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3; + * @param int $var + * @return $this + */ + public function setTypeCategory($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\InfoTypeCategory\TypeCategory::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getCategory() + { + return $this->whichOneof("category"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/IndustryCategory.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/IndustryCategory.php new file mode 100644 index 000000000000..d4d1a59601bf --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/IndustryCategory.php @@ -0,0 +1,69 @@ +google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory + */ +class IndustryCategory +{ + /** + * Unused industry + * + * Generated from protobuf enum INDUSTRY_UNSPECIFIED = 0; + */ + const INDUSTRY_UNSPECIFIED = 0; + /** + * The infoType is typically used in the finance industry. + * + * Generated from protobuf enum FINANCE = 1; + */ + const FINANCE = 1; + /** + * The infoType is typically used in the health industry. + * + * Generated from protobuf enum HEALTH = 2; + */ + const HEALTH = 2; + /** + * The infoType is typically used in the telecommunications industry. + * + * Generated from protobuf enum TELECOMMUNICATIONS = 3; + */ + const TELECOMMUNICATIONS = 3; + + private static $valueToName = [ + self::INDUSTRY_UNSPECIFIED => 'INDUSTRY_UNSPECIFIED', + self::FINANCE => 'FINANCE', + self::HEALTH => 'HEALTH', + self::TELECOMMUNICATIONS => 'TELECOMMUNICATIONS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/LocationCategory.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/LocationCategory.php new file mode 100644 index 000000000000..e1ab9fd06e88 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/LocationCategory.php @@ -0,0 +1,417 @@ +google.privacy.dlp.v2.InfoTypeCategory.LocationCategory + */ +class LocationCategory +{ + /** + * Unused location + * + * Generated from protobuf enum LOCATION_UNSPECIFIED = 0; + */ + const LOCATION_UNSPECIFIED = 0; + /** + * The infoType is not issued by or tied to a specific region, but is used + * almost everywhere. + * + * Generated from protobuf enum GLOBAL = 1; + */ + const PBGLOBAL = 1; + /** + * The infoType is typically used in Argentina. + * + * Generated from protobuf enum ARGENTINA = 2; + */ + const ARGENTINA = 2; + /** + * The infoType is typically used in Armenia. + * + * Generated from protobuf enum ARMENIA = 51; + */ + const ARMENIA = 51; + /** + * The infoType is typically used in Australia. + * + * Generated from protobuf enum AUSTRALIA = 3; + */ + const AUSTRALIA = 3; + /** + * The infoType is typically used in Austria. + * + * Generated from protobuf enum AUSTRIA = 53; + */ + const AUSTRIA = 53; + /** + * The infoType is typically used in Azerbaijan. + * + * Generated from protobuf enum AZERBAIJAN = 48; + */ + const AZERBAIJAN = 48; + /** + * The infoType is typically used in Belarus. + * + * Generated from protobuf enum BELARUS = 50; + */ + const BELARUS = 50; + /** + * The infoType is typically used in Belgium. + * + * Generated from protobuf enum BELGIUM = 4; + */ + const BELGIUM = 4; + /** + * The infoType is typically used in Brazil. + * + * Generated from protobuf enum BRAZIL = 5; + */ + const BRAZIL = 5; + /** + * The infoType is typically used in Canada. + * + * Generated from protobuf enum CANADA = 6; + */ + const CANADA = 6; + /** + * The infoType is typically used in Chile. + * + * Generated from protobuf enum CHILE = 7; + */ + const CHILE = 7; + /** + * The infoType is typically used in China. + * + * Generated from protobuf enum CHINA = 8; + */ + const CHINA = 8; + /** + * The infoType is typically used in Colombia. + * + * Generated from protobuf enum COLOMBIA = 9; + */ + const COLOMBIA = 9; + /** + * The infoType is typically used in Croatia. + * + * Generated from protobuf enum CROATIA = 42; + */ + const CROATIA = 42; + /** + * The infoType is typically used in Czechia. + * + * Generated from protobuf enum CZECHIA = 52; + */ + const CZECHIA = 52; + /** + * The infoType is typically used in Denmark. + * + * Generated from protobuf enum DENMARK = 10; + */ + const DENMARK = 10; + /** + * The infoType is typically used in France. + * + * Generated from protobuf enum FRANCE = 11; + */ + const FRANCE = 11; + /** + * The infoType is typically used in Finland. + * + * Generated from protobuf enum FINLAND = 12; + */ + const FINLAND = 12; + /** + * The infoType is typically used in Germany. + * + * Generated from protobuf enum GERMANY = 13; + */ + const GERMANY = 13; + /** + * The infoType is typically used in Hong Kong. + * + * Generated from protobuf enum HONG_KONG = 14; + */ + const HONG_KONG = 14; + /** + * The infoType is typically used in India. + * + * Generated from protobuf enum INDIA = 15; + */ + const INDIA = 15; + /** + * The infoType is typically used in Indonesia. + * + * Generated from protobuf enum INDONESIA = 16; + */ + const INDONESIA = 16; + /** + * The infoType is typically used in Ireland. + * + * Generated from protobuf enum IRELAND = 17; + */ + const IRELAND = 17; + /** + * The infoType is typically used in Israel. + * + * Generated from protobuf enum ISRAEL = 18; + */ + const ISRAEL = 18; + /** + * The infoType is typically used in Italy. + * + * Generated from protobuf enum ITALY = 19; + */ + const ITALY = 19; + /** + * The infoType is typically used in Japan. + * + * Generated from protobuf enum JAPAN = 20; + */ + const JAPAN = 20; + /** + * The infoType is typically used in Kazakhstan. + * + * Generated from protobuf enum KAZAKHSTAN = 47; + */ + const KAZAKHSTAN = 47; + /** + * The infoType is typically used in Korea. + * + * Generated from protobuf enum KOREA = 21; + */ + const KOREA = 21; + /** + * The infoType is typically used in Mexico. + * + * Generated from protobuf enum MEXICO = 22; + */ + const MEXICO = 22; + /** + * The infoType is typically used in the Netherlands. + * + * Generated from protobuf enum THE_NETHERLANDS = 23; + */ + const THE_NETHERLANDS = 23; + /** + * The infoType is typically used in New Zealand. + * + * Generated from protobuf enum NEW_ZEALAND = 41; + */ + const NEW_ZEALAND = 41; + /** + * The infoType is typically used in Norway. + * + * Generated from protobuf enum NORWAY = 24; + */ + const NORWAY = 24; + /** + * The infoType is typically used in Paraguay. + * + * Generated from protobuf enum PARAGUAY = 25; + */ + const PARAGUAY = 25; + /** + * The infoType is typically used in Peru. + * + * Generated from protobuf enum PERU = 26; + */ + const PERU = 26; + /** + * The infoType is typically used in Poland. + * + * Generated from protobuf enum POLAND = 27; + */ + const POLAND = 27; + /** + * The infoType is typically used in Portugal. + * + * Generated from protobuf enum PORTUGAL = 28; + */ + const PORTUGAL = 28; + /** + * The infoType is typically used in Russia. + * + * Generated from protobuf enum RUSSIA = 44; + */ + const RUSSIA = 44; + /** + * The infoType is typically used in Singapore. + * + * Generated from protobuf enum SINGAPORE = 29; + */ + const SINGAPORE = 29; + /** + * The infoType is typically used in South Africa. + * + * Generated from protobuf enum SOUTH_AFRICA = 30; + */ + const SOUTH_AFRICA = 30; + /** + * The infoType is typically used in Spain. + * + * Generated from protobuf enum SPAIN = 31; + */ + const SPAIN = 31; + /** + * The infoType is typically used in Sweden. + * + * Generated from protobuf enum SWEDEN = 32; + */ + const SWEDEN = 32; + /** + * The infoType is typically used in Switzerland. + * + * Generated from protobuf enum SWITZERLAND = 43; + */ + const SWITZERLAND = 43; + /** + * The infoType is typically used in Taiwan. + * + * Generated from protobuf enum TAIWAN = 33; + */ + const TAIWAN = 33; + /** + * The infoType is typically used in Thailand. + * + * Generated from protobuf enum THAILAND = 34; + */ + const THAILAND = 34; + /** + * The infoType is typically used in Turkey. + * + * Generated from protobuf enum TURKEY = 35; + */ + const TURKEY = 35; + /** + * The infoType is typically used in Ukraine. + * + * Generated from protobuf enum UKRAINE = 45; + */ + const UKRAINE = 45; + /** + * The infoType is typically used in the United Kingdom. + * + * Generated from protobuf enum UNITED_KINGDOM = 36; + */ + const UNITED_KINGDOM = 36; + /** + * The infoType is typically used in the United States. + * + * Generated from protobuf enum UNITED_STATES = 37; + */ + const UNITED_STATES = 37; + /** + * The infoType is typically used in Uruguay. + * + * Generated from protobuf enum URUGUAY = 38; + */ + const URUGUAY = 38; + /** + * The infoType is typically used in Uzbekistan. + * + * Generated from protobuf enum UZBEKISTAN = 46; + */ + const UZBEKISTAN = 46; + /** + * The infoType is typically used in Venezuela. + * + * Generated from protobuf enum VENEZUELA = 39; + */ + const VENEZUELA = 39; + /** + * The infoType is typically used in Google internally. + * + * Generated from protobuf enum INTERNAL = 40; + */ + const INTERNAL = 40; + + private static $valueToName = [ + self::LOCATION_UNSPECIFIED => 'LOCATION_UNSPECIFIED', + self::PBGLOBAL => 'GLOBAL', + self::ARGENTINA => 'ARGENTINA', + self::ARMENIA => 'ARMENIA', + self::AUSTRALIA => 'AUSTRALIA', + self::AUSTRIA => 'AUSTRIA', + self::AZERBAIJAN => 'AZERBAIJAN', + self::BELARUS => 'BELARUS', + self::BELGIUM => 'BELGIUM', + self::BRAZIL => 'BRAZIL', + self::CANADA => 'CANADA', + self::CHILE => 'CHILE', + self::CHINA => 'CHINA', + self::COLOMBIA => 'COLOMBIA', + self::CROATIA => 'CROATIA', + self::CZECHIA => 'CZECHIA', + self::DENMARK => 'DENMARK', + self::FRANCE => 'FRANCE', + self::FINLAND => 'FINLAND', + self::GERMANY => 'GERMANY', + self::HONG_KONG => 'HONG_KONG', + self::INDIA => 'INDIA', + self::INDONESIA => 'INDONESIA', + self::IRELAND => 'IRELAND', + self::ISRAEL => 'ISRAEL', + self::ITALY => 'ITALY', + self::JAPAN => 'JAPAN', + self::KAZAKHSTAN => 'KAZAKHSTAN', + self::KOREA => 'KOREA', + self::MEXICO => 'MEXICO', + self::THE_NETHERLANDS => 'THE_NETHERLANDS', + self::NEW_ZEALAND => 'NEW_ZEALAND', + self::NORWAY => 'NORWAY', + self::PARAGUAY => 'PARAGUAY', + self::PERU => 'PERU', + self::POLAND => 'POLAND', + self::PORTUGAL => 'PORTUGAL', + self::RUSSIA => 'RUSSIA', + self::SINGAPORE => 'SINGAPORE', + self::SOUTH_AFRICA => 'SOUTH_AFRICA', + self::SPAIN => 'SPAIN', + self::SWEDEN => 'SWEDEN', + self::SWITZERLAND => 'SWITZERLAND', + self::TAIWAN => 'TAIWAN', + self::THAILAND => 'THAILAND', + self::TURKEY => 'TURKEY', + self::UKRAINE => 'UKRAINE', + self::UNITED_KINGDOM => 'UNITED_KINGDOM', + self::UNITED_STATES => 'UNITED_STATES', + self::URUGUAY => 'URUGUAY', + self::UZBEKISTAN => 'UZBEKISTAN', + self::VENEZUELA => 'VENEZUELA', + self::INTERNAL => 'INTERNAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/TypeCategory.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/TypeCategory.php new file mode 100644 index 000000000000..f1bf5652db54 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/TypeCategory.php @@ -0,0 +1,108 @@ +google.privacy.dlp.v2.InfoTypeCategory.TypeCategory + */ +class TypeCategory +{ + /** + * Unused type + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Personally identifiable information, for example, a + * name or phone number + * + * Generated from protobuf enum PII = 1; + */ + const PII = 1; + /** + * Personally identifiable information that is especially sensitive, for + * example, a passport number. + * + * Generated from protobuf enum SPII = 2; + */ + const SPII = 2; + /** + * Attributes that can partially identify someone, especially in + * combination with other attributes, like age, height, and gender. + * + * Generated from protobuf enum DEMOGRAPHIC = 3; + */ + const DEMOGRAPHIC = 3; + /** + * Confidential or secret information, for example, a password. + * + * Generated from protobuf enum CREDENTIAL = 4; + */ + const CREDENTIAL = 4; + /** + * An identification document issued by a government. + * + * Generated from protobuf enum GOVERNMENT_ID = 5; + */ + const GOVERNMENT_ID = 5; + /** + * A document, for example, a resume or source code. + * + * Generated from protobuf enum DOCUMENT = 6; + */ + const DOCUMENT = 6; + /** + * Information that is not sensitive on its own, but provides details about + * the circumstances surrounding an entity or an event. + * + * Generated from protobuf enum CONTEXTUAL_INFORMATION = 7; + */ + const CONTEXTUAL_INFORMATION = 7; + /** + * Category for `CustomInfoType` types. + * + * Generated from protobuf enum CUSTOM = 8; + */ + const CUSTOM = 8; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::PII => 'PII', + self::SPII => 'SPII', + self::DEMOGRAPHIC => 'DEMOGRAPHIC', + self::CREDENTIAL => 'CREDENTIAL', + self::GOVERNMENT_ID => 'GOVERNMENT_ID', + self::DOCUMENT => 'DOCUMENT', + self::CONTEXTUAL_INFORMATION => 'CONTEXTUAL_INFORMATION', + self::CUSTOM => 'CUSTOM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription.php new file mode 100644 index 000000000000..ec4567a89117 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription.php @@ -0,0 +1,447 @@ +google.privacy.dlp.v2.InfoTypeDescription + */ +class InfoTypeDescription extends \Google\Protobuf\Internal\Message +{ + /** + * Internal name of the infoType. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Human readable form of the infoType name. + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * Which parts of the API supports this InfoType. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3; + */ + private $supported_by; + /** + * Description of the infotype. Translated when language is provided in the + * request. + * + * Generated from protobuf field string description = 4; + */ + protected $description = ''; + /** + * Locations at which this feature can be used. May change over time. + * + * Generated from protobuf field .google.privacy.dlp.v2.LocationSupport location_support = 6; + */ + protected $location_support = null; + /** + * A sample that is a true positive for this infoType. + * + * Generated from protobuf field string example = 8; + */ + protected $example = ''; + /** + * A list of available versions for the infotype. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.VersionDescription versions = 9; + */ + private $versions; + /** + * The category of the infoType. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10; + */ + private $categories; + /** + * The default sensitivity of the infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 11; + */ + protected $sensitivity_score = null; + /** + * If this field is set, this infoType is a general infoType and these + * specific infoTypes are contained within it. + * General infoTypes are infoTypes that encompass multiple specific infoTypes. + * For example, the "GEOGRAPHIC_DATA" general infoType would have set for this + * field "LOCATION", "LOCATION_COORDINATES", and "STREET_ADDRESS". + * + * Generated from protobuf field repeated string specific_info_types = 12; + */ + private $specific_info_types; + /** + * The launch status of the infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeDescription.InfoTypeLaunchStatus launch_status = 13; + */ + protected $launch_status = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Internal name of the infoType. + * @type string $display_name + * Human readable form of the infoType name. + * @type int[] $supported_by + * Which parts of the API supports this InfoType. + * @type string $description + * Description of the infotype. Translated when language is provided in the + * request. + * @type \Google\Cloud\Dlp\V2\LocationSupport $location_support + * Locations at which this feature can be used. May change over time. + * @type string $example + * A sample that is a true positive for this infoType. + * @type \Google\Cloud\Dlp\V2\VersionDescription[] $versions + * A list of available versions for the infotype. + * @type \Google\Cloud\Dlp\V2\InfoTypeCategory[] $categories + * The category of the infoType. + * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score + * The default sensitivity of the infoType. + * @type string[] $specific_info_types + * If this field is set, this infoType is a general infoType and these + * specific infoTypes are contained within it. + * General infoTypes are infoTypes that encompass multiple specific infoTypes. + * For example, the "GEOGRAPHIC_DATA" general infoType would have set for this + * field "LOCATION", "LOCATION_COORDINATES", and "STREET_ADDRESS". + * @type int $launch_status + * The launch status of the infoType. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Internal name of the infoType. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Internal name of the infoType. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Human readable form of the infoType name. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Human readable form of the infoType name. + * + * Generated from protobuf field string display_name = 2; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Which parts of the API supports this InfoType. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3; + * @return RepeatedField + */ + public function getSupportedBy() + { + return $this->supported_by; + } + + /** + * Which parts of the API supports this InfoType. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3; + * @param int[] $var + * @return $this + */ + public function setSupportedBy($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\InfoTypeSupportedBy::class); + $this->supported_by = $arr; + + return $this; + } + + /** + * Description of the infotype. Translated when language is provided in the + * request. + * + * Generated from protobuf field string description = 4; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of the infotype. Translated when language is provided in the + * request. + * + * Generated from protobuf field string description = 4; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Locations at which this feature can be used. May change over time. + * + * Generated from protobuf field .google.privacy.dlp.v2.LocationSupport location_support = 6; + * @return \Google\Cloud\Dlp\V2\LocationSupport|null + */ + public function getLocationSupport() + { + return $this->location_support; + } + + public function hasLocationSupport() + { + return isset($this->location_support); + } + + public function clearLocationSupport() + { + unset($this->location_support); + } + + /** + * Locations at which this feature can be used. May change over time. + * + * Generated from protobuf field .google.privacy.dlp.v2.LocationSupport location_support = 6; + * @param \Google\Cloud\Dlp\V2\LocationSupport $var + * @return $this + */ + public function setLocationSupport($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\LocationSupport::class); + $this->location_support = $var; + + return $this; + } + + /** + * A sample that is a true positive for this infoType. + * + * Generated from protobuf field string example = 8; + * @return string + */ + public function getExample() + { + return $this->example; + } + + /** + * A sample that is a true positive for this infoType. + * + * Generated from protobuf field string example = 8; + * @param string $var + * @return $this + */ + public function setExample($var) + { + GPBUtil::checkString($var, True); + $this->example = $var; + + return $this; + } + + /** + * A list of available versions for the infotype. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.VersionDescription versions = 9; + * @return RepeatedField<\Google\Cloud\Dlp\V2\VersionDescription> + */ + public function getVersions() + { + return $this->versions; + } + + /** + * A list of available versions for the infotype. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.VersionDescription versions = 9; + * @param \Google\Cloud\Dlp\V2\VersionDescription[] $var + * @return $this + */ + public function setVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\VersionDescription::class); + $this->versions = $arr; + + return $this; + } + + /** + * The category of the infoType. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoTypeCategory> + */ + public function getCategories() + { + return $this->categories; + } + + /** + * The category of the infoType. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10; + * @param \Google\Cloud\Dlp\V2\InfoTypeCategory[] $var + * @return $this + */ + public function setCategories($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoTypeCategory::class); + $this->categories = $arr; + + return $this; + } + + /** + * The default sensitivity of the infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 11; + * @return \Google\Cloud\Dlp\V2\SensitivityScore|null + */ + public function getSensitivityScore() + { + return $this->sensitivity_score; + } + + public function hasSensitivityScore() + { + return isset($this->sensitivity_score); + } + + public function clearSensitivityScore() + { + unset($this->sensitivity_score); + } + + /** + * The default sensitivity of the infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 11; + * @param \Google\Cloud\Dlp\V2\SensitivityScore $var + * @return $this + */ + public function setSensitivityScore($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); + $this->sensitivity_score = $var; + + return $this; + } + + /** + * If this field is set, this infoType is a general infoType and these + * specific infoTypes are contained within it. + * General infoTypes are infoTypes that encompass multiple specific infoTypes. + * For example, the "GEOGRAPHIC_DATA" general infoType would have set for this + * field "LOCATION", "LOCATION_COORDINATES", and "STREET_ADDRESS". + * + * Generated from protobuf field repeated string specific_info_types = 12; + * @return RepeatedField + */ + public function getSpecificInfoTypes() + { + return $this->specific_info_types; + } + + /** + * If this field is set, this infoType is a general infoType and these + * specific infoTypes are contained within it. + * General infoTypes are infoTypes that encompass multiple specific infoTypes. + * For example, the "GEOGRAPHIC_DATA" general infoType would have set for this + * field "LOCATION", "LOCATION_COORDINATES", and "STREET_ADDRESS". + * + * Generated from protobuf field repeated string specific_info_types = 12; + * @param string[] $var + * @return $this + */ + public function setSpecificInfoTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->specific_info_types = $arr; + + return $this; + } + + /** + * The launch status of the infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeDescription.InfoTypeLaunchStatus launch_status = 13; + * @return int + */ + public function getLaunchStatus() + { + return $this->launch_status; + } + + /** + * The launch status of the infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeDescription.InfoTypeLaunchStatus launch_status = 13; + * @param int $var + * @return $this + */ + public function setLaunchStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\InfoTypeDescription\InfoTypeLaunchStatus::class); + $this->launch_status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription/InfoTypeLaunchStatus.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription/InfoTypeLaunchStatus.php new file mode 100644 index 000000000000..910deab3419c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription/InfoTypeLaunchStatus.php @@ -0,0 +1,68 @@ +google.privacy.dlp.v2.InfoTypeDescription.InfoTypeLaunchStatus + */ +class InfoTypeLaunchStatus +{ + /** + * Unspecified. + * + * Generated from protobuf enum INFO_TYPE_LAUNCH_STATUS_UNSPECIFIED = 0; + */ + const INFO_TYPE_LAUNCH_STATUS_UNSPECIFIED = 0; + /** + * InfoType is generally available. + * + * Generated from protobuf enum GENERAL_AVAILABILITY = 1; + */ + const GENERAL_AVAILABILITY = 1; + /** + * InfoType is in public preview. + * + * Generated from protobuf enum PUBLIC_PREVIEW = 2; + */ + const PUBLIC_PREVIEW = 2; + /** + * InfoType is in private preview. + * + * Generated from protobuf enum PRIVATE_PREVIEW = 3; + */ + const PRIVATE_PREVIEW = 3; + + private static $valueToName = [ + self::INFO_TYPE_LAUNCH_STATUS_UNSPECIFIED => 'INFO_TYPE_LAUNCH_STATUS_UNSPECIFIED', + self::GENERAL_AVAILABILITY => 'GENERAL_AVAILABILITY', + self::PUBLIC_PREVIEW => 'PUBLIC_PREVIEW', + self::PRIVATE_PREVIEW => 'PRIVATE_PREVIEW', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeStats.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeStats.php new file mode 100644 index 000000000000..7b49cdfb6a77 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeStats.php @@ -0,0 +1,111 @@ +google.privacy.dlp.v2.InfoTypeStats + */ +class InfoTypeStats extends \Google\Protobuf\Internal\Message +{ + /** + * The type of finding this stat is for. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + */ + protected $info_type = null; + /** + * Number of findings for this infoType. + * + * Generated from protobuf field int64 count = 2; + */ + protected $count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoType $info_type + * The type of finding this stat is for. + * @type int|string $count + * Number of findings for this infoType. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The type of finding this stat is for. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @return \Google\Cloud\Dlp\V2\InfoType|null + */ + public function getInfoType() + { + return $this->info_type; + } + + public function hasInfoType() + { + return isset($this->info_type); + } + + public function clearInfoType() + { + unset($this->info_type); + } + + /** + * The type of finding this stat is for. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @param \Google\Cloud\Dlp\V2\InfoType $var + * @return $this + */ + public function setInfoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_type = $var; + + return $this; + } + + /** + * Number of findings for this infoType. + * + * Generated from protobuf field int64 count = 2; + * @return int|string + */ + public function getCount() + { + return $this->count; + } + + /** + * Number of findings for this infoType. + * + * Generated from protobuf field int64 count = 2; + * @param int|string $var + * @return $this + */ + public function setCount($var) + { + GPBUtil::checkInt64($var); + $this->count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSummary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSummary.php new file mode 100644 index 000000000000..e32d358bb1f7 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSummary.php @@ -0,0 +1,118 @@ +google.privacy.dlp.v2.InfoTypeSummary + */ +class InfoTypeSummary extends \Google\Protobuf\Internal\Message +{ + /** + * The infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + */ + protected $info_type = null; + /** + * Not populated for predicted infotypes. + * + * Generated from protobuf field int32 estimated_prevalence = 2 [deprecated = true]; + * @deprecated + */ + protected $estimated_prevalence = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoType $info_type + * The infoType. + * @type int $estimated_prevalence + * Not populated for predicted infotypes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @return \Google\Cloud\Dlp\V2\InfoType|null + */ + public function getInfoType() + { + return $this->info_type; + } + + public function hasInfoType() + { + return isset($this->info_type); + } + + public function clearInfoType() + { + unset($this->info_type); + } + + /** + * The infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @param \Google\Cloud\Dlp\V2\InfoType $var + * @return $this + */ + public function setInfoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_type = $var; + + return $this; + } + + /** + * Not populated for predicted infotypes. + * + * Generated from protobuf field int32 estimated_prevalence = 2 [deprecated = true]; + * @return int + * @deprecated + */ + public function getEstimatedPrevalence() + { + if ($this->estimated_prevalence !== 0) { + @trigger_error('estimated_prevalence is deprecated.', E_USER_DEPRECATED); + } + return $this->estimated_prevalence; + } + + /** + * Not populated for predicted infotypes. + * + * Generated from protobuf field int32 estimated_prevalence = 2 [deprecated = true]; + * @param int $var + * @return $this + * @deprecated + */ + public function setEstimatedPrevalence($var) + { + @trigger_error('estimated_prevalence is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkInt32($var); + $this->estimated_prevalence = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSupportedBy.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSupportedBy.php new file mode 100644 index 000000000000..57ea0fb34dad --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSupportedBy.php @@ -0,0 +1,61 @@ +google.privacy.dlp.v2.InfoTypeSupportedBy + */ +class InfoTypeSupportedBy +{ + /** + * Unused. + * + * Generated from protobuf enum ENUM_TYPE_UNSPECIFIED = 0; + */ + const ENUM_TYPE_UNSPECIFIED = 0; + /** + * Supported by the inspect operations. + * + * Generated from protobuf enum INSPECT = 1; + */ + const INSPECT = 1; + /** + * Supported by the risk analysis operations. + * + * Generated from protobuf enum RISK_ANALYSIS = 2; + */ + const RISK_ANALYSIS = 2; + + private static $valueToName = [ + self::ENUM_TYPE_UNSPECIFIED => 'ENUM_TYPE_UNSPECIFIED', + self::INSPECT => 'INSPECT', + self::RISK_ANALYSIS => 'RISK_ANALYSIS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations.php new file mode 100644 index 000000000000..785baf9262c6 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations.php @@ -0,0 +1,74 @@ +google.privacy.dlp.v2.InfoTypeTransformations + */ +class InfoTypeTransformations extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Transformation for each infoType. Cannot specify more than one + * for a given infoType. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $transformations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoTypeTransformations\InfoTypeTransformation[] $transformations + * Required. Transformation for each infoType. Cannot specify more than one + * for a given infoType. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Transformation for each infoType. Cannot specify more than one + * for a given infoType. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoTypeTransformations\InfoTypeTransformation> + */ + public function getTransformations() + { + return $this->transformations; + } + + /** + * Required. Transformation for each infoType. Cannot specify more than one + * for a given infoType. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\InfoTypeTransformations\InfoTypeTransformation[] $var + * @return $this + */ + public function setTransformations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoTypeTransformations\InfoTypeTransformation::class); + $this->transformations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations/InfoTypeTransformation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations/InfoTypeTransformation.php new file mode 100644 index 000000000000..04421d169dd5 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations/InfoTypeTransformation.php @@ -0,0 +1,120 @@ +google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation + */ +class InfoTypeTransformation extends \Google\Protobuf\Internal\Message +{ + /** + * InfoTypes to apply the transformation to. An empty list will cause + * this transformation to apply to all findings that correspond to + * infoTypes that were requested in `InspectConfig`. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + private $info_types; + /** + * Required. Primitive transformation to apply to the infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $primitive_transformation = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoType[] $info_types + * InfoTypes to apply the transformation to. An empty list will cause + * this transformation to apply to all findings that correspond to + * infoTypes that were requested in `InspectConfig`. + * @type \Google\Cloud\Dlp\V2\PrimitiveTransformation $primitive_transformation + * Required. Primitive transformation to apply to the infoType. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * InfoTypes to apply the transformation to. An empty list will cause + * this transformation to apply to all findings that correspond to + * infoTypes that were requested in `InspectConfig`. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoType> + */ + public function getInfoTypes() + { + return $this->info_types; + } + + /** + * InfoTypes to apply the transformation to. An empty list will cause + * this transformation to apply to all findings that correspond to + * infoTypes that were requested in `InspectConfig`. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + * @param \Google\Cloud\Dlp\V2\InfoType[] $var + * @return $this + */ + public function setInfoTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_types = $arr; + + return $this; + } + + /** + * Required. Primitive transformation to apply to the infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\PrimitiveTransformation|null + */ + public function getPrimitiveTransformation() + { + return $this->primitive_transformation; + } + + public function hasPrimitiveTransformation() + { + return isset($this->primitive_transformation); + } + + public function clearPrimitiveTransformation() + { + unset($this->primitive_transformation); + } + + /** + * Required. Primitive transformation to apply to the infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\PrimitiveTransformation $var + * @return $this + */ + public function setPrimitiveTransformation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrimitiveTransformation::class); + $this->primitive_transformation = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig.php new file mode 100644 index 000000000000..7be20a09f418 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig.php @@ -0,0 +1,499 @@ +google.privacy.dlp.v2.InspectConfig + */ +class InspectConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Restricts what info_types to look for. The values must correspond to + * InfoType values returned by ListInfoTypes or listed at + * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference. + * When no InfoTypes or CustomInfoTypes are specified in a request, the + * system may automatically choose a default list of detectors to run, which + * may change over time. + * If you need precise control and predictability as to what detectors are + * run you should specify specific InfoTypes listed in the reference, + * otherwise a default list will be used, which may change over time. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + private $info_types; + /** + * Only returns findings equal to or above this threshold. The default is + * POSSIBLE. + * In general, the highest likelihood setting yields the fewest findings in + * results and the lowest chance of a false positive. For more information, + * see [Match + * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; + */ + protected $min_likelihood = 0; + /** + * Minimum likelihood per infotype. For each infotype, a user can specify a + * minimum likelihood. The system only returns a finding if its likelihood is + * above this threshold. If this field is not set, the system uses the + * InspectConfig min_likelihood. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood min_likelihood_per_info_type = 11; + */ + private $min_likelihood_per_info_type; + /** + * Configuration to control the number of findings returned. + * This is not used for data profiling. + * When redacting sensitive data from images, finding limits don't apply. They + * can cause unexpected or inconsistent results, where only some data is + * redacted. Don't include finding limits in + * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage] + * requests. Otherwise, Cloud DLP returns an error. + * When set within an + * [InspectJobConfig][google.privacy.dlp.v2.InspectJobConfig], the specified + * maximum values aren't hard limits. If an inspection job reaches these + * limits, the job ends gradually, not abruptly. Therefore, the actual number + * of findings that Cloud DLP returns can be multiple times higher than these + * maximum values. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3; + */ + protected $limits = null; + /** + * When true, a contextual quote from the data that triggered a finding is + * included in the response; see + * [Finding.quote][google.privacy.dlp.v2.Finding.quote]. This is not used for + * data profiling. + * + * Generated from protobuf field bool include_quote = 4; + */ + protected $include_quote = false; + /** + * When true, excludes type information of the findings. + * This is not used for data profiling. + * + * Generated from protobuf field bool exclude_info_types = 5; + */ + protected $exclude_info_types = false; + /** + * CustomInfoTypes provided by the user. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes + * to learn more. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; + */ + private $custom_info_types; + /** + * Deprecated and unused. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentOption content_options = 8; + */ + private $content_options; + /** + * Set of rules to apply to the findings for this InspectConfig. + * Exclusion rules, contained in the set are executed in the end, other + * rules are executed in the order they are specified for each info type. Not + * supported for the `metadata_key_value_expression` CustomInfoType. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + */ + private $rule_set; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoType[] $info_types + * Restricts what info_types to look for. The values must correspond to + * InfoType values returned by ListInfoTypes or listed at + * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference. + * When no InfoTypes or CustomInfoTypes are specified in a request, the + * system may automatically choose a default list of detectors to run, which + * may change over time. + * If you need precise control and predictability as to what detectors are + * run you should specify specific InfoTypes listed in the reference, + * otherwise a default list will be used, which may change over time. + * @type int $min_likelihood + * Only returns findings equal to or above this threshold. The default is + * POSSIBLE. + * In general, the highest likelihood setting yields the fewest findings in + * results and the lowest chance of a false positive. For more information, + * see [Match + * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). + * @type \Google\Cloud\Dlp\V2\InspectConfig\InfoTypeLikelihood[] $min_likelihood_per_info_type + * Minimum likelihood per infotype. For each infotype, a user can specify a + * minimum likelihood. The system only returns a finding if its likelihood is + * above this threshold. If this field is not set, the system uses the + * InspectConfig min_likelihood. + * @type \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits $limits + * Configuration to control the number of findings returned. + * This is not used for data profiling. + * When redacting sensitive data from images, finding limits don't apply. They + * can cause unexpected or inconsistent results, where only some data is + * redacted. Don't include finding limits in + * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage] + * requests. Otherwise, Cloud DLP returns an error. + * When set within an + * [InspectJobConfig][google.privacy.dlp.v2.InspectJobConfig], the specified + * maximum values aren't hard limits. If an inspection job reaches these + * limits, the job ends gradually, not abruptly. Therefore, the actual number + * of findings that Cloud DLP returns can be multiple times higher than these + * maximum values. + * @type bool $include_quote + * When true, a contextual quote from the data that triggered a finding is + * included in the response; see + * [Finding.quote][google.privacy.dlp.v2.Finding.quote]. This is not used for + * data profiling. + * @type bool $exclude_info_types + * When true, excludes type information of the findings. + * This is not used for data profiling. + * @type \Google\Cloud\Dlp\V2\CustomInfoType[] $custom_info_types + * CustomInfoTypes provided by the user. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes + * to learn more. + * @type int[] $content_options + * Deprecated and unused. + * @type \Google\Cloud\Dlp\V2\InspectionRuleSet[] $rule_set + * Set of rules to apply to the findings for this InspectConfig. + * Exclusion rules, contained in the set are executed in the end, other + * rules are executed in the order they are specified for each info type. Not + * supported for the `metadata_key_value_expression` CustomInfoType. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Restricts what info_types to look for. The values must correspond to + * InfoType values returned by ListInfoTypes or listed at + * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference. + * When no InfoTypes or CustomInfoTypes are specified in a request, the + * system may automatically choose a default list of detectors to run, which + * may change over time. + * If you need precise control and predictability as to what detectors are + * run you should specify specific InfoTypes listed in the reference, + * otherwise a default list will be used, which may change over time. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoType> + */ + public function getInfoTypes() + { + return $this->info_types; + } + + /** + * Restricts what info_types to look for. The values must correspond to + * InfoType values returned by ListInfoTypes or listed at + * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference. + * When no InfoTypes or CustomInfoTypes are specified in a request, the + * system may automatically choose a default list of detectors to run, which + * may change over time. + * If you need precise control and predictability as to what detectors are + * run you should specify specific InfoTypes listed in the reference, + * otherwise a default list will be used, which may change over time. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + * @param \Google\Cloud\Dlp\V2\InfoType[] $var + * @return $this + */ + public function setInfoTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_types = $arr; + + return $this; + } + + /** + * Only returns findings equal to or above this threshold. The default is + * POSSIBLE. + * In general, the highest likelihood setting yields the fewest findings in + * results and the lowest chance of a false positive. For more information, + * see [Match + * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; + * @return int + */ + public function getMinLikelihood() + { + return $this->min_likelihood; + } + + /** + * Only returns findings equal to or above this threshold. The default is + * POSSIBLE. + * In general, the highest likelihood setting yields the fewest findings in + * results and the lowest chance of a false positive. For more information, + * see [Match + * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; + * @param int $var + * @return $this + */ + public function setMinLikelihood($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); + $this->min_likelihood = $var; + + return $this; + } + + /** + * Minimum likelihood per infotype. For each infotype, a user can specify a + * minimum likelihood. The system only returns a finding if its likelihood is + * above this threshold. If this field is not set, the system uses the + * InspectConfig min_likelihood. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood min_likelihood_per_info_type = 11; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InspectConfig\InfoTypeLikelihood> + */ + public function getMinLikelihoodPerInfoType() + { + return $this->min_likelihood_per_info_type; + } + + /** + * Minimum likelihood per infotype. For each infotype, a user can specify a + * minimum likelihood. The system only returns a finding if its likelihood is + * above this threshold. If this field is not set, the system uses the + * InspectConfig min_likelihood. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood min_likelihood_per_info_type = 11; + * @param \Google\Cloud\Dlp\V2\InspectConfig\InfoTypeLikelihood[] $var + * @return $this + */ + public function setMinLikelihoodPerInfoType($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InspectConfig\InfoTypeLikelihood::class); + $this->min_likelihood_per_info_type = $arr; + + return $this; + } + + /** + * Configuration to control the number of findings returned. + * This is not used for data profiling. + * When redacting sensitive data from images, finding limits don't apply. They + * can cause unexpected or inconsistent results, where only some data is + * redacted. Don't include finding limits in + * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage] + * requests. Otherwise, Cloud DLP returns an error. + * When set within an + * [InspectJobConfig][google.privacy.dlp.v2.InspectJobConfig], the specified + * maximum values aren't hard limits. If an inspection job reaches these + * limits, the job ends gradually, not abruptly. Therefore, the actual number + * of findings that Cloud DLP returns can be multiple times higher than these + * maximum values. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3; + * @return \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits|null + */ + public function getLimits() + { + return $this->limits; + } + + public function hasLimits() + { + return isset($this->limits); + } + + public function clearLimits() + { + unset($this->limits); + } + + /** + * Configuration to control the number of findings returned. + * This is not used for data profiling. + * When redacting sensitive data from images, finding limits don't apply. They + * can cause unexpected or inconsistent results, where only some data is + * redacted. Don't include finding limits in + * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage] + * requests. Otherwise, Cloud DLP returns an error. + * When set within an + * [InspectJobConfig][google.privacy.dlp.v2.InspectJobConfig], the specified + * maximum values aren't hard limits. If an inspection job reaches these + * limits, the job ends gradually, not abruptly. Therefore, the actual number + * of findings that Cloud DLP returns can be multiple times higher than these + * maximum values. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3; + * @param \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits $var + * @return $this + */ + public function setLimits($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits::class); + $this->limits = $var; + + return $this; + } + + /** + * When true, a contextual quote from the data that triggered a finding is + * included in the response; see + * [Finding.quote][google.privacy.dlp.v2.Finding.quote]. This is not used for + * data profiling. + * + * Generated from protobuf field bool include_quote = 4; + * @return bool + */ + public function getIncludeQuote() + { + return $this->include_quote; + } + + /** + * When true, a contextual quote from the data that triggered a finding is + * included in the response; see + * [Finding.quote][google.privacy.dlp.v2.Finding.quote]. This is not used for + * data profiling. + * + * Generated from protobuf field bool include_quote = 4; + * @param bool $var + * @return $this + */ + public function setIncludeQuote($var) + { + GPBUtil::checkBool($var); + $this->include_quote = $var; + + return $this; + } + + /** + * When true, excludes type information of the findings. + * This is not used for data profiling. + * + * Generated from protobuf field bool exclude_info_types = 5; + * @return bool + */ + public function getExcludeInfoTypes() + { + return $this->exclude_info_types; + } + + /** + * When true, excludes type information of the findings. + * This is not used for data profiling. + * + * Generated from protobuf field bool exclude_info_types = 5; + * @param bool $var + * @return $this + */ + public function setExcludeInfoTypes($var) + { + GPBUtil::checkBool($var); + $this->exclude_info_types = $var; + + return $this; + } + + /** + * CustomInfoTypes provided by the user. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes + * to learn more. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; + * @return RepeatedField<\Google\Cloud\Dlp\V2\CustomInfoType> + */ + public function getCustomInfoTypes() + { + return $this->custom_info_types; + } + + /** + * CustomInfoTypes provided by the user. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes + * to learn more. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; + * @param \Google\Cloud\Dlp\V2\CustomInfoType[] $var + * @return $this + */ + public function setCustomInfoTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\CustomInfoType::class); + $this->custom_info_types = $arr; + + return $this; + } + + /** + * Deprecated and unused. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentOption content_options = 8; + * @return RepeatedField + */ + public function getContentOptions() + { + return $this->content_options; + } + + /** + * Deprecated and unused. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentOption content_options = 8; + * @param int[] $var + * @return $this + */ + public function setContentOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\ContentOption::class); + $this->content_options = $arr; + + return $this; + } + + /** + * Set of rules to apply to the findings for this InspectConfig. + * Exclusion rules, contained in the set are executed in the end, other + * rules are executed in the order they are specified for each info type. Not + * supported for the `metadata_key_value_expression` CustomInfoType. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InspectionRuleSet> + */ + public function getRuleSet() + { + return $this->rule_set; + } + + /** + * Set of rules to apply to the findings for this InspectConfig. + * Exclusion rules, contained in the set are executed in the end, other + * rules are executed in the order they are specified for each info type. Not + * supported for the `metadata_key_value_expression` CustomInfoType. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; + * @param \Google\Cloud\Dlp\V2\InspectionRuleSet[] $var + * @return $this + */ + public function setRuleSet($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InspectionRuleSet::class); + $this->rule_set = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits.php new file mode 100644 index 000000000000..ebb1ffccff90 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits.php @@ -0,0 +1,201 @@ +google.privacy.dlp.v2.InspectConfig.FindingLimits + */ +class FindingLimits extends \Google\Protobuf\Internal\Message +{ + /** + * Max number of findings that are returned for each item scanned. + * When set within an + * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], + * this field is ignored. + * This value isn't a hard limit. If the number of findings for an item + * reaches this limit, the inspection of that item ends gradually, not + * abruptly. Therefore, the actual number of findings that Cloud DLP returns + * for the item can be multiple times higher than this value. + * + * Generated from protobuf field int32 max_findings_per_item = 1; + */ + protected $max_findings_per_item = 0; + /** + * Max number of findings that are returned per request or job. + * If you set this field in an + * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], the + * resulting maximum value is the value that you set or 3,000, whichever is + * lower. + * This value isn't a hard limit. If an inspection reaches this limit, the + * inspection ends gradually, not abruptly. Therefore, the actual number of + * findings that Cloud DLP returns can be multiple times higher than this + * value. + * + * Generated from protobuf field int32 max_findings_per_request = 2; + */ + protected $max_findings_per_request = 0; + /** + * Configuration of findings limit given for specified infoTypes. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3; + */ + private $max_findings_per_info_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $max_findings_per_item + * Max number of findings that are returned for each item scanned. + * When set within an + * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], + * this field is ignored. + * This value isn't a hard limit. If the number of findings for an item + * reaches this limit, the inspection of that item ends gradually, not + * abruptly. Therefore, the actual number of findings that Cloud DLP returns + * for the item can be multiple times higher than this value. + * @type int $max_findings_per_request + * Max number of findings that are returned per request or job. + * If you set this field in an + * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], the + * resulting maximum value is the value that you set or 3,000, whichever is + * lower. + * This value isn't a hard limit. If an inspection reaches this limit, the + * inspection ends gradually, not abruptly. Therefore, the actual number of + * findings that Cloud DLP returns can be multiple times higher than this + * value. + * @type \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits\InfoTypeLimit[] $max_findings_per_info_type + * Configuration of findings limit given for specified infoTypes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Max number of findings that are returned for each item scanned. + * When set within an + * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], + * this field is ignored. + * This value isn't a hard limit. If the number of findings for an item + * reaches this limit, the inspection of that item ends gradually, not + * abruptly. Therefore, the actual number of findings that Cloud DLP returns + * for the item can be multiple times higher than this value. + * + * Generated from protobuf field int32 max_findings_per_item = 1; + * @return int + */ + public function getMaxFindingsPerItem() + { + return $this->max_findings_per_item; + } + + /** + * Max number of findings that are returned for each item scanned. + * When set within an + * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], + * this field is ignored. + * This value isn't a hard limit. If the number of findings for an item + * reaches this limit, the inspection of that item ends gradually, not + * abruptly. Therefore, the actual number of findings that Cloud DLP returns + * for the item can be multiple times higher than this value. + * + * Generated from protobuf field int32 max_findings_per_item = 1; + * @param int $var + * @return $this + */ + public function setMaxFindingsPerItem($var) + { + GPBUtil::checkInt32($var); + $this->max_findings_per_item = $var; + + return $this; + } + + /** + * Max number of findings that are returned per request or job. + * If you set this field in an + * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], the + * resulting maximum value is the value that you set or 3,000, whichever is + * lower. + * This value isn't a hard limit. If an inspection reaches this limit, the + * inspection ends gradually, not abruptly. Therefore, the actual number of + * findings that Cloud DLP returns can be multiple times higher than this + * value. + * + * Generated from protobuf field int32 max_findings_per_request = 2; + * @return int + */ + public function getMaxFindingsPerRequest() + { + return $this->max_findings_per_request; + } + + /** + * Max number of findings that are returned per request or job. + * If you set this field in an + * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], the + * resulting maximum value is the value that you set or 3,000, whichever is + * lower. + * This value isn't a hard limit. If an inspection reaches this limit, the + * inspection ends gradually, not abruptly. Therefore, the actual number of + * findings that Cloud DLP returns can be multiple times higher than this + * value. + * + * Generated from protobuf field int32 max_findings_per_request = 2; + * @param int $var + * @return $this + */ + public function setMaxFindingsPerRequest($var) + { + GPBUtil::checkInt32($var); + $this->max_findings_per_request = $var; + + return $this; + } + + /** + * Configuration of findings limit given for specified infoTypes. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InspectConfig\FindingLimits\InfoTypeLimit> + */ + public function getMaxFindingsPerInfoType() + { + return $this->max_findings_per_info_type; + } + + /** + * Configuration of findings limit given for specified infoTypes. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3; + * @param \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits\InfoTypeLimit[] $var + * @return $this + */ + public function setMaxFindingsPerInfoType($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits\InfoTypeLimit::class); + $this->max_findings_per_info_type = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits/InfoTypeLimit.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits/InfoTypeLimit.php new file mode 100644 index 000000000000..4349f38de931 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits/InfoTypeLimit.php @@ -0,0 +1,124 @@ +google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit + */ +class InfoTypeLimit extends \Google\Protobuf\Internal\Message +{ + /** + * Type of information the findings limit applies to. Only one limit per + * info_type should be provided. If InfoTypeLimit does not have an + * info_type, the DLP API applies the limit against all info_types that + * are found but not specified in another InfoTypeLimit. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + */ + protected $info_type = null; + /** + * Max findings limit for the given infoType. + * + * Generated from protobuf field int32 max_findings = 2; + */ + protected $max_findings = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoType $info_type + * Type of information the findings limit applies to. Only one limit per + * info_type should be provided. If InfoTypeLimit does not have an + * info_type, the DLP API applies the limit against all info_types that + * are found but not specified in another InfoTypeLimit. + * @type int $max_findings + * Max findings limit for the given infoType. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Type of information the findings limit applies to. Only one limit per + * info_type should be provided. If InfoTypeLimit does not have an + * info_type, the DLP API applies the limit against all info_types that + * are found but not specified in another InfoTypeLimit. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @return \Google\Cloud\Dlp\V2\InfoType|null + */ + public function getInfoType() + { + return $this->info_type; + } + + public function hasInfoType() + { + return isset($this->info_type); + } + + public function clearInfoType() + { + unset($this->info_type); + } + + /** + * Type of information the findings limit applies to. Only one limit per + * info_type should be provided. If InfoTypeLimit does not have an + * info_type, the DLP API applies the limit against all info_types that + * are found but not specified in another InfoTypeLimit. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @param \Google\Cloud\Dlp\V2\InfoType $var + * @return $this + */ + public function setInfoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_type = $var; + + return $this; + } + + /** + * Max findings limit for the given infoType. + * + * Generated from protobuf field int32 max_findings = 2; + * @return int + */ + public function getMaxFindings() + { + return $this->max_findings; + } + + /** + * Max findings limit for the given infoType. + * + * Generated from protobuf field int32 max_findings = 2; + * @param int $var + * @return $this + */ + public function setMaxFindings($var) + { + GPBUtil::checkInt32($var); + $this->max_findings = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/InfoTypeLikelihood.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/InfoTypeLikelihood.php new file mode 100644 index 000000000000..71e9f1caa1cc --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/InfoTypeLikelihood.php @@ -0,0 +1,127 @@ +google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood + */ +class InfoTypeLikelihood extends \Google\Protobuf\Internal\Message +{ + /** + * Type of information the likelihood threshold applies to. Only one + * likelihood per info_type should be provided. If InfoTypeLikelihood does + * not have an info_type, the configuration fails. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + */ + protected $info_type = null; + /** + * Only returns findings equal to or above this threshold. This field is + * required or else the configuration fails. + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; + */ + protected $min_likelihood = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoType $info_type + * Type of information the likelihood threshold applies to. Only one + * likelihood per info_type should be provided. If InfoTypeLikelihood does + * not have an info_type, the configuration fails. + * @type int $min_likelihood + * Only returns findings equal to or above this threshold. This field is + * required or else the configuration fails. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Type of information the likelihood threshold applies to. Only one + * likelihood per info_type should be provided. If InfoTypeLikelihood does + * not have an info_type, the configuration fails. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @return \Google\Cloud\Dlp\V2\InfoType|null + */ + public function getInfoType() + { + return $this->info_type; + } + + public function hasInfoType() + { + return isset($this->info_type); + } + + public function clearInfoType() + { + unset($this->info_type); + } + + /** + * Type of information the likelihood threshold applies to. Only one + * likelihood per info_type should be provided. If InfoTypeLikelihood does + * not have an info_type, the configuration fails. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @param \Google\Cloud\Dlp\V2\InfoType $var + * @return $this + */ + public function setInfoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_type = $var; + + return $this; + } + + /** + * Only returns findings equal to or above this threshold. This field is + * required or else the configuration fails. + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; + * @return int + */ + public function getMinLikelihood() + { + return $this->min_likelihood; + } + + /** + * Only returns findings equal to or above this threshold. This field is + * required or else the configuration fails. + * + * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; + * @param int $var + * @return $this + */ + public function setMinLikelihood($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); + $this->min_likelihood = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentRequest.php new file mode 100644 index 000000000000..01aef2fd1287 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentRequest.php @@ -0,0 +1,287 @@ +google.privacy.dlp.v2.InspectContentRequest + */ +class InspectContentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Configuration for the inspector. What specified here will override + * the template referenced by the inspect_template_name argument. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; + */ + protected $inspect_config = null; + /** + * The item to inspect. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 3; + */ + protected $item = null; + /** + * Template to use. Any configuration directly specified in + * inspect_config will override those set in the template. Singular fields + * that are set in this request will replace their corresponding fields in the + * template. Repeated fields are appended. Singular sub-messages and groups + * are recursively merged. + * + * Generated from protobuf field string inspect_template_name = 4; + */ + protected $inspect_template_name = ''; + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 5; + */ + protected $location_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config + * Configuration for the inspector. What specified here will override + * the template referenced by the inspect_template_name argument. + * @type \Google\Cloud\Dlp\V2\ContentItem $item + * The item to inspect. + * @type string $inspect_template_name + * Template to use. Any configuration directly specified in + * inspect_config will override those set in the template. Singular fields + * that are set in this request will replace their corresponding fields in the + * template. Repeated fields are appended. Singular sub-messages and groups + * are recursively merged. + * @type string $location_id + * Deprecated. This field has no effect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Configuration for the inspector. What specified here will override + * the template referenced by the inspect_template_name argument. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; + * @return \Google\Cloud\Dlp\V2\InspectConfig|null + */ + public function getInspectConfig() + { + return $this->inspect_config; + } + + public function hasInspectConfig() + { + return isset($this->inspect_config); + } + + public function clearInspectConfig() + { + unset($this->inspect_config); + } + + /** + * Configuration for the inspector. What specified here will override + * the template referenced by the inspect_template_name argument. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; + * @param \Google\Cloud\Dlp\V2\InspectConfig $var + * @return $this + */ + public function setInspectConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); + $this->inspect_config = $var; + + return $this; + } + + /** + * The item to inspect. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 3; + * @return \Google\Cloud\Dlp\V2\ContentItem|null + */ + public function getItem() + { + return $this->item; + } + + public function hasItem() + { + return isset($this->item); + } + + public function clearItem() + { + unset($this->item); + } + + /** + * The item to inspect. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 3; + * @param \Google\Cloud\Dlp\V2\ContentItem $var + * @return $this + */ + public function setItem($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); + $this->item = $var; + + return $this; + } + + /** + * Template to use. Any configuration directly specified in + * inspect_config will override those set in the template. Singular fields + * that are set in this request will replace their corresponding fields in the + * template. Repeated fields are appended. Singular sub-messages and groups + * are recursively merged. + * + * Generated from protobuf field string inspect_template_name = 4; + * @return string + */ + public function getInspectTemplateName() + { + return $this->inspect_template_name; + } + + /** + * Template to use. Any configuration directly specified in + * inspect_config will override those set in the template. Singular fields + * that are set in this request will replace their corresponding fields in the + * template. Repeated fields are appended. Singular sub-messages and groups + * are recursively merged. + * + * Generated from protobuf field string inspect_template_name = 4; + * @param string $var + * @return $this + */ + public function setInspectTemplateName($var) + { + GPBUtil::checkString($var, True); + $this->inspect_template_name = $var; + + return $this; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 5; + * @return string + */ + public function getLocationId() + { + return $this->location_id; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 5; + * @param string $var + * @return $this + */ + public function setLocationId($var) + { + GPBUtil::checkString($var, True); + $this->location_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentResponse.php new file mode 100644 index 000000000000..024e0e2dd5dd --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentResponse.php @@ -0,0 +1,77 @@ +google.privacy.dlp.v2.InspectContentResponse + */ +class InspectContentResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The findings. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectResult result = 1; + */ + protected $result = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InspectResult $result + * The findings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The findings. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectResult result = 1; + * @return \Google\Cloud\Dlp\V2\InspectResult|null + */ + public function getResult() + { + return $this->result; + } + + public function hasResult() + { + return isset($this->result); + } + + public function clearResult() + { + unset($this->result); + } + + /** + * The findings. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectResult result = 1; + * @param \Google\Cloud\Dlp\V2\InspectResult $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectResult::class); + $this->result = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails.php new file mode 100644 index 000000000000..3584411c48ec --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails.php @@ -0,0 +1,121 @@ +google.privacy.dlp.v2.InspectDataSourceDetails + */ +class InspectDataSourceDetails extends \Google\Protobuf\Internal\Message +{ + /** + * The configuration used for this job. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2; + */ + protected $requested_options = null; + /** + * A summary of the outcome of this inspection job. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3; + */ + protected $result = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InspectDataSourceDetails\RequestedOptions $requested_options + * The configuration used for this job. + * @type \Google\Cloud\Dlp\V2\InspectDataSourceDetails\Result $result + * A summary of the outcome of this inspection job. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The configuration used for this job. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2; + * @return \Google\Cloud\Dlp\V2\InspectDataSourceDetails\RequestedOptions|null + */ + public function getRequestedOptions() + { + return $this->requested_options; + } + + public function hasRequestedOptions() + { + return isset($this->requested_options); + } + + public function clearRequestedOptions() + { + unset($this->requested_options); + } + + /** + * The configuration used for this job. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2; + * @param \Google\Cloud\Dlp\V2\InspectDataSourceDetails\RequestedOptions $var + * @return $this + */ + public function setRequestedOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectDataSourceDetails\RequestedOptions::class); + $this->requested_options = $var; + + return $this; + } + + /** + * A summary of the outcome of this inspection job. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3; + * @return \Google\Cloud\Dlp\V2\InspectDataSourceDetails\Result|null + */ + public function getResult() + { + return $this->result; + } + + public function hasResult() + { + return isset($this->result); + } + + public function clearResult() + { + unset($this->result); + } + + /** + * A summary of the outcome of this inspection job. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3; + * @param \Google\Cloud\Dlp\V2\InspectDataSourceDetails\Result $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectDataSourceDetails\Result::class); + $this->result = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/RequestedOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/RequestedOptions.php new file mode 100644 index 000000000000..5c42f0049879 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/RequestedOptions.php @@ -0,0 +1,125 @@ +google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions + */ +class RequestedOptions extends \Google\Protobuf\Internal\Message +{ + /** + * If run with an InspectTemplate, a snapshot of its state at the time of + * this run. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1; + */ + protected $snapshot_inspect_template = null; + /** + * Inspect config. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig job_config = 3; + */ + protected $job_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InspectTemplate $snapshot_inspect_template + * If run with an InspectTemplate, a snapshot of its state at the time of + * this run. + * @type \Google\Cloud\Dlp\V2\InspectJobConfig $job_config + * Inspect config. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * If run with an InspectTemplate, a snapshot of its state at the time of + * this run. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1; + * @return \Google\Cloud\Dlp\V2\InspectTemplate|null + */ + public function getSnapshotInspectTemplate() + { + return $this->snapshot_inspect_template; + } + + public function hasSnapshotInspectTemplate() + { + return isset($this->snapshot_inspect_template); + } + + public function clearSnapshotInspectTemplate() + { + unset($this->snapshot_inspect_template); + } + + /** + * If run with an InspectTemplate, a snapshot of its state at the time of + * this run. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1; + * @param \Google\Cloud\Dlp\V2\InspectTemplate $var + * @return $this + */ + public function setSnapshotInspectTemplate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectTemplate::class); + $this->snapshot_inspect_template = $var; + + return $this; + } + + /** + * Inspect config. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig job_config = 3; + * @return \Google\Cloud\Dlp\V2\InspectJobConfig|null + */ + public function getJobConfig() + { + return $this->job_config; + } + + public function hasJobConfig() + { + return isset($this->job_config); + } + + public function clearJobConfig() + { + unset($this->job_config); + } + + /** + * Inspect config. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig job_config = 3; + * @param \Google\Cloud\Dlp\V2\InspectJobConfig $var + * @return $this + */ + public function setJobConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectJobConfig::class); + $this->job_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/Result.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/Result.php new file mode 100644 index 000000000000..f4df1c64a02d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/Result.php @@ -0,0 +1,221 @@ +google.privacy.dlp.v2.InspectDataSourceDetails.Result + */ +class Result extends \Google\Protobuf\Internal\Message +{ + /** + * Total size in bytes that were processed. + * + * Generated from protobuf field int64 processed_bytes = 1; + */ + protected $processed_bytes = 0; + /** + * Estimate of the number of bytes to process. + * + * Generated from protobuf field int64 total_estimated_bytes = 2; + */ + protected $total_estimated_bytes = 0; + /** + * Statistics of how many instances of each info type were found during + * inspect job. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3; + */ + private $info_type_stats; + /** + * Number of rows scanned after sampling and time filtering (applicable for + * row based stores such as BigQuery). + * + * Generated from protobuf field int64 num_rows_processed = 5; + */ + protected $num_rows_processed = 0; + /** + * Statistics related to the processing of hybrid inspect. + * + * Generated from protobuf field .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + */ + protected $hybrid_stats = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $processed_bytes + * Total size in bytes that were processed. + * @type int|string $total_estimated_bytes + * Estimate of the number of bytes to process. + * @type \Google\Cloud\Dlp\V2\InfoTypeStats[] $info_type_stats + * Statistics of how many instances of each info type were found during + * inspect job. + * @type int|string $num_rows_processed + * Number of rows scanned after sampling and time filtering (applicable for + * row based stores such as BigQuery). + * @type \Google\Cloud\Dlp\V2\HybridInspectStatistics $hybrid_stats + * Statistics related to the processing of hybrid inspect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Total size in bytes that were processed. + * + * Generated from protobuf field int64 processed_bytes = 1; + * @return int|string + */ + public function getProcessedBytes() + { + return $this->processed_bytes; + } + + /** + * Total size in bytes that were processed. + * + * Generated from protobuf field int64 processed_bytes = 1; + * @param int|string $var + * @return $this + */ + public function setProcessedBytes($var) + { + GPBUtil::checkInt64($var); + $this->processed_bytes = $var; + + return $this; + } + + /** + * Estimate of the number of bytes to process. + * + * Generated from protobuf field int64 total_estimated_bytes = 2; + * @return int|string + */ + public function getTotalEstimatedBytes() + { + return $this->total_estimated_bytes; + } + + /** + * Estimate of the number of bytes to process. + * + * Generated from protobuf field int64 total_estimated_bytes = 2; + * @param int|string $var + * @return $this + */ + public function setTotalEstimatedBytes($var) + { + GPBUtil::checkInt64($var); + $this->total_estimated_bytes = $var; + + return $this; + } + + /** + * Statistics of how many instances of each info type were found during + * inspect job. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoTypeStats> + */ + public function getInfoTypeStats() + { + return $this->info_type_stats; + } + + /** + * Statistics of how many instances of each info type were found during + * inspect job. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3; + * @param \Google\Cloud\Dlp\V2\InfoTypeStats[] $var + * @return $this + */ + public function setInfoTypeStats($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoTypeStats::class); + $this->info_type_stats = $arr; + + return $this; + } + + /** + * Number of rows scanned after sampling and time filtering (applicable for + * row based stores such as BigQuery). + * + * Generated from protobuf field int64 num_rows_processed = 5; + * @return int|string + */ + public function getNumRowsProcessed() + { + return $this->num_rows_processed; + } + + /** + * Number of rows scanned after sampling and time filtering (applicable for + * row based stores such as BigQuery). + * + * Generated from protobuf field int64 num_rows_processed = 5; + * @param int|string $var + * @return $this + */ + public function setNumRowsProcessed($var) + { + GPBUtil::checkInt64($var); + $this->num_rows_processed = $var; + + return $this; + } + + /** + * Statistics related to the processing of hybrid inspect. + * + * Generated from protobuf field .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + * @return \Google\Cloud\Dlp\V2\HybridInspectStatistics|null + */ + public function getHybridStats() + { + return $this->hybrid_stats; + } + + public function hasHybridStats() + { + return isset($this->hybrid_stats); + } + + public function clearHybridStats() + { + unset($this->hybrid_stats); + } + + /** + * Statistics related to the processing of hybrid inspect. + * + * Generated from protobuf field .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; + * @param \Google\Cloud\Dlp\V2\HybridInspectStatistics $var + * @return $this + */ + public function setHybridStats($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\HybridInspectStatistics::class); + $this->hybrid_stats = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectJobConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectJobConfig.php new file mode 100644 index 000000000000..e43d5a4c785f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectJobConfig.php @@ -0,0 +1,197 @@ +google.privacy.dlp.v2.InspectJobConfig + */ +class InspectJobConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The data to scan. + * + * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig storage_config = 1; + */ + protected $storage_config = null; + /** + * How and what to scan for. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; + */ + protected $inspect_config = null; + /** + * If provided, will be used as the default for all values in InspectConfig. + * `inspect_config` will be merged into the values persisted as part of the + * template. + * + * Generated from protobuf field string inspect_template_name = 3; + */ + protected $inspect_template_name = ''; + /** + * Actions to execute at the completion of the job. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 4; + */ + private $actions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\StorageConfig $storage_config + * The data to scan. + * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config + * How and what to scan for. + * @type string $inspect_template_name + * If provided, will be used as the default for all values in InspectConfig. + * `inspect_config` will be merged into the values persisted as part of the + * template. + * @type \Google\Cloud\Dlp\V2\Action[] $actions + * Actions to execute at the completion of the job. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The data to scan. + * + * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig storage_config = 1; + * @return \Google\Cloud\Dlp\V2\StorageConfig|null + */ + public function getStorageConfig() + { + return $this->storage_config; + } + + public function hasStorageConfig() + { + return isset($this->storage_config); + } + + public function clearStorageConfig() + { + unset($this->storage_config); + } + + /** + * The data to scan. + * + * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig storage_config = 1; + * @param \Google\Cloud\Dlp\V2\StorageConfig $var + * @return $this + */ + public function setStorageConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StorageConfig::class); + $this->storage_config = $var; + + return $this; + } + + /** + * How and what to scan for. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; + * @return \Google\Cloud\Dlp\V2\InspectConfig|null + */ + public function getInspectConfig() + { + return $this->inspect_config; + } + + public function hasInspectConfig() + { + return isset($this->inspect_config); + } + + public function clearInspectConfig() + { + unset($this->inspect_config); + } + + /** + * How and what to scan for. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; + * @param \Google\Cloud\Dlp\V2\InspectConfig $var + * @return $this + */ + public function setInspectConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); + $this->inspect_config = $var; + + return $this; + } + + /** + * If provided, will be used as the default for all values in InspectConfig. + * `inspect_config` will be merged into the values persisted as part of the + * template. + * + * Generated from protobuf field string inspect_template_name = 3; + * @return string + */ + public function getInspectTemplateName() + { + return $this->inspect_template_name; + } + + /** + * If provided, will be used as the default for all values in InspectConfig. + * `inspect_config` will be merged into the values persisted as part of the + * template. + * + * Generated from protobuf field string inspect_template_name = 3; + * @param string $var + * @return $this + */ + public function setInspectTemplateName($var) + { + GPBUtil::checkString($var, True); + $this->inspect_template_name = $var; + + return $this; + } + + /** + * Actions to execute at the completion of the job. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 4; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Action> + */ + public function getActions() + { + return $this->actions; + } + + /** + * Actions to execute at the completion of the job. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 4; + * @param \Google\Cloud\Dlp\V2\Action[] $var + * @return $this + */ + public function setActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Action::class); + $this->actions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectResult.php new file mode 100644 index 000000000000..3369666563f0 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectResult.php @@ -0,0 +1,121 @@ +google.privacy.dlp.v2.InspectResult + */ +class InspectResult extends \Google\Protobuf\Internal\Message +{ + /** + * List of findings for an item. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Finding findings = 1; + */ + private $findings; + /** + * If true, then this item might have more findings than were returned, + * and the findings returned are an arbitrary subset of all findings. + * The findings list might be truncated because the input items were too + * large, or because the server reached the maximum amount of resources + * allowed for a single API call. For best results, divide the input into + * smaller batches. + * + * Generated from protobuf field bool findings_truncated = 2; + */ + protected $findings_truncated = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Finding[] $findings + * List of findings for an item. + * @type bool $findings_truncated + * If true, then this item might have more findings than were returned, + * and the findings returned are an arbitrary subset of all findings. + * The findings list might be truncated because the input items were too + * large, or because the server reached the maximum amount of resources + * allowed for a single API call. For best results, divide the input into + * smaller batches. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * List of findings for an item. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Finding findings = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Finding> + */ + public function getFindings() + { + return $this->findings; + } + + /** + * List of findings for an item. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Finding findings = 1; + * @param \Google\Cloud\Dlp\V2\Finding[] $var + * @return $this + */ + public function setFindings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Finding::class); + $this->findings = $arr; + + return $this; + } + + /** + * If true, then this item might have more findings than were returned, + * and the findings returned are an arbitrary subset of all findings. + * The findings list might be truncated because the input items were too + * large, or because the server reached the maximum amount of resources + * allowed for a single API call. For best results, divide the input into + * smaller batches. + * + * Generated from protobuf field bool findings_truncated = 2; + * @return bool + */ + public function getFindingsTruncated() + { + return $this->findings_truncated; + } + + /** + * If true, then this item might have more findings than were returned, + * and the findings returned are an arbitrary subset of all findings. + * The findings list might be truncated because the input items were too + * large, or because the server reached the maximum amount of resources + * allowed for a single API call. For best results, divide the input into + * smaller batches. + * + * Generated from protobuf field bool findings_truncated = 2; + * @param bool $var + * @return $this + */ + public function setFindingsTruncated($var) + { + GPBUtil::checkBool($var); + $this->findings_truncated = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectTemplate.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectTemplate.php new file mode 100644 index 000000000000..0abb529e309c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectTemplate.php @@ -0,0 +1,283 @@ +google.privacy.dlp.v2.InspectTemplate + */ +class InspectTemplate extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The template name. + * The template will have one of the following formats: + * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR + * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`; + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Display name (max 256 chars). + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * Short description (max 256 chars). + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * Output only. The creation timestamp of an inspectTemplate. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The last update timestamp of an inspectTemplate. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * The core content of the template. Configuration of the scanning process. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 6; + */ + protected $inspect_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The template name. + * The template will have one of the following formats: + * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR + * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`; + * @type string $display_name + * Display name (max 256 chars). + * @type string $description + * Short description (max 256 chars). + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The creation timestamp of an inspectTemplate. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The last update timestamp of an inspectTemplate. + * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config + * The core content of the template. Configuration of the scanning process. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The template name. + * The template will have one of the following formats: + * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR + * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`; + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The template name. + * The template will have one of the following formats: + * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR + * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`; + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Display name (max 256 chars). + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name (max 256 chars). + * + * Generated from protobuf field string display_name = 2; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Short description (max 256 chars). + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Short description (max 256 chars). + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. The creation timestamp of an inspectTemplate. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The creation timestamp of an inspectTemplate. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The last update timestamp of an inspectTemplate. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The last update timestamp of an inspectTemplate. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * The core content of the template. Configuration of the scanning process. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 6; + * @return \Google\Cloud\Dlp\V2\InspectConfig|null + */ + public function getInspectConfig() + { + return $this->inspect_config; + } + + public function hasInspectConfig() + { + return isset($this->inspect_config); + } + + public function clearInspectConfig() + { + unset($this->inspect_config); + } + + /** + * The core content of the template. Configuration of the scanning process. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 6; + * @param \Google\Cloud\Dlp\V2\InspectConfig $var + * @return $this + */ + public function setInspectConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); + $this->inspect_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRule.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRule.php new file mode 100644 index 000000000000..25e76c6bfd43 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRule.php @@ -0,0 +1,142 @@ +google.privacy.dlp.v2.InspectionRule + */ +class InspectionRule extends \Google\Protobuf\Internal\Message +{ + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule $hotword_rule + * Hotword-based detection rule. + * @type \Google\Cloud\Dlp\V2\ExclusionRule $exclusion_rule + * Exclusion rule. + * @type \Google\Cloud\Dlp\V2\AdjustmentRule $adjustment_rule + * Adjustment rule. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Hotword-based detection rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule|null + */ + public function getHotwordRule() + { + return $this->readOneof(1); + } + + public function hasHotwordRule() + { + return $this->hasOneof(1); + } + + /** + * Hotword-based detection rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule $var + * @return $this + */ + public function setHotwordRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Exclusion rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; + * @return \Google\Cloud\Dlp\V2\ExclusionRule|null + */ + public function getExclusionRule() + { + return $this->readOneof(2); + } + + public function hasExclusionRule() + { + return $this->hasOneof(2); + } + + /** + * Exclusion rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; + * @param \Google\Cloud\Dlp\V2\ExclusionRule $var + * @return $this + */ + public function setExclusionRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ExclusionRule::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Adjustment rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.AdjustmentRule adjustment_rule = 3; + * @return \Google\Cloud\Dlp\V2\AdjustmentRule|null + */ + public function getAdjustmentRule() + { + return $this->readOneof(3); + } + + public function hasAdjustmentRule() + { + return $this->hasOneof(3); + } + + /** + * Adjustment rule. + * + * Generated from protobuf field .google.privacy.dlp.v2.AdjustmentRule adjustment_rule = 3; + * @param \Google\Cloud\Dlp\V2\AdjustmentRule $var + * @return $this + */ + public function setAdjustmentRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AdjustmentRule::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRuleSet.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRuleSet.php new file mode 100644 index 000000000000..91bbef517e18 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRuleSet.php @@ -0,0 +1,102 @@ +google.privacy.dlp.v2.InspectionRuleSet + */ +class InspectionRuleSet extends \Google\Protobuf\Internal\Message +{ + /** + * List of infoTypes this rule set is applied to. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + */ + private $info_types; + /** + * Set of rules to be applied to infoTypes. The rules are applied in order. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + */ + private $rules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoType[] $info_types + * List of infoTypes this rule set is applied to. + * @type \Google\Cloud\Dlp\V2\InspectionRule[] $rules + * Set of rules to be applied to infoTypes. The rules are applied in order. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * List of infoTypes this rule set is applied to. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoType> + */ + public function getInfoTypes() + { + return $this->info_types; + } + + /** + * List of infoTypes this rule set is applied to. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; + * @param \Google\Cloud\Dlp\V2\InfoType[] $var + * @return $this + */ + public function setInfoTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_types = $arr; + + return $this; + } + + /** + * Set of rules to be applied to infoTypes. The rules are applied in order. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InspectionRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * Set of rules to be applied to infoTypes. The rules are applied in order. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRule rules = 2; + * @param \Google\Cloud\Dlp\V2\InspectionRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InspectionRule::class); + $this->rules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger.php new file mode 100644 index 000000000000..de723336c34c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger.php @@ -0,0 +1,442 @@ +google.privacy.dlp.v2.JobTrigger + */ +class JobTrigger extends \Google\Protobuf\Internal\Message +{ + /** + * Unique resource name for the triggeredJob, assigned by the service when the + * triggeredJob is created, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Display name (max 100 chars) + * + * Generated from protobuf field string display_name = 2; + */ + protected $display_name = ''; + /** + * User provided description (max 256 chars) + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * A list of triggers which will be OR'ed together. Only one in the list + * needs to trigger for a job to be started. The list may contain only + * a single Schedule trigger and must have at least one object. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5; + */ + private $triggers; + /** + * Output only. A stream of errors encountered when the trigger was activated. + * Repeated errors may result in the JobTrigger automatically being paused. + * Will return the last 100 errors. Whenever the JobTrigger is modified + * this list will be cleared. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $errors; + /** + * Output only. The creation timestamp of a triggeredJob. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The last update timestamp of a triggeredJob. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. The timestamp of the last time this trigger executed. + * + * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_run_time = null; + /** + * Required. A status for this trigger. + * + * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $status = 0; + protected $job; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Unique resource name for the triggeredJob, assigned by the service when the + * triggeredJob is created, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * @type string $display_name + * Display name (max 100 chars) + * @type string $description + * User provided description (max 256 chars) + * @type \Google\Cloud\Dlp\V2\InspectJobConfig $inspect_job + * For inspect jobs, a snapshot of the configuration. + * @type \Google\Cloud\Dlp\V2\JobTrigger\Trigger[] $triggers + * A list of triggers which will be OR'ed together. Only one in the list + * needs to trigger for a job to be started. The list may contain only + * a single Schedule trigger and must have at least one object. + * @type \Google\Cloud\Dlp\V2\Error[] $errors + * Output only. A stream of errors encountered when the trigger was activated. + * Repeated errors may result in the JobTrigger automatically being paused. + * Will return the last 100 errors. Whenever the JobTrigger is modified + * this list will be cleared. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The creation timestamp of a triggeredJob. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The last update timestamp of a triggeredJob. + * @type \Google\Protobuf\Timestamp $last_run_time + * Output only. The timestamp of the last time this trigger executed. + * @type int $status + * Required. A status for this trigger. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Unique resource name for the triggeredJob, assigned by the service when the + * triggeredJob is created, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Unique resource name for the triggeredJob, assigned by the service when the + * triggeredJob is created, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Display name (max 100 chars) + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name (max 100 chars) + * + * Generated from protobuf field string display_name = 2; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * User provided description (max 256 chars) + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * User provided description (max 256 chars) + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * For inspect jobs, a snapshot of the configuration. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig inspect_job = 4; + * @return \Google\Cloud\Dlp\V2\InspectJobConfig|null + */ + public function getInspectJob() + { + return $this->readOneof(4); + } + + public function hasInspectJob() + { + return $this->hasOneof(4); + } + + /** + * For inspect jobs, a snapshot of the configuration. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig inspect_job = 4; + * @param \Google\Cloud\Dlp\V2\InspectJobConfig $var + * @return $this + */ + public function setInspectJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectJobConfig::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * A list of triggers which will be OR'ed together. Only one in the list + * needs to trigger for a job to be started. The list may contain only + * a single Schedule trigger and must have at least one object. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5; + * @return RepeatedField<\Google\Cloud\Dlp\V2\JobTrigger\Trigger> + */ + public function getTriggers() + { + return $this->triggers; + } + + /** + * A list of triggers which will be OR'ed together. Only one in the list + * needs to trigger for a job to be started. The list may contain only + * a single Schedule trigger and must have at least one object. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5; + * @param \Google\Cloud\Dlp\V2\JobTrigger\Trigger[] $var + * @return $this + */ + public function setTriggers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\JobTrigger\Trigger::class); + $this->triggers = $arr; + + return $this; + } + + /** + * Output only. A stream of errors encountered when the trigger was activated. + * Repeated errors may result in the JobTrigger automatically being paused. + * Will return the last 100 errors. Whenever the JobTrigger is modified + * this list will be cleared. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Error> + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Output only. A stream of errors encountered when the trigger was activated. + * Repeated errors may result in the JobTrigger automatically being paused. + * Will return the last 100 errors. Whenever the JobTrigger is modified + * this list will be cleared. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dlp\V2\Error[] $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); + $this->errors = $arr; + + return $this; + } + + /** + * Output only. The creation timestamp of a triggeredJob. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The creation timestamp of a triggeredJob. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The last update timestamp of a triggeredJob. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The last update timestamp of a triggeredJob. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. The timestamp of the last time this trigger executed. + * + * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastRunTime() + { + return $this->last_run_time; + } + + public function hasLastRunTime() + { + return isset($this->last_run_time); + } + + public function clearLastRunTime() + { + unset($this->last_run_time); + } + + /** + * Output only. The timestamp of the last time this trigger executed. + * + * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastRunTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_run_time = $var; + + return $this; + } + + /** + * Required. A status for this trigger. + * + * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * Required. A status for this trigger. + * + * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\JobTrigger\Status::class); + $this->status = $var; + + return $this; + } + + /** + * @return string + */ + public function getJob() + { + return $this->whichOneof("job"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Status.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Status.php new file mode 100644 index 000000000000..92ccd8bad2ca --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Status.php @@ -0,0 +1,71 @@ +google.privacy.dlp.v2.JobTrigger.Status + */ +class Status +{ + /** + * Unused. + * + * Generated from protobuf enum STATUS_UNSPECIFIED = 0; + */ + const STATUS_UNSPECIFIED = 0; + /** + * Trigger is healthy. + * + * Generated from protobuf enum HEALTHY = 1; + */ + const HEALTHY = 1; + /** + * Trigger is temporarily paused. + * + * Generated from protobuf enum PAUSED = 2; + */ + const PAUSED = 2; + /** + * Trigger is cancelled and can not be resumed. + * + * Generated from protobuf enum CANCELLED = 3; + */ + const CANCELLED = 3; + + private static $valueToName = [ + self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', + self::HEALTHY => 'HEALTHY', + self::PAUSED => 'PAUSED', + self::CANCELLED => 'CANCELLED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Trigger.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Trigger.php new file mode 100644 index 000000000000..0e0783a00d6a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Trigger.php @@ -0,0 +1,108 @@ +google.privacy.dlp.v2.JobTrigger.Trigger + */ +class Trigger extends \Google\Protobuf\Internal\Message +{ + protected $trigger; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Schedule $schedule + * Create a job on a repeating basis based on the elapse of time. + * @type \Google\Cloud\Dlp\V2\Manual $manual + * For use with hybrid jobs. Jobs must be manually created and finished. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Create a job on a repeating basis based on the elapse of time. + * + * Generated from protobuf field .google.privacy.dlp.v2.Schedule schedule = 1; + * @return \Google\Cloud\Dlp\V2\Schedule|null + */ + public function getSchedule() + { + return $this->readOneof(1); + } + + public function hasSchedule() + { + return $this->hasOneof(1); + } + + /** + * Create a job on a repeating basis based on the elapse of time. + * + * Generated from protobuf field .google.privacy.dlp.v2.Schedule schedule = 1; + * @param \Google\Cloud\Dlp\V2\Schedule $var + * @return $this + */ + public function setSchedule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Schedule::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * For use with hybrid jobs. Jobs must be manually created and finished. + * + * Generated from protobuf field .google.privacy.dlp.v2.Manual manual = 2; + * @return \Google\Cloud\Dlp\V2\Manual|null + */ + public function getManual() + { + return $this->readOneof(2); + } + + public function hasManual() + { + return $this->hasOneof(2); + } + + /** + * For use with hybrid jobs. Jobs must be manually created and finished. + * + * Generated from protobuf field .google.privacy.dlp.v2.Manual manual = 2; + * @param \Google\Cloud\Dlp\V2\Manual $var + * @return $this + */ + public function setManual($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Manual::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getTrigger() + { + return $this->whichOneof("trigger"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key.php new file mode 100644 index 000000000000..bf72efd727ad --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key.php @@ -0,0 +1,150 @@ +google.privacy.dlp.v2.Key + */ +class Key extends \Google\Protobuf\Internal\Message +{ + /** + * Entities are partitioned into subsets, currently identified by a project + * ID and namespace ID. + * Queries are scoped to a single partition. + * + * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; + */ + protected $partition_id = null; + /** + * The entity path. + * An entity path consists of one or more elements composed of a kind and a + * string or numerical identifier, which identify entities. The first + * element identifies a _root entity_, the second element identifies + * a _child_ of the root entity, the third element identifies a child of the + * second entity, and so forth. The entities identified by all prefixes of + * the path are called the element's _ancestors_. + * A path can never be empty, and a path can have at most 100 elements. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Key.PathElement path = 2; + */ + private $path; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\PartitionId $partition_id + * Entities are partitioned into subsets, currently identified by a project + * ID and namespace ID. + * Queries are scoped to a single partition. + * @type \Google\Cloud\Dlp\V2\Key\PathElement[] $path + * The entity path. + * An entity path consists of one or more elements composed of a kind and a + * string or numerical identifier, which identify entities. The first + * element identifies a _root entity_, the second element identifies + * a _child_ of the root entity, the third element identifies a child of the + * second entity, and so forth. The entities identified by all prefixes of + * the path are called the element's _ancestors_. + * A path can never be empty, and a path can have at most 100 elements. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Entities are partitioned into subsets, currently identified by a project + * ID and namespace ID. + * Queries are scoped to a single partition. + * + * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; + * @return \Google\Cloud\Dlp\V2\PartitionId|null + */ + public function getPartitionId() + { + return $this->partition_id; + } + + public function hasPartitionId() + { + return isset($this->partition_id); + } + + public function clearPartitionId() + { + unset($this->partition_id); + } + + /** + * Entities are partitioned into subsets, currently identified by a project + * ID and namespace ID. + * Queries are scoped to a single partition. + * + * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; + * @param \Google\Cloud\Dlp\V2\PartitionId $var + * @return $this + */ + public function setPartitionId($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PartitionId::class); + $this->partition_id = $var; + + return $this; + } + + /** + * The entity path. + * An entity path consists of one or more elements composed of a kind and a + * string or numerical identifier, which identify entities. The first + * element identifies a _root entity_, the second element identifies + * a _child_ of the root entity, the third element identifies a child of the + * second entity, and so forth. The entities identified by all prefixes of + * the path are called the element's _ancestors_. + * A path can never be empty, and a path can have at most 100 elements. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Key.PathElement path = 2; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Key\PathElement> + */ + public function getPath() + { + return $this->path; + } + + /** + * The entity path. + * An entity path consists of one or more elements composed of a kind and a + * string or numerical identifier, which identify entities. The first + * element identifies a _root entity_, the second element identifies + * a _child_ of the root entity, the third element identifies a child of the + * second entity, and so forth. The entities identified by all prefixes of + * the path are called the element's _ancestors_. + * A path can never be empty, and a path can have at most 100 elements. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Key.PathElement path = 2; + * @param \Google\Cloud\Dlp\V2\Key\PathElement[] $var + * @return $this + */ + public function setPath($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Key\PathElement::class); + $this->path = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key/PathElement.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key/PathElement.php new file mode 100644 index 000000000000..04e329570047 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key/PathElement.php @@ -0,0 +1,171 @@ +google.privacy.dlp.v2.Key.PathElement + */ +class PathElement extends \Google\Protobuf\Internal\Message +{ + /** + * The kind of the entity. + * A kind matching regex `__.*__` is reserved/read-only. + * A kind must not contain more than 1500 bytes when UTF-8 encoded. + * Cannot be `""`. + * + * Generated from protobuf field string kind = 1; + */ + protected $kind = ''; + protected $id_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $kind + * The kind of the entity. + * A kind matching regex `__.*__` is reserved/read-only. + * A kind must not contain more than 1500 bytes when UTF-8 encoded. + * Cannot be `""`. + * @type int|string $id + * The auto-allocated ID of the entity. + * Never equal to zero. Values less than zero are discouraged and may not + * be supported in the future. + * @type string $name + * The name of the entity. + * A name matching regex `__.*__` is reserved/read-only. + * A name must not be more than 1500 bytes when UTF-8 encoded. + * Cannot be `""`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * The kind of the entity. + * A kind matching regex `__.*__` is reserved/read-only. + * A kind must not contain more than 1500 bytes when UTF-8 encoded. + * Cannot be `""`. + * + * Generated from protobuf field string kind = 1; + * @return string + */ + public function getKind() + { + return $this->kind; + } + + /** + * The kind of the entity. + * A kind matching regex `__.*__` is reserved/read-only. + * A kind must not contain more than 1500 bytes when UTF-8 encoded. + * Cannot be `""`. + * + * Generated from protobuf field string kind = 1; + * @param string $var + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkString($var, True); + $this->kind = $var; + + return $this; + } + + /** + * The auto-allocated ID of the entity. + * Never equal to zero. Values less than zero are discouraged and may not + * be supported in the future. + * + * Generated from protobuf field int64 id = 2; + * @return int|string + */ + public function getId() + { + return $this->readOneof(2); + } + + public function hasId() + { + return $this->hasOneof(2); + } + + /** + * The auto-allocated ID of the entity. + * Never equal to zero. Values less than zero are discouraged and may not + * be supported in the future. + * + * Generated from protobuf field int64 id = 2; + * @param int|string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The name of the entity. + * A name matching regex `__.*__` is reserved/read-only. + * A name must not be more than 1500 bytes when UTF-8 encoded. + * Cannot be `""`. + * + * Generated from protobuf field string name = 3; + * @return string + */ + public function getName() + { + return $this->readOneof(3); + } + + public function hasName() + { + return $this->hasOneof(3); + } + + /** + * The name of the entity. + * A name matching regex `__.*__` is reserved/read-only. + * A name must not be more than 1500 bytes when UTF-8 encoded. + * Cannot be `""`. + * + * Generated from protobuf field string name = 3; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getIdType() + { + return $this->whichOneof("id_type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KeyValueMetadataLabel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KeyValueMetadataLabel.php new file mode 100644 index 000000000000..bf93ff9fe86d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KeyValueMetadataLabel.php @@ -0,0 +1,79 @@ +google.privacy.dlp.v2.KeyValueMetadataLabel + */ +class KeyValueMetadataLabel extends \Google\Protobuf\Internal\Message +{ + /** + * The metadata key. The format depends on the source of the metadata. + * Example: + * - `MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Enabled` (a Microsoft + * Purview Information Protection key example) + * + * Generated from protobuf field string key = 1; + */ + protected $key = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * The metadata key. The format depends on the source of the metadata. + * Example: + * - `MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Enabled` (a Microsoft + * Purview Information Protection key example) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The metadata key. The format depends on the source of the metadata. + * Example: + * - `MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Enabled` (a Microsoft + * Purview Information Protection key example) + * + * Generated from protobuf field string key = 1; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * The metadata key. The format depends on the source of the metadata. + * Example: + * - `MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Enabled` (a Microsoft + * Purview Information Protection key example) + * + * Generated from protobuf field string key = 1; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KeyValueMetadataProperty.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KeyValueMetadataProperty.php new file mode 100644 index 000000000000..0ee04a8ea1a1 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KeyValueMetadataProperty.php @@ -0,0 +1,101 @@ +google.privacy.dlp.v2.KeyValueMetadataProperty + */ +class KeyValueMetadataProperty extends \Google\Protobuf\Internal\Message +{ + /** + * The key of the property. + * + * Generated from protobuf field string key = 1; + */ + protected $key = ''; + /** + * The value of the property. + * + * Generated from protobuf field string value = 2; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * The key of the property. + * @type string $value + * The value of the property. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The key of the property. + * + * Generated from protobuf field string key = 1; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * The key of the property. + * + * Generated from protobuf field string key = 1; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * The value of the property. + * + * Generated from protobuf field string value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The value of the property. + * + * Generated from protobuf field string value = 2; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KindExpression.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KindExpression.php new file mode 100644 index 000000000000..a4b579f423f6 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KindExpression.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.KindExpression + */ +class KindExpression extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the kind. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the kind. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * The name of the kind. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the kind. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KmsWrappedCryptoKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KmsWrappedCryptoKey.php new file mode 100644 index 000000000000..c4c3a214c8fa --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KmsWrappedCryptoKey.php @@ -0,0 +1,109 @@ +google.privacy.dlp.v2.KmsWrappedCryptoKey + */ +class KmsWrappedCryptoKey extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The wrapped data crypto key. + * + * Generated from protobuf field bytes wrapped_key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $wrapped_key = ''; + /** + * Required. The resource name of the KMS CryptoKey to use for unwrapping. + * + * Generated from protobuf field string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $crypto_key_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $wrapped_key + * Required. The wrapped data crypto key. + * @type string $crypto_key_name + * Required. The resource name of the KMS CryptoKey to use for unwrapping. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. The wrapped data crypto key. + * + * Generated from protobuf field bytes wrapped_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getWrappedKey() + { + return $this->wrapped_key; + } + + /** + * Required. The wrapped data crypto key. + * + * Generated from protobuf field bytes wrapped_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setWrappedKey($var) + { + GPBUtil::checkString($var, False); + $this->wrapped_key = $var; + + return $this; + } + + /** + * Required. The resource name of the KMS CryptoKey to use for unwrapping. + * + * Generated from protobuf field string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCryptoKeyName() + { + return $this->crypto_key_name; + } + + /** + * Required. The resource name of the KMS CryptoKey to use for unwrapping. + * + * Generated from protobuf field string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCryptoKeyName($var) + { + GPBUtil::checkString($var, True); + $this->crypto_key_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryConfig.php new file mode 100644 index 000000000000..879cca85822d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryConfig.php @@ -0,0 +1,169 @@ +google.privacy.dlp.v2.LargeCustomDictionaryConfig + */ +class LargeCustomDictionaryConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Location to store dictionary artifacts in Cloud Storage. These files + * will only be accessible by project owners and the DLP API. If any of these + * artifacts are modified, the dictionary is considered invalid and can no + * longer be used. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath output_path = 1; + */ + protected $output_path = null; + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\CloudStoragePath $output_path + * Location to store dictionary artifacts in Cloud Storage. These files + * will only be accessible by project owners and the DLP API. If any of these + * artifacts are modified, the dictionary is considered invalid and can no + * longer be used. + * @type \Google\Cloud\Dlp\V2\CloudStorageFileSet $cloud_storage_file_set + * Set of files containing newline-delimited lists of dictionary phrases. + * @type \Google\Cloud\Dlp\V2\BigQueryField $big_query_field + * Field in a BigQuery table where each cell represents a dictionary phrase. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Location to store dictionary artifacts in Cloud Storage. These files + * will only be accessible by project owners and the DLP API. If any of these + * artifacts are modified, the dictionary is considered invalid and can no + * longer be used. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath output_path = 1; + * @return \Google\Cloud\Dlp\V2\CloudStoragePath|null + */ + public function getOutputPath() + { + return $this->output_path; + } + + public function hasOutputPath() + { + return isset($this->output_path); + } + + public function clearOutputPath() + { + unset($this->output_path); + } + + /** + * Location to store dictionary artifacts in Cloud Storage. These files + * will only be accessible by project owners and the DLP API. If any of these + * artifacts are modified, the dictionary is considered invalid and can no + * longer be used. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath output_path = 1; + * @param \Google\Cloud\Dlp\V2\CloudStoragePath $var + * @return $this + */ + public function setOutputPath($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStoragePath::class); + $this->output_path = $var; + + return $this; + } + + /** + * Set of files containing newline-delimited lists of dictionary phrases. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageFileSet cloud_storage_file_set = 2; + * @return \Google\Cloud\Dlp\V2\CloudStorageFileSet|null + */ + public function getCloudStorageFileSet() + { + return $this->readOneof(2); + } + + public function hasCloudStorageFileSet() + { + return $this->hasOneof(2); + } + + /** + * Set of files containing newline-delimited lists of dictionary phrases. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageFileSet cloud_storage_file_set = 2; + * @param \Google\Cloud\Dlp\V2\CloudStorageFileSet $var + * @return $this + */ + public function setCloudStorageFileSet($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageFileSet::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Field in a BigQuery table where each cell represents a dictionary phrase. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryField big_query_field = 3; + * @return \Google\Cloud\Dlp\V2\BigQueryField|null + */ + public function getBigQueryField() + { + return $this->readOneof(3); + } + + public function hasBigQueryField() + { + return $this->hasOneof(3); + } + + /** + * Field in a BigQuery table where each cell represents a dictionary phrase. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryField big_query_field = 3; + * @param \Google\Cloud\Dlp\V2\BigQueryField $var + * @return $this + */ + public function setBigQueryField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryField::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryStats.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryStats.php new file mode 100644 index 000000000000..6b0fbf5c861c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryStats.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.LargeCustomDictionaryStats + */ +class LargeCustomDictionaryStats extends \Google\Protobuf\Internal\Message +{ + /** + * Approximate number of distinct phrases in the dictionary. + * + * Generated from protobuf field int64 approx_num_phrases = 1; + */ + protected $approx_num_phrases = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $approx_num_phrases + * Approximate number of distinct phrases in the dictionary. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Approximate number of distinct phrases in the dictionary. + * + * Generated from protobuf field int64 approx_num_phrases = 1; + * @return int|string + */ + public function getApproxNumPhrases() + { + return $this->approx_num_phrases; + } + + /** + * Approximate number of distinct phrases in the dictionary. + * + * Generated from protobuf field int64 approx_num_phrases = 1; + * @param int|string $var + * @return $this + */ + public function setApproxNumPhrases($var) + { + GPBUtil::checkInt64($var); + $this->approx_num_phrases = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Likelihood.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Likelihood.php new file mode 100644 index 000000000000..9f064b078f50 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Likelihood.php @@ -0,0 +1,93 @@ +google.privacy.dlp.v2.Likelihood + */ +class Likelihood +{ + /** + * Default value; same as POSSIBLE. + * + * Generated from protobuf enum LIKELIHOOD_UNSPECIFIED = 0; + */ + const LIKELIHOOD_UNSPECIFIED = 0; + /** + * Highest chance of a false positive. + * + * Generated from protobuf enum VERY_UNLIKELY = 1; + */ + const VERY_UNLIKELY = 1; + /** + * High chance of a false positive. + * + * Generated from protobuf enum UNLIKELY = 2; + */ + const UNLIKELY = 2; + /** + * Some matching signals. The default value. + * + * Generated from protobuf enum POSSIBLE = 3; + */ + const POSSIBLE = 3; + /** + * Low chance of a false positive. + * + * Generated from protobuf enum LIKELY = 4; + */ + const LIKELY = 4; + /** + * Confidence level is high. Lowest chance of a false positive. + * + * Generated from protobuf enum VERY_LIKELY = 5; + */ + const VERY_LIKELY = 5; + + private static $valueToName = [ + self::LIKELIHOOD_UNSPECIFIED => 'LIKELIHOOD_UNSPECIFIED', + self::VERY_UNLIKELY => 'VERY_UNLIKELY', + self::UNLIKELY => 'UNLIKELY', + self::POSSIBLE => 'POSSIBLE', + self::LIKELY => 'LIKELY', + self::VERY_LIKELY => 'VERY_LIKELY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesRequest.php new file mode 100644 index 000000000000..d32335b6b6c0 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesRequest.php @@ -0,0 +1,407 @@ +google.privacy.dlp.v2.ListColumnDataProfilesRequest + */ +class ListColumnDataProfilesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the organization or project, for + * example `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Page token to continue retrieval. + * + * Generated from protobuf field string page_token = 2; + */ + protected $page_token = ''; + /** + * Size of the page. This value can be limited by the server. If zero, server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * Comma-separated list of fields to order by, followed by `asc` or `desc` + * postfix. This list is case insensitive. The default sorting order is + * ascending. Redundant space characters are insignificant. Only one order + * field at a time is allowed. + * Examples: + * * `project_id asc` + * * `table_id` + * * `sensitivity_level desc` + * Supported fields are: + * - `project_id`: The Google Cloud project ID. + * - `dataset_id`: The ID of a BigQuery dataset. + * - `table_id`: The ID of a BigQuery table. + * - `sensitivity_level`: How sensitive the data in a column is, at most. + * - `data_risk_level`: How much risk is associated with this data. + * - `profile_last_generated`: When the profile was last updated in epoch + * seconds. + * + * Generated from protobuf field string order_by = 4; + */ + protected $order_by = ''; + /** + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields: + * - `table_data_profile_name`: The name of the related table data + * profile + * - `project_id`: The Google Cloud project ID (REQUIRED) + * - `dataset_id`: The BigQuery dataset ID (REQUIRED) + * - `table_id`: The BigQuery table ID (REQUIRED) + * - `field_id`: The ID of the BigQuery field + * - `info_type`: The infotype detected in the resource + * - `sensitivity_level`: HIGH|MEDIUM|LOW + * - `data_risk_level`: How much risk is associated with this data + * - `status_code`: An RPC status code as defined in + * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * - `profile_last_generated`: Date and time the profile was last + * generated + * * The operator must be `=` for project_id, dataset_id, and table_id. Other + * filters also support `!=`. The `profile_last_generated` filter also + * supports `<` and `>`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * project_id = 12345 AND status_code = 1 + * * project_id = 12345 AND sensitivity_level = HIGH + * * project_id = 12345 AND info_type = STREET_ADDRESS + * * profile_last_generated < "2025-01-01T00:00:00.000Z" + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 5; + */ + protected $filter = ''; + + /** + * @param string $parent Required. Resource name of the organization or project, for + * example `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. Please see + * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\ListColumnDataProfilesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Resource name of the organization or project, for + * example `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. + * @type string $page_token + * Page token to continue retrieval. + * @type int $page_size + * Size of the page. This value can be limited by the server. If zero, server + * returns a page of max size 100. + * @type string $order_by + * Comma-separated list of fields to order by, followed by `asc` or `desc` + * postfix. This list is case insensitive. The default sorting order is + * ascending. Redundant space characters are insignificant. Only one order + * field at a time is allowed. + * Examples: + * * `project_id asc` + * * `table_id` + * * `sensitivity_level desc` + * Supported fields are: + * - `project_id`: The Google Cloud project ID. + * - `dataset_id`: The ID of a BigQuery dataset. + * - `table_id`: The ID of a BigQuery table. + * - `sensitivity_level`: How sensitive the data in a column is, at most. + * - `data_risk_level`: How much risk is associated with this data. + * - `profile_last_generated`: When the profile was last updated in epoch + * seconds. + * @type string $filter + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields: + * - `table_data_profile_name`: The name of the related table data + * profile + * - `project_id`: The Google Cloud project ID (REQUIRED) + * - `dataset_id`: The BigQuery dataset ID (REQUIRED) + * - `table_id`: The BigQuery table ID (REQUIRED) + * - `field_id`: The ID of the BigQuery field + * - `info_type`: The infotype detected in the resource + * - `sensitivity_level`: HIGH|MEDIUM|LOW + * - `data_risk_level`: How much risk is associated with this data + * - `status_code`: An RPC status code as defined in + * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * - `profile_last_generated`: Date and time the profile was last + * generated + * * The operator must be `=` for project_id, dataset_id, and table_id. Other + * filters also support `!=`. The `profile_last_generated` filter also + * supports `<` and `>`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * project_id = 12345 AND status_code = 1 + * * project_id = 12345 AND sensitivity_level = HIGH + * * project_id = 12345 AND info_type = STREET_ADDRESS + * * profile_last_generated < "2025-01-01T00:00:00.000Z" + * The length of this field should be no more than 500 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the organization or project, for + * example `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Resource name of the organization or project, for + * example `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Page token to continue retrieval. + * + * Generated from protobuf field string page_token = 2; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Page token to continue retrieval. + * + * Generated from protobuf field string page_token = 2; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Size of the page. This value can be limited by the server. If zero, server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Size of the page. This value can be limited by the server. If zero, server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Comma-separated list of fields to order by, followed by `asc` or `desc` + * postfix. This list is case insensitive. The default sorting order is + * ascending. Redundant space characters are insignificant. Only one order + * field at a time is allowed. + * Examples: + * * `project_id asc` + * * `table_id` + * * `sensitivity_level desc` + * Supported fields are: + * - `project_id`: The Google Cloud project ID. + * - `dataset_id`: The ID of a BigQuery dataset. + * - `table_id`: The ID of a BigQuery table. + * - `sensitivity_level`: How sensitive the data in a column is, at most. + * - `data_risk_level`: How much risk is associated with this data. + * - `profile_last_generated`: When the profile was last updated in epoch + * seconds. + * + * Generated from protobuf field string order_by = 4; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Comma-separated list of fields to order by, followed by `asc` or `desc` + * postfix. This list is case insensitive. The default sorting order is + * ascending. Redundant space characters are insignificant. Only one order + * field at a time is allowed. + * Examples: + * * `project_id asc` + * * `table_id` + * * `sensitivity_level desc` + * Supported fields are: + * - `project_id`: The Google Cloud project ID. + * - `dataset_id`: The ID of a BigQuery dataset. + * - `table_id`: The ID of a BigQuery table. + * - `sensitivity_level`: How sensitive the data in a column is, at most. + * - `data_risk_level`: How much risk is associated with this data. + * - `profile_last_generated`: When the profile was last updated in epoch + * seconds. + * + * Generated from protobuf field string order_by = 4; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields: + * - `table_data_profile_name`: The name of the related table data + * profile + * - `project_id`: The Google Cloud project ID (REQUIRED) + * - `dataset_id`: The BigQuery dataset ID (REQUIRED) + * - `table_id`: The BigQuery table ID (REQUIRED) + * - `field_id`: The ID of the BigQuery field + * - `info_type`: The infotype detected in the resource + * - `sensitivity_level`: HIGH|MEDIUM|LOW + * - `data_risk_level`: How much risk is associated with this data + * - `status_code`: An RPC status code as defined in + * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * - `profile_last_generated`: Date and time the profile was last + * generated + * * The operator must be `=` for project_id, dataset_id, and table_id. Other + * filters also support `!=`. The `profile_last_generated` filter also + * supports `<` and `>`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * project_id = 12345 AND status_code = 1 + * * project_id = 12345 AND sensitivity_level = HIGH + * * project_id = 12345 AND info_type = STREET_ADDRESS + * * profile_last_generated < "2025-01-01T00:00:00.000Z" + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 5; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields: + * - `table_data_profile_name`: The name of the related table data + * profile + * - `project_id`: The Google Cloud project ID (REQUIRED) + * - `dataset_id`: The BigQuery dataset ID (REQUIRED) + * - `table_id`: The BigQuery table ID (REQUIRED) + * - `field_id`: The ID of the BigQuery field + * - `info_type`: The infotype detected in the resource + * - `sensitivity_level`: HIGH|MEDIUM|LOW + * - `data_risk_level`: How much risk is associated with this data + * - `status_code`: An RPC status code as defined in + * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * - `profile_last_generated`: Date and time the profile was last + * generated + * * The operator must be `=` for project_id, dataset_id, and table_id. Other + * filters also support `!=`. The `profile_last_generated` filter also + * supports `<` and `>`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * project_id = 12345 AND status_code = 1 + * * project_id = 12345 AND sensitivity_level = HIGH + * * project_id = 12345 AND info_type = STREET_ADDRESS + * * profile_last_generated < "2025-01-01T00:00:00.000Z" + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 5; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesResponse.php new file mode 100644 index 000000000000..c2fb4d91833f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesResponse.php @@ -0,0 +1,101 @@ +google.privacy.dlp.v2.ListColumnDataProfilesResponse + */ +class ListColumnDataProfilesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of data profiles. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + private $column_data_profiles; + /** + * The next page token. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\ColumnDataProfile[] $column_data_profiles + * List of data profiles. + * @type string $next_page_token + * The next page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * List of data profiles. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\ColumnDataProfile> + */ + public function getColumnDataProfiles() + { + return $this->column_data_profiles; + } + + /** + * List of data profiles. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + * @param \Google\Cloud\Dlp\V2\ColumnDataProfile[] $var + * @return $this + */ + public function setColumnDataProfiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ColumnDataProfile::class); + $this->column_data_profiles = $arr; + + return $this; + } + + /** + * The next page token. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The next page token. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsRequest.php new file mode 100644 index 000000000000..fe556f4be6d4 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsRequest.php @@ -0,0 +1,201 @@ +google.privacy.dlp.v2.ListConnectionsRequest + */ +class ListConnectionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the organization or project, for + * example, `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Number of results per page, max 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token from a previous page to return the next set of + * results. If set, all other request fields must match the original request. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR + * The syntax is based on https://google.aip.dev/160. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. Resource name of the organization or project, for + * example, `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. Please see + * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\ListConnectionsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Resource name of the organization or project, for + * example, `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. + * @type int $page_size + * Optional. Number of results per page, max 1000. + * @type string $page_token + * Optional. Page token from a previous page to return the next set of + * results. If set, all other request fields must match the original request. + * @type string $filter + * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR + * The syntax is based on https://google.aip.dev/160. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the organization or project, for + * example, `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Resource name of the organization or project, for + * example, `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. Number of results per page, max 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Number of results per page, max 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. Page token from a previous page to return the next set of + * results. If set, all other request fields must match the original request. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. Page token from a previous page to return the next set of + * results. If set, all other request fields must match the original request. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR + * The syntax is based on https://google.aip.dev/160. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR + * The syntax is based on https://google.aip.dev/160. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsResponse.php new file mode 100644 index 000000000000..1079f61d2fa2 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsResponse.php @@ -0,0 +1,105 @@ +google.privacy.dlp.v2.ListConnectionsResponse + */ +class ListConnectionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of connections. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; + */ + private $connections; + /** + * Token to retrieve the next page of results. An empty value means there are + * no more results. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Connection[] $connections + * List of connections. + * @type string $next_page_token + * Token to retrieve the next page of results. An empty value means there are + * no more results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * List of connections. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Connection> + */ + public function getConnections() + { + return $this->connections; + } + + /** + * List of connections. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; + * @param \Google\Cloud\Dlp\V2\Connection[] $var + * @return $this + */ + public function setConnections($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Connection::class); + $this->connections = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results. An empty value means there are + * no more results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results. An empty value means there are + * no more results. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesRequest.php new file mode 100644 index 000000000000..1aa04e29cd88 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesRequest.php @@ -0,0 +1,340 @@ +google.privacy.dlp.v2.ListDeidentifyTemplatesRequest + */ +class ListDeidentifyTemplatesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Page token to continue retrieval. Comes from the previous call + * to `ListDeidentifyTemplates`. + * + * Generated from protobuf field string page_token = 2; + */ + protected $page_token = ''; + /** + * Size of the page. This value can be limited by the server. If zero server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * Comma-separated list of fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc,update_time, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the template was created. + * - `update_time`: corresponds to the time the template was last updated. + * - `name`: corresponds to the template's name. + * - `display_name`: corresponds to the template's display name. + * + * Generated from protobuf field string order_by = 4; + */ + protected $order_by = ''; + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 5; + */ + protected $location_id = ''; + + /** + * @param string $parent Required. Parent resource name. + * + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * + * parent=projects/example-project/locations/europe-west3 + * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\ListDeidentifyTemplatesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * @type string $page_token + * Page token to continue retrieval. Comes from the previous call + * to `ListDeidentifyTemplates`. + * @type int $page_size + * Size of the page. This value can be limited by the server. If zero server + * returns a page of max size 100. + * @type string $order_by + * Comma-separated list of fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc,update_time, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the template was created. + * - `update_time`: corresponds to the time the template was last updated. + * - `name`: corresponds to the template's name. + * - `display_name`: corresponds to the template's display name. + * @type string $location_id + * Deprecated. This field has no effect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Page token to continue retrieval. Comes from the previous call + * to `ListDeidentifyTemplates`. + * + * Generated from protobuf field string page_token = 2; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Page token to continue retrieval. Comes from the previous call + * to `ListDeidentifyTemplates`. + * + * Generated from protobuf field string page_token = 2; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Size of the page. This value can be limited by the server. If zero server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Size of the page. This value can be limited by the server. If zero server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Comma-separated list of fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc,update_time, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the template was created. + * - `update_time`: corresponds to the time the template was last updated. + * - `name`: corresponds to the template's name. + * - `display_name`: corresponds to the template's display name. + * + * Generated from protobuf field string order_by = 4; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Comma-separated list of fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc,update_time, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the template was created. + * - `update_time`: corresponds to the time the template was last updated. + * - `name`: corresponds to the template's name. + * - `display_name`: corresponds to the template's display name. + * + * Generated from protobuf field string order_by = 4; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 5; + * @return string + */ + public function getLocationId() + { + return $this->location_id; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 5; + * @param string $var + * @return $this + */ + public function setLocationId($var) + { + GPBUtil::checkString($var, True); + $this->location_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesResponse.php new file mode 100644 index 000000000000..9658d3643e65 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesResponse.php @@ -0,0 +1,109 @@ +google.privacy.dlp.v2.ListDeidentifyTemplatesResponse + */ +class ListDeidentifyTemplatesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of deidentify templates, up to page_size in + * ListDeidentifyTemplatesRequest. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DeidentifyTemplate deidentify_templates = 1; + */ + private $deidentify_templates; + /** + * If the next page is available then the next page token to be used in the + * following ListDeidentifyTemplates request. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate[] $deidentify_templates + * List of deidentify templates, up to page_size in + * ListDeidentifyTemplatesRequest. + * @type string $next_page_token + * If the next page is available then the next page token to be used in the + * following ListDeidentifyTemplates request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * List of deidentify templates, up to page_size in + * ListDeidentifyTemplatesRequest. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DeidentifyTemplate deidentify_templates = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\DeidentifyTemplate> + */ + public function getDeidentifyTemplates() + { + return $this->deidentify_templates; + } + + /** + * List of deidentify templates, up to page_size in + * ListDeidentifyTemplatesRequest. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DeidentifyTemplate deidentify_templates = 1; + * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate[] $var + * @return $this + */ + public function setDeidentifyTemplates($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); + $this->deidentify_templates = $arr; + + return $this; + } + + /** + * If the next page is available then the next page token to be used in the + * following ListDeidentifyTemplates request. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * If the next page is available then the next page token to be used in the + * following ListDeidentifyTemplates request. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsRequest.php new file mode 100644 index 000000000000..daad7f9fe2d6 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsRequest.php @@ -0,0 +1,256 @@ +google.privacy.dlp.v2.ListDiscoveryConfigsRequest + */ +class ListDiscoveryConfigsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource name. + * The format of this value is as follows: + * `projects/{project_id}/locations/{location_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Page token to continue retrieval. Comes from the previous call + * to ListDiscoveryConfigs. `order_by` field must not + * change for subsequent calls. + * + * Generated from protobuf field string page_token = 2; + */ + protected $page_token = ''; + /** + * Size of the page. This value can be limited by a server. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * Comma-separated list of config fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc,update_time, create_time desc` + * Supported fields are: + * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. + * - `name`: corresponds to the DiscoveryConfig's name. + * - `status`: corresponds to DiscoveryConfig's status. + * + * Generated from protobuf field string order_by = 4; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. Parent resource name. + * + * The format of this value is as follows: + * `projects/{project_id}/locations/{location_id}` + * + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * + * parent=projects/example-project/locations/europe-west3 + * Please see {@see DlpServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\ListDiscoveryConfigsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource name. + * The format of this value is as follows: + * `projects/{project_id}/locations/{location_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * @type string $page_token + * Page token to continue retrieval. Comes from the previous call + * to ListDiscoveryConfigs. `order_by` field must not + * change for subsequent calls. + * @type int $page_size + * Size of the page. This value can be limited by a server. + * @type string $order_by + * Comma-separated list of config fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc,update_time, create_time desc` + * Supported fields are: + * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. + * - `name`: corresponds to the DiscoveryConfig's name. + * - `status`: corresponds to DiscoveryConfig's status. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource name. + * The format of this value is as follows: + * `projects/{project_id}/locations/{location_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource name. + * The format of this value is as follows: + * `projects/{project_id}/locations/{location_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Page token to continue retrieval. Comes from the previous call + * to ListDiscoveryConfigs. `order_by` field must not + * change for subsequent calls. + * + * Generated from protobuf field string page_token = 2; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Page token to continue retrieval. Comes from the previous call + * to ListDiscoveryConfigs. `order_by` field must not + * change for subsequent calls. + * + * Generated from protobuf field string page_token = 2; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Size of the page. This value can be limited by a server. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Size of the page. This value can be limited by a server. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Comma-separated list of config fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc,update_time, create_time desc` + * Supported fields are: + * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. + * - `name`: corresponds to the DiscoveryConfig's name. + * - `status`: corresponds to DiscoveryConfig's status. + * + * Generated from protobuf field string order_by = 4; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Comma-separated list of config fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc,update_time, create_time desc` + * Supported fields are: + * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. + * - `name`: corresponds to the DiscoveryConfig's name. + * - `status`: corresponds to DiscoveryConfig's status. + * + * Generated from protobuf field string order_by = 4; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsResponse.php new file mode 100644 index 000000000000..e354cb2657fe --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsResponse.php @@ -0,0 +1,105 @@ +google.privacy.dlp.v2.ListDiscoveryConfigsResponse + */ +class ListDiscoveryConfigsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of configs, up to page_size in ListDiscoveryConfigsRequest. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryConfig discovery_configs = 1; + */ + private $discovery_configs; + /** + * If the next page is available then this value is the next page token to be + * used in the following ListDiscoveryConfigs request. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DiscoveryConfig[] $discovery_configs + * List of configs, up to page_size in ListDiscoveryConfigsRequest. + * @type string $next_page_token + * If the next page is available then this value is the next page token to be + * used in the following ListDiscoveryConfigs request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * List of configs, up to page_size in ListDiscoveryConfigsRequest. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryConfig discovery_configs = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\DiscoveryConfig> + */ + public function getDiscoveryConfigs() + { + return $this->discovery_configs; + } + + /** + * List of configs, up to page_size in ListDiscoveryConfigsRequest. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryConfig discovery_configs = 1; + * @param \Google\Cloud\Dlp\V2\DiscoveryConfig[] $var + * @return $this + */ + public function setDiscoveryConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DiscoveryConfig::class); + $this->discovery_configs = $arr; + + return $this; + } + + /** + * If the next page is available then this value is the next page token to be + * used in the following ListDiscoveryConfigs request. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * If the next page is available then this value is the next page token to be + * used in the following ListDiscoveryConfigs request. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsRequest.php new file mode 100644 index 000000000000..8c7680e036ee --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsRequest.php @@ -0,0 +1,472 @@ +google.privacy.dlp.v2.ListDlpJobsRequest + */ +class ListDlpJobsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields/values for inspect jobs: + * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED + * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY + * - `trigger_name` - The name of the trigger that created the job. + * - 'end_time` - Corresponds to the time the job finished. + * - 'start_time` - Corresponds to the time the job finished. + * * Supported fields for risk analysis jobs: + * - `state` - RUNNING|CANCELED|FINISHED|FAILED + * - 'end_time` - Corresponds to the time the job finished. + * - 'start_time` - Corresponds to the time the job finished. + * * The operator must be `=` or `!=`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * inspected_storage = cloud_storage AND state = done + * * inspected_storage = cloud_storage OR inspected_storage = bigquery + * * inspected_storage = cloud_storage AND (state = done OR state = canceled) + * * end_time > \"2017-12-12T00:00:00+00:00\" + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 1; + */ + protected $filter = ''; + /** + * The standard list page size. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * The standard list page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * The type of job. Defaults to `DlpJobType.INSPECT` + * + * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 5; + */ + protected $type = 0; + /** + * Comma-separated list of fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc, end_time asc, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the job was created. + * - `end_time`: corresponds to the time the job ended. + * - `name`: corresponds to the job's name. + * - `state`: corresponds to `state` + * + * Generated from protobuf field string order_by = 6; + */ + protected $order_by = ''; + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 7; + */ + protected $location_id = ''; + + /** + * @param string $parent Required. Parent resource name. + * + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * + * parent=projects/example-project/locations/europe-west3 + * Please see {@see DlpServiceClient::projectName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\ListDlpJobsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * @type string $filter + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields/values for inspect jobs: + * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED + * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY + * - `trigger_name` - The name of the trigger that created the job. + * - 'end_time` - Corresponds to the time the job finished. + * - 'start_time` - Corresponds to the time the job finished. + * * Supported fields for risk analysis jobs: + * - `state` - RUNNING|CANCELED|FINISHED|FAILED + * - 'end_time` - Corresponds to the time the job finished. + * - 'start_time` - Corresponds to the time the job finished. + * * The operator must be `=` or `!=`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * inspected_storage = cloud_storage AND state = done + * * inspected_storage = cloud_storage OR inspected_storage = bigquery + * * inspected_storage = cloud_storage AND (state = done OR state = canceled) + * * end_time > \"2017-12-12T00:00:00+00:00\" + * The length of this field should be no more than 500 characters. + * @type int $page_size + * The standard list page size. + * @type string $page_token + * The standard list page token. + * @type int $type + * The type of job. Defaults to `DlpJobType.INSPECT` + * @type string $order_by + * Comma-separated list of fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc, end_time asc, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the job was created. + * - `end_time`: corresponds to the time the job ended. + * - `name`: corresponds to the job's name. + * - `state`: corresponds to `state` + * @type string $location_id + * Deprecated. This field has no effect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields/values for inspect jobs: + * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED + * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY + * - `trigger_name` - The name of the trigger that created the job. + * - 'end_time` - Corresponds to the time the job finished. + * - 'start_time` - Corresponds to the time the job finished. + * * Supported fields for risk analysis jobs: + * - `state` - RUNNING|CANCELED|FINISHED|FAILED + * - 'end_time` - Corresponds to the time the job finished. + * - 'start_time` - Corresponds to the time the job finished. + * * The operator must be `=` or `!=`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * inspected_storage = cloud_storage AND state = done + * * inspected_storage = cloud_storage OR inspected_storage = bigquery + * * inspected_storage = cloud_storage AND (state = done OR state = canceled) + * * end_time > \"2017-12-12T00:00:00+00:00\" + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 1; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields/values for inspect jobs: + * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED + * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY + * - `trigger_name` - The name of the trigger that created the job. + * - 'end_time` - Corresponds to the time the job finished. + * - 'start_time` - Corresponds to the time the job finished. + * * Supported fields for risk analysis jobs: + * - `state` - RUNNING|CANCELED|FINISHED|FAILED + * - 'end_time` - Corresponds to the time the job finished. + * - 'start_time` - Corresponds to the time the job finished. + * * The operator must be `=` or `!=`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * inspected_storage = cloud_storage AND state = done + * * inspected_storage = cloud_storage OR inspected_storage = bigquery + * * inspected_storage = cloud_storage AND (state = done OR state = canceled) + * * end_time > \"2017-12-12T00:00:00+00:00\" + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 1; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * The standard list page size. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The standard list page size. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * The standard list page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * The standard list page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * The type of job. Defaults to `DlpJobType.INSPECT` + * + * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 5; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of job. Defaults to `DlpJobType.INSPECT` + * + * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 5; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DlpJobType::class); + $this->type = $var; + + return $this; + } + + /** + * Comma-separated list of fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc, end_time asc, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the job was created. + * - `end_time`: corresponds to the time the job ended. + * - `name`: corresponds to the job's name. + * - `state`: corresponds to `state` + * + * Generated from protobuf field string order_by = 6; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Comma-separated list of fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc, end_time asc, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the job was created. + * - `end_time`: corresponds to the time the job ended. + * - `name`: corresponds to the job's name. + * - `state`: corresponds to `state` + * + * Generated from protobuf field string order_by = 6; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 7; + * @return string + */ + public function getLocationId() + { + return $this->location_id; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 7; + * @param string $var + * @return $this + */ + public function setLocationId($var) + { + GPBUtil::checkString($var, True); + $this->location_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsResponse.php new file mode 100644 index 000000000000..f5d7a556a866 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsResponse.php @@ -0,0 +1,101 @@ +google.privacy.dlp.v2.ListDlpJobsResponse + */ +class ListDlpJobsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of DlpJobs that matches the specified filter in the request. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DlpJob jobs = 1; + */ + private $jobs; + /** + * The standard List next-page token. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DlpJob[] $jobs + * A list of DlpJobs that matches the specified filter in the request. + * @type string $next_page_token + * The standard List next-page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A list of DlpJobs that matches the specified filter in the request. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DlpJob jobs = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\DlpJob> + */ + public function getJobs() + { + return $this->jobs; + } + + /** + * A list of DlpJobs that matches the specified filter in the request. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.DlpJob jobs = 1; + * @param \Google\Cloud\Dlp\V2\DlpJob[] $var + * @return $this + */ + public function setJobs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DlpJob::class); + $this->jobs = $arr; + + return $this; + } + + /** + * The standard List next-page token. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The standard List next-page token. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesRequest.php new file mode 100644 index 000000000000..71099bd16d2a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesRequest.php @@ -0,0 +1,420 @@ +google.privacy.dlp.v2.ListFileStoreDataProfilesRequest + */ +class ListFileStoreDataProfilesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the organization or project, for + * example `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Page token to continue retrieval. + * + * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Size of the page. This value can be limited by the server. If + * zero, server returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Comma-separated list of fields to order by, followed by `asc` or + * `desc` postfix. This list is case insensitive. The default sorting order is + * ascending. Redundant space characters are insignificant. Only one order + * field at a time is allowed. + * Examples: + * * `project_id asc` + * * `name` + * * `sensitivity_level desc` + * Supported fields are: + * - `project_id`: The Google Cloud project ID. + * - `sensitivity_level`: How sensitive the data in a table is, at most. + * - `data_risk_level`: How much risk is associated with this data. + * - `profile_last_generated`: When the profile was last updated in epoch + * seconds. + * - `last_modified`: The last time the resource was modified. + * - `resource_visibility`: Visibility restriction for this resource. + * - `name`: The name of the profile. + * - `create_time`: The time the file store was first created. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields: + * - `project_id`: The Google Cloud project ID + * - `account_id`: The AWS account ID + * - `file_store_path`: The path like "gs://bucket" + * - `data_source_type`: The profile's data source type, like + * "google/storage/bucket" + * - `data_storage_location`: The location where the file store's data is + * stored, like "us-central1" + * - `sensitivity_level`: HIGH|MODERATE|LOW + * - `data_risk_level`: HIGH|MODERATE|LOW + * - `resource_visibility`: PUBLIC|RESTRICTED + * - `status_code`: an RPC status code as defined in + * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * - `profile_last_generated`: Date and time the profile was last + * generated + * * The operator must be `=` or `!=`. The `profile_last_generated` filter + * also supports `<` and `>`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * `project_id = 12345 AND status_code = 1` + * * `project_id = 12345 AND sensitivity_level = HIGH` + * * `project_id = 12345 AND resource_visibility = PUBLIC` + * * `file_store_path = "gs://mybucket"` + * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. Resource name of the organization or project, for + * example `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. Please see + * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\ListFileStoreDataProfilesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Resource name of the organization or project, for + * example `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. + * @type string $page_token + * Optional. Page token to continue retrieval. + * @type int $page_size + * Optional. Size of the page. This value can be limited by the server. If + * zero, server returns a page of max size 100. + * @type string $order_by + * Optional. Comma-separated list of fields to order by, followed by `asc` or + * `desc` postfix. This list is case insensitive. The default sorting order is + * ascending. Redundant space characters are insignificant. Only one order + * field at a time is allowed. + * Examples: + * * `project_id asc` + * * `name` + * * `sensitivity_level desc` + * Supported fields are: + * - `project_id`: The Google Cloud project ID. + * - `sensitivity_level`: How sensitive the data in a table is, at most. + * - `data_risk_level`: How much risk is associated with this data. + * - `profile_last_generated`: When the profile was last updated in epoch + * seconds. + * - `last_modified`: The last time the resource was modified. + * - `resource_visibility`: Visibility restriction for this resource. + * - `name`: The name of the profile. + * - `create_time`: The time the file store was first created. + * @type string $filter + * Optional. Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields: + * - `project_id`: The Google Cloud project ID + * - `account_id`: The AWS account ID + * - `file_store_path`: The path like "gs://bucket" + * - `data_source_type`: The profile's data source type, like + * "google/storage/bucket" + * - `data_storage_location`: The location where the file store's data is + * stored, like "us-central1" + * - `sensitivity_level`: HIGH|MODERATE|LOW + * - `data_risk_level`: HIGH|MODERATE|LOW + * - `resource_visibility`: PUBLIC|RESTRICTED + * - `status_code`: an RPC status code as defined in + * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * - `profile_last_generated`: Date and time the profile was last + * generated + * * The operator must be `=` or `!=`. The `profile_last_generated` filter + * also supports `<` and `>`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * `project_id = 12345 AND status_code = 1` + * * `project_id = 12345 AND sensitivity_level = HIGH` + * * `project_id = 12345 AND resource_visibility = PUBLIC` + * * `file_store_path = "gs://mybucket"` + * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` + * The length of this field should be no more than 500 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the organization or project, for + * example `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Resource name of the organization or project, for + * example `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. Page token to continue retrieval. + * + * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. Page token to continue retrieval. + * + * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Size of the page. This value can be limited by the server. If + * zero, server returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Size of the page. This value can be limited by the server. If + * zero, server returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. Comma-separated list of fields to order by, followed by `asc` or + * `desc` postfix. This list is case insensitive. The default sorting order is + * ascending. Redundant space characters are insignificant. Only one order + * field at a time is allowed. + * Examples: + * * `project_id asc` + * * `name` + * * `sensitivity_level desc` + * Supported fields are: + * - `project_id`: The Google Cloud project ID. + * - `sensitivity_level`: How sensitive the data in a table is, at most. + * - `data_risk_level`: How much risk is associated with this data. + * - `profile_last_generated`: When the profile was last updated in epoch + * seconds. + * - `last_modified`: The last time the resource was modified. + * - `resource_visibility`: Visibility restriction for this resource. + * - `name`: The name of the profile. + * - `create_time`: The time the file store was first created. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Comma-separated list of fields to order by, followed by `asc` or + * `desc` postfix. This list is case insensitive. The default sorting order is + * ascending. Redundant space characters are insignificant. Only one order + * field at a time is allowed. + * Examples: + * * `project_id asc` + * * `name` + * * `sensitivity_level desc` + * Supported fields are: + * - `project_id`: The Google Cloud project ID. + * - `sensitivity_level`: How sensitive the data in a table is, at most. + * - `data_risk_level`: How much risk is associated with this data. + * - `profile_last_generated`: When the profile was last updated in epoch + * seconds. + * - `last_modified`: The last time the resource was modified. + * - `resource_visibility`: Visibility restriction for this resource. + * - `name`: The name of the profile. + * - `create_time`: The time the file store was first created. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields: + * - `project_id`: The Google Cloud project ID + * - `account_id`: The AWS account ID + * - `file_store_path`: The path like "gs://bucket" + * - `data_source_type`: The profile's data source type, like + * "google/storage/bucket" + * - `data_storage_location`: The location where the file store's data is + * stored, like "us-central1" + * - `sensitivity_level`: HIGH|MODERATE|LOW + * - `data_risk_level`: HIGH|MODERATE|LOW + * - `resource_visibility`: PUBLIC|RESTRICTED + * - `status_code`: an RPC status code as defined in + * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * - `profile_last_generated`: Date and time the profile was last + * generated + * * The operator must be `=` or `!=`. The `profile_last_generated` filter + * also supports `<` and `>`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * `project_id = 12345 AND status_code = 1` + * * `project_id = 12345 AND sensitivity_level = HIGH` + * * `project_id = 12345 AND resource_visibility = PUBLIC` + * * `file_store_path = "gs://mybucket"` + * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields: + * - `project_id`: The Google Cloud project ID + * - `account_id`: The AWS account ID + * - `file_store_path`: The path like "gs://bucket" + * - `data_source_type`: The profile's data source type, like + * "google/storage/bucket" + * - `data_storage_location`: The location where the file store's data is + * stored, like "us-central1" + * - `sensitivity_level`: HIGH|MODERATE|LOW + * - `data_risk_level`: HIGH|MODERATE|LOW + * - `resource_visibility`: PUBLIC|RESTRICTED + * - `status_code`: an RPC status code as defined in + * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * - `profile_last_generated`: Date and time the profile was last + * generated + * * The operator must be `=` or `!=`. The `profile_last_generated` filter + * also supports `<` and `>`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * `project_id = 12345 AND status_code = 1` + * * `project_id = 12345 AND sensitivity_level = HIGH` + * * `project_id = 12345 AND resource_visibility = PUBLIC` + * * `file_store_path = "gs://mybucket"` + * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesResponse.php new file mode 100644 index 000000000000..1b5719f5930a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesResponse.php @@ -0,0 +1,102 @@ +google.privacy.dlp.v2.ListFileStoreDataProfilesResponse + */ +class ListFileStoreDataProfilesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of data profiles. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + */ + private $file_store_data_profiles; + /** + * The next page token. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FileStoreDataProfile[] $file_store_data_profiles + * List of data profiles. + * @type string $next_page_token + * The next page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * List of data profiles. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\FileStoreDataProfile> + */ + public function getFileStoreDataProfiles() + { + return $this->file_store_data_profiles; + } + + /** + * List of data profiles. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; + * @param \Google\Cloud\Dlp\V2\FileStoreDataProfile[] $var + * @return $this + */ + public function setFileStoreDataProfiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileStoreDataProfile::class); + $this->file_store_data_profiles = $arr; + + return $this; + } + + /** + * The next page token. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The next page token. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesRequest.php new file mode 100644 index 000000000000..58798ceac798 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesRequest.php @@ -0,0 +1,206 @@ +google.privacy.dlp.v2.ListInfoTypesRequest + */ +class ListInfoTypesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The parent resource name. + * The format of this value is as follows: + * `locations/{location_id}` + * + * Generated from protobuf field string parent = 4; + */ + protected $parent = ''; + /** + * BCP-47 language code for localized infoType friendly + * names. If omitted, or if localized strings are not available, + * en-US strings will be returned. + * + * Generated from protobuf field string language_code = 1; + */ + protected $language_code = ''; + /** + * filter to only return infoTypes supported by certain parts of the + * API. Defaults to supported_by=INSPECT. + * + * Generated from protobuf field string filter = 2; + */ + protected $filter = ''; + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 3; + */ + protected $location_id = ''; + + /** + * @param string $parent The parent resource name. + * + * The format of this value is as follows: + * + * `locations/{location_id}` + * + * @return \Google\Cloud\Dlp\V2\ListInfoTypesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * The parent resource name. + * The format of this value is as follows: + * `locations/{location_id}` + * @type string $language_code + * BCP-47 language code for localized infoType friendly + * names. If omitted, or if localized strings are not available, + * en-US strings will be returned. + * @type string $filter + * filter to only return infoTypes supported by certain parts of the + * API. Defaults to supported_by=INSPECT. + * @type string $location_id + * Deprecated. This field has no effect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The parent resource name. + * The format of this value is as follows: + * `locations/{location_id}` + * + * Generated from protobuf field string parent = 4; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The parent resource name. + * The format of this value is as follows: + * `locations/{location_id}` + * + * Generated from protobuf field string parent = 4; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * BCP-47 language code for localized infoType friendly + * names. If omitted, or if localized strings are not available, + * en-US strings will be returned. + * + * Generated from protobuf field string language_code = 1; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * BCP-47 language code for localized infoType friendly + * names. If omitted, or if localized strings are not available, + * en-US strings will be returned. + * + * Generated from protobuf field string language_code = 1; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + + /** + * filter to only return infoTypes supported by certain parts of the + * API. Defaults to supported_by=INSPECT. + * + * Generated from protobuf field string filter = 2; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * filter to only return infoTypes supported by certain parts of the + * API. Defaults to supported_by=INSPECT. + * + * Generated from protobuf field string filter = 2; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 3; + * @return string + */ + public function getLocationId() + { + return $this->location_id; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 3; + * @param string $var + * @return $this + */ + public function setLocationId($var) + { + GPBUtil::checkString($var, True); + $this->location_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesResponse.php new file mode 100644 index 000000000000..0b152efe8d50 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesResponse.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.ListInfoTypesResponse + */ +class ListInfoTypesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Set of sensitive infoTypes. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeDescription info_types = 1; + */ + private $info_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoTypeDescription[] $info_types + * Set of sensitive infoTypes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Set of sensitive infoTypes. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeDescription info_types = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoTypeDescription> + */ + public function getInfoTypes() + { + return $this->info_types; + } + + /** + * Set of sensitive infoTypes. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeDescription info_types = 1; + * @param \Google\Cloud\Dlp\V2\InfoTypeDescription[] $var + * @return $this + */ + public function setInfoTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoTypeDescription::class); + $this->info_types = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesRequest.php new file mode 100644 index 000000000000..564f71a69674 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesRequest.php @@ -0,0 +1,340 @@ +google.privacy.dlp.v2.ListInspectTemplatesRequest + */ +class ListInspectTemplatesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Page token to continue retrieval. Comes from the previous call + * to `ListInspectTemplates`. + * + * Generated from protobuf field string page_token = 2; + */ + protected $page_token = ''; + /** + * Size of the page. This value can be limited by the server. If zero server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * Comma-separated list of fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc,update_time, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the template was created. + * - `update_time`: corresponds to the time the template was last updated. + * - `name`: corresponds to the template's name. + * - `display_name`: corresponds to the template's display name. + * + * Generated from protobuf field string order_by = 4; + */ + protected $order_by = ''; + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 5; + */ + protected $location_id = ''; + + /** + * @param string $parent Required. Parent resource name. + * + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * + * parent=projects/example-project/locations/europe-west3 + * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\ListInspectTemplatesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * @type string $page_token + * Page token to continue retrieval. Comes from the previous call + * to `ListInspectTemplates`. + * @type int $page_size + * Size of the page. This value can be limited by the server. If zero server + * returns a page of max size 100. + * @type string $order_by + * Comma-separated list of fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc,update_time, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the template was created. + * - `update_time`: corresponds to the time the template was last updated. + * - `name`: corresponds to the template's name. + * - `display_name`: corresponds to the template's display name. + * @type string $location_id + * Deprecated. This field has no effect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + Organizations scope, location specified: + * `organizations/{org_id}/locations/{location_id}` + * + Organizations scope, no location specified (defaults to global): + * `organizations/{org_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Page token to continue retrieval. Comes from the previous call + * to `ListInspectTemplates`. + * + * Generated from protobuf field string page_token = 2; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Page token to continue retrieval. Comes from the previous call + * to `ListInspectTemplates`. + * + * Generated from protobuf field string page_token = 2; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Size of the page. This value can be limited by the server. If zero server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Size of the page. This value can be limited by the server. If zero server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Comma-separated list of fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc,update_time, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the template was created. + * - `update_time`: corresponds to the time the template was last updated. + * - `name`: corresponds to the template's name. + * - `display_name`: corresponds to the template's display name. + * + * Generated from protobuf field string order_by = 4; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Comma-separated list of fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc,update_time, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the template was created. + * - `update_time`: corresponds to the time the template was last updated. + * - `name`: corresponds to the template's name. + * - `display_name`: corresponds to the template's display name. + * + * Generated from protobuf field string order_by = 4; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 5; + * @return string + */ + public function getLocationId() + { + return $this->location_id; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 5; + * @param string $var + * @return $this + */ + public function setLocationId($var) + { + GPBUtil::checkString($var, True); + $this->location_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesResponse.php new file mode 100644 index 000000000000..eaee73fe1770 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesResponse.php @@ -0,0 +1,105 @@ +google.privacy.dlp.v2.ListInspectTemplatesResponse + */ +class ListInspectTemplatesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of inspectTemplates, up to page_size in ListInspectTemplatesRequest. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectTemplate inspect_templates = 1; + */ + private $inspect_templates; + /** + * If the next page is available then the next page token to be used in the + * following ListInspectTemplates request. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InspectTemplate[] $inspect_templates + * List of inspectTemplates, up to page_size in ListInspectTemplatesRequest. + * @type string $next_page_token + * If the next page is available then the next page token to be used in the + * following ListInspectTemplates request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * List of inspectTemplates, up to page_size in ListInspectTemplatesRequest. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectTemplate inspect_templates = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InspectTemplate> + */ + public function getInspectTemplates() + { + return $this->inspect_templates; + } + + /** + * List of inspectTemplates, up to page_size in ListInspectTemplatesRequest. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectTemplate inspect_templates = 1; + * @param \Google\Cloud\Dlp\V2\InspectTemplate[] $var + * @return $this + */ + public function setInspectTemplates($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InspectTemplate::class); + $this->inspect_templates = $arr; + + return $this; + } + + /** + * If the next page is available then the next page token to be used in the + * following ListInspectTemplates request. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * If the next page is available then the next page token to be used in the + * following ListInspectTemplates request. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersRequest.php new file mode 100644 index 000000000000..6992b36bba7a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersRequest.php @@ -0,0 +1,472 @@ +google.privacy.dlp.v2.ListJobTriggersRequest + */ +class ListJobTriggersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Page token to continue retrieval. Comes from the previous call + * to ListJobTriggers. `order_by` field must not + * change for subsequent calls. + * + * Generated from protobuf field string page_token = 2; + */ + protected $page_token = ''; + /** + * Size of the page. This value can be limited by a server. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * Comma-separated list of triggeredJob fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc,update_time, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the JobTrigger was created. + * - `update_time`: corresponds to the time the JobTrigger was last updated. + * - `last_run_time`: corresponds to the last time the JobTrigger ran. + * - `name`: corresponds to the JobTrigger's name. + * - `display_name`: corresponds to the JobTrigger's display name. + * - `status`: corresponds to JobTrigger's status. + * + * Generated from protobuf field string order_by = 4; + */ + protected $order_by = ''; + /** + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields/values for inspect triggers: + * - `status` - HEALTHY|PAUSED|CANCELLED + * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY + * - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by + * quotation marks. Nanoseconds are ignored. + * - 'error_count' - Number of errors that have occurred while running. + * * The operator must be `=` or `!=` for status and inspected_storage. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * inspected_storage = cloud_storage AND status = HEALTHY + * * inspected_storage = cloud_storage OR inspected_storage = bigquery + * * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) + * * last_run_time > \"2017-12-12T00:00:00+00:00\" + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 5; + */ + protected $filter = ''; + /** + * The type of jobs. Will use `DlpJobType.INSPECT` if not set. + * + * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 6; + */ + protected $type = 0; + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 7; + */ + protected $location_id = ''; + + /** + * @param string $parent Required. Parent resource name. + * + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * + * parent=projects/example-project/locations/europe-west3 + * Please see {@see DlpServiceClient::projectName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\ListJobTriggersRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * @type string $page_token + * Page token to continue retrieval. Comes from the previous call + * to ListJobTriggers. `order_by` field must not + * change for subsequent calls. + * @type int $page_size + * Size of the page. This value can be limited by a server. + * @type string $order_by + * Comma-separated list of triggeredJob fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc,update_time, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the JobTrigger was created. + * - `update_time`: corresponds to the time the JobTrigger was last updated. + * - `last_run_time`: corresponds to the last time the JobTrigger ran. + * - `name`: corresponds to the JobTrigger's name. + * - `display_name`: corresponds to the JobTrigger's display name. + * - `status`: corresponds to JobTrigger's status. + * @type string $filter + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields/values for inspect triggers: + * - `status` - HEALTHY|PAUSED|CANCELLED + * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY + * - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by + * quotation marks. Nanoseconds are ignored. + * - 'error_count' - Number of errors that have occurred while running. + * * The operator must be `=` or `!=` for status and inspected_storage. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * inspected_storage = cloud_storage AND status = HEALTHY + * * inspected_storage = cloud_storage OR inspected_storage = bigquery + * * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) + * * last_run_time > \"2017-12-12T00:00:00+00:00\" + * The length of this field should be no more than 500 characters. + * @type int $type + * The type of jobs. Will use `DlpJobType.INSPECT` if not set. + * @type string $location_id + * Deprecated. This field has no effect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Page token to continue retrieval. Comes from the previous call + * to ListJobTriggers. `order_by` field must not + * change for subsequent calls. + * + * Generated from protobuf field string page_token = 2; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Page token to continue retrieval. Comes from the previous call + * to ListJobTriggers. `order_by` field must not + * change for subsequent calls. + * + * Generated from protobuf field string page_token = 2; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Size of the page. This value can be limited by a server. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Size of the page. This value can be limited by a server. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Comma-separated list of triggeredJob fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc,update_time, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the JobTrigger was created. + * - `update_time`: corresponds to the time the JobTrigger was last updated. + * - `last_run_time`: corresponds to the last time the JobTrigger ran. + * - `name`: corresponds to the JobTrigger's name. + * - `display_name`: corresponds to the JobTrigger's display name. + * - `status`: corresponds to JobTrigger's status. + * + * Generated from protobuf field string order_by = 4; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Comma-separated list of triggeredJob fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc,update_time, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the JobTrigger was created. + * - `update_time`: corresponds to the time the JobTrigger was last updated. + * - `last_run_time`: corresponds to the last time the JobTrigger ran. + * - `name`: corresponds to the JobTrigger's name. + * - `display_name`: corresponds to the JobTrigger's display name. + * - `status`: corresponds to JobTrigger's status. + * + * Generated from protobuf field string order_by = 4; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields/values for inspect triggers: + * - `status` - HEALTHY|PAUSED|CANCELLED + * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY + * - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by + * quotation marks. Nanoseconds are ignored. + * - 'error_count' - Number of errors that have occurred while running. + * * The operator must be `=` or `!=` for status and inspected_storage. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * inspected_storage = cloud_storage AND status = HEALTHY + * * inspected_storage = cloud_storage OR inspected_storage = bigquery + * * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) + * * last_run_time > \"2017-12-12T00:00:00+00:00\" + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 5; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields/values for inspect triggers: + * - `status` - HEALTHY|PAUSED|CANCELLED + * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY + * - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by + * quotation marks. Nanoseconds are ignored. + * - 'error_count' - Number of errors that have occurred while running. + * * The operator must be `=` or `!=` for status and inspected_storage. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * inspected_storage = cloud_storage AND status = HEALTHY + * * inspected_storage = cloud_storage OR inspected_storage = bigquery + * * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) + * * last_run_time > \"2017-12-12T00:00:00+00:00\" + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 5; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * The type of jobs. Will use `DlpJobType.INSPECT` if not set. + * + * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 6; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of jobs. Will use `DlpJobType.INSPECT` if not set. + * + * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 6; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DlpJobType::class); + $this->type = $var; + + return $this; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 7; + * @return string + */ + public function getLocationId() + { + return $this->location_id; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 7; + * @param string $var + * @return $this + */ + public function setLocationId($var) + { + GPBUtil::checkString($var, True); + $this->location_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersResponse.php new file mode 100644 index 000000000000..835380961f88 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersResponse.php @@ -0,0 +1,105 @@ +google.privacy.dlp.v2.ListJobTriggersResponse + */ +class ListJobTriggersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of triggeredJobs, up to page_size in ListJobTriggersRequest. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger job_triggers = 1; + */ + private $job_triggers; + /** + * If the next page is available then this value is the next page token to be + * used in the following ListJobTriggers request. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\JobTrigger[] $job_triggers + * List of triggeredJobs, up to page_size in ListJobTriggersRequest. + * @type string $next_page_token + * If the next page is available then this value is the next page token to be + * used in the following ListJobTriggers request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * List of triggeredJobs, up to page_size in ListJobTriggersRequest. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger job_triggers = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\JobTrigger> + */ + public function getJobTriggers() + { + return $this->job_triggers; + } + + /** + * List of triggeredJobs, up to page_size in ListJobTriggersRequest. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger job_triggers = 1; + * @param \Google\Cloud\Dlp\V2\JobTrigger[] $var + * @return $this + */ + public function setJobTriggers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\JobTrigger::class); + $this->job_triggers = $arr; + + return $this; + } + + /** + * If the next page is available then this value is the next page token to be + * used in the following ListJobTriggers request. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * If the next page is available then this value is the next page token to be + * used in the following ListJobTriggers request. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesRequest.php new file mode 100644 index 000000000000..19424895f0a4 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesRequest.php @@ -0,0 +1,353 @@ +google.privacy.dlp.v2.ListProjectDataProfilesRequest + */ +class ListProjectDataProfilesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. organizations/{org_id}/locations/{loc_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Page token to continue retrieval. + * + * Generated from protobuf field string page_token = 2; + */ + protected $page_token = ''; + /** + * Size of the page. This value can be limited by the server. If zero, server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * Comma-separated list of fields to order by, followed by `asc` or `desc` + * postfix. This list is case insensitive. The default sorting order is + * ascending. Redundant space characters are insignificant. Only one order + * field at a time is allowed. + * Examples: + * * `project_id` + * * `sensitivity_level desc` + * Supported fields: + * - `project_id`: Google Cloud project ID + * - `sensitivity_level`: How sensitive the data in a project is, at most + * - `data_risk_level`: How much risk is associated with this data + * - `profile_last_generated`: Date and time (in epoch seconds) the profile + * was last generated + * + * Generated from protobuf field string order_by = 4; + */ + protected $order_by = ''; + /** + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields: + * - `project_id`: the Google Cloud project ID + * - `sensitivity_level`: HIGH|MODERATE|LOW + * - `data_risk_level`: HIGH|MODERATE|LOW + * - `status_code`: an RPC status code as defined in + * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * - `profile_last_generated`: Date and time the profile was last + * generated + * * The operator must be `=` or `!=`. The `profile_last_generated` filter + * also supports `<` and `>`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * `project_id = 12345 AND status_code = 1` + * * `project_id = 12345 AND sensitivity_level = HIGH` + * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 5; + */ + protected $filter = ''; + + /** + * @param string $parent Required. organizations/{org_id}/locations/{loc_id} + * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\ListProjectDataProfilesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. organizations/{org_id}/locations/{loc_id} + * @type string $page_token + * Page token to continue retrieval. + * @type int $page_size + * Size of the page. This value can be limited by the server. If zero, server + * returns a page of max size 100. + * @type string $order_by + * Comma-separated list of fields to order by, followed by `asc` or `desc` + * postfix. This list is case insensitive. The default sorting order is + * ascending. Redundant space characters are insignificant. Only one order + * field at a time is allowed. + * Examples: + * * `project_id` + * * `sensitivity_level desc` + * Supported fields: + * - `project_id`: Google Cloud project ID + * - `sensitivity_level`: How sensitive the data in a project is, at most + * - `data_risk_level`: How much risk is associated with this data + * - `profile_last_generated`: Date and time (in epoch seconds) the profile + * was last generated + * @type string $filter + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields: + * - `project_id`: the Google Cloud project ID + * - `sensitivity_level`: HIGH|MODERATE|LOW + * - `data_risk_level`: HIGH|MODERATE|LOW + * - `status_code`: an RPC status code as defined in + * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * - `profile_last_generated`: Date and time the profile was last + * generated + * * The operator must be `=` or `!=`. The `profile_last_generated` filter + * also supports `<` and `>`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * `project_id = 12345 AND status_code = 1` + * * `project_id = 12345 AND sensitivity_level = HIGH` + * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` + * The length of this field should be no more than 500 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. organizations/{org_id}/locations/{loc_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. organizations/{org_id}/locations/{loc_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Page token to continue retrieval. + * + * Generated from protobuf field string page_token = 2; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Page token to continue retrieval. + * + * Generated from protobuf field string page_token = 2; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Size of the page. This value can be limited by the server. If zero, server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Size of the page. This value can be limited by the server. If zero, server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Comma-separated list of fields to order by, followed by `asc` or `desc` + * postfix. This list is case insensitive. The default sorting order is + * ascending. Redundant space characters are insignificant. Only one order + * field at a time is allowed. + * Examples: + * * `project_id` + * * `sensitivity_level desc` + * Supported fields: + * - `project_id`: Google Cloud project ID + * - `sensitivity_level`: How sensitive the data in a project is, at most + * - `data_risk_level`: How much risk is associated with this data + * - `profile_last_generated`: Date and time (in epoch seconds) the profile + * was last generated + * + * Generated from protobuf field string order_by = 4; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Comma-separated list of fields to order by, followed by `asc` or `desc` + * postfix. This list is case insensitive. The default sorting order is + * ascending. Redundant space characters are insignificant. Only one order + * field at a time is allowed. + * Examples: + * * `project_id` + * * `sensitivity_level desc` + * Supported fields: + * - `project_id`: Google Cloud project ID + * - `sensitivity_level`: How sensitive the data in a project is, at most + * - `data_risk_level`: How much risk is associated with this data + * - `profile_last_generated`: Date and time (in epoch seconds) the profile + * was last generated + * + * Generated from protobuf field string order_by = 4; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields: + * - `project_id`: the Google Cloud project ID + * - `sensitivity_level`: HIGH|MODERATE|LOW + * - `data_risk_level`: HIGH|MODERATE|LOW + * - `status_code`: an RPC status code as defined in + * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * - `profile_last_generated`: Date and time the profile was last + * generated + * * The operator must be `=` or `!=`. The `profile_last_generated` filter + * also supports `<` and `>`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * `project_id = 12345 AND status_code = 1` + * * `project_id = 12345 AND sensitivity_level = HIGH` + * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 5; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields: + * - `project_id`: the Google Cloud project ID + * - `sensitivity_level`: HIGH|MODERATE|LOW + * - `data_risk_level`: HIGH|MODERATE|LOW + * - `status_code`: an RPC status code as defined in + * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * - `profile_last_generated`: Date and time the profile was last + * generated + * * The operator must be `=` or `!=`. The `profile_last_generated` filter + * also supports `<` and `>`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * `project_id = 12345 AND status_code = 1` + * * `project_id = 12345 AND sensitivity_level = HIGH` + * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 5; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesResponse.php new file mode 100644 index 000000000000..9b6a614941c2 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesResponse.php @@ -0,0 +1,101 @@ +google.privacy.dlp.v2.ListProjectDataProfilesResponse + */ +class ListProjectDataProfilesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of data profiles. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + private $project_data_profiles; + /** + * The next page token. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\ProjectDataProfile[] $project_data_profiles + * List of data profiles. + * @type string $next_page_token + * The next page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * List of data profiles. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\ProjectDataProfile> + */ + public function getProjectDataProfiles() + { + return $this->project_data_profiles; + } + + /** + * List of data profiles. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + * @param \Google\Cloud\Dlp\V2\ProjectDataProfile[] $var + * @return $this + */ + public function setProjectDataProfiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ProjectDataProfile::class); + $this->project_data_profiles = $arr; + + return $this; + } + + /** + * The next page token. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The next page token. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesRequest.php new file mode 100644 index 000000000000..a3980c1c2404 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesRequest.php @@ -0,0 +1,324 @@ +google.privacy.dlp.v2.ListStoredInfoTypesRequest + */ +class ListStoredInfoTypesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Page token to continue retrieval. Comes from the previous call + * to `ListStoredInfoTypes`. + * + * Generated from protobuf field string page_token = 2; + */ + protected $page_token = ''; + /** + * Size of the page. This value can be limited by the server. If zero server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * Comma-separated list of fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc, display_name, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the most recent version of the + * resource was created. + * - `state`: corresponds to the state of the resource. + * - `name`: corresponds to resource name. + * - `display_name`: corresponds to info type's display name. + * + * Generated from protobuf field string order_by = 4; + */ + protected $order_by = ''; + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 5; + */ + protected $location_id = ''; + + /** + * @param string $parent Required. Parent resource name. + * + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * + * parent=projects/example-project/locations/europe-west3 + * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\ListStoredInfoTypesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * @type string $page_token + * Page token to continue retrieval. Comes from the previous call + * to `ListStoredInfoTypes`. + * @type int $page_size + * Size of the page. This value can be limited by the server. If zero server + * returns a page of max size 100. + * @type string $order_by + * Comma-separated list of fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc, display_name, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the most recent version of the + * resource was created. + * - `state`: corresponds to the state of the resource. + * - `name`: corresponds to resource name. + * - `display_name`: corresponds to info type's display name. + * @type string $location_id + * Deprecated. This field has no effect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on the scope of the request + * (project or organization) and whether you have [specified a processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Page token to continue retrieval. Comes from the previous call + * to `ListStoredInfoTypes`. + * + * Generated from protobuf field string page_token = 2; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Page token to continue retrieval. Comes from the previous call + * to `ListStoredInfoTypes`. + * + * Generated from protobuf field string page_token = 2; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Size of the page. This value can be limited by the server. If zero server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Size of the page. This value can be limited by the server. If zero server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Comma-separated list of fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc, display_name, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the most recent version of the + * resource was created. + * - `state`: corresponds to the state of the resource. + * - `name`: corresponds to resource name. + * - `display_name`: corresponds to info type's display name. + * + * Generated from protobuf field string order_by = 4; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Comma-separated list of fields to order by, + * followed by `asc` or `desc` postfix. This list is case insensitive. The + * default sorting order is ascending. Redundant space characters are + * insignificant. + * Example: `name asc, display_name, create_time desc` + * Supported fields are: + * - `create_time`: corresponds to the time the most recent version of the + * resource was created. + * - `state`: corresponds to the state of the resource. + * - `name`: corresponds to resource name. + * - `display_name`: corresponds to info type's display name. + * + * Generated from protobuf field string order_by = 4; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 5; + * @return string + */ + public function getLocationId() + { + return $this->location_id; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 5; + * @param string $var + * @return $this + */ + public function setLocationId($var) + { + GPBUtil::checkString($var, True); + $this->location_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesResponse.php new file mode 100644 index 000000000000..b39e6027aa3e --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesResponse.php @@ -0,0 +1,105 @@ +google.privacy.dlp.v2.ListStoredInfoTypesResponse + */ +class ListStoredInfoTypesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoType stored_info_types = 1; + */ + private $stored_info_types; + /** + * If the next page is available then the next page token to be used + * in the following ListStoredInfoTypes request. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\StoredInfoType[] $stored_info_types + * List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest. + * @type string $next_page_token + * If the next page is available then the next page token to be used + * in the following ListStoredInfoTypes request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoType stored_info_types = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\StoredInfoType> + */ + public function getStoredInfoTypes() + { + return $this->stored_info_types; + } + + /** + * List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoType stored_info_types = 1; + * @param \Google\Cloud\Dlp\V2\StoredInfoType[] $var + * @return $this + */ + public function setStoredInfoTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\StoredInfoType::class); + $this->stored_info_types = $arr; + + return $this; + } + + /** + * If the next page is available then the next page token to be used + * in the following ListStoredInfoTypes request. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * If the next page is available then the next page token to be used + * in the following ListStoredInfoTypes request. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesRequest.php new file mode 100644 index 000000000000..8c470f32e6ba --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesRequest.php @@ -0,0 +1,403 @@ +google.privacy.dlp.v2.ListTableDataProfilesRequest + */ +class ListTableDataProfilesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the organization or project, for + * example `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Page token to continue retrieval. + * + * Generated from protobuf field string page_token = 2; + */ + protected $page_token = ''; + /** + * Size of the page. This value can be limited by the server. If zero, server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * Comma-separated list of fields to order by, followed by `asc` or `desc` + * postfix. This list is case insensitive. The default sorting order is + * ascending. Redundant space characters are insignificant. Only one order + * field at a time is allowed. + * Examples: + * * `project_id asc` + * * `table_id` + * * `sensitivity_level desc` + * Supported fields are: + * - `project_id`: The Google Cloud project ID. + * - `dataset_id`: The ID of a BigQuery dataset. + * - `table_id`: The ID of a BigQuery table. + * - `sensitivity_level`: How sensitive the data in a table is, at most. + * - `data_risk_level`: How much risk is associated with this data. + * - `profile_last_generated`: When the profile was last updated in epoch + * seconds. + * - `last_modified`: The last time the resource was modified. + * - `resource_visibility`: Visibility restriction for this resource. + * - `row_count`: Number of rows in this resource. + * + * Generated from protobuf field string order_by = 4; + */ + protected $order_by = ''; + /** + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields: + * - `project_id`: The Google Cloud project ID + * - `dataset_id`: The BigQuery dataset ID + * - `table_id`: The ID of the BigQuery table + * - `sensitivity_level`: HIGH|MODERATE|LOW + * - `data_risk_level`: HIGH|MODERATE|LOW + * - `resource_visibility`: PUBLIC|RESTRICTED + * - `status_code`: an RPC status code as defined in + * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * - `profile_last_generated`: Date and time the profile was last + * generated + * * The operator must be `=` or `!=`. The `profile_last_generated` filter + * also supports `<` and `>`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * `project_id = 12345 AND status_code = 1` + * * `project_id = 12345 AND sensitivity_level = HIGH` + * * `project_id = 12345 AND resource_visibility = PUBLIC` + * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 5; + */ + protected $filter = ''; + + /** + * @param string $parent Required. Resource name of the organization or project, for + * example `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. Please see + * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\ListTableDataProfilesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Resource name of the organization or project, for + * example `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. + * @type string $page_token + * Page token to continue retrieval. + * @type int $page_size + * Size of the page. This value can be limited by the server. If zero, server + * returns a page of max size 100. + * @type string $order_by + * Comma-separated list of fields to order by, followed by `asc` or `desc` + * postfix. This list is case insensitive. The default sorting order is + * ascending. Redundant space characters are insignificant. Only one order + * field at a time is allowed. + * Examples: + * * `project_id asc` + * * `table_id` + * * `sensitivity_level desc` + * Supported fields are: + * - `project_id`: The Google Cloud project ID. + * - `dataset_id`: The ID of a BigQuery dataset. + * - `table_id`: The ID of a BigQuery table. + * - `sensitivity_level`: How sensitive the data in a table is, at most. + * - `data_risk_level`: How much risk is associated with this data. + * - `profile_last_generated`: When the profile was last updated in epoch + * seconds. + * - `last_modified`: The last time the resource was modified. + * - `resource_visibility`: Visibility restriction for this resource. + * - `row_count`: Number of rows in this resource. + * @type string $filter + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields: + * - `project_id`: The Google Cloud project ID + * - `dataset_id`: The BigQuery dataset ID + * - `table_id`: The ID of the BigQuery table + * - `sensitivity_level`: HIGH|MODERATE|LOW + * - `data_risk_level`: HIGH|MODERATE|LOW + * - `resource_visibility`: PUBLIC|RESTRICTED + * - `status_code`: an RPC status code as defined in + * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * - `profile_last_generated`: Date and time the profile was last + * generated + * * The operator must be `=` or `!=`. The `profile_last_generated` filter + * also supports `<` and `>`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * `project_id = 12345 AND status_code = 1` + * * `project_id = 12345 AND sensitivity_level = HIGH` + * * `project_id = 12345 AND resource_visibility = PUBLIC` + * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` + * The length of this field should be no more than 500 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the organization or project, for + * example `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Resource name of the organization or project, for + * example `organizations/433245324/locations/europe` or + * `projects/project-id/locations/asia`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Page token to continue retrieval. + * + * Generated from protobuf field string page_token = 2; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Page token to continue retrieval. + * + * Generated from protobuf field string page_token = 2; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Size of the page. This value can be limited by the server. If zero, server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Size of the page. This value can be limited by the server. If zero, server + * returns a page of max size 100. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Comma-separated list of fields to order by, followed by `asc` or `desc` + * postfix. This list is case insensitive. The default sorting order is + * ascending. Redundant space characters are insignificant. Only one order + * field at a time is allowed. + * Examples: + * * `project_id asc` + * * `table_id` + * * `sensitivity_level desc` + * Supported fields are: + * - `project_id`: The Google Cloud project ID. + * - `dataset_id`: The ID of a BigQuery dataset. + * - `table_id`: The ID of a BigQuery table. + * - `sensitivity_level`: How sensitive the data in a table is, at most. + * - `data_risk_level`: How much risk is associated with this data. + * - `profile_last_generated`: When the profile was last updated in epoch + * seconds. + * - `last_modified`: The last time the resource was modified. + * - `resource_visibility`: Visibility restriction for this resource. + * - `row_count`: Number of rows in this resource. + * + * Generated from protobuf field string order_by = 4; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Comma-separated list of fields to order by, followed by `asc` or `desc` + * postfix. This list is case insensitive. The default sorting order is + * ascending. Redundant space characters are insignificant. Only one order + * field at a time is allowed. + * Examples: + * * `project_id asc` + * * `table_id` + * * `sensitivity_level desc` + * Supported fields are: + * - `project_id`: The Google Cloud project ID. + * - `dataset_id`: The ID of a BigQuery dataset. + * - `table_id`: The ID of a BigQuery table. + * - `sensitivity_level`: How sensitive the data in a table is, at most. + * - `data_risk_level`: How much risk is associated with this data. + * - `profile_last_generated`: When the profile was last updated in epoch + * seconds. + * - `last_modified`: The last time the resource was modified. + * - `resource_visibility`: Visibility restriction for this resource. + * - `row_count`: Number of rows in this resource. + * + * Generated from protobuf field string order_by = 4; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields: + * - `project_id`: The Google Cloud project ID + * - `dataset_id`: The BigQuery dataset ID + * - `table_id`: The ID of the BigQuery table + * - `sensitivity_level`: HIGH|MODERATE|LOW + * - `data_risk_level`: HIGH|MODERATE|LOW + * - `resource_visibility`: PUBLIC|RESTRICTED + * - `status_code`: an RPC status code as defined in + * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * - `profile_last_generated`: Date and time the profile was last + * generated + * * The operator must be `=` or `!=`. The `profile_last_generated` filter + * also supports `<` and `>`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * `project_id = 12345 AND status_code = 1` + * * `project_id = 12345 AND sensitivity_level = HIGH` + * * `project_id = 12345 AND resource_visibility = PUBLIC` + * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 5; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Allows filtering. + * Supported syntax: + * * Filter expressions are made up of one or more restrictions. + * * Restrictions can be combined by `AND` or `OR` logical operators. A + * sequence of restrictions implicitly uses `AND`. + * * A restriction has the form of `{field} {operator} {value}`. + * * Supported fields: + * - `project_id`: The Google Cloud project ID + * - `dataset_id`: The BigQuery dataset ID + * - `table_id`: The ID of the BigQuery table + * - `sensitivity_level`: HIGH|MODERATE|LOW + * - `data_risk_level`: HIGH|MODERATE|LOW + * - `resource_visibility`: PUBLIC|RESTRICTED + * - `status_code`: an RPC status code as defined in + * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + * - `profile_last_generated`: Date and time the profile was last + * generated + * * The operator must be `=` or `!=`. The `profile_last_generated` filter + * also supports `<` and `>`. + * The syntax is based on https://google.aip.dev/160. + * Examples: + * * `project_id = 12345 AND status_code = 1` + * * `project_id = 12345 AND sensitivity_level = HIGH` + * * `project_id = 12345 AND resource_visibility = PUBLIC` + * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` + * The length of this field should be no more than 500 characters. + * + * Generated from protobuf field string filter = 5; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesResponse.php new file mode 100644 index 000000000000..9729219525c2 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesResponse.php @@ -0,0 +1,101 @@ +google.privacy.dlp.v2.ListTableDataProfilesResponse + */ +class ListTableDataProfilesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of data profiles. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + private $table_data_profiles; + /** + * The next page token. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\TableDataProfile[] $table_data_profiles + * List of data profiles. + * @type string $next_page_token + * The next page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * List of data profiles. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\TableDataProfile> + */ + public function getTableDataProfiles() + { + return $this->table_data_profiles; + } + + /** + * List of data profiles. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + * @param \Google\Cloud\Dlp\V2\TableDataProfile[] $var + * @return $this + */ + public function setTableDataProfiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\TableDataProfile::class); + $this->table_data_profiles = $arr; + + return $this; + } + + /** + * The next page token. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The next page token. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Location.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Location.php new file mode 100644 index 000000000000..f487ed0ecc74 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Location.php @@ -0,0 +1,227 @@ +google.privacy.dlp.v2.Location + */ +class Location extends \Google\Protobuf\Internal\Message +{ + /** + * Zero-based byte offsets delimiting the finding. + * These are relative to the finding's containing element. + * Note that when the content is not textual, this references + * the UTF-8 encoded textual representation of the content. + * Omitted if content is an image. + * + * Generated from protobuf field .google.privacy.dlp.v2.Range byte_range = 1; + */ + protected $byte_range = null; + /** + * Unicode character offsets delimiting the finding. + * These are relative to the finding's containing element. + * Provided when the content is text. + * + * Generated from protobuf field .google.privacy.dlp.v2.Range codepoint_range = 2; + */ + protected $codepoint_range = null; + /** + * List of nested objects pointing to the precise location of the finding + * within the file or record. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7; + */ + private $content_locations; + /** + * Information about the container where this finding occurred, if available. + * + * Generated from protobuf field .google.privacy.dlp.v2.Container container = 8; + */ + protected $container = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Range $byte_range + * Zero-based byte offsets delimiting the finding. + * These are relative to the finding's containing element. + * Note that when the content is not textual, this references + * the UTF-8 encoded textual representation of the content. + * Omitted if content is an image. + * @type \Google\Cloud\Dlp\V2\Range $codepoint_range + * Unicode character offsets delimiting the finding. + * These are relative to the finding's containing element. + * Provided when the content is text. + * @type \Google\Cloud\Dlp\V2\ContentLocation[] $content_locations + * List of nested objects pointing to the precise location of the finding + * within the file or record. + * @type \Google\Cloud\Dlp\V2\Container $container + * Information about the container where this finding occurred, if available. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Zero-based byte offsets delimiting the finding. + * These are relative to the finding's containing element. + * Note that when the content is not textual, this references + * the UTF-8 encoded textual representation of the content. + * Omitted if content is an image. + * + * Generated from protobuf field .google.privacy.dlp.v2.Range byte_range = 1; + * @return \Google\Cloud\Dlp\V2\Range|null + */ + public function getByteRange() + { + return $this->byte_range; + } + + public function hasByteRange() + { + return isset($this->byte_range); + } + + public function clearByteRange() + { + unset($this->byte_range); + } + + /** + * Zero-based byte offsets delimiting the finding. + * These are relative to the finding's containing element. + * Note that when the content is not textual, this references + * the UTF-8 encoded textual representation of the content. + * Omitted if content is an image. + * + * Generated from protobuf field .google.privacy.dlp.v2.Range byte_range = 1; + * @param \Google\Cloud\Dlp\V2\Range $var + * @return $this + */ + public function setByteRange($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Range::class); + $this->byte_range = $var; + + return $this; + } + + /** + * Unicode character offsets delimiting the finding. + * These are relative to the finding's containing element. + * Provided when the content is text. + * + * Generated from protobuf field .google.privacy.dlp.v2.Range codepoint_range = 2; + * @return \Google\Cloud\Dlp\V2\Range|null + */ + public function getCodepointRange() + { + return $this->codepoint_range; + } + + public function hasCodepointRange() + { + return isset($this->codepoint_range); + } + + public function clearCodepointRange() + { + unset($this->codepoint_range); + } + + /** + * Unicode character offsets delimiting the finding. + * These are relative to the finding's containing element. + * Provided when the content is text. + * + * Generated from protobuf field .google.privacy.dlp.v2.Range codepoint_range = 2; + * @param \Google\Cloud\Dlp\V2\Range $var + * @return $this + */ + public function setCodepointRange($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Range::class); + $this->codepoint_range = $var; + + return $this; + } + + /** + * List of nested objects pointing to the precise location of the finding + * within the file or record. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7; + * @return RepeatedField<\Google\Cloud\Dlp\V2\ContentLocation> + */ + public function getContentLocations() + { + return $this->content_locations; + } + + /** + * List of nested objects pointing to the precise location of the finding + * within the file or record. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7; + * @param \Google\Cloud\Dlp\V2\ContentLocation[] $var + * @return $this + */ + public function setContentLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ContentLocation::class); + $this->content_locations = $arr; + + return $this; + } + + /** + * Information about the container where this finding occurred, if available. + * + * Generated from protobuf field .google.privacy.dlp.v2.Container container = 8; + * @return \Google\Cloud\Dlp\V2\Container|null + */ + public function getContainer() + { + return $this->container; + } + + public function hasContainer() + { + return isset($this->container); + } + + public function clearContainer() + { + unset($this->container); + } + + /** + * Information about the container where this finding occurred, if available. + * + * Generated from protobuf field .google.privacy.dlp.v2.Container container = 8; + * @param \Google\Cloud\Dlp\V2\Container $var + * @return $this + */ + public function setContainer($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Container::class); + $this->container = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LocationSupport.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LocationSupport.php new file mode 100644 index 000000000000..651e5f4aaac8 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LocationSupport.php @@ -0,0 +1,109 @@ +google.privacy.dlp.v2.LocationSupport + */ +class LocationSupport extends \Google\Protobuf\Internal\Message +{ + /** + * The current scope for location on this feature. This may expand over time. + * + * Generated from protobuf field .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1; + */ + protected $regionalization_scope = 0; + /** + * Specific locations where the feature may be used. + * Examples: us-central1, us, asia, global + * If scope is ANY_LOCATION, no regions will be listed. + * + * Generated from protobuf field repeated string locations = 2; + */ + private $locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $regionalization_scope + * The current scope for location on this feature. This may expand over time. + * @type string[] $locations + * Specific locations where the feature may be used. + * Examples: us-central1, us, asia, global + * If scope is ANY_LOCATION, no regions will be listed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The current scope for location on this feature. This may expand over time. + * + * Generated from protobuf field .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1; + * @return int + */ + public function getRegionalizationScope() + { + return $this->regionalization_scope; + } + + /** + * The current scope for location on this feature. This may expand over time. + * + * Generated from protobuf field .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1; + * @param int $var + * @return $this + */ + public function setRegionalizationScope($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\LocationSupport\RegionalizationScope::class); + $this->regionalization_scope = $var; + + return $this; + } + + /** + * Specific locations where the feature may be used. + * Examples: us-central1, us, asia, global + * If scope is ANY_LOCATION, no regions will be listed. + * + * Generated from protobuf field repeated string locations = 2; + * @return RepeatedField + */ + public function getLocations() + { + return $this->locations; + } + + /** + * Specific locations where the feature may be used. + * Examples: us-central1, us, asia, global + * If scope is ANY_LOCATION, no regions will be listed. + * + * Generated from protobuf field repeated string locations = 2; + * @param string[] $var + * @return $this + */ + public function setLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LocationSupport/RegionalizationScope.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LocationSupport/RegionalizationScope.php new file mode 100644 index 000000000000..384cf404a06c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LocationSupport/RegionalizationScope.php @@ -0,0 +1,61 @@ +google.privacy.dlp.v2.LocationSupport.RegionalizationScope + */ +class RegionalizationScope +{ + /** + * Invalid. + * + * Generated from protobuf enum REGIONALIZATION_SCOPE_UNSPECIFIED = 0; + */ + const REGIONALIZATION_SCOPE_UNSPECIFIED = 0; + /** + * Feature may be used with one or more regions. See locations for details. + * + * Generated from protobuf enum REGIONAL = 1; + */ + const REGIONAL = 1; + /** + * Feature may be used anywhere. Default value. + * + * Generated from protobuf enum ANY_LOCATION = 2; + */ + const ANY_LOCATION = 2; + + private static $valueToName = [ + self::REGIONALIZATION_SCOPE_UNSPECIFIED => 'REGIONALIZATION_SCOPE_UNSPECIFIED', + self::REGIONAL => 'REGIONAL', + self::ANY_LOCATION => 'ANY_LOCATION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Manual.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Manual.php new file mode 100644 index 000000000000..885487152c04 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Manual.php @@ -0,0 +1,34 @@ +google.privacy.dlp.v2.Manual + */ +class Manual extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MatchingType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MatchingType.php new file mode 100644 index 000000000000..038fc392d990 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MatchingType.php @@ -0,0 +1,93 @@ +google.privacy.dlp.v2.MatchingType + */ +class MatchingType +{ + /** + * Invalid. + * + * Generated from protobuf enum MATCHING_TYPE_UNSPECIFIED = 0; + */ + const MATCHING_TYPE_UNSPECIFIED = 0; + /** + * Full match. + * - Dictionary: join of Dictionary results matched the complete finding quote + * - Regex: all regex matches fill a finding quote from start to end + * - Exclude infoType: completely inside affecting infoTypes findings + * + * Generated from protobuf enum MATCHING_TYPE_FULL_MATCH = 1; + */ + const MATCHING_TYPE_FULL_MATCH = 1; + /** + * Partial match. + * - Dictionary: at least one of the tokens in the finding matches + * - Regex: substring of the finding matches + * - Exclude infoType: intersects with affecting infoTypes findings + * + * Generated from protobuf enum MATCHING_TYPE_PARTIAL_MATCH = 2; + */ + const MATCHING_TYPE_PARTIAL_MATCH = 2; + /** + * Inverse match. + * - Dictionary: no tokens in the finding match the dictionary + * - Regex: finding doesn't match the regex + * - Exclude infoType: no intersection with affecting infoTypes findings + * + * Generated from protobuf enum MATCHING_TYPE_INVERSE_MATCH = 3; + */ + const MATCHING_TYPE_INVERSE_MATCH = 3; + /** + * Rule-specific match. + * The matching logic is based on the specific rule being used. This is + * required for rules where the matching behavior is not a simple string + * comparison (e.g., image containment). This matching type can only be + * used with the `ExcludeByImageFindings` rule. + * - Exclude by image findings: The matching logic is defined within + * `ExcludeByImageFindings` based on spatial relationships between bounding + * boxes. + * + * Generated from protobuf enum MATCHING_TYPE_RULE_SPECIFIC = 4; + */ + const MATCHING_TYPE_RULE_SPECIFIC = 4; + + private static $valueToName = [ + self::MATCHING_TYPE_UNSPECIFIED => 'MATCHING_TYPE_UNSPECIFIED', + self::MATCHING_TYPE_FULL_MATCH => 'MATCHING_TYPE_FULL_MATCH', + self::MATCHING_TYPE_PARTIAL_MATCH => 'MATCHING_TYPE_PARTIAL_MATCH', + self::MATCHING_TYPE_INVERSE_MATCH => 'MATCHING_TYPE_INVERSE_MATCH', + self::MATCHING_TYPE_RULE_SPECIFIC => 'MATCHING_TYPE_RULE_SPECIFIC', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataLocation.php new file mode 100644 index 000000000000..938fe16fa259 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataLocation.php @@ -0,0 +1,142 @@ +google.privacy.dlp.v2.MetadataLocation + */ +class MetadataLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Type of metadata containing the finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.MetadataType type = 1; + */ + protected $type = 0; + protected $label; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * Type of metadata containing the finding. + * @type \Google\Cloud\Dlp\V2\StorageMetadataLabel $storage_label + * Storage metadata. + * @type \Google\Cloud\Dlp\V2\KeyValueMetadataLabel $key_value_metadata_label + * Metadata key that contains the finding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Type of metadata containing the finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.MetadataType type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of metadata containing the finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.MetadataType type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\MetadataType::class); + $this->type = $var; + + return $this; + } + + /** + * Storage metadata. + * + * Generated from protobuf field .google.privacy.dlp.v2.StorageMetadataLabel storage_label = 3; + * @return \Google\Cloud\Dlp\V2\StorageMetadataLabel|null + */ + public function getStorageLabel() + { + return $this->readOneof(3); + } + + public function hasStorageLabel() + { + return $this->hasOneof(3); + } + + /** + * Storage metadata. + * + * Generated from protobuf field .google.privacy.dlp.v2.StorageMetadataLabel storage_label = 3; + * @param \Google\Cloud\Dlp\V2\StorageMetadataLabel $var + * @return $this + */ + public function setStorageLabel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StorageMetadataLabel::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Metadata key that contains the finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.KeyValueMetadataLabel key_value_metadata_label = 4; + * @return \Google\Cloud\Dlp\V2\KeyValueMetadataLabel|null + */ + public function getKeyValueMetadataLabel() + { + return $this->readOneof(4); + } + + public function hasKeyValueMetadataLabel() + { + return $this->hasOneof(4); + } + + /** + * Metadata key that contains the finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.KeyValueMetadataLabel key_value_metadata_label = 4; + * @param \Google\Cloud\Dlp\V2\KeyValueMetadataLabel $var + * @return $this + */ + public function setKeyValueMetadataLabel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\KeyValueMetadataLabel::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getLabel() + { + return $this->whichOneof("label"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataType.php new file mode 100644 index 000000000000..c734f4da48df --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataType.php @@ -0,0 +1,68 @@ +google.privacy.dlp.v2.MetadataType + */ +class MetadataType +{ + /** + * Unused + * + * Generated from protobuf enum METADATATYPE_UNSPECIFIED = 0; + */ + const METADATATYPE_UNSPECIFIED = 0; + /** + * General file metadata provided by Cloud Storage. + * + * Generated from protobuf enum STORAGE_METADATA = 2; + */ + const STORAGE_METADATA = 2; + /** + * Metadata extracted from the files. + * + * Generated from protobuf enum CONTENT_METADATA = 3; + */ + const CONTENT_METADATA = 3; + /** + * Metadata provided by the client. + * + * Generated from protobuf enum CLIENT_PROVIDED_METADATA = 4; + */ + const CLIENT_PROVIDED_METADATA = 4; + + private static $valueToName = [ + self::METADATATYPE_UNSPECIFIED => 'METADATATYPE_UNSPECIFIED', + self::STORAGE_METADATA => 'STORAGE_METADATA', + self::CONTENT_METADATA => 'CONTENT_METADATA', + self::CLIENT_PROVIDED_METADATA => 'CLIENT_PROVIDED_METADATA', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/NullPercentageLevel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/NullPercentageLevel.php new file mode 100644 index 000000000000..bcd45432e06a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/NullPercentageLevel.php @@ -0,0 +1,76 @@ +google.privacy.dlp.v2.NullPercentageLevel + */ +class NullPercentageLevel +{ + /** + * Unused. + * + * Generated from protobuf enum NULL_PERCENTAGE_LEVEL_UNSPECIFIED = 0; + */ + const NULL_PERCENTAGE_LEVEL_UNSPECIFIED = 0; + /** + * Very few null entries. + * + * Generated from protobuf enum NULL_PERCENTAGE_VERY_LOW = 1; + */ + const NULL_PERCENTAGE_VERY_LOW = 1; + /** + * Some null entries. + * + * Generated from protobuf enum NULL_PERCENTAGE_LOW = 2; + */ + const NULL_PERCENTAGE_LOW = 2; + /** + * A few null entries. + * + * Generated from protobuf enum NULL_PERCENTAGE_MEDIUM = 3; + */ + const NULL_PERCENTAGE_MEDIUM = 3; + /** + * A lot of null entries. + * + * Generated from protobuf enum NULL_PERCENTAGE_HIGH = 4; + */ + const NULL_PERCENTAGE_HIGH = 4; + + private static $valueToName = [ + self::NULL_PERCENTAGE_LEVEL_UNSPECIFIED => 'NULL_PERCENTAGE_LEVEL_UNSPECIFIED', + self::NULL_PERCENTAGE_VERY_LOW => 'NULL_PERCENTAGE_VERY_LOW', + self::NULL_PERCENTAGE_LOW => 'NULL_PERCENTAGE_LOW', + self::NULL_PERCENTAGE_MEDIUM => 'NULL_PERCENTAGE_MEDIUM', + self::NULL_PERCENTAGE_HIGH => 'NULL_PERCENTAGE_HIGH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation.php new file mode 100644 index 000000000000..a05c00ee19ba --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation.php @@ -0,0 +1,75 @@ +google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation + */ +class OtherCloudDiscoveryStartingLocation extends \Google\Protobuf\Internal\Message +{ + protected $location; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation\AwsDiscoveryStartingLocation $aws_location + * The AWS starting location for discovery. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The AWS starting location for discovery. + * + * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation.AwsDiscoveryStartingLocation aws_location = 1; + * @return \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation\AwsDiscoveryStartingLocation|null + */ + public function getAwsLocation() + { + return $this->readOneof(1); + } + + public function hasAwsLocation() + { + return $this->hasOneof(1); + } + + /** + * The AWS starting location for discovery. + * + * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation.AwsDiscoveryStartingLocation aws_location = 1; + * @param \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation\AwsDiscoveryStartingLocation $var + * @return $this + */ + public function setAwsLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation\AwsDiscoveryStartingLocation::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getLocation() + { + return $this->whichOneof("location"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation/AwsDiscoveryStartingLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation/AwsDiscoveryStartingLocation.php new file mode 100644 index 000000000000..893aa4b137ca --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation/AwsDiscoveryStartingLocation.php @@ -0,0 +1,120 @@ +google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation.AwsDiscoveryStartingLocation + */ +class AwsDiscoveryStartingLocation extends \Google\Protobuf\Internal\Message +{ + protected $scope; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $account_id + * The AWS account ID that this discovery config applies to. + * Within an AWS organization, you can find the AWS account ID inside an + * AWS account ARN. Example: + * arn:{partition}:organizations::{management_account_id}:account/{org_id}/{account_id} + * @type bool $all_asset_inventory_assets + * All AWS assets stored in Asset Inventory that didn't match other AWS + * discovery configs. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The AWS account ID that this discovery config applies to. + * Within an AWS organization, you can find the AWS account ID inside an + * AWS account ARN. Example: + * arn:{partition}:organizations::{management_account_id}:account/{org_id}/{account_id} + * + * Generated from protobuf field string account_id = 2; + * @return string + */ + public function getAccountId() + { + return $this->readOneof(2); + } + + public function hasAccountId() + { + return $this->hasOneof(2); + } + + /** + * The AWS account ID that this discovery config applies to. + * Within an AWS organization, you can find the AWS account ID inside an + * AWS account ARN. Example: + * arn:{partition}:organizations::{management_account_id}:account/{org_id}/{account_id} + * + * Generated from protobuf field string account_id = 2; + * @param string $var + * @return $this + */ + public function setAccountId($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * All AWS assets stored in Asset Inventory that didn't match other AWS + * discovery configs. + * + * Generated from protobuf field bool all_asset_inventory_assets = 3; + * @return bool + */ + public function getAllAssetInventoryAssets() + { + return $this->readOneof(3); + } + + public function hasAllAssetInventoryAssets() + { + return $this->hasOneof(3); + } + + /** + * All AWS assets stored in Asset Inventory that didn't match other AWS + * discovery configs. + * + * Generated from protobuf field bool all_asset_inventory_assets = 3; + * @param bool $var + * @return $this + */ + public function setAllAssetInventoryAssets($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getScope() + { + return $this->whichOneof("scope"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryTarget.php new file mode 100644 index 000000000000..8e82622922b5 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryTarget.php @@ -0,0 +1,265 @@ +google.privacy.dlp.v2.OtherCloudDiscoveryTarget + */ +class OtherCloudDiscoveryTarget extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The type of data profiles generated by this discovery target. + * Supported values are: + * * aws/s3/bucket + * + * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_source_type = null; + /** + * Required. The resources that the discovery cadence applies to. The + * first target with a matching filter will be the one to apply to a resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $filter = null; + /** + * Optional. In addition to matching the filter, these conditions must be true + * before a profile is generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $conditions = null; + protected $cadence; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DataSourceType $data_source_type + * Required. The type of data profiles generated by this discovery target. + * Supported values are: + * * aws/s3/bucket + * @type \Google\Cloud\Dlp\V2\DiscoveryOtherCloudFilter $filter + * Required. The resources that the discovery cadence applies to. The + * first target with a matching filter will be the one to apply to a resource. + * @type \Google\Cloud\Dlp\V2\DiscoveryOtherCloudConditions $conditions + * Optional. In addition to matching the filter, these conditions must be true + * before a profile is generated. + * @type \Google\Cloud\Dlp\V2\DiscoveryOtherCloudGenerationCadence $generation_cadence + * How often and when to update data profiles. New resources that match both + * the filter and conditions are scanned as quickly as possible depending on + * system capacity. + * @type \Google\Cloud\Dlp\V2\Disabled $disabled + * Disable profiling for resources that match this filter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. The type of data profiles generated by this discovery target. + * Supported values are: + * * aws/s3/bucket + * + * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\DataSourceType|null + */ + public function getDataSourceType() + { + return $this->data_source_type; + } + + public function hasDataSourceType() + { + return isset($this->data_source_type); + } + + public function clearDataSourceType() + { + unset($this->data_source_type); + } + + /** + * Required. The type of data profiles generated by this discovery target. + * Supported values are: + * * aws/s3/bucket + * + * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\DataSourceType $var + * @return $this + */ + public function setDataSourceType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataSourceType::class); + $this->data_source_type = $var; + + return $this; + } + + /** + * Required. The resources that the discovery cadence applies to. The + * first target with a matching filter will be the one to apply to a resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\DiscoveryOtherCloudFilter|null + */ + public function getFilter() + { + return $this->filter; + } + + public function hasFilter() + { + return isset($this->filter); + } + + public function clearFilter() + { + unset($this->filter); + } + + /** + * Required. The resources that the discovery cadence applies to. The + * first target with a matching filter will be the one to apply to a resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\DiscoveryOtherCloudFilter $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryOtherCloudFilter::class); + $this->filter = $var; + + return $this; + } + + /** + * Optional. In addition to matching the filter, these conditions must be true + * before a profile is generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dlp\V2\DiscoveryOtherCloudConditions|null + */ + public function getConditions() + { + return $this->conditions; + } + + public function hasConditions() + { + return isset($this->conditions); + } + + public function clearConditions() + { + unset($this->conditions); + } + + /** + * Optional. In addition to matching the filter, these conditions must be true + * before a profile is generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dlp\V2\DiscoveryOtherCloudConditions $var + * @return $this + */ + public function setConditions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryOtherCloudConditions::class); + $this->conditions = $var; + + return $this; + } + + /** + * How often and when to update data profiles. New resources that match both + * the filter and conditions are scanned as quickly as possible depending on + * system capacity. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4; + * @return \Google\Cloud\Dlp\V2\DiscoveryOtherCloudGenerationCadence|null + */ + public function getGenerationCadence() + { + return $this->readOneof(4); + } + + public function hasGenerationCadence() + { + return $this->hasOneof(4); + } + + /** + * How often and when to update data profiles. New resources that match both + * the filter and conditions are scanned as quickly as possible depending on + * system capacity. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4; + * @param \Google\Cloud\Dlp\V2\DiscoveryOtherCloudGenerationCadence $var + * @return $this + */ + public function setGenerationCadence($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryOtherCloudGenerationCadence::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Disable profiling for resources that match this filter. + * + * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 5; + * @return \Google\Cloud\Dlp\V2\Disabled|null + */ + public function getDisabled() + { + return $this->readOneof(5); + } + + public function hasDisabled() + { + return $this->hasOneof(5); + } + + /** + * Disable profiling for resources that match this filter. + * + * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 5; + * @param \Google\Cloud\Dlp\V2\Disabled $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Disabled::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * @return string + */ + public function getCadence() + { + return $this->whichOneof("cadence"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceCollection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceCollection.php new file mode 100644 index 000000000000..d8fbf11aebb5 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceCollection.php @@ -0,0 +1,75 @@ +google.privacy.dlp.v2.OtherCloudResourceCollection + */ +class OtherCloudResourceCollection extends \Google\Protobuf\Internal\Message +{ + protected $pattern; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\OtherCloudResourceRegexes $include_regexes + * A collection of regular expressions to match a resource against. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A collection of regular expressions to match a resource against. + * + * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudResourceRegexes include_regexes = 1; + * @return \Google\Cloud\Dlp\V2\OtherCloudResourceRegexes|null + */ + public function getIncludeRegexes() + { + return $this->readOneof(1); + } + + public function hasIncludeRegexes() + { + return $this->hasOneof(1); + } + + /** + * A collection of regular expressions to match a resource against. + * + * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudResourceRegexes include_regexes = 1; + * @param \Google\Cloud\Dlp\V2\OtherCloudResourceRegexes $var + * @return $this + */ + public function setIncludeRegexes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudResourceRegexes::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getPattern() + { + return $this->whichOneof("pattern"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegex.php new file mode 100644 index 000000000000..93024201f072 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegex.php @@ -0,0 +1,78 @@ +google.privacy.dlp.v2.OtherCloudResourceRegex + */ +class OtherCloudResourceRegex extends \Google\Protobuf\Internal\Message +{ + protected $resource_regex; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\AmazonS3BucketRegex $amazon_s3_bucket_regex + * Regex for Amazon S3 buckets. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Regex for Amazon S3 buckets. + * + * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3BucketRegex amazon_s3_bucket_regex = 1; + * @return \Google\Cloud\Dlp\V2\AmazonS3BucketRegex|null + */ + public function getAmazonS3BucketRegex() + { + return $this->readOneof(1); + } + + public function hasAmazonS3BucketRegex() + { + return $this->hasOneof(1); + } + + /** + * Regex for Amazon S3 buckets. + * + * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3BucketRegex amazon_s3_bucket_regex = 1; + * @param \Google\Cloud\Dlp\V2\AmazonS3BucketRegex $var + * @return $this + */ + public function setAmazonS3BucketRegex($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AmazonS3BucketRegex::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getResourceRegex() + { + return $this->whichOneof("resource_regex"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegexes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegexes.php new file mode 100644 index 000000000000..b87170293ebd --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegexes.php @@ -0,0 +1,80 @@ +google.privacy.dlp.v2.OtherCloudResourceRegexes + */ +class OtherCloudResourceRegexes extends \Google\Protobuf\Internal\Message +{ + /** + * A group of regular expression patterns to match against one or more + * resources. + * Maximum of 100 entries. The sum of all regular expression's length can't + * exceed 10 KiB. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherCloudResourceRegex patterns = 1; + */ + private $patterns; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\OtherCloudResourceRegex[] $patterns + * A group of regular expression patterns to match against one or more + * resources. + * Maximum of 100 entries. The sum of all regular expression's length can't + * exceed 10 KiB. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A group of regular expression patterns to match against one or more + * resources. + * Maximum of 100 entries. The sum of all regular expression's length can't + * exceed 10 KiB. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherCloudResourceRegex patterns = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\OtherCloudResourceRegex> + */ + public function getPatterns() + { + return $this->patterns; + } + + /** + * A group of regular expression patterns to match against one or more + * resources. + * Maximum of 100 entries. The sum of all regular expression's length can't + * exceed 10 KiB. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherCloudResourceRegex patterns = 1; + * @param \Google\Cloud\Dlp\V2\OtherCloudResourceRegex[] $var + * @return $this + */ + public function setPatterns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\OtherCloudResourceRegex::class); + $this->patterns = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudSingleResourceReference.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudSingleResourceReference.php new file mode 100644 index 000000000000..8fa4e0e062a6 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudSingleResourceReference.php @@ -0,0 +1,75 @@ +google.privacy.dlp.v2.OtherCloudSingleResourceReference + */ +class OtherCloudSingleResourceReference extends \Google\Protobuf\Internal\Message +{ + protected $resource; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\AmazonS3Bucket $amazon_s3_bucket + * Amazon S3 bucket. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Amazon S3 bucket. + * + * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3Bucket amazon_s3_bucket = 1; + * @return \Google\Cloud\Dlp\V2\AmazonS3Bucket|null + */ + public function getAmazonS3Bucket() + { + return $this->readOneof(1); + } + + public function hasAmazonS3Bucket() + { + return $this->hasOneof(1); + } + + /** + * Amazon S3 bucket. + * + * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3Bucket amazon_s3_bucket = 1; + * @param \Google\Cloud\Dlp\V2\AmazonS3Bucket $var + * @return $this + */ + public function setAmazonS3Bucket($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AmazonS3Bucket::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getResource() + { + return $this->whichOneof("resource"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherInfoTypeSummary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherInfoTypeSummary.php new file mode 100644 index 000000000000..221e371249db --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherInfoTypeSummary.php @@ -0,0 +1,153 @@ +google.privacy.dlp.v2.OtherInfoTypeSummary + */ +class OtherInfoTypeSummary extends \Google\Protobuf\Internal\Message +{ + /** + * The other infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + */ + protected $info_type = null; + /** + * Approximate percentage of non-null rows that contained data detected by + * this infotype. + * + * Generated from protobuf field int32 estimated_prevalence = 2; + */ + protected $estimated_prevalence = 0; + /** + * Whether this infoType was excluded from sensitivity and risk analysis due + * to factors such as low prevalence (subject to change). + * + * Generated from protobuf field bool excluded_from_analysis = 3; + */ + protected $excluded_from_analysis = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoType $info_type + * The other infoType. + * @type int $estimated_prevalence + * Approximate percentage of non-null rows that contained data detected by + * this infotype. + * @type bool $excluded_from_analysis + * Whether this infoType was excluded from sensitivity and risk analysis due + * to factors such as low prevalence (subject to change). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The other infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @return \Google\Cloud\Dlp\V2\InfoType|null + */ + public function getInfoType() + { + return $this->info_type; + } + + public function hasInfoType() + { + return isset($this->info_type); + } + + public function clearInfoType() + { + unset($this->info_type); + } + + /** + * The other infoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @param \Google\Cloud\Dlp\V2\InfoType $var + * @return $this + */ + public function setInfoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_type = $var; + + return $this; + } + + /** + * Approximate percentage of non-null rows that contained data detected by + * this infotype. + * + * Generated from protobuf field int32 estimated_prevalence = 2; + * @return int + */ + public function getEstimatedPrevalence() + { + return $this->estimated_prevalence; + } + + /** + * Approximate percentage of non-null rows that contained data detected by + * this infotype. + * + * Generated from protobuf field int32 estimated_prevalence = 2; + * @param int $var + * @return $this + */ + public function setEstimatedPrevalence($var) + { + GPBUtil::checkInt32($var); + $this->estimated_prevalence = $var; + + return $this; + } + + /** + * Whether this infoType was excluded from sensitivity and risk analysis due + * to factors such as low prevalence (subject to change). + * + * Generated from protobuf field bool excluded_from_analysis = 3; + * @return bool + */ + public function getExcludedFromAnalysis() + { + return $this->excluded_from_analysis; + } + + /** + * Whether this infoType was excluded from sensitivity and risk analysis due + * to factors such as low prevalence (subject to change). + * + * Generated from protobuf field bool excluded_from_analysis = 3; + * @param bool $var + * @return $this + */ + public function setExcludedFromAnalysis($var) + { + GPBUtil::checkBool($var); + $this->excluded_from_analysis = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig.php new file mode 100644 index 000000000000..5fc1d4a1d785 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig.php @@ -0,0 +1,234 @@ +google.privacy.dlp.v2.OutputStorageConfig + */ +class OutputStorageConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Schema used for writing the findings for Inspect jobs. This field is only + * used for Inspect and must be unspecified for Risk jobs. Columns are derived + * from the `Finding` object. If appending to an existing table, any columns + * from the predefined schema that are missing will be added. No columns in + * the existing table will be deleted. + * If unspecified, then all available columns will be used for a new table or + * an (existing) table with no schema, and no changes will be made to an + * existing table that has a schema. + * Only for use with external storage. + * + * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; + */ + protected $output_schema = 0; + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\BigQueryTable $table + * Store findings in an existing table or a new table in an existing + * dataset. If table_id is not set a new one will be generated + * for you with the following format: + * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used + * for generating the date details. + * For Inspect, each column in an existing output table must have the same + * name, type, and mode of a field in the `Finding` object. + * For Risk, an existing output table should be the output of a previous + * Risk analysis job run on the same source table, with the same privacy + * metric and quasi-identifiers. Risk jobs that analyze the same table but + * compute a different privacy metric, or use different sets of + * quasi-identifiers, cannot store their results in the same table. + * @type \Google\Cloud\Dlp\V2\CloudStoragePath $storage_path + * Store findings in an existing Cloud Storage bucket. Files will be + * generated with the job ID and file part number as the filename and will + * contain findings in textproto format as + * [SaveToGcsFindingsOutput][google.privacy.dlp.v2.SaveToGcsFindingsOutput]. + * The filename will follow the naming convention `-`. + * Example: `my-job-id-2`. + * Supported for [Inspect jobs][google.privacy.dlp.v2.InspectJobConfig]. The + * bucket must not be the same as the bucket being inspected. If storing + * findings to Cloud Storage, the output schema field should not be set. If + * set, it will be ignored. + * @type int $output_schema + * Schema used for writing the findings for Inspect jobs. This field is only + * used for Inspect and must be unspecified for Risk jobs. Columns are derived + * from the `Finding` object. If appending to an existing table, any columns + * from the predefined schema that are missing will be added. No columns in + * the existing table will be deleted. + * If unspecified, then all available columns will be used for a new table or + * an (existing) table with no schema, and no changes will be made to an + * existing table that has a schema. + * Only for use with external storage. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Store findings in an existing table or a new table in an existing + * dataset. If table_id is not set a new one will be generated + * for you with the following format: + * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used + * for generating the date details. + * For Inspect, each column in an existing output table must have the same + * name, type, and mode of a field in the `Finding` object. + * For Risk, an existing output table should be the output of a previous + * Risk analysis job run on the same source table, with the same privacy + * metric and quasi-identifiers. Risk jobs that analyze the same table but + * compute a different privacy metric, or use different sets of + * quasi-identifiers, cannot store their results in the same table. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; + * @return \Google\Cloud\Dlp\V2\BigQueryTable|null + */ + public function getTable() + { + return $this->readOneof(1); + } + + public function hasTable() + { + return $this->hasOneof(1); + } + + /** + * Store findings in an existing table or a new table in an existing + * dataset. If table_id is not set a new one will be generated + * for you with the following format: + * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used + * for generating the date details. + * For Inspect, each column in an existing output table must have the same + * name, type, and mode of a field in the `Finding` object. + * For Risk, an existing output table should be the output of a previous + * Risk analysis job run on the same source table, with the same privacy + * metric and quasi-identifiers. Risk jobs that analyze the same table but + * compute a different privacy metric, or use different sets of + * quasi-identifiers, cannot store their results in the same table. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; + * @param \Google\Cloud\Dlp\V2\BigQueryTable $var + * @return $this + */ + public function setTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Store findings in an existing Cloud Storage bucket. Files will be + * generated with the job ID and file part number as the filename and will + * contain findings in textproto format as + * [SaveToGcsFindingsOutput][google.privacy.dlp.v2.SaveToGcsFindingsOutput]. + * The filename will follow the naming convention `-`. + * Example: `my-job-id-2`. + * Supported for [Inspect jobs][google.privacy.dlp.v2.InspectJobConfig]. The + * bucket must not be the same as the bucket being inspected. If storing + * findings to Cloud Storage, the output schema field should not be set. If + * set, it will be ignored. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath storage_path = 5; + * @return \Google\Cloud\Dlp\V2\CloudStoragePath|null + */ + public function getStoragePath() + { + return $this->readOneof(5); + } + + public function hasStoragePath() + { + return $this->hasOneof(5); + } + + /** + * Store findings in an existing Cloud Storage bucket. Files will be + * generated with the job ID and file part number as the filename and will + * contain findings in textproto format as + * [SaveToGcsFindingsOutput][google.privacy.dlp.v2.SaveToGcsFindingsOutput]. + * The filename will follow the naming convention `-`. + * Example: `my-job-id-2`. + * Supported for [Inspect jobs][google.privacy.dlp.v2.InspectJobConfig]. The + * bucket must not be the same as the bucket being inspected. If storing + * findings to Cloud Storage, the output schema field should not be set. If + * set, it will be ignored. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath storage_path = 5; + * @param \Google\Cloud\Dlp\V2\CloudStoragePath $var + * @return $this + */ + public function setStoragePath($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStoragePath::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Schema used for writing the findings for Inspect jobs. This field is only + * used for Inspect and must be unspecified for Risk jobs. Columns are derived + * from the `Finding` object. If appending to an existing table, any columns + * from the predefined schema that are missing will be added. No columns in + * the existing table will be deleted. + * If unspecified, then all available columns will be used for a new table or + * an (existing) table with no schema, and no changes will be made to an + * existing table that has a schema. + * Only for use with external storage. + * + * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; + * @return int + */ + public function getOutputSchema() + { + return $this->output_schema; + } + + /** + * Schema used for writing the findings for Inspect jobs. This field is only + * used for Inspect and must be unspecified for Risk jobs. Columns are derived + * from the `Finding` object. If appending to an existing table, any columns + * from the predefined schema that are missing will be added. No columns in + * the existing table will be deleted. + * If unspecified, then all available columns will be used for a new table or + * an (existing) table with no schema, and no changes will be made to an + * existing table that has a schema. + * Only for use with external storage. + * + * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; + * @param int $var + * @return $this + */ + public function setOutputSchema($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\OutputStorageConfig\OutputSchema::class); + $this->output_schema = $var; + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig/OutputSchema.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig/OutputSchema.php new file mode 100644 index 000000000000..334f12b74344 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig/OutputSchema.php @@ -0,0 +1,84 @@ +google.privacy.dlp.v2.OutputStorageConfig.OutputSchema + */ +class OutputSchema +{ + /** + * Unused. + * + * Generated from protobuf enum OUTPUT_SCHEMA_UNSPECIFIED = 0; + */ + const OUTPUT_SCHEMA_UNSPECIFIED = 0; + /** + * Basic schema including only `info_type`, `quote`, `certainty`, and + * `timestamp`. + * + * Generated from protobuf enum BASIC_COLUMNS = 1; + */ + const BASIC_COLUMNS = 1; + /** + * Schema tailored to findings from scanning Cloud Storage. + * + * Generated from protobuf enum GCS_COLUMNS = 2; + */ + const GCS_COLUMNS = 2; + /** + * Schema tailored to findings from scanning Google Datastore. + * + * Generated from protobuf enum DATASTORE_COLUMNS = 3; + */ + const DATASTORE_COLUMNS = 3; + /** + * Schema tailored to findings from scanning Google BigQuery. + * + * Generated from protobuf enum BIG_QUERY_COLUMNS = 4; + */ + const BIG_QUERY_COLUMNS = 4; + /** + * Schema containing all columns. + * + * Generated from protobuf enum ALL_COLUMNS = 5; + */ + const ALL_COLUMNS = 5; + + private static $valueToName = [ + self::OUTPUT_SCHEMA_UNSPECIFIED => 'OUTPUT_SCHEMA_UNSPECIFIED', + self::BASIC_COLUMNS => 'BASIC_COLUMNS', + self::GCS_COLUMNS => 'GCS_COLUMNS', + self::DATASTORE_COLUMNS => 'DATASTORE_COLUMNS', + self::BIG_QUERY_COLUMNS => 'BIG_QUERY_COLUMNS', + self::ALL_COLUMNS => 'ALL_COLUMNS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Overlap.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Overlap.php new file mode 100644 index 000000000000..12d87bbeb655 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Overlap.php @@ -0,0 +1,33 @@ +google.privacy.dlp.v2.Overlap + */ +class Overlap extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PartitionId.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PartitionId.php new file mode 100644 index 000000000000..cf292beaad9b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PartitionId.php @@ -0,0 +1,105 @@ +google.privacy.dlp.v2.PartitionId + */ +class PartitionId extends \Google\Protobuf\Internal\Message +{ + /** + * The ID of the project to which the entities belong. + * + * Generated from protobuf field string project_id = 2; + */ + protected $project_id = ''; + /** + * If not empty, the ID of the namespace to which the entities belong. + * + * Generated from protobuf field string namespace_id = 4; + */ + protected $namespace_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * The ID of the project to which the entities belong. + * @type string $namespace_id + * If not empty, the ID of the namespace to which the entities belong. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * The ID of the project to which the entities belong. + * + * Generated from protobuf field string project_id = 2; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * The ID of the project to which the entities belong. + * + * Generated from protobuf field string project_id = 2; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * If not empty, the ID of the namespace to which the entities belong. + * + * Generated from protobuf field string namespace_id = 4; + * @return string + */ + public function getNamespaceId() + { + return $this->namespace_id; + } + + /** + * If not empty, the ID of the namespace to which the entities belong. + * + * Generated from protobuf field string namespace_id = 4; + * @param string $var + * @return $this + */ + public function setNamespaceId($var) + { + GPBUtil::checkString($var, True); + $this->namespace_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrimitiveTransformation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrimitiveTransformation.php new file mode 100644 index 000000000000..348a6e392b62 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrimitiveTransformation.php @@ -0,0 +1,441 @@ +google.privacy.dlp.v2.PrimitiveTransformation + */ +class PrimitiveTransformation extends \Google\Protobuf\Internal\Message +{ + protected $transformation; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\ReplaceValueConfig $replace_config + * Replace with a specified value. + * @type \Google\Cloud\Dlp\V2\RedactConfig $redact_config + * Redact + * @type \Google\Cloud\Dlp\V2\CharacterMaskConfig $character_mask_config + * Mask + * @type \Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig $crypto_replace_ffx_fpe_config + * Ffx-Fpe. Strongly discouraged, consider using CryptoDeterministicConfig + * instead. Fpe is computationally expensive incurring latency costs. + * @type \Google\Cloud\Dlp\V2\FixedSizeBucketingConfig $fixed_size_bucketing_config + * Fixed size bucketing + * @type \Google\Cloud\Dlp\V2\BucketingConfig $bucketing_config + * Bucketing + * @type \Google\Cloud\Dlp\V2\ReplaceWithInfoTypeConfig $replace_with_info_type_config + * Replace with infotype + * @type \Google\Cloud\Dlp\V2\TimePartConfig $time_part_config + * Time extraction + * @type \Google\Cloud\Dlp\V2\CryptoHashConfig $crypto_hash_config + * Crypto + * @type \Google\Cloud\Dlp\V2\DateShiftConfig $date_shift_config + * Date Shift + * @type \Google\Cloud\Dlp\V2\CryptoDeterministicConfig $crypto_deterministic_config + * Deterministic Crypto + * @type \Google\Cloud\Dlp\V2\ReplaceDictionaryConfig $replace_dictionary_config + * Replace with a value randomly drawn (with replacement) from a dictionary. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Replace with a specified value. + * + * Generated from protobuf field .google.privacy.dlp.v2.ReplaceValueConfig replace_config = 1; + * @return \Google\Cloud\Dlp\V2\ReplaceValueConfig|null + */ + public function getReplaceConfig() + { + return $this->readOneof(1); + } + + public function hasReplaceConfig() + { + return $this->hasOneof(1); + } + + /** + * Replace with a specified value. + * + * Generated from protobuf field .google.privacy.dlp.v2.ReplaceValueConfig replace_config = 1; + * @param \Google\Cloud\Dlp\V2\ReplaceValueConfig $var + * @return $this + */ + public function setReplaceConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ReplaceValueConfig::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Redact + * + * Generated from protobuf field .google.privacy.dlp.v2.RedactConfig redact_config = 2; + * @return \Google\Cloud\Dlp\V2\RedactConfig|null + */ + public function getRedactConfig() + { + return $this->readOneof(2); + } + + public function hasRedactConfig() + { + return $this->hasOneof(2); + } + + /** + * Redact + * + * Generated from protobuf field .google.privacy.dlp.v2.RedactConfig redact_config = 2; + * @param \Google\Cloud\Dlp\V2\RedactConfig $var + * @return $this + */ + public function setRedactConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RedactConfig::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Mask + * + * Generated from protobuf field .google.privacy.dlp.v2.CharacterMaskConfig character_mask_config = 3; + * @return \Google\Cloud\Dlp\V2\CharacterMaskConfig|null + */ + public function getCharacterMaskConfig() + { + return $this->readOneof(3); + } + + public function hasCharacterMaskConfig() + { + return $this->hasOneof(3); + } + + /** + * Mask + * + * Generated from protobuf field .google.privacy.dlp.v2.CharacterMaskConfig character_mask_config = 3; + * @param \Google\Cloud\Dlp\V2\CharacterMaskConfig $var + * @return $this + */ + public function setCharacterMaskConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CharacterMaskConfig::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Ffx-Fpe. Strongly discouraged, consider using CryptoDeterministicConfig + * instead. Fpe is computationally expensive incurring latency costs. + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4; + * @return \Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig|null + */ + public function getCryptoReplaceFfxFpeConfig() + { + return $this->readOneof(4); + } + + public function hasCryptoReplaceFfxFpeConfig() + { + return $this->hasOneof(4); + } + + /** + * Ffx-Fpe. Strongly discouraged, consider using CryptoDeterministicConfig + * instead. Fpe is computationally expensive incurring latency costs. + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4; + * @param \Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig $var + * @return $this + */ + public function setCryptoReplaceFfxFpeConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Fixed size bucketing + * + * Generated from protobuf field .google.privacy.dlp.v2.FixedSizeBucketingConfig fixed_size_bucketing_config = 5; + * @return \Google\Cloud\Dlp\V2\FixedSizeBucketingConfig|null + */ + public function getFixedSizeBucketingConfig() + { + return $this->readOneof(5); + } + + public function hasFixedSizeBucketingConfig() + { + return $this->hasOneof(5); + } + + /** + * Fixed size bucketing + * + * Generated from protobuf field .google.privacy.dlp.v2.FixedSizeBucketingConfig fixed_size_bucketing_config = 5; + * @param \Google\Cloud\Dlp\V2\FixedSizeBucketingConfig $var + * @return $this + */ + public function setFixedSizeBucketingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FixedSizeBucketingConfig::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Bucketing + * + * Generated from protobuf field .google.privacy.dlp.v2.BucketingConfig bucketing_config = 6; + * @return \Google\Cloud\Dlp\V2\BucketingConfig|null + */ + public function getBucketingConfig() + { + return $this->readOneof(6); + } + + public function hasBucketingConfig() + { + return $this->hasOneof(6); + } + + /** + * Bucketing + * + * Generated from protobuf field .google.privacy.dlp.v2.BucketingConfig bucketing_config = 6; + * @param \Google\Cloud\Dlp\V2\BucketingConfig $var + * @return $this + */ + public function setBucketingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BucketingConfig::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Replace with infotype + * + * Generated from protobuf field .google.privacy.dlp.v2.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7; + * @return \Google\Cloud\Dlp\V2\ReplaceWithInfoTypeConfig|null + */ + public function getReplaceWithInfoTypeConfig() + { + return $this->readOneof(7); + } + + public function hasReplaceWithInfoTypeConfig() + { + return $this->hasOneof(7); + } + + /** + * Replace with infotype + * + * Generated from protobuf field .google.privacy.dlp.v2.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7; + * @param \Google\Cloud\Dlp\V2\ReplaceWithInfoTypeConfig $var + * @return $this + */ + public function setReplaceWithInfoTypeConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ReplaceWithInfoTypeConfig::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Time extraction + * + * Generated from protobuf field .google.privacy.dlp.v2.TimePartConfig time_part_config = 8; + * @return \Google\Cloud\Dlp\V2\TimePartConfig|null + */ + public function getTimePartConfig() + { + return $this->readOneof(8); + } + + public function hasTimePartConfig() + { + return $this->hasOneof(8); + } + + /** + * Time extraction + * + * Generated from protobuf field .google.privacy.dlp.v2.TimePartConfig time_part_config = 8; + * @param \Google\Cloud\Dlp\V2\TimePartConfig $var + * @return $this + */ + public function setTimePartConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TimePartConfig::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Crypto + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoHashConfig crypto_hash_config = 9; + * @return \Google\Cloud\Dlp\V2\CryptoHashConfig|null + */ + public function getCryptoHashConfig() + { + return $this->readOneof(9); + } + + public function hasCryptoHashConfig() + { + return $this->hasOneof(9); + } + + /** + * Crypto + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoHashConfig crypto_hash_config = 9; + * @param \Google\Cloud\Dlp\V2\CryptoHashConfig $var + * @return $this + */ + public function setCryptoHashConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoHashConfig::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Date Shift + * + * Generated from protobuf field .google.privacy.dlp.v2.DateShiftConfig date_shift_config = 11; + * @return \Google\Cloud\Dlp\V2\DateShiftConfig|null + */ + public function getDateShiftConfig() + { + return $this->readOneof(11); + } + + public function hasDateShiftConfig() + { + return $this->hasOneof(11); + } + + /** + * Date Shift + * + * Generated from protobuf field .google.privacy.dlp.v2.DateShiftConfig date_shift_config = 11; + * @param \Google\Cloud\Dlp\V2\DateShiftConfig $var + * @return $this + */ + public function setDateShiftConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DateShiftConfig::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * Deterministic Crypto + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoDeterministicConfig crypto_deterministic_config = 12; + * @return \Google\Cloud\Dlp\V2\CryptoDeterministicConfig|null + */ + public function getCryptoDeterministicConfig() + { + return $this->readOneof(12); + } + + public function hasCryptoDeterministicConfig() + { + return $this->hasOneof(12); + } + + /** + * Deterministic Crypto + * + * Generated from protobuf field .google.privacy.dlp.v2.CryptoDeterministicConfig crypto_deterministic_config = 12; + * @param \Google\Cloud\Dlp\V2\CryptoDeterministicConfig $var + * @return $this + */ + public function setCryptoDeterministicConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoDeterministicConfig::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Replace with a value randomly drawn (with replacement) from a dictionary. + * + * Generated from protobuf field .google.privacy.dlp.v2.ReplaceDictionaryConfig replace_dictionary_config = 13; + * @return \Google\Cloud\Dlp\V2\ReplaceDictionaryConfig|null + */ + public function getReplaceDictionaryConfig() + { + return $this->readOneof(13); + } + + public function hasReplaceDictionaryConfig() + { + return $this->hasOneof(13); + } + + /** + * Replace with a value randomly drawn (with replacement) from a dictionary. + * + * Generated from protobuf field .google.privacy.dlp.v2.ReplaceDictionaryConfig replace_dictionary_config = 13; + * @param \Google\Cloud\Dlp\V2\ReplaceDictionaryConfig $var + * @return $this + */ + public function setReplaceDictionaryConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ReplaceDictionaryConfig::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * @return string + */ + public function getTransformation() + { + return $this->whichOneof("transformation"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric.php new file mode 100644 index 000000000000..fe2781849587 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric.php @@ -0,0 +1,240 @@ +google.privacy.dlp.v2.PrivacyMetric + */ +class PrivacyMetric extends \Google\Protobuf\Internal\Message +{ + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\PrivacyMetric\NumericalStatsConfig $numerical_stats_config + * Numerical stats + * @type \Google\Cloud\Dlp\V2\PrivacyMetric\CategoricalStatsConfig $categorical_stats_config + * Categorical stats + * @type \Google\Cloud\Dlp\V2\PrivacyMetric\KAnonymityConfig $k_anonymity_config + * K-anonymity + * @type \Google\Cloud\Dlp\V2\PrivacyMetric\LDiversityConfig $l_diversity_config + * l-diversity + * @type \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig $k_map_estimation_config + * k-map + * @type \Google\Cloud\Dlp\V2\PrivacyMetric\DeltaPresenceEstimationConfig $delta_presence_estimation_config + * delta-presence + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Numerical stats + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig numerical_stats_config = 1; + * @return \Google\Cloud\Dlp\V2\PrivacyMetric\NumericalStatsConfig|null + */ + public function getNumericalStatsConfig() + { + return $this->readOneof(1); + } + + public function hasNumericalStatsConfig() + { + return $this->hasOneof(1); + } + + /** + * Numerical stats + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig numerical_stats_config = 1; + * @param \Google\Cloud\Dlp\V2\PrivacyMetric\NumericalStatsConfig $var + * @return $this + */ + public function setNumericalStatsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\NumericalStatsConfig::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Categorical stats + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig categorical_stats_config = 2; + * @return \Google\Cloud\Dlp\V2\PrivacyMetric\CategoricalStatsConfig|null + */ + public function getCategoricalStatsConfig() + { + return $this->readOneof(2); + } + + public function hasCategoricalStatsConfig() + { + return $this->hasOneof(2); + } + + /** + * Categorical stats + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig categorical_stats_config = 2; + * @param \Google\Cloud\Dlp\V2\PrivacyMetric\CategoricalStatsConfig $var + * @return $this + */ + public function setCategoricalStatsConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\CategoricalStatsConfig::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * K-anonymity + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig k_anonymity_config = 3; + * @return \Google\Cloud\Dlp\V2\PrivacyMetric\KAnonymityConfig|null + */ + public function getKAnonymityConfig() + { + return $this->readOneof(3); + } + + public function hasKAnonymityConfig() + { + return $this->hasOneof(3); + } + + /** + * K-anonymity + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig k_anonymity_config = 3; + * @param \Google\Cloud\Dlp\V2\PrivacyMetric\KAnonymityConfig $var + * @return $this + */ + public function setKAnonymityConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\KAnonymityConfig::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * l-diversity + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig l_diversity_config = 4; + * @return \Google\Cloud\Dlp\V2\PrivacyMetric\LDiversityConfig|null + */ + public function getLDiversityConfig() + { + return $this->readOneof(4); + } + + public function hasLDiversityConfig() + { + return $this->hasOneof(4); + } + + /** + * l-diversity + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig l_diversity_config = 4; + * @param \Google\Cloud\Dlp\V2\PrivacyMetric\LDiversityConfig $var + * @return $this + */ + public function setLDiversityConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\LDiversityConfig::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * k-map + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig k_map_estimation_config = 5; + * @return \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig|null + */ + public function getKMapEstimationConfig() + { + return $this->readOneof(5); + } + + public function hasKMapEstimationConfig() + { + return $this->hasOneof(5); + } + + /** + * k-map + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig k_map_estimation_config = 5; + * @param \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig $var + * @return $this + */ + public function setKMapEstimationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * delta-presence + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig delta_presence_estimation_config = 6; + * @return \Google\Cloud\Dlp\V2\PrivacyMetric\DeltaPresenceEstimationConfig|null + */ + public function getDeltaPresenceEstimationConfig() + { + return $this->readOneof(6); + } + + public function hasDeltaPresenceEstimationConfig() + { + return $this->hasOneof(6); + } + + /** + * delta-presence + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig delta_presence_estimation_config = 6; + * @param \Google\Cloud\Dlp\V2\PrivacyMetric\DeltaPresenceEstimationConfig $var + * @return $this + */ + public function setDeltaPresenceEstimationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\DeltaPresenceEstimationConfig::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/CategoricalStatsConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/CategoricalStatsConfig.php new file mode 100644 index 000000000000..734b9433784a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/CategoricalStatsConfig.php @@ -0,0 +1,90 @@ +google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig + */ +class CategoricalStatsConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Field to compute categorical stats on. All column types are + * supported except for arrays and structs. However, it may be more + * informative to use NumericalStats when the field type is supported, + * depending on the data. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + */ + protected $field = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FieldId $field + * Field to compute categorical stats on. All column types are + * supported except for arrays and structs. However, it may be more + * informative to use NumericalStats when the field type is supported, + * depending on the data. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Field to compute categorical stats on. All column types are + * supported except for arrays and structs. However, it may be more + * informative to use NumericalStats when the field type is supported, + * depending on the data. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getField() + { + return $this->field; + } + + public function hasField() + { + return isset($this->field); + } + + public function clearField() + { + unset($this->field); + } + + /** + * Field to compute categorical stats on. All column types are + * supported except for arrays and structs. However, it may be more + * informative to use NumericalStats when the field type is supported, + * depending on the data. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->field = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php new file mode 100644 index 000000000000..5e3ead953eb9 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php @@ -0,0 +1,158 @@ +google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig + */ +class DeltaPresenceEstimationConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Fields considered to be quasi-identifiers. No two fields can + * have the same tag. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $quasi_ids; + /** + * ISO 3166-1 alpha-2 region code to use in the statistical modeling. + * Set if no column is tagged with a region-specific InfoType (like + * US_ZIP_5) or a region code. + * + * Generated from protobuf field string region_code = 2; + */ + protected $region_code = ''; + /** + * Several auxiliary tables can be used in the analysis. Each custom_tag + * used to tag a quasi-identifiers field must appear in exactly one + * field of one auxiliary table. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3; + */ + private $auxiliary_tables; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\QuasiId[] $quasi_ids + * Required. Fields considered to be quasi-identifiers. No two fields can + * have the same tag. + * @type string $region_code + * ISO 3166-1 alpha-2 region code to use in the statistical modeling. + * Set if no column is tagged with a region-specific InfoType (like + * US_ZIP_5) or a region code. + * @type \Google\Cloud\Dlp\V2\StatisticalTable[] $auxiliary_tables + * Several auxiliary tables can be used in the analysis. Each custom_tag + * used to tag a quasi-identifiers field must appear in exactly one + * field of one auxiliary table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Fields considered to be quasi-identifiers. No two fields can + * have the same tag. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Dlp\V2\QuasiId> + */ + public function getQuasiIds() + { + return $this->quasi_ids; + } + + /** + * Required. Fields considered to be quasi-identifiers. No two fields can + * have the same tag. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\QuasiId[] $var + * @return $this + */ + public function setQuasiIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\QuasiId::class); + $this->quasi_ids = $arr; + + return $this; + } + + /** + * ISO 3166-1 alpha-2 region code to use in the statistical modeling. + * Set if no column is tagged with a region-specific InfoType (like + * US_ZIP_5) or a region code. + * + * Generated from protobuf field string region_code = 2; + * @return string + */ + public function getRegionCode() + { + return $this->region_code; + } + + /** + * ISO 3166-1 alpha-2 region code to use in the statistical modeling. + * Set if no column is tagged with a region-specific InfoType (like + * US_ZIP_5) or a region code. + * + * Generated from protobuf field string region_code = 2; + * @param string $var + * @return $this + */ + public function setRegionCode($var) + { + GPBUtil::checkString($var, True); + $this->region_code = $var; + + return $this; + } + + /** + * Several auxiliary tables can be used in the analysis. Each custom_tag + * used to tag a quasi-identifiers field must appear in exactly one + * field of one auxiliary table. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3; + * @return RepeatedField<\Google\Cloud\Dlp\V2\StatisticalTable> + */ + public function getAuxiliaryTables() + { + return $this->auxiliary_tables; + } + + /** + * Several auxiliary tables can be used in the analysis. Each custom_tag + * used to tag a quasi-identifiers field must appear in exactly one + * field of one auxiliary table. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3; + * @param \Google\Cloud\Dlp\V2\StatisticalTable[] $var + * @return $this + */ + public function setAuxiliaryTables($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\StatisticalTable::class); + $this->auxiliary_tables = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KAnonymityConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KAnonymityConfig.php new file mode 100644 index 000000000000..6e4353dc0d91 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KAnonymityConfig.php @@ -0,0 +1,159 @@ +google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig + */ +class KAnonymityConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Set of fields to compute k-anonymity over. When multiple fields are + * specified, they are considered a single composite key. Structs and + * repeated data types are not supported; however, nested fields are + * supported so long as they are not structs themselves or nested within + * a repeated field. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; + */ + private $quasi_ids; + /** + * Message indicating that multiple rows might be associated to a + * single individual. If the same entity_id is associated to multiple + * quasi-identifier tuples over distinct rows, we consider the entire + * collection of tuples as the composite quasi-identifier. This collection + * is a multiset: the order in which the different tuples appear in the + * dataset is ignored, but their frequency is taken into account. + * Important note: a maximum of 1000 rows can be associated to a single + * entity ID. If more rows are associated with the same entity ID, some + * might be ignored. + * + * Generated from protobuf field .google.privacy.dlp.v2.EntityId entity_id = 2; + */ + protected $entity_id = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FieldId[] $quasi_ids + * Set of fields to compute k-anonymity over. When multiple fields are + * specified, they are considered a single composite key. Structs and + * repeated data types are not supported; however, nested fields are + * supported so long as they are not structs themselves or nested within + * a repeated field. + * @type \Google\Cloud\Dlp\V2\EntityId $entity_id + * Message indicating that multiple rows might be associated to a + * single individual. If the same entity_id is associated to multiple + * quasi-identifier tuples over distinct rows, we consider the entire + * collection of tuples as the composite quasi-identifier. This collection + * is a multiset: the order in which the different tuples appear in the + * dataset is ignored, but their frequency is taken into account. + * Important note: a maximum of 1000 rows can be associated to a single + * entity ID. If more rows are associated with the same entity ID, some + * might be ignored. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Set of fields to compute k-anonymity over. When multiple fields are + * specified, they are considered a single composite key. Structs and + * repeated data types are not supported; however, nested fields are + * supported so long as they are not structs themselves or nested within + * a repeated field. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldId> + */ + public function getQuasiIds() + { + return $this->quasi_ids; + } + + /** + * Set of fields to compute k-anonymity over. When multiple fields are + * specified, they are considered a single composite key. Structs and + * repeated data types are not supported; however, nested fields are + * supported so long as they are not structs themselves or nested within + * a repeated field. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; + * @param \Google\Cloud\Dlp\V2\FieldId[] $var + * @return $this + */ + public function setQuasiIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); + $this->quasi_ids = $arr; + + return $this; + } + + /** + * Message indicating that multiple rows might be associated to a + * single individual. If the same entity_id is associated to multiple + * quasi-identifier tuples over distinct rows, we consider the entire + * collection of tuples as the composite quasi-identifier. This collection + * is a multiset: the order in which the different tuples appear in the + * dataset is ignored, but their frequency is taken into account. + * Important note: a maximum of 1000 rows can be associated to a single + * entity ID. If more rows are associated with the same entity ID, some + * might be ignored. + * + * Generated from protobuf field .google.privacy.dlp.v2.EntityId entity_id = 2; + * @return \Google\Cloud\Dlp\V2\EntityId|null + */ + public function getEntityId() + { + return $this->entity_id; + } + + public function hasEntityId() + { + return isset($this->entity_id); + } + + public function clearEntityId() + { + unset($this->entity_id); + } + + /** + * Message indicating that multiple rows might be associated to a + * single individual. If the same entity_id is associated to multiple + * quasi-identifier tuples over distinct rows, we consider the entire + * collection of tuples as the composite quasi-identifier. This collection + * is a multiset: the order in which the different tuples appear in the + * dataset is ignored, but their frequency is taken into account. + * Important note: a maximum of 1000 rows can be associated to a single + * entity ID. If more rows are associated with the same entity ID, some + * might be ignored. + * + * Generated from protobuf field .google.privacy.dlp.v2.EntityId entity_id = 2; + * @param \Google\Cloud\Dlp\V2\EntityId $var + * @return $this + */ + public function setEntityId($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\EntityId::class); + $this->entity_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig.php new file mode 100644 index 000000000000..13ad669fa370 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig.php @@ -0,0 +1,160 @@ +google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig + */ +class KMapEstimationConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Fields considered to be quasi-identifiers. No two columns can + * have the same tag. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $quasi_ids; + /** + * ISO 3166-1 alpha-2 region code to use in the statistical modeling. + * Set if no column is tagged with a region-specific InfoType (like + * US_ZIP_5) or a region code. + * + * Generated from protobuf field string region_code = 2; + */ + protected $region_code = ''; + /** + * Several auxiliary tables can be used in the analysis. Each custom_tag + * used to tag a quasi-identifiers column must appear in exactly one column + * of one auxiliary table. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable auxiliary_tables = 3; + */ + private $auxiliary_tables; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\TaggedField[] $quasi_ids + * Required. Fields considered to be quasi-identifiers. No two columns can + * have the same tag. + * @type string $region_code + * ISO 3166-1 alpha-2 region code to use in the statistical modeling. + * Set if no column is tagged with a region-specific InfoType (like + * US_ZIP_5) or a region code. + * @type \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable[] $auxiliary_tables + * Several auxiliary tables can be used in the analysis. Each custom_tag + * used to tag a quasi-identifiers column must appear in exactly one column + * of one auxiliary table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Fields considered to be quasi-identifiers. No two columns can + * have the same tag. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\TaggedField> + */ + public function getQuasiIds() + { + return $this->quasi_ids; + } + + /** + * Required. Fields considered to be quasi-identifiers. No two columns can + * have the same tag. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\TaggedField[] $var + * @return $this + */ + public function setQuasiIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\TaggedField::class); + $this->quasi_ids = $arr; + + return $this; + } + + /** + * ISO 3166-1 alpha-2 region code to use in the statistical modeling. + * Set if no column is tagged with a region-specific InfoType (like + * US_ZIP_5) or a region code. + * + * Generated from protobuf field string region_code = 2; + * @return string + */ + public function getRegionCode() + { + return $this->region_code; + } + + /** + * ISO 3166-1 alpha-2 region code to use in the statistical modeling. + * Set if no column is tagged with a region-specific InfoType (like + * US_ZIP_5) or a region code. + * + * Generated from protobuf field string region_code = 2; + * @param string $var + * @return $this + */ + public function setRegionCode($var) + { + GPBUtil::checkString($var, True); + $this->region_code = $var; + + return $this; + } + + /** + * Several auxiliary tables can be used in the analysis. Each custom_tag + * used to tag a quasi-identifiers column must appear in exactly one column + * of one auxiliary table. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable auxiliary_tables = 3; + * @return RepeatedField<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable> + */ + public function getAuxiliaryTables() + { + return $this->auxiliary_tables; + } + + /** + * Several auxiliary tables can be used in the analysis. Each custom_tag + * used to tag a quasi-identifiers column must appear in exactly one column + * of one auxiliary table. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable auxiliary_tables = 3; + * @param \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable[] $var + * @return $this + */ + public function setAuxiliaryTables($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable::class); + $this->auxiliary_tables = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable.php new file mode 100644 index 000000000000..65534e5b754c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable.php @@ -0,0 +1,165 @@ +google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable + */ +class AuxiliaryTable extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Auxiliary table location. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $table = null; + /** + * Required. Quasi-identifier columns. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $quasi_ids; + /** + * Required. The relative frequency column must contain a floating-point + * number between 0 and 1 (inclusive). Null values are assumed to be zero. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $relative_frequency = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\BigQueryTable $table + * Required. Auxiliary table location. + * @type \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable\QuasiIdField[] $quasi_ids + * Required. Quasi-identifier columns. + * @type \Google\Cloud\Dlp\V2\FieldId $relative_frequency + * Required. The relative frequency column must contain a floating-point + * number between 0 and 1 (inclusive). Null values are assumed to be zero. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Auxiliary table location. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\BigQueryTable|null + */ + public function getTable() + { + return $this->table; + } + + public function hasTable() + { + return isset($this->table); + } + + public function clearTable() + { + unset($this->table); + } + + /** + * Required. Auxiliary table location. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\BigQueryTable $var + * @return $this + */ + public function setTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); + $this->table = $var; + + return $this; + } + + /** + * Required. Quasi-identifier columns. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable\QuasiIdField> + */ + public function getQuasiIds() + { + return $this->quasi_ids; + } + + /** + * Required. Quasi-identifier columns. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable\QuasiIdField[] $var + * @return $this + */ + public function setQuasiIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable\QuasiIdField::class); + $this->quasi_ids = $arr; + + return $this; + } + + /** + * Required. The relative frequency column must contain a floating-point + * number between 0 and 1 (inclusive). Null values are assumed to be zero. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getRelativeFrequency() + { + return $this->relative_frequency; + } + + public function hasRelativeFrequency() + { + return isset($this->relative_frequency); + } + + public function clearRelativeFrequency() + { + unset($this->relative_frequency); + } + + /** + * Required. The relative frequency column must contain a floating-point + * number between 0 and 1 (inclusive). Null values are assumed to be zero. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setRelativeFrequency($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->relative_frequency = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable/QuasiIdField.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable/QuasiIdField.php new file mode 100644 index 000000000000..88a9b4f71af7 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable/QuasiIdField.php @@ -0,0 +1,112 @@ +google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField + */ +class QuasiIdField extends \Google\Protobuf\Internal\Message +{ + /** + * Identifies the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + */ + protected $field = null; + /** + * A auxiliary field. + * + * Generated from protobuf field string custom_tag = 2; + */ + protected $custom_tag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FieldId $field + * Identifies the column. + * @type string $custom_tag + * A auxiliary field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Identifies the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getField() + { + return $this->field; + } + + public function hasField() + { + return isset($this->field); + } + + public function clearField() + { + unset($this->field); + } + + /** + * Identifies the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->field = $var; + + return $this; + } + + /** + * A auxiliary field. + * + * Generated from protobuf field string custom_tag = 2; + * @return string + */ + public function getCustomTag() + { + return $this->custom_tag; + } + + /** + * A auxiliary field. + * + * Generated from protobuf field string custom_tag = 2; + * @param string $var + * @return $this + */ + public function setCustomTag($var) + { + GPBUtil::checkString($var, True); + $this->custom_tag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/TaggedField.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/TaggedField.php new file mode 100644 index 000000000000..76f06e94f265 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/TaggedField.php @@ -0,0 +1,206 @@ +google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField + */ +class TaggedField extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Identifies the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $field = null; + protected $tag; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FieldId $field + * Required. Identifies the column. + * @type \Google\Cloud\Dlp\V2\InfoType $info_type + * A column can be tagged with a InfoType to use the relevant public + * dataset as a statistical model of population, if available. We + * currently support US ZIP codes, region codes, ages and genders. + * To programmatically obtain the list of supported InfoTypes, use + * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. + * @type string $custom_tag + * A column can be tagged with a custom tag. In this case, the user must + * indicate an auxiliary table that contains statistical information on + * the possible values of this column. + * @type \Google\Protobuf\GPBEmpty $inferred + * If no semantic tag is indicated, we infer the statistical model from + * the distribution of values in the input data + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Identifies the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getField() + { + return $this->field; + } + + public function hasField() + { + return isset($this->field); + } + + public function clearField() + { + unset($this->field); + } + + /** + * Required. Identifies the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->field = $var; + + return $this; + } + + /** + * A column can be tagged with a InfoType to use the relevant public + * dataset as a statistical model of population, if available. We + * currently support US ZIP codes, region codes, ages and genders. + * To programmatically obtain the list of supported InfoTypes, use + * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; + * @return \Google\Cloud\Dlp\V2\InfoType|null + */ + public function getInfoType() + { + return $this->readOneof(2); + } + + public function hasInfoType() + { + return $this->hasOneof(2); + } + + /** + * A column can be tagged with a InfoType to use the relevant public + * dataset as a statistical model of population, if available. We + * currently support US ZIP codes, region codes, ages and genders. + * To programmatically obtain the list of supported InfoTypes, use + * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; + * @param \Google\Cloud\Dlp\V2\InfoType $var + * @return $this + */ + public function setInfoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A column can be tagged with a custom tag. In this case, the user must + * indicate an auxiliary table that contains statistical information on + * the possible values of this column. + * + * Generated from protobuf field string custom_tag = 3; + * @return string + */ + public function getCustomTag() + { + return $this->readOneof(3); + } + + public function hasCustomTag() + { + return $this->hasOneof(3); + } + + /** + * A column can be tagged with a custom tag. In this case, the user must + * indicate an auxiliary table that contains statistical information on + * the possible values of this column. + * + * Generated from protobuf field string custom_tag = 3; + * @param string $var + * @return $this + */ + public function setCustomTag($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * If no semantic tag is indicated, we infer the statistical model from + * the distribution of values in the input data + * + * Generated from protobuf field .google.protobuf.Empty inferred = 4; + * @return \Google\Protobuf\GPBEmpty|null + */ + public function getInferred() + { + return $this->readOneof(4); + } + + public function hasInferred() + { + return $this->hasOneof(4); + } + + /** + * If no semantic tag is indicated, we infer the statistical model from + * the distribution of values in the input data + * + * Generated from protobuf field .google.protobuf.Empty inferred = 4; + * @param \Google\Protobuf\GPBEmpty $var + * @return $this + */ + public function setInferred($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\GPBEmpty::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getTag() + { + return $this->whichOneof("tag"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/LDiversityConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/LDiversityConfig.php new file mode 100644 index 000000000000..3d6ee61112cd --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/LDiversityConfig.php @@ -0,0 +1,119 @@ +google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig + */ +class LDiversityConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Set of quasi-identifiers indicating how equivalence classes are + * defined for the l-diversity computation. When multiple fields are + * specified, they are considered a single composite key. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; + */ + private $quasi_ids; + /** + * Sensitive field for computing the l-value. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId sensitive_attribute = 2; + */ + protected $sensitive_attribute = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FieldId[] $quasi_ids + * Set of quasi-identifiers indicating how equivalence classes are + * defined for the l-diversity computation. When multiple fields are + * specified, they are considered a single composite key. + * @type \Google\Cloud\Dlp\V2\FieldId $sensitive_attribute + * Sensitive field for computing the l-value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Set of quasi-identifiers indicating how equivalence classes are + * defined for the l-diversity computation. When multiple fields are + * specified, they are considered a single composite key. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldId> + */ + public function getQuasiIds() + { + return $this->quasi_ids; + } + + /** + * Set of quasi-identifiers indicating how equivalence classes are + * defined for the l-diversity computation. When multiple fields are + * specified, they are considered a single composite key. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; + * @param \Google\Cloud\Dlp\V2\FieldId[] $var + * @return $this + */ + public function setQuasiIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); + $this->quasi_ids = $arr; + + return $this; + } + + /** + * Sensitive field for computing the l-value. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId sensitive_attribute = 2; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getSensitiveAttribute() + { + return $this->sensitive_attribute; + } + + public function hasSensitiveAttribute() + { + return isset($this->sensitive_attribute); + } + + public function clearSensitiveAttribute() + { + unset($this->sensitive_attribute); + } + + /** + * Sensitive field for computing the l-value. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId sensitive_attribute = 2; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setSensitiveAttribute($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->sensitive_attribute = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/NumericalStatsConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/NumericalStatsConfig.php new file mode 100644 index 000000000000..446b795d6619 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/NumericalStatsConfig.php @@ -0,0 +1,82 @@ +google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig + */ +class NumericalStatsConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Field to compute numerical stats on. Supported types are + * integer, float, date, datetime, timestamp, time. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + */ + protected $field = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FieldId $field + * Field to compute numerical stats on. Supported types are + * integer, float, date, datetime, timestamp, time. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Field to compute numerical stats on. Supported types are + * integer, float, date, datetime, timestamp, time. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getField() + { + return $this->field; + } + + public function hasField() + { + return isset($this->field); + } + + public function clearField() + { + unset($this->field); + } + + /** + * Field to compute numerical stats on. Supported types are + * integer, float, date, datetime, timestamp, time. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->field = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation.php new file mode 100644 index 000000000000..01d4b548dee4 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation.php @@ -0,0 +1,123 @@ +google.privacy.dlp.v2.ProcessingLocation + */ +class ProcessingLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Image processing falls back using this configuration. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation image_fallback_location = 1; + */ + protected $image_fallback_location = null; + /** + * Document processing falls back using this configuration. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + */ + protected $document_fallback_location = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\ProcessingLocation\ImageFallbackLocation $image_fallback_location + * Image processing falls back using this configuration. + * @type \Google\Cloud\Dlp\V2\ProcessingLocation\DocumentFallbackLocation $document_fallback_location + * Document processing falls back using this configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Image processing falls back using this configuration. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation image_fallback_location = 1; + * @return \Google\Cloud\Dlp\V2\ProcessingLocation\ImageFallbackLocation|null + */ + public function getImageFallbackLocation() + { + return $this->image_fallback_location; + } + + public function hasImageFallbackLocation() + { + return isset($this->image_fallback_location); + } + + public function clearImageFallbackLocation() + { + unset($this->image_fallback_location); + } + + /** + * Image processing falls back using this configuration. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation image_fallback_location = 1; + * @param \Google\Cloud\Dlp\V2\ProcessingLocation\ImageFallbackLocation $var + * @return $this + */ + public function setImageFallbackLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProcessingLocation\ImageFallbackLocation::class); + $this->image_fallback_location = $var; + + return $this; + } + + /** + * Document processing falls back using this configuration. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + * @return \Google\Cloud\Dlp\V2\ProcessingLocation\DocumentFallbackLocation|null + */ + public function getDocumentFallbackLocation() + { + return $this->document_fallback_location; + } + + public function hasDocumentFallbackLocation() + { + return isset($this->document_fallback_location); + } + + public function clearDocumentFallbackLocation() + { + unset($this->document_fallback_location); + } + + /** + * Document processing falls back using this configuration. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; + * @param \Google\Cloud\Dlp\V2\ProcessingLocation\DocumentFallbackLocation $var + * @return $this + */ + public function setDocumentFallbackLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProcessingLocation\DocumentFallbackLocation::class); + $this->document_fallback_location = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/DocumentFallbackLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/DocumentFallbackLocation.php new file mode 100644 index 000000000000..1a4ec8afa555 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/DocumentFallbackLocation.php @@ -0,0 +1,127 @@ +google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation + */ +class DocumentFallbackLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Processing occurs in a multi-region that contains the current region + * if available. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + */ + protected $multi_region_processing = null; + /** + * Processing occurs in the global region. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + */ + protected $global_processing = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\ProcessingLocation\MultiRegionProcessing $multi_region_processing + * Processing occurs in a multi-region that contains the current region + * if available. + * @type \Google\Cloud\Dlp\V2\ProcessingLocation\GlobalProcessing $global_processing + * Processing occurs in the global region. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Processing occurs in a multi-region that contains the current region + * if available. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * @return \Google\Cloud\Dlp\V2\ProcessingLocation\MultiRegionProcessing|null + */ + public function getMultiRegionProcessing() + { + return $this->multi_region_processing; + } + + public function hasMultiRegionProcessing() + { + return isset($this->multi_region_processing); + } + + public function clearMultiRegionProcessing() + { + unset($this->multi_region_processing); + } + + /** + * Processing occurs in a multi-region that contains the current region + * if available. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * @param \Google\Cloud\Dlp\V2\ProcessingLocation\MultiRegionProcessing $var + * @return $this + */ + public function setMultiRegionProcessing($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProcessingLocation\MultiRegionProcessing::class); + $this->multi_region_processing = $var; + + return $this; + } + + /** + * Processing occurs in the global region. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * @return \Google\Cloud\Dlp\V2\ProcessingLocation\GlobalProcessing|null + */ + public function getGlobalProcessing() + { + return $this->global_processing; + } + + public function hasGlobalProcessing() + { + return isset($this->global_processing); + } + + public function clearGlobalProcessing() + { + unset($this->global_processing); + } + + /** + * Processing occurs in the global region. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * @param \Google\Cloud\Dlp\V2\ProcessingLocation\GlobalProcessing $var + * @return $this + */ + public function setGlobalProcessing($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProcessingLocation\GlobalProcessing::class); + $this->global_processing = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/GlobalProcessing.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/GlobalProcessing.php new file mode 100644 index 000000000000..c038a87a9c36 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/GlobalProcessing.php @@ -0,0 +1,33 @@ +google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing + */ +class GlobalProcessing extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/ImageFallbackLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/ImageFallbackLocation.php new file mode 100644 index 000000000000..5cf7489f75f3 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/ImageFallbackLocation.php @@ -0,0 +1,127 @@ +google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation + */ +class ImageFallbackLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Processing occurs in a multi-region that contains the current region + * if available. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + */ + protected $multi_region_processing = null; + /** + * Processing occurs in the global region. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + */ + protected $global_processing = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\ProcessingLocation\MultiRegionProcessing $multi_region_processing + * Processing occurs in a multi-region that contains the current region + * if available. + * @type \Google\Cloud\Dlp\V2\ProcessingLocation\GlobalProcessing $global_processing + * Processing occurs in the global region. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Processing occurs in a multi-region that contains the current region + * if available. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * @return \Google\Cloud\Dlp\V2\ProcessingLocation\MultiRegionProcessing|null + */ + public function getMultiRegionProcessing() + { + return $this->multi_region_processing; + } + + public function hasMultiRegionProcessing() + { + return isset($this->multi_region_processing); + } + + public function clearMultiRegionProcessing() + { + unset($this->multi_region_processing); + } + + /** + * Processing occurs in a multi-region that contains the current region + * if available. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; + * @param \Google\Cloud\Dlp\V2\ProcessingLocation\MultiRegionProcessing $var + * @return $this + */ + public function setMultiRegionProcessing($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProcessingLocation\MultiRegionProcessing::class); + $this->multi_region_processing = $var; + + return $this; + } + + /** + * Processing occurs in the global region. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * @return \Google\Cloud\Dlp\V2\ProcessingLocation\GlobalProcessing|null + */ + public function getGlobalProcessing() + { + return $this->global_processing; + } + + public function hasGlobalProcessing() + { + return isset($this->global_processing); + } + + public function clearGlobalProcessing() + { + unset($this->global_processing); + } + + /** + * Processing occurs in the global region. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; + * @param \Google\Cloud\Dlp\V2\ProcessingLocation\GlobalProcessing $var + * @return $this + */ + public function setGlobalProcessing($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProcessingLocation\GlobalProcessing::class); + $this->global_processing = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/MultiRegionProcessing.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/MultiRegionProcessing.php new file mode 100644 index 000000000000..58bc8210ce03 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/MultiRegionProcessing.php @@ -0,0 +1,34 @@ +google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing + */ +class MultiRegionProcessing extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileGeneration.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileGeneration.php new file mode 100644 index 000000000000..73cc6d4dd013 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileGeneration.php @@ -0,0 +1,61 @@ +google.privacy.dlp.v2.ProfileGeneration + */ +class ProfileGeneration +{ + /** + * Unused. + * + * Generated from protobuf enum PROFILE_GENERATION_UNSPECIFIED = 0; + */ + const PROFILE_GENERATION_UNSPECIFIED = 0; + /** + * The profile is the first profile for the resource. + * + * Generated from protobuf enum PROFILE_GENERATION_NEW = 1; + */ + const PROFILE_GENERATION_NEW = 1; + /** + * The profile is an update to a previous profile. + * + * Generated from protobuf enum PROFILE_GENERATION_UPDATE = 2; + */ + const PROFILE_GENERATION_UPDATE = 2; + + private static $valueToName = [ + self::PROFILE_GENERATION_UNSPECIFIED => 'PROFILE_GENERATION_UNSPECIFIED', + self::PROFILE_GENERATION_NEW => 'PROFILE_GENERATION_NEW', + self::PROFILE_GENERATION_UPDATE => 'PROFILE_GENERATION_UPDATE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileStatus.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileStatus.php new file mode 100644 index 000000000000..3f3fb88a51ba --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileStatus.php @@ -0,0 +1,125 @@ +google.privacy.dlp.v2.ProfileStatus + */ +class ProfileStatus extends \Google\Protobuf\Internal\Message +{ + /** + * Profiling status code and optional message. The `status.code` value is 0 + * (default value) for OK. + * + * Generated from protobuf field .google.rpc.Status status = 1; + */ + protected $status = null; + /** + * Time when the profile generation status was updated + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; + */ + protected $timestamp = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Rpc\Status $status + * Profiling status code and optional message. The `status.code` value is 0 + * (default value) for OK. + * @type \Google\Protobuf\Timestamp $timestamp + * Time when the profile generation status was updated + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Profiling status code and optional message. The `status.code` value is 0 + * (default value) for OK. + * + * Generated from protobuf field .google.rpc.Status status = 1; + * @return \Google\Rpc\Status|null + */ + public function getStatus() + { + return $this->status; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Profiling status code and optional message. The `status.code` value is 0 + * (default value) for OK. + * + * Generated from protobuf field .google.rpc.Status status = 1; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->status = $var; + + return $this; + } + + /** + * Time when the profile generation status was updated + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTimestamp() + { + return $this->timestamp; + } + + public function hasTimestamp() + { + return isset($this->timestamp); + } + + public function clearTimestamp() + { + unset($this->timestamp); + } + + /** + * Time when the profile generation status was updated + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTimestamp($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->timestamp = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProjectDataProfile.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProjectDataProfile.php new file mode 100644 index 000000000000..b5134d8b5b4c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProjectDataProfile.php @@ -0,0 +1,346 @@ +google.privacy.dlp.v2.ProjectDataProfile + */ +class ProjectDataProfile extends \Google\Protobuf\Internal\Message +{ + /** + * The resource name of the profile. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Project ID or account that was profiled. + * + * Generated from protobuf field string project_id = 2; + */ + protected $project_id = ''; + /** + * The last time the profile was generated. + * + * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; + */ + protected $profile_last_generated = null; + /** + * The sensitivity score of this project. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + */ + protected $sensitivity_score = null; + /** + * The data risk level of this project. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + */ + protected $data_risk_level = null; + /** + * Success or error status of the last attempt to profile the project. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + */ + protected $profile_status = null; + /** + * The number of table data profiles generated for this project. + * + * Generated from protobuf field int64 table_data_profile_count = 9; + */ + protected $table_data_profile_count = 0; + /** + * The number of file store data profiles generated for this project. + * + * Generated from protobuf field int64 file_store_data_profile_count = 10; + */ + protected $file_store_data_profile_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The resource name of the profile. + * @type string $project_id + * Project ID or account that was profiled. + * @type \Google\Protobuf\Timestamp $profile_last_generated + * The last time the profile was generated. + * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score + * The sensitivity score of this project. + * @type \Google\Cloud\Dlp\V2\DataRiskLevel $data_risk_level + * The data risk level of this project. + * @type \Google\Cloud\Dlp\V2\ProfileStatus $profile_status + * Success or error status of the last attempt to profile the project. + * @type int|string $table_data_profile_count + * The number of table data profiles generated for this project. + * @type int|string $file_store_data_profile_count + * The number of file store data profiles generated for this project. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The resource name of the profile. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The resource name of the profile. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Project ID or account that was profiled. + * + * Generated from protobuf field string project_id = 2; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * Project ID or account that was profiled. + * + * Generated from protobuf field string project_id = 2; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * The last time the profile was generated. + * + * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getProfileLastGenerated() + { + return $this->profile_last_generated; + } + + public function hasProfileLastGenerated() + { + return isset($this->profile_last_generated); + } + + public function clearProfileLastGenerated() + { + unset($this->profile_last_generated); + } + + /** + * The last time the profile was generated. + * + * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setProfileLastGenerated($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->profile_last_generated = $var; + + return $this; + } + + /** + * The sensitivity score of this project. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + * @return \Google\Cloud\Dlp\V2\SensitivityScore|null + */ + public function getSensitivityScore() + { + return $this->sensitivity_score; + } + + public function hasSensitivityScore() + { + return isset($this->sensitivity_score); + } + + public function clearSensitivityScore() + { + unset($this->sensitivity_score); + } + + /** + * The sensitivity score of this project. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + * @param \Google\Cloud\Dlp\V2\SensitivityScore $var + * @return $this + */ + public function setSensitivityScore($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); + $this->sensitivity_score = $var; + + return $this; + } + + /** + * The data risk level of this project. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + * @return \Google\Cloud\Dlp\V2\DataRiskLevel|null + */ + public function getDataRiskLevel() + { + return $this->data_risk_level; + } + + public function hasDataRiskLevel() + { + return isset($this->data_risk_level); + } + + public function clearDataRiskLevel() + { + unset($this->data_risk_level); + } + + /** + * The data risk level of this project. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + * @param \Google\Cloud\Dlp\V2\DataRiskLevel $var + * @return $this + */ + public function setDataRiskLevel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataRiskLevel::class); + $this->data_risk_level = $var; + + return $this; + } + + /** + * Success or error status of the last attempt to profile the project. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + * @return \Google\Cloud\Dlp\V2\ProfileStatus|null + */ + public function getProfileStatus() + { + return $this->profile_status; + } + + public function hasProfileStatus() + { + return isset($this->profile_status); + } + + public function clearProfileStatus() + { + unset($this->profile_status); + } + + /** + * Success or error status of the last attempt to profile the project. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + * @param \Google\Cloud\Dlp\V2\ProfileStatus $var + * @return $this + */ + public function setProfileStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProfileStatus::class); + $this->profile_status = $var; + + return $this; + } + + /** + * The number of table data profiles generated for this project. + * + * Generated from protobuf field int64 table_data_profile_count = 9; + * @return int|string + */ + public function getTableDataProfileCount() + { + return $this->table_data_profile_count; + } + + /** + * The number of table data profiles generated for this project. + * + * Generated from protobuf field int64 table_data_profile_count = 9; + * @param int|string $var + * @return $this + */ + public function setTableDataProfileCount($var) + { + GPBUtil::checkInt64($var); + $this->table_data_profile_count = $var; + + return $this; + } + + /** + * The number of file store data profiles generated for this project. + * + * Generated from protobuf field int64 file_store_data_profile_count = 10; + * @return int|string + */ + public function getFileStoreDataProfileCount() + { + return $this->file_store_data_profile_count; + } + + /** + * The number of file store data profiles generated for this project. + * + * Generated from protobuf field int64 file_store_data_profile_count = 10; + * @param int|string $var + * @return $this + */ + public function setFileStoreDataProfileCount($var) + { + GPBUtil::checkInt64($var); + $this->file_store_data_profile_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuasiId.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuasiId.php new file mode 100644 index 000000000000..4c710e04001b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuasiId.php @@ -0,0 +1,206 @@ +google.privacy.dlp.v2.QuasiId + */ +class QuasiId extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Identifies the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $field = null; + protected $tag; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FieldId $field + * Required. Identifies the column. + * @type \Google\Cloud\Dlp\V2\InfoType $info_type + * A column can be tagged with a InfoType to use the relevant public + * dataset as a statistical model of population, if available. We + * currently support US ZIP codes, region codes, ages and genders. + * To programmatically obtain the list of supported InfoTypes, use + * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. + * @type string $custom_tag + * A column can be tagged with a custom tag. In this case, the user must + * indicate an auxiliary table that contains statistical information on + * the possible values of this column. + * @type \Google\Protobuf\GPBEmpty $inferred + * If no semantic tag is indicated, we infer the statistical model from + * the distribution of values in the input data + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Identifies the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getField() + { + return $this->field; + } + + public function hasField() + { + return isset($this->field); + } + + public function clearField() + { + unset($this->field); + } + + /** + * Required. Identifies the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->field = $var; + + return $this; + } + + /** + * A column can be tagged with a InfoType to use the relevant public + * dataset as a statistical model of population, if available. We + * currently support US ZIP codes, region codes, ages and genders. + * To programmatically obtain the list of supported InfoTypes, use + * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; + * @return \Google\Cloud\Dlp\V2\InfoType|null + */ + public function getInfoType() + { + return $this->readOneof(2); + } + + public function hasInfoType() + { + return $this->hasOneof(2); + } + + /** + * A column can be tagged with a InfoType to use the relevant public + * dataset as a statistical model of population, if available. We + * currently support US ZIP codes, region codes, ages and genders. + * To programmatically obtain the list of supported InfoTypes, use + * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; + * @param \Google\Cloud\Dlp\V2\InfoType $var + * @return $this + */ + public function setInfoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A column can be tagged with a custom tag. In this case, the user must + * indicate an auxiliary table that contains statistical information on + * the possible values of this column. + * + * Generated from protobuf field string custom_tag = 3; + * @return string + */ + public function getCustomTag() + { + return $this->readOneof(3); + } + + public function hasCustomTag() + { + return $this->hasOneof(3); + } + + /** + * A column can be tagged with a custom tag. In this case, the user must + * indicate an auxiliary table that contains statistical information on + * the possible values of this column. + * + * Generated from protobuf field string custom_tag = 3; + * @param string $var + * @return $this + */ + public function setCustomTag($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * If no semantic tag is indicated, we infer the statistical model from + * the distribution of values in the input data + * + * Generated from protobuf field .google.protobuf.Empty inferred = 4; + * @return \Google\Protobuf\GPBEmpty|null + */ + public function getInferred() + { + return $this->readOneof(4); + } + + public function hasInferred() + { + return $this->hasOneof(4); + } + + /** + * If no semantic tag is indicated, we infer the statistical model from + * the distribution of values in the input data + * + * Generated from protobuf field .google.protobuf.Empty inferred = 4; + * @param \Google\Protobuf\GPBEmpty $var + * @return $this + */ + public function setInferred($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\GPBEmpty::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getTag() + { + return $this->whichOneof("tag"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuoteInfo.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuoteInfo.php new file mode 100644 index 000000000000..4db881152c2b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuoteInfo.php @@ -0,0 +1,75 @@ +google.privacy.dlp.v2.QuoteInfo + */ +class QuoteInfo extends \Google\Protobuf\Internal\Message +{ + protected $parsed_quote; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DateTime $date_time + * The date time indicated by the quote. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The date time indicated by the quote. + * + * Generated from protobuf field .google.privacy.dlp.v2.DateTime date_time = 2; + * @return \Google\Cloud\Dlp\V2\DateTime|null + */ + public function getDateTime() + { + return $this->readOneof(2); + } + + public function hasDateTime() + { + return $this->hasOneof(2); + } + + /** + * The date time indicated by the quote. + * + * Generated from protobuf field .google.privacy.dlp.v2.DateTime date_time = 2; + * @param \Google\Cloud\Dlp\V2\DateTime $var + * @return $this + */ + public function setDateTime($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DateTime::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getParsedQuote() + { + return $this->whichOneof("parsed_quote"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Range.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Range.php new file mode 100644 index 000000000000..bd2b530c27d9 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Range.php @@ -0,0 +1,101 @@ +google.privacy.dlp.v2.Range + */ +class Range extends \Google\Protobuf\Internal\Message +{ + /** + * Index of the first character of the range (inclusive). + * + * Generated from protobuf field int64 start = 1; + */ + protected $start = 0; + /** + * Index of the last character of the range (exclusive). + * + * Generated from protobuf field int64 end = 2; + */ + protected $end = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $start + * Index of the first character of the range (inclusive). + * @type int|string $end + * Index of the last character of the range (exclusive). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Index of the first character of the range (inclusive). + * + * Generated from protobuf field int64 start = 1; + * @return int|string + */ + public function getStart() + { + return $this->start; + } + + /** + * Index of the first character of the range (inclusive). + * + * Generated from protobuf field int64 start = 1; + * @param int|string $var + * @return $this + */ + public function setStart($var) + { + GPBUtil::checkInt64($var); + $this->start = $var; + + return $this; + } + + /** + * Index of the last character of the range (exclusive). + * + * Generated from protobuf field int64 end = 2; + * @return int|string + */ + public function getEnd() + { + return $this->end; + } + + /** + * Index of the last character of the range (exclusive). + * + * Generated from protobuf field int64 end = 2; + * @param int|string $var + * @return $this + */ + public function setEnd($var) + { + GPBUtil::checkInt64($var); + $this->end = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition.php new file mode 100644 index 000000000000..737e51d6915a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition.php @@ -0,0 +1,78 @@ +google.privacy.dlp.v2.RecordCondition + */ +class RecordCondition extends \Google\Protobuf\Internal\Message +{ + /** + * An expression. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions expressions = 3; + */ + protected $expressions = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\RecordCondition\Expressions $expressions + * An expression. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * An expression. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions expressions = 3; + * @return \Google\Cloud\Dlp\V2\RecordCondition\Expressions|null + */ + public function getExpressions() + { + return $this->expressions; + } + + public function hasExpressions() + { + return isset($this->expressions); + } + + public function clearExpressions() + { + unset($this->expressions); + } + + /** + * An expression. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions expressions = 3; + * @param \Google\Cloud\Dlp\V2\RecordCondition\Expressions $var + * @return $this + */ + public function setExpressions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordCondition\Expressions::class); + $this->expressions = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Condition.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Condition.php new file mode 100644 index 000000000000..432321d0d7db --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Condition.php @@ -0,0 +1,171 @@ +google.privacy.dlp.v2.RecordCondition.Condition + */ +class Condition extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Field within the record this condition is evaluated against. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $field = null; + /** + * Required. Operator used to compare the field or infoType to the value. + * + * Generated from protobuf field .google.privacy.dlp.v2.RelationalOperator operator = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $operator = 0; + /** + * Value to compare against. [Mandatory, except for `EXISTS` tests.] + * + * Generated from protobuf field .google.privacy.dlp.v2.Value value = 4; + */ + protected $value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FieldId $field + * Required. Field within the record this condition is evaluated against. + * @type int $operator + * Required. Operator used to compare the field or infoType to the value. + * @type \Google\Cloud\Dlp\V2\Value $value + * Value to compare against. [Mandatory, except for `EXISTS` tests.] + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Field within the record this condition is evaluated against. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getField() + { + return $this->field; + } + + public function hasField() + { + return isset($this->field); + } + + public function clearField() + { + unset($this->field); + } + + /** + * Required. Field within the record this condition is evaluated against. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->field = $var; + + return $this; + } + + /** + * Required. Operator used to compare the field or infoType to the value. + * + * Generated from protobuf field .google.privacy.dlp.v2.RelationalOperator operator = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getOperator() + { + return $this->operator; + } + + /** + * Required. Operator used to compare the field or infoType to the value. + * + * Generated from protobuf field .google.privacy.dlp.v2.RelationalOperator operator = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setOperator($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\RelationalOperator::class); + $this->operator = $var; + + return $this; + } + + /** + * Value to compare against. [Mandatory, except for `EXISTS` tests.] + * + * Generated from protobuf field .google.privacy.dlp.v2.Value value = 4; + * @return \Google\Cloud\Dlp\V2\Value|null + */ + public function getValue() + { + return $this->value; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * Value to compare against. [Mandatory, except for `EXISTS` tests.] + * + * Generated from protobuf field .google.privacy.dlp.v2.Value value = 4; + * @param \Google\Cloud\Dlp\V2\Value $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Conditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Conditions.php new file mode 100644 index 000000000000..03ed948e0526 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Conditions.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.RecordCondition.Conditions + */ +class Conditions extends \Google\Protobuf\Internal\Message +{ + /** + * A collection of conditions. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordCondition.Condition conditions = 1; + */ + private $conditions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\RecordCondition\Condition[] $conditions + * A collection of conditions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A collection of conditions. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordCondition.Condition conditions = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\RecordCondition\Condition> + */ + public function getConditions() + { + return $this->conditions; + } + + /** + * A collection of conditions. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordCondition.Condition conditions = 1; + * @param \Google\Cloud\Dlp\V2\RecordCondition\Condition[] $var + * @return $this + */ + public function setConditions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\RecordCondition\Condition::class); + $this->conditions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions.php new file mode 100644 index 000000000000..fe3353f5e09f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions.php @@ -0,0 +1,113 @@ +google.privacy.dlp.v2.RecordCondition.Expressions + */ +class Expressions extends \Google\Protobuf\Internal\Message +{ + /** + * The operator to apply to the result of conditions. Default and currently + * only supported value is `AND`. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator logical_operator = 1; + */ + protected $logical_operator = 0; + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $logical_operator + * The operator to apply to the result of conditions. Default and currently + * only supported value is `AND`. + * @type \Google\Cloud\Dlp\V2\RecordCondition\Conditions $conditions + * Conditions to apply to the expression. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The operator to apply to the result of conditions. Default and currently + * only supported value is `AND`. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator logical_operator = 1; + * @return int + */ + public function getLogicalOperator() + { + return $this->logical_operator; + } + + /** + * The operator to apply to the result of conditions. Default and currently + * only supported value is `AND`. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator logical_operator = 1; + * @param int $var + * @return $this + */ + public function setLogicalOperator($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\RecordCondition\Expressions\LogicalOperator::class); + $this->logical_operator = $var; + + return $this; + } + + /** + * Conditions to apply to the expression. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Conditions conditions = 3; + * @return \Google\Cloud\Dlp\V2\RecordCondition\Conditions|null + */ + public function getConditions() + { + return $this->readOneof(3); + } + + public function hasConditions() + { + return $this->hasOneof(3); + } + + /** + * Conditions to apply to the expression. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Conditions conditions = 3; + * @param \Google\Cloud\Dlp\V2\RecordCondition\Conditions $var + * @return $this + */ + public function setConditions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordCondition\Conditions::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions/LogicalOperator.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions/LogicalOperator.php new file mode 100644 index 000000000000..2903e2afa727 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions/LogicalOperator.php @@ -0,0 +1,58 @@ +google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator + */ +class LogicalOperator +{ + /** + * Unused + * + * Generated from protobuf enum LOGICAL_OPERATOR_UNSPECIFIED = 0; + */ + const LOGICAL_OPERATOR_UNSPECIFIED = 0; + /** + * Conditional AND + * + * Generated from protobuf enum AND = 1; + */ + const PBAND = 1; + + private static $valueToName = [ + self::LOGICAL_OPERATOR_UNSPECIFIED => 'LOGICAL_OPERATOR_UNSPECIFIED', + self::PBAND => 'AND', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordKey.php new file mode 100644 index 000000000000..faeb7eca393e --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordKey.php @@ -0,0 +1,146 @@ +google.privacy.dlp.v2.RecordKey + */ +class RecordKey extends \Google\Protobuf\Internal\Message +{ + /** + * Values of identifying columns in the given row. Order of values matches + * the order of `identifying_fields` specified in the scanning request. + * + * Generated from protobuf field repeated string id_values = 5; + */ + private $id_values; + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DatastoreKey $datastore_key + * BigQuery key + * @type \Google\Cloud\Dlp\V2\BigQueryKey $big_query_key + * Datastore key + * @type string[] $id_values + * Values of identifying columns in the given row. Order of values matches + * the order of `identifying_fields` specified in the scanning request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * BigQuery key + * + * Generated from protobuf field .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; + * @return \Google\Cloud\Dlp\V2\DatastoreKey|null + */ + public function getDatastoreKey() + { + return $this->readOneof(2); + } + + public function hasDatastoreKey() + { + return $this->hasOneof(2); + } + + /** + * BigQuery key + * + * Generated from protobuf field .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; + * @param \Google\Cloud\Dlp\V2\DatastoreKey $var + * @return $this + */ + public function setDatastoreKey($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DatastoreKey::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Datastore key + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; + * @return \Google\Cloud\Dlp\V2\BigQueryKey|null + */ + public function getBigQueryKey() + { + return $this->readOneof(3); + } + + public function hasBigQueryKey() + { + return $this->hasOneof(3); + } + + /** + * Datastore key + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; + * @param \Google\Cloud\Dlp\V2\BigQueryKey $var + * @return $this + */ + public function setBigQueryKey($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryKey::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Values of identifying columns in the given row. Order of values matches + * the order of `identifying_fields` specified in the scanning request. + * + * Generated from protobuf field repeated string id_values = 5; + * @return RepeatedField + */ + public function getIdValues() + { + return $this->id_values; + } + + /** + * Values of identifying columns in the given row. Order of values matches + * the order of `identifying_fields` specified in the scanning request. + * + * Generated from protobuf field repeated string id_values = 5; + * @param string[] $var + * @return $this + */ + public function setIdValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->id_values = $arr; + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordLocation.php new file mode 100644 index 000000000000..5f886759b5d0 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordLocation.php @@ -0,0 +1,165 @@ +google.privacy.dlp.v2.RecordLocation + */ +class RecordLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Key of the finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordKey record_key = 1; + */ + protected $record_key = null; + /** + * Field id of the field containing the finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 2; + */ + protected $field_id = null; + /** + * Location within a `ContentItem.Table`. + * + * Generated from protobuf field .google.privacy.dlp.v2.TableLocation table_location = 3; + */ + protected $table_location = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\RecordKey $record_key + * Key of the finding. + * @type \Google\Cloud\Dlp\V2\FieldId $field_id + * Field id of the field containing the finding. + * @type \Google\Cloud\Dlp\V2\TableLocation $table_location + * Location within a `ContentItem.Table`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Key of the finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordKey record_key = 1; + * @return \Google\Cloud\Dlp\V2\RecordKey|null + */ + public function getRecordKey() + { + return $this->record_key; + } + + public function hasRecordKey() + { + return isset($this->record_key); + } + + public function clearRecordKey() + { + unset($this->record_key); + } + + /** + * Key of the finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordKey record_key = 1; + * @param \Google\Cloud\Dlp\V2\RecordKey $var + * @return $this + */ + public function setRecordKey($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordKey::class); + $this->record_key = $var; + + return $this; + } + + /** + * Field id of the field containing the finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 2; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getFieldId() + { + return $this->field_id; + } + + public function hasFieldId() + { + return isset($this->field_id); + } + + public function clearFieldId() + { + unset($this->field_id); + } + + /** + * Field id of the field containing the finding. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 2; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setFieldId($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->field_id = $var; + + return $this; + } + + /** + * Location within a `ContentItem.Table`. + * + * Generated from protobuf field .google.privacy.dlp.v2.TableLocation table_location = 3; + * @return \Google\Cloud\Dlp\V2\TableLocation|null + */ + public function getTableLocation() + { + return $this->table_location; + } + + public function hasTableLocation() + { + return isset($this->table_location); + } + + public function clearTableLocation() + { + unset($this->table_location); + } + + /** + * Location within a `ContentItem.Table`. + * + * Generated from protobuf field .google.privacy.dlp.v2.TableLocation table_location = 3; + * @param \Google\Cloud\Dlp\V2\TableLocation $var + * @return $this + */ + public function setTableLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableLocation::class); + $this->table_location = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordSuppression.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordSuppression.php new file mode 100644 index 000000000000..9d81a933412a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordSuppression.php @@ -0,0 +1,82 @@ +google.privacy.dlp.v2.RecordSuppression + */ +class RecordSuppression extends \Google\Protobuf\Internal\Message +{ + /** + * A condition that when it evaluates to true will result in the record being + * evaluated to be suppressed from the transformed content. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 1; + */ + protected $condition = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\RecordCondition $condition + * A condition that when it evaluates to true will result in the record being + * evaluated to be suppressed from the transformed content. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A condition that when it evaluates to true will result in the record being + * evaluated to be suppressed from the transformed content. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 1; + * @return \Google\Cloud\Dlp\V2\RecordCondition|null + */ + public function getCondition() + { + return $this->condition; + } + + public function hasCondition() + { + return isset($this->condition); + } + + public function clearCondition() + { + unset($this->condition); + } + + /** + * A condition that when it evaluates to true will result in the record being + * evaluated to be suppressed from the transformed content. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 1; + * @param \Google\Cloud\Dlp\V2\RecordCondition $var + * @return $this + */ + public function setCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordCondition::class); + $this->condition = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformation.php new file mode 100644 index 000000000000..cc8c7c49a02f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformation.php @@ -0,0 +1,155 @@ +google.privacy.dlp.v2.RecordTransformation + */ +class RecordTransformation extends \Google\Protobuf\Internal\Message +{ + /** + * For record transformations, provide a field. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 1; + */ + protected $field_id = null; + /** + * Findings container modification timestamp, if applicable. + * + * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 2; + */ + protected $container_timestamp = null; + /** + * Container version, if available ("generation" for Cloud Storage). + * + * Generated from protobuf field string container_version = 3; + */ + protected $container_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FieldId $field_id + * For record transformations, provide a field. + * @type \Google\Protobuf\Timestamp $container_timestamp + * Findings container modification timestamp, if applicable. + * @type string $container_version + * Container version, if available ("generation" for Cloud Storage). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * For record transformations, provide a field. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 1; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getFieldId() + { + return $this->field_id; + } + + public function hasFieldId() + { + return isset($this->field_id); + } + + public function clearFieldId() + { + unset($this->field_id); + } + + /** + * For record transformations, provide a field. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 1; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setFieldId($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->field_id = $var; + + return $this; + } + + /** + * Findings container modification timestamp, if applicable. + * + * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getContainerTimestamp() + { + return $this->container_timestamp; + } + + public function hasContainerTimestamp() + { + return isset($this->container_timestamp); + } + + public function clearContainerTimestamp() + { + unset($this->container_timestamp); + } + + /** + * Findings container modification timestamp, if applicable. + * + * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setContainerTimestamp($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->container_timestamp = $var; + + return $this; + } + + /** + * Container version, if available ("generation" for Cloud Storage). + * + * Generated from protobuf field string container_version = 3; + * @return string + */ + public function getContainerVersion() + { + return $this->container_version; + } + + /** + * Container version, if available ("generation" for Cloud Storage). + * + * Generated from protobuf field string container_version = 3; + * @param string $var + * @return $this + */ + public function setContainerVersion($var) + { + GPBUtil::checkString($var, True); + $this->container_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformations.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformations.php new file mode 100644 index 000000000000..da2e598373c4 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformations.php @@ -0,0 +1,106 @@ +google.privacy.dlp.v2.RecordTransformations + */ +class RecordTransformations extends \Google\Protobuf\Internal\Message +{ + /** + * Transform the record by applying various field transformations. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 1; + */ + private $field_transformations; + /** + * Configuration defining which records get suppressed entirely. Records that + * match any suppression rule are omitted from the output. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordSuppression record_suppressions = 2; + */ + private $record_suppressions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FieldTransformation[] $field_transformations + * Transform the record by applying various field transformations. + * @type \Google\Cloud\Dlp\V2\RecordSuppression[] $record_suppressions + * Configuration defining which records get suppressed entirely. Records that + * match any suppression rule are omitted from the output. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Transform the record by applying various field transformations. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldTransformation> + */ + public function getFieldTransformations() + { + return $this->field_transformations; + } + + /** + * Transform the record by applying various field transformations. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 1; + * @param \Google\Cloud\Dlp\V2\FieldTransformation[] $var + * @return $this + */ + public function setFieldTransformations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldTransformation::class); + $this->field_transformations = $arr; + + return $this; + } + + /** + * Configuration defining which records get suppressed entirely. Records that + * match any suppression rule are omitted from the output. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordSuppression record_suppressions = 2; + * @return RepeatedField<\Google\Cloud\Dlp\V2\RecordSuppression> + */ + public function getRecordSuppressions() + { + return $this->record_suppressions; + } + + /** + * Configuration defining which records get suppressed entirely. Records that + * match any suppression rule are omitted from the output. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordSuppression record_suppressions = 2; + * @param \Google\Cloud\Dlp\V2\RecordSuppression[] $var + * @return $this + */ + public function setRecordSuppressions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\RecordSuppression::class); + $this->record_suppressions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactConfig.php new file mode 100644 index 000000000000..b1728ecfad9c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactConfig.php @@ -0,0 +1,35 @@ +google.privacy.dlp.v2.RedactConfig + */ +class RedactConfig extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest.php new file mode 100644 index 000000000000..f4e5eab91866 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest.php @@ -0,0 +1,418 @@ +google.privacy.dlp.v2.RedactImageRequest + */ +class RedactImageRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 8; + */ + protected $location_id = ''; + /** + * Configuration for the inspector. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; + */ + protected $inspect_config = null; + /** + * The configuration for specifying what content to redact from images. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5; + */ + private $image_redaction_configs; + /** + * Whether the response should include findings along with the redacted + * image. + * + * Generated from protobuf field bool include_findings = 6; + */ + protected $include_findings = false; + /** + * The content must be PNG, JPEG, SVG or BMP. + * + * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem byte_item = 7; + */ + protected $byte_item = null; + /** + * The full resource name of the inspection template to use. Settings in the + * main `inspect_config` field override the corresponding settings in this + * inspection template. + * The merge behavior is as follows: + * - Singular field: The main field's value replaces the value of the + * corresponding field in the template. + * - Repeated fields: The field values are appended to the list defined in + * the template. + * - Sub-messages and groups: The fields are recursively merged. + * + * Generated from protobuf field string inspect_template = 9; + */ + protected $inspect_template = ''; + /** + * The full resource name of the de-identification template to use. Settings + * in the main `image_redaction_configs` field override the corresponding + * settings in this de-identification template. The request fails if the + * type of the template's deidentify_config is not image_transformations. + * + * Generated from protobuf field string deidentify_template = 10; + */ + protected $deidentify_template = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * @type string $location_id + * Deprecated. This field has no effect. + * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config + * Configuration for the inspector. + * @type \Google\Cloud\Dlp\V2\RedactImageRequest\ImageRedactionConfig[] $image_redaction_configs + * The configuration for specifying what content to redact from images. + * @type bool $include_findings + * Whether the response should include findings along with the redacted + * image. + * @type \Google\Cloud\Dlp\V2\ByteContentItem $byte_item + * The content must be PNG, JPEG, SVG or BMP. + * @type string $inspect_template + * The full resource name of the inspection template to use. Settings in the + * main `inspect_config` field override the corresponding settings in this + * inspection template. + * The merge behavior is as follows: + * - Singular field: The main field's value replaces the value of the + * corresponding field in the template. + * - Repeated fields: The field values are appended to the list defined in + * the template. + * - Sub-messages and groups: The fields are recursively merged. + * @type string $deidentify_template + * The full resource name of the de-identification template to use. Settings + * in the main `image_redaction_configs` field override the corresponding + * settings in this de-identification template. The request fails if the + * type of the template's deidentify_config is not image_transformations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 8; + * @return string + */ + public function getLocationId() + { + return $this->location_id; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 8; + * @param string $var + * @return $this + */ + public function setLocationId($var) + { + GPBUtil::checkString($var, True); + $this->location_id = $var; + + return $this; + } + + /** + * Configuration for the inspector. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; + * @return \Google\Cloud\Dlp\V2\InspectConfig|null + */ + public function getInspectConfig() + { + return $this->inspect_config; + } + + public function hasInspectConfig() + { + return isset($this->inspect_config); + } + + public function clearInspectConfig() + { + unset($this->inspect_config); + } + + /** + * Configuration for the inspector. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; + * @param \Google\Cloud\Dlp\V2\InspectConfig $var + * @return $this + */ + public function setInspectConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); + $this->inspect_config = $var; + + return $this; + } + + /** + * The configuration for specifying what content to redact from images. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5; + * @return RepeatedField<\Google\Cloud\Dlp\V2\RedactImageRequest\ImageRedactionConfig> + */ + public function getImageRedactionConfigs() + { + return $this->image_redaction_configs; + } + + /** + * The configuration for specifying what content to redact from images. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5; + * @param \Google\Cloud\Dlp\V2\RedactImageRequest\ImageRedactionConfig[] $var + * @return $this + */ + public function setImageRedactionConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\RedactImageRequest\ImageRedactionConfig::class); + $this->image_redaction_configs = $arr; + + return $this; + } + + /** + * Whether the response should include findings along with the redacted + * image. + * + * Generated from protobuf field bool include_findings = 6; + * @return bool + */ + public function getIncludeFindings() + { + return $this->include_findings; + } + + /** + * Whether the response should include findings along with the redacted + * image. + * + * Generated from protobuf field bool include_findings = 6; + * @param bool $var + * @return $this + */ + public function setIncludeFindings($var) + { + GPBUtil::checkBool($var); + $this->include_findings = $var; + + return $this; + } + + /** + * The content must be PNG, JPEG, SVG or BMP. + * + * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem byte_item = 7; + * @return \Google\Cloud\Dlp\V2\ByteContentItem|null + */ + public function getByteItem() + { + return $this->byte_item; + } + + public function hasByteItem() + { + return isset($this->byte_item); + } + + public function clearByteItem() + { + unset($this->byte_item); + } + + /** + * The content must be PNG, JPEG, SVG or BMP. + * + * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem byte_item = 7; + * @param \Google\Cloud\Dlp\V2\ByteContentItem $var + * @return $this + */ + public function setByteItem($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ByteContentItem::class); + $this->byte_item = $var; + + return $this; + } + + /** + * The full resource name of the inspection template to use. Settings in the + * main `inspect_config` field override the corresponding settings in this + * inspection template. + * The merge behavior is as follows: + * - Singular field: The main field's value replaces the value of the + * corresponding field in the template. + * - Repeated fields: The field values are appended to the list defined in + * the template. + * - Sub-messages and groups: The fields are recursively merged. + * + * Generated from protobuf field string inspect_template = 9; + * @return string + */ + public function getInspectTemplate() + { + return $this->inspect_template; + } + + /** + * The full resource name of the inspection template to use. Settings in the + * main `inspect_config` field override the corresponding settings in this + * inspection template. + * The merge behavior is as follows: + * - Singular field: The main field's value replaces the value of the + * corresponding field in the template. + * - Repeated fields: The field values are appended to the list defined in + * the template. + * - Sub-messages and groups: The fields are recursively merged. + * + * Generated from protobuf field string inspect_template = 9; + * @param string $var + * @return $this + */ + public function setInspectTemplate($var) + { + GPBUtil::checkString($var, True); + $this->inspect_template = $var; + + return $this; + } + + /** + * The full resource name of the de-identification template to use. Settings + * in the main `image_redaction_configs` field override the corresponding + * settings in this de-identification template. The request fails if the + * type of the template's deidentify_config is not image_transformations. + * + * Generated from protobuf field string deidentify_template = 10; + * @return string + */ + public function getDeidentifyTemplate() + { + return $this->deidentify_template; + } + + /** + * The full resource name of the de-identification template to use. Settings + * in the main `image_redaction_configs` field override the corresponding + * settings in this de-identification template. The request fails if the + * type of the template's deidentify_config is not image_transformations. + * + * Generated from protobuf field string deidentify_template = 10; + * @param string $var + * @return $this + */ + public function setDeidentifyTemplate($var) + { + GPBUtil::checkString($var, True); + $this->deidentify_template = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest/ImageRedactionConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest/ImageRedactionConfig.php new file mode 100644 index 000000000000..06427390ec46 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest/ImageRedactionConfig.php @@ -0,0 +1,168 @@ +google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig + */ +class ImageRedactionConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The color to use when redacting content from an image. If not specified, + * the default is black. + * + * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; + */ + protected $redaction_color = null; + protected $target; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoType $info_type + * Only one per info_type should be provided per request. If not + * specified, and redact_all_text is false, the DLP API will redact all + * text that it matches against all info_types that are found, but not + * specified in another ImageRedactionConfig. + * @type bool $redact_all_text + * If true, all text found in the image, regardless whether it matches an + * info_type, is redacted. Only one should be provided. + * @type \Google\Cloud\Dlp\V2\Color $redaction_color + * The color to use when redacting content from an image. If not specified, + * the default is black. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Only one per info_type should be provided per request. If not + * specified, and redact_all_text is false, the DLP API will redact all + * text that it matches against all info_types that are found, but not + * specified in another ImageRedactionConfig. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @return \Google\Cloud\Dlp\V2\InfoType|null + */ + public function getInfoType() + { + return $this->readOneof(1); + } + + public function hasInfoType() + { + return $this->hasOneof(1); + } + + /** + * Only one per info_type should be provided per request. If not + * specified, and redact_all_text is false, the DLP API will redact all + * text that it matches against all info_types that are found, but not + * specified in another ImageRedactionConfig. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @param \Google\Cloud\Dlp\V2\InfoType $var + * @return $this + */ + public function setInfoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * If true, all text found in the image, regardless whether it matches an + * info_type, is redacted. Only one should be provided. + * + * Generated from protobuf field bool redact_all_text = 2; + * @return bool + */ + public function getRedactAllText() + { + return $this->readOneof(2); + } + + public function hasRedactAllText() + { + return $this->hasOneof(2); + } + + /** + * If true, all text found in the image, regardless whether it matches an + * info_type, is redacted. Only one should be provided. + * + * Generated from protobuf field bool redact_all_text = 2; + * @param bool $var + * @return $this + */ + public function setRedactAllText($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The color to use when redacting content from an image. If not specified, + * the default is black. + * + * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; + * @return \Google\Cloud\Dlp\V2\Color|null + */ + public function getRedactionColor() + { + return $this->redaction_color; + } + + public function hasRedactionColor() + { + return isset($this->redaction_color); + } + + public function clearRedactionColor() + { + unset($this->redaction_color); + } + + /** + * The color to use when redacting content from an image. If not specified, + * the default is black. + * + * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; + * @param \Google\Cloud\Dlp\V2\Color $var + * @return $this + */ + public function setRedactionColor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Color::class); + $this->redaction_color = $var; + + return $this; + } + + /** + * @return string + */ + public function getTarget() + { + return $this->whichOneof("target"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageResponse.php new file mode 100644 index 000000000000..e0af8a6a5c10 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageResponse.php @@ -0,0 +1,153 @@ +google.privacy.dlp.v2.RedactImageResponse + */ +class RedactImageResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The redacted image. The type will be the same as the original image. + * + * Generated from protobuf field bytes redacted_image = 1; + */ + protected $redacted_image = ''; + /** + * If an image was being inspected and the InspectConfig's include_quote was + * set to true, then this field will include all text, if any, that was found + * in the image. + * + * Generated from protobuf field string extracted_text = 2; + */ + protected $extracted_text = ''; + /** + * The findings. Populated when include_findings in the request is true. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectResult inspect_result = 3; + */ + protected $inspect_result = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $redacted_image + * The redacted image. The type will be the same as the original image. + * @type string $extracted_text + * If an image was being inspected and the InspectConfig's include_quote was + * set to true, then this field will include all text, if any, that was found + * in the image. + * @type \Google\Cloud\Dlp\V2\InspectResult $inspect_result + * The findings. Populated when include_findings in the request is true. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The redacted image. The type will be the same as the original image. + * + * Generated from protobuf field bytes redacted_image = 1; + * @return string + */ + public function getRedactedImage() + { + return $this->redacted_image; + } + + /** + * The redacted image. The type will be the same as the original image. + * + * Generated from protobuf field bytes redacted_image = 1; + * @param string $var + * @return $this + */ + public function setRedactedImage($var) + { + GPBUtil::checkString($var, False); + $this->redacted_image = $var; + + return $this; + } + + /** + * If an image was being inspected and the InspectConfig's include_quote was + * set to true, then this field will include all text, if any, that was found + * in the image. + * + * Generated from protobuf field string extracted_text = 2; + * @return string + */ + public function getExtractedText() + { + return $this->extracted_text; + } + + /** + * If an image was being inspected and the InspectConfig's include_quote was + * set to true, then this field will include all text, if any, that was found + * in the image. + * + * Generated from protobuf field string extracted_text = 2; + * @param string $var + * @return $this + */ + public function setExtractedText($var) + { + GPBUtil::checkString($var, True); + $this->extracted_text = $var; + + return $this; + } + + /** + * The findings. Populated when include_findings in the request is true. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectResult inspect_result = 3; + * @return \Google\Cloud\Dlp\V2\InspectResult|null + */ + public function getInspectResult() + { + return $this->inspect_result; + } + + public function hasInspectResult() + { + return isset($this->inspect_result); + } + + public function clearInspectResult() + { + unset($this->inspect_result); + } + + /** + * The findings. Populated when include_findings in the request is true. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectResult inspect_result = 3; + * @param \Google\Cloud\Dlp\V2\InspectResult $var + * @return $this + */ + public function setInspectResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectResult::class); + $this->inspect_result = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentRequest.php new file mode 100644 index 000000000000..25ba1bf00915 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentRequest.php @@ -0,0 +1,417 @@ +google.privacy.dlp.v2.ReidentifyContentRequest + */ +class ReidentifyContentRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Configuration for the re-identification of the content item. + * This field shares the same proto message type that is used for + * de-identification, however its usage here is for the reversal of the + * previous de-identification. Re-identification is performed by examining + * the transformations used to de-identify the items and executing the + * reverse. This requires that only reversible transformations + * be provided here. The reversible transformations are: + * - `CryptoDeterministicConfig` + * - `CryptoReplaceFfxFpeConfig` + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig reidentify_config = 2; + */ + protected $reidentify_config = null; + /** + * Configuration for the inspector. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; + */ + protected $inspect_config = null; + /** + * The item to re-identify. Will be treated as text. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; + */ + protected $item = null; + /** + * Template to use. Any configuration directly specified in + * `inspect_config` will override those set in the template. Singular fields + * that are set in this request will replace their corresponding fields in the + * template. Repeated fields are appended. Singular sub-messages and groups + * are recursively merged. + * + * Generated from protobuf field string inspect_template_name = 5; + */ + protected $inspect_template_name = ''; + /** + * Template to use. References an instance of `DeidentifyTemplate`. + * Any configuration directly specified in `reidentify_config` or + * `inspect_config` will override those set in the template. The + * `DeidentifyTemplate` used must include only reversible transformations. + * Singular fields that are set in this request will replace their + * corresponding fields in the template. Repeated fields are appended. + * Singular sub-messages and groups are recursively merged. + * + * Generated from protobuf field string reidentify_template_name = 6; + */ + protected $reidentify_template_name = ''; + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 7; + */ + protected $location_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * @type \Google\Cloud\Dlp\V2\DeidentifyConfig $reidentify_config + * Configuration for the re-identification of the content item. + * This field shares the same proto message type that is used for + * de-identification, however its usage here is for the reversal of the + * previous de-identification. Re-identification is performed by examining + * the transformations used to de-identify the items and executing the + * reverse. This requires that only reversible transformations + * be provided here. The reversible transformations are: + * - `CryptoDeterministicConfig` + * - `CryptoReplaceFfxFpeConfig` + * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config + * Configuration for the inspector. + * @type \Google\Cloud\Dlp\V2\ContentItem $item + * The item to re-identify. Will be treated as text. + * @type string $inspect_template_name + * Template to use. Any configuration directly specified in + * `inspect_config` will override those set in the template. Singular fields + * that are set in this request will replace their corresponding fields in the + * template. Repeated fields are appended. Singular sub-messages and groups + * are recursively merged. + * @type string $reidentify_template_name + * Template to use. References an instance of `DeidentifyTemplate`. + * Any configuration directly specified in `reidentify_config` or + * `inspect_config` will override those set in the template. The + * `DeidentifyTemplate` used must include only reversible transformations. + * Singular fields that are set in this request will replace their + * corresponding fields in the template. Repeated fields are appended. + * Singular sub-messages and groups are recursively merged. + * @type string $location_id + * Deprecated. This field has no effect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Parent resource name. + * The format of this value varies depending on whether you have [specified a + * processing + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + * + Projects scope, location specified: + * `projects/{project_id}/locations/{location_id}` + * + Projects scope, no location specified (defaults to global): + * `projects/{project_id}` + * The following example `parent` string specifies a parent project with the + * identifier `example-project`, and specifies the `europe-west3` location + * for processing data: + * parent=projects/example-project/locations/europe-west3 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Configuration for the re-identification of the content item. + * This field shares the same proto message type that is used for + * de-identification, however its usage here is for the reversal of the + * previous de-identification. Re-identification is performed by examining + * the transformations used to de-identify the items and executing the + * reverse. This requires that only reversible transformations + * be provided here. The reversible transformations are: + * - `CryptoDeterministicConfig` + * - `CryptoReplaceFfxFpeConfig` + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig reidentify_config = 2; + * @return \Google\Cloud\Dlp\V2\DeidentifyConfig|null + */ + public function getReidentifyConfig() + { + return $this->reidentify_config; + } + + public function hasReidentifyConfig() + { + return isset($this->reidentify_config); + } + + public function clearReidentifyConfig() + { + unset($this->reidentify_config); + } + + /** + * Configuration for the re-identification of the content item. + * This field shares the same proto message type that is used for + * de-identification, however its usage here is for the reversal of the + * previous de-identification. Re-identification is performed by examining + * the transformations used to de-identify the items and executing the + * reverse. This requires that only reversible transformations + * be provided here. The reversible transformations are: + * - `CryptoDeterministicConfig` + * - `CryptoReplaceFfxFpeConfig` + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig reidentify_config = 2; + * @param \Google\Cloud\Dlp\V2\DeidentifyConfig $var + * @return $this + */ + public function setReidentifyConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyConfig::class); + $this->reidentify_config = $var; + + return $this; + } + + /** + * Configuration for the inspector. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; + * @return \Google\Cloud\Dlp\V2\InspectConfig|null + */ + public function getInspectConfig() + { + return $this->inspect_config; + } + + public function hasInspectConfig() + { + return isset($this->inspect_config); + } + + public function clearInspectConfig() + { + unset($this->inspect_config); + } + + /** + * Configuration for the inspector. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; + * @param \Google\Cloud\Dlp\V2\InspectConfig $var + * @return $this + */ + public function setInspectConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); + $this->inspect_config = $var; + + return $this; + } + + /** + * The item to re-identify. Will be treated as text. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; + * @return \Google\Cloud\Dlp\V2\ContentItem|null + */ + public function getItem() + { + return $this->item; + } + + public function hasItem() + { + return isset($this->item); + } + + public function clearItem() + { + unset($this->item); + } + + /** + * The item to re-identify. Will be treated as text. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; + * @param \Google\Cloud\Dlp\V2\ContentItem $var + * @return $this + */ + public function setItem($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); + $this->item = $var; + + return $this; + } + + /** + * Template to use. Any configuration directly specified in + * `inspect_config` will override those set in the template. Singular fields + * that are set in this request will replace their corresponding fields in the + * template. Repeated fields are appended. Singular sub-messages and groups + * are recursively merged. + * + * Generated from protobuf field string inspect_template_name = 5; + * @return string + */ + public function getInspectTemplateName() + { + return $this->inspect_template_name; + } + + /** + * Template to use. Any configuration directly specified in + * `inspect_config` will override those set in the template. Singular fields + * that are set in this request will replace their corresponding fields in the + * template. Repeated fields are appended. Singular sub-messages and groups + * are recursively merged. + * + * Generated from protobuf field string inspect_template_name = 5; + * @param string $var + * @return $this + */ + public function setInspectTemplateName($var) + { + GPBUtil::checkString($var, True); + $this->inspect_template_name = $var; + + return $this; + } + + /** + * Template to use. References an instance of `DeidentifyTemplate`. + * Any configuration directly specified in `reidentify_config` or + * `inspect_config` will override those set in the template. The + * `DeidentifyTemplate` used must include only reversible transformations. + * Singular fields that are set in this request will replace their + * corresponding fields in the template. Repeated fields are appended. + * Singular sub-messages and groups are recursively merged. + * + * Generated from protobuf field string reidentify_template_name = 6; + * @return string + */ + public function getReidentifyTemplateName() + { + return $this->reidentify_template_name; + } + + /** + * Template to use. References an instance of `DeidentifyTemplate`. + * Any configuration directly specified in `reidentify_config` or + * `inspect_config` will override those set in the template. The + * `DeidentifyTemplate` used must include only reversible transformations. + * Singular fields that are set in this request will replace their + * corresponding fields in the template. Repeated fields are appended. + * Singular sub-messages and groups are recursively merged. + * + * Generated from protobuf field string reidentify_template_name = 6; + * @param string $var + * @return $this + */ + public function setReidentifyTemplateName($var) + { + GPBUtil::checkString($var, True); + $this->reidentify_template_name = $var; + + return $this; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 7; + * @return string + */ + public function getLocationId() + { + return $this->location_id; + } + + /** + * Deprecated. This field has no effect. + * + * Generated from protobuf field string location_id = 7; + * @param string $var + * @return $this + */ + public function setLocationId($var) + { + GPBUtil::checkString($var, True); + $this->location_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentResponse.php new file mode 100644 index 000000000000..dd6e31f8b72b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentResponse.php @@ -0,0 +1,121 @@ +google.privacy.dlp.v2.ReidentifyContentResponse + */ +class ReidentifyContentResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The re-identified item. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; + */ + protected $item = null; + /** + * An overview of the changes that were made to the `item`. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; + */ + protected $overview = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\ContentItem $item + * The re-identified item. + * @type \Google\Cloud\Dlp\V2\TransformationOverview $overview + * An overview of the changes that were made to the `item`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The re-identified item. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; + * @return \Google\Cloud\Dlp\V2\ContentItem|null + */ + public function getItem() + { + return $this->item; + } + + public function hasItem() + { + return isset($this->item); + } + + public function clearItem() + { + unset($this->item); + } + + /** + * The re-identified item. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; + * @param \Google\Cloud\Dlp\V2\ContentItem $var + * @return $this + */ + public function setItem($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); + $this->item = $var; + + return $this; + } + + /** + * An overview of the changes that were made to the `item`. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; + * @return \Google\Cloud\Dlp\V2\TransformationOverview|null + */ + public function getOverview() + { + return $this->overview; + } + + public function hasOverview() + { + return isset($this->overview); + } + + public function clearOverview() + { + unset($this->overview); + } + + /** + * An overview of the changes that were made to the `item`. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; + * @param \Google\Cloud\Dlp\V2\TransformationOverview $var + * @return $this + */ + public function setOverview($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationOverview::class); + $this->overview = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelatedResource.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelatedResource.php new file mode 100644 index 000000000000..abd778f96970 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelatedResource.php @@ -0,0 +1,70 @@ +google.privacy.dlp.v2.RelatedResource + */ +class RelatedResource extends \Google\Protobuf\Internal\Message +{ + /** + * The full resource name of the related resource. + * + * Generated from protobuf field string full_resource = 1; + */ + protected $full_resource = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $full_resource + * The full resource name of the related resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The full resource name of the related resource. + * + * Generated from protobuf field string full_resource = 1; + * @return string + */ + public function getFullResource() + { + return $this->full_resource; + } + + /** + * The full resource name of the related resource. + * + * Generated from protobuf field string full_resource = 1; + * @param string $var + * @return $this + */ + public function setFullResource($var) + { + GPBUtil::checkString($var, True); + $this->full_resource = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelationalOperator.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelationalOperator.php new file mode 100644 index 000000000000..6ed71c1ce458 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelationalOperator.php @@ -0,0 +1,96 @@ +google.privacy.dlp.v2.RelationalOperator + */ +class RelationalOperator +{ + /** + * Unused + * + * Generated from protobuf enum RELATIONAL_OPERATOR_UNSPECIFIED = 0; + */ + const RELATIONAL_OPERATOR_UNSPECIFIED = 0; + /** + * Equal. Attempts to match even with incompatible types. + * + * Generated from protobuf enum EQUAL_TO = 1; + */ + const EQUAL_TO = 1; + /** + * Not equal to. Attempts to match even with incompatible types. + * + * Generated from protobuf enum NOT_EQUAL_TO = 2; + */ + const NOT_EQUAL_TO = 2; + /** + * Greater than. + * + * Generated from protobuf enum GREATER_THAN = 3; + */ + const GREATER_THAN = 3; + /** + * Less than. + * + * Generated from protobuf enum LESS_THAN = 4; + */ + const LESS_THAN = 4; + /** + * Greater than or equals. + * + * Generated from protobuf enum GREATER_THAN_OR_EQUALS = 5; + */ + const GREATER_THAN_OR_EQUALS = 5; + /** + * Less than or equals. + * + * Generated from protobuf enum LESS_THAN_OR_EQUALS = 6; + */ + const LESS_THAN_OR_EQUALS = 6; + /** + * Exists + * + * Generated from protobuf enum EXISTS = 7; + */ + const EXISTS = 7; + + private static $valueToName = [ + self::RELATIONAL_OPERATOR_UNSPECIFIED => 'RELATIONAL_OPERATOR_UNSPECIFIED', + self::EQUAL_TO => 'EQUAL_TO', + self::NOT_EQUAL_TO => 'NOT_EQUAL_TO', + self::GREATER_THAN => 'GREATER_THAN', + self::LESS_THAN => 'LESS_THAN', + self::GREATER_THAN_OR_EQUALS => 'GREATER_THAN_OR_EQUALS', + self::LESS_THAN_OR_EQUALS => 'LESS_THAN_OR_EQUALS', + self::EXISTS => 'EXISTS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceDictionaryConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceDictionaryConfig.php new file mode 100644 index 000000000000..c5e13ffc80c0 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceDictionaryConfig.php @@ -0,0 +1,81 @@ +google.privacy.dlp.v2.ReplaceDictionaryConfig + */ +class ReplaceDictionaryConfig extends \Google\Protobuf\Internal\Message +{ + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList $word_list + * A list of words to select from for random replacement. The + * [limits](https://cloud.google.com/sensitive-data-protection/limits) page + * contains details about the size limits of dictionaries. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A list of words to select from for random replacement. The + * [limits](https://cloud.google.com/sensitive-data-protection/limits) page + * contains details about the size limits of dictionaries. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList|null + */ + public function getWordList() + { + return $this->readOneof(1); + } + + public function hasWordList() + { + return $this->hasOneof(1); + } + + /** + * A list of words to select from for random replacement. The + * [limits](https://cloud.google.com/sensitive-data-protection/limits) page + * contains details about the size limits of dictionaries. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList $var + * @return $this + */ + public function setWordList($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceValueConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceValueConfig.php new file mode 100644 index 000000000000..12324fc7e0c8 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceValueConfig.php @@ -0,0 +1,77 @@ +google.privacy.dlp.v2.ReplaceValueConfig + */ +class ReplaceValueConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Value to replace it with. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value new_value = 1; + */ + protected $new_value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Value $new_value + * Value to replace it with. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Value to replace it with. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value new_value = 1; + * @return \Google\Cloud\Dlp\V2\Value|null + */ + public function getNewValue() + { + return $this->new_value; + } + + public function hasNewValue() + { + return isset($this->new_value); + } + + public function clearNewValue() + { + unset($this->new_value); + } + + /** + * Value to replace it with. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value new_value = 1; + * @param \Google\Cloud\Dlp\V2\Value $var + * @return $this + */ + public function setNewValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); + $this->new_value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceWithInfoTypeConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceWithInfoTypeConfig.php new file mode 100644 index 000000000000..3318bae37d6b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceWithInfoTypeConfig.php @@ -0,0 +1,33 @@ +google.privacy.dlp.v2.ReplaceWithInfoTypeConfig + */ +class ReplaceWithInfoTypeConfig extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ResourceVisibility.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ResourceVisibility.php new file mode 100644 index 000000000000..0a6ef82cebaa --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ResourceVisibility.php @@ -0,0 +1,71 @@ +google.privacy.dlp.v2.ResourceVisibility + */ +class ResourceVisibility +{ + /** + * Unused. + * + * Generated from protobuf enum RESOURCE_VISIBILITY_UNSPECIFIED = 0; + */ + const RESOURCE_VISIBILITY_UNSPECIFIED = 0; + /** + * Visible to any user. + * + * Generated from protobuf enum RESOURCE_VISIBILITY_PUBLIC = 10; + */ + const RESOURCE_VISIBILITY_PUBLIC = 10; + /** + * May contain public items. + * For example, if a Cloud Storage bucket has uniform bucket level access + * disabled, some objects inside it may be public, but none are known yet. + * + * Generated from protobuf enum RESOURCE_VISIBILITY_INCONCLUSIVE = 15; + */ + const RESOURCE_VISIBILITY_INCONCLUSIVE = 15; + /** + * Visible only to specific users. + * + * Generated from protobuf enum RESOURCE_VISIBILITY_RESTRICTED = 20; + */ + const RESOURCE_VISIBILITY_RESTRICTED = 20; + + private static $valueToName = [ + self::RESOURCE_VISIBILITY_UNSPECIFIED => 'RESOURCE_VISIBILITY_UNSPECIFIED', + self::RESOURCE_VISIBILITY_PUBLIC => 'RESOURCE_VISIBILITY_PUBLIC', + self::RESOURCE_VISIBILITY_INCONCLUSIVE => 'RESOURCE_VISIBILITY_INCONCLUSIVE', + self::RESOURCE_VISIBILITY_RESTRICTED => 'RESOURCE_VISIBILITY_RESTRICTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RiskAnalysisJobConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RiskAnalysisJobConfig.php new file mode 100644 index 000000000000..4746a18d6e76 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RiskAnalysisJobConfig.php @@ -0,0 +1,161 @@ +google.privacy.dlp.v2.RiskAnalysisJobConfig + */ +class RiskAnalysisJobConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Privacy metric to compute. + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric privacy_metric = 1; + */ + protected $privacy_metric = null; + /** + * Input dataset to compute metrics over. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable source_table = 2; + */ + protected $source_table = null; + /** + * Actions to execute at the completion of the job. Are executed in the order + * provided. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 3; + */ + private $actions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\PrivacyMetric $privacy_metric + * Privacy metric to compute. + * @type \Google\Cloud\Dlp\V2\BigQueryTable $source_table + * Input dataset to compute metrics over. + * @type \Google\Cloud\Dlp\V2\Action[] $actions + * Actions to execute at the completion of the job. Are executed in the order + * provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Privacy metric to compute. + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric privacy_metric = 1; + * @return \Google\Cloud\Dlp\V2\PrivacyMetric|null + */ + public function getPrivacyMetric() + { + return $this->privacy_metric; + } + + public function hasPrivacyMetric() + { + return isset($this->privacy_metric); + } + + public function clearPrivacyMetric() + { + unset($this->privacy_metric); + } + + /** + * Privacy metric to compute. + * + * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric privacy_metric = 1; + * @param \Google\Cloud\Dlp\V2\PrivacyMetric $var + * @return $this + */ + public function setPrivacyMetric($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric::class); + $this->privacy_metric = $var; + + return $this; + } + + /** + * Input dataset to compute metrics over. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable source_table = 2; + * @return \Google\Cloud\Dlp\V2\BigQueryTable|null + */ + public function getSourceTable() + { + return $this->source_table; + } + + public function hasSourceTable() + { + return isset($this->source_table); + } + + public function clearSourceTable() + { + unset($this->source_table); + } + + /** + * Input dataset to compute metrics over. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable source_table = 2; + * @param \Google\Cloud\Dlp\V2\BigQueryTable $var + * @return $this + */ + public function setSourceTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); + $this->source_table = $var; + + return $this; + } + + /** + * Actions to execute at the completion of the job. Are executed in the order + * provided. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 3; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Action> + */ + public function getActions() + { + return $this->actions; + } + + /** + * Actions to execute at the completion of the job. Are executed in the order + * provided. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 3; + * @param \Google\Cloud\Dlp\V2\Action[] $var + * @return $this + */ + public function setActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Action::class); + $this->actions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SaveToGcsFindingsOutput.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SaveToGcsFindingsOutput.php new file mode 100644 index 000000000000..3028ff76468c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SaveToGcsFindingsOutput.php @@ -0,0 +1,69 @@ +google.privacy.dlp.v2.SaveToGcsFindingsOutput + */ +class SaveToGcsFindingsOutput extends \Google\Protobuf\Internal\Message +{ + /** + * List of findings. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Finding findings = 1; + */ + private $findings; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Finding[] $findings + * List of findings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * List of findings. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Finding findings = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Finding> + */ + public function getFindings() + { + return $this->findings; + } + + /** + * List of findings. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Finding findings = 1; + * @param \Google\Cloud\Dlp\V2\Finding[] $var + * @return $this + */ + public function setFindings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Finding::class); + $this->findings = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Schedule.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Schedule.php new file mode 100644 index 000000000000..2b80dfc75371 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Schedule.php @@ -0,0 +1,90 @@ +google.privacy.dlp.v2.Schedule + */ +class Schedule extends \Google\Protobuf\Internal\Message +{ + protected $option; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $recurrence_period_duration + * With this option a job is started on a regular periodic basis. For + * example: every day (86400 seconds). + * A scheduled start time will be skipped if the previous + * execution has not ended when its scheduled time occurs. + * This value must be set to a time duration greater than or equal + * to 1 day and can be no longer than 60 days. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * With this option a job is started on a regular periodic basis. For + * example: every day (86400 seconds). + * A scheduled start time will be skipped if the previous + * execution has not ended when its scheduled time occurs. + * This value must be set to a time duration greater than or equal + * to 1 day and can be no longer than 60 days. + * + * Generated from protobuf field .google.protobuf.Duration recurrence_period_duration = 1; + * @return \Google\Protobuf\Duration|null + */ + public function getRecurrencePeriodDuration() + { + return $this->readOneof(1); + } + + public function hasRecurrencePeriodDuration() + { + return $this->hasOneof(1); + } + + /** + * With this option a job is started on a regular periodic basis. For + * example: every day (86400 seconds). + * A scheduled start time will be skipped if the previous + * execution has not ended when its scheduled time occurs. + * This value must be set to a time duration greater than or equal + * to 1 day and can be no longer than 60 days. + * + * Generated from protobuf field .google.protobuf.Duration recurrence_period_duration = 1; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setRecurrencePeriodDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getOption() + { + return $this->whichOneof("option"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsRequest.php new file mode 100644 index 000000000000..8a228725ccee --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsRequest.php @@ -0,0 +1,201 @@ +google.privacy.dlp.v2.SearchConnectionsRequest + */ +class SearchConnectionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the organization or project with a wildcard + * location, for example, `organizations/433245324/locations/-` or + * `projects/project-id/locations/-`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Number of results per page, max 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token from a previous page to return the next set of + * results. If set, all other request fields must match the original request. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR + * The syntax is based on https://google.aip.dev/160. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. Resource name of the organization or project with a wildcard + * location, for example, `organizations/433245324/locations/-` or + * `projects/project-id/locations/-`. Please see + * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\SearchConnectionsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Resource name of the organization or project with a wildcard + * location, for example, `organizations/433245324/locations/-` or + * `projects/project-id/locations/-`. + * @type int $page_size + * Optional. Number of results per page, max 1000. + * @type string $page_token + * Optional. Page token from a previous page to return the next set of + * results. If set, all other request fields must match the original request. + * @type string $filter + * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR + * The syntax is based on https://google.aip.dev/160. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the organization or project with a wildcard + * location, for example, `organizations/433245324/locations/-` or + * `projects/project-id/locations/-`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Resource name of the organization or project with a wildcard + * location, for example, `organizations/433245324/locations/-` or + * `projects/project-id/locations/-`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. Number of results per page, max 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Number of results per page, max 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. Page token from a previous page to return the next set of + * results. If set, all other request fields must match the original request. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. Page token from a previous page to return the next set of + * results. If set, all other request fields must match the original request. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR + * The syntax is based on https://google.aip.dev/160. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR + * The syntax is based on https://google.aip.dev/160. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsResponse.php new file mode 100644 index 000000000000..9a3ea4392006 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsResponse.php @@ -0,0 +1,113 @@ +google.privacy.dlp.v2.SearchConnectionsResponse + */ +class SearchConnectionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of connections that match the search query. Note that only a subset + * of the fields will be populated, and only "name" is guaranteed to be set. + * For full details of a Connection, call GetConnection with the name. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; + */ + private $connections; + /** + * Token to retrieve the next page of results. An empty value means there are + * no more results. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Connection[] $connections + * List of connections that match the search query. Note that only a subset + * of the fields will be populated, and only "name" is guaranteed to be set. + * For full details of a Connection, call GetConnection with the name. + * @type string $next_page_token + * Token to retrieve the next page of results. An empty value means there are + * no more results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * List of connections that match the search query. Note that only a subset + * of the fields will be populated, and only "name" is guaranteed to be set. + * For full details of a Connection, call GetConnection with the name. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Connection> + */ + public function getConnections() + { + return $this->connections; + } + + /** + * List of connections that match the search query. Note that only a subset + * of the fields will be populated, and only "name" is guaranteed to be set. + * For full details of a Connection, call GetConnection with the name. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; + * @param \Google\Cloud\Dlp\V2\Connection[] $var + * @return $this + */ + public function setConnections($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Connection::class); + $this->connections = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results. An empty value means there are + * no more results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results. An empty value means there are + * no more results. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretManagerCredential.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretManagerCredential.php new file mode 100644 index 000000000000..8608b56efa4d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretManagerCredential.php @@ -0,0 +1,108 @@ +google.privacy.dlp.v2.SecretManagerCredential + */ +class SecretManagerCredential extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The username. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $username = ''; + /** + * Required. The name of the Secret Manager resource that stores the password, + * in the form `projects/project-id/secrets/secret-name/versions/version`. + * + * Generated from protobuf field string password_secret_version_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $password_secret_version_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $username + * Required. The username. + * @type string $password_secret_version_name + * Required. The name of the Secret Manager resource that stores the password, + * in the form `projects/project-id/secrets/secret-name/versions/version`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. The username. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getUsername() + { + return $this->username; + } + + /** + * Required. The username. + * + * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setUsername($var) + { + GPBUtil::checkString($var, True); + $this->username = $var; + + return $this; + } + + /** + * Required. The name of the Secret Manager resource that stores the password, + * in the form `projects/project-id/secrets/secret-name/versions/version`. + * + * Generated from protobuf field string password_secret_version_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPasswordSecretVersionName() + { + return $this->password_secret_version_name; + } + + /** + * Required. The name of the Secret Manager resource that stores the password, + * in the form `projects/project-id/secrets/secret-name/versions/version`. + * + * Generated from protobuf field string password_secret_version_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPasswordSecretVersionName($var) + { + GPBUtil::checkString($var, True); + $this->password_secret_version_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretsDiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretsDiscoveryTarget.php new file mode 100644 index 000000000000..a0b04b9cb5be --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretsDiscoveryTarget.php @@ -0,0 +1,41 @@ +google.privacy.dlp.v2.SecretsDiscoveryTarget + */ +class SecretsDiscoveryTarget extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore.php new file mode 100644 index 000000000000..4ad270c188ea --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore.php @@ -0,0 +1,68 @@ +google.privacy.dlp.v2.SensitivityScore + */ +class SensitivityScore extends \Google\Protobuf\Internal\Message +{ + /** + * The sensitivity score applied to the resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1; + */ + protected $score = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $score + * The sensitivity score applied to the resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * The sensitivity score applied to the resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1; + * @return int + */ + public function getScore() + { + return $this->score; + } + + /** + * The sensitivity score applied to the resource. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1; + * @param int $var + * @return $this + */ + public function setScore($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\SensitivityScore\SensitivityScoreLevel::class); + $this->score = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore/SensitivityScoreLevel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore/SensitivityScoreLevel.php new file mode 100644 index 000000000000..d083a3f822cd --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore/SensitivityScoreLevel.php @@ -0,0 +1,82 @@ +google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel + */ +class SensitivityScoreLevel +{ + /** + * Unused. + * + * Generated from protobuf enum SENSITIVITY_SCORE_UNSPECIFIED = 0; + */ + const SENSITIVITY_SCORE_UNSPECIFIED = 0; + /** + * No sensitive information detected. The resource isn't publicly + * accessible. + * + * Generated from protobuf enum SENSITIVITY_LOW = 10; + */ + const SENSITIVITY_LOW = 10; + /** + * Unable to determine sensitivity. + * + * Generated from protobuf enum SENSITIVITY_UNKNOWN = 12; + */ + const SENSITIVITY_UNKNOWN = 12; + /** + * Medium risk. Contains personally identifiable information (PII), + * potentially sensitive data, or fields with free-text data that are at a + * higher risk of having intermittent sensitive data. Consider limiting + * access. + * + * Generated from protobuf enum SENSITIVITY_MODERATE = 20; + */ + const SENSITIVITY_MODERATE = 20; + /** + * High risk. Sensitive personally identifiable information (SPII) can be + * present. Exfiltration of data can lead to user data loss. + * Re-identification of users might be possible. Consider limiting usage and + * or removing SPII. + * + * Generated from protobuf enum SENSITIVITY_HIGH = 30; + */ + const SENSITIVITY_HIGH = 30; + + private static $valueToName = [ + self::SENSITIVITY_SCORE_UNSPECIFIED => 'SENSITIVITY_SCORE_UNSPECIFIED', + self::SENSITIVITY_LOW => 'SENSITIVITY_LOW', + self::SENSITIVITY_UNKNOWN => 'SENSITIVITY_UNKNOWN', + self::SENSITIVITY_MODERATE => 'SENSITIVITY_MODERATE', + self::SENSITIVITY_HIGH => 'SENSITIVITY_HIGH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable.php new file mode 100644 index 000000000000..28400dcc1ebc --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable.php @@ -0,0 +1,165 @@ +google.privacy.dlp.v2.StatisticalTable + */ +class StatisticalTable extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Auxiliary table location. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $table = null; + /** + * Required. Quasi-identifier columns. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $quasi_ids; + /** + * Required. The relative frequency column must contain a floating-point + * number between 0 and 1 (inclusive). Null values are assumed to be zero. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $relative_frequency = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\BigQueryTable $table + * Required. Auxiliary table location. + * @type \Google\Cloud\Dlp\V2\StatisticalTable\QuasiIdentifierField[] $quasi_ids + * Required. Quasi-identifier columns. + * @type \Google\Cloud\Dlp\V2\FieldId $relative_frequency + * Required. The relative frequency column must contain a floating-point + * number between 0 and 1 (inclusive). Null values are assumed to be zero. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Auxiliary table location. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\BigQueryTable|null + */ + public function getTable() + { + return $this->table; + } + + public function hasTable() + { + return isset($this->table); + } + + public function clearTable() + { + unset($this->table); + } + + /** + * Required. Auxiliary table location. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\BigQueryTable $var + * @return $this + */ + public function setTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); + $this->table = $var; + + return $this; + } + + /** + * Required. Quasi-identifier columns. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Dlp\V2\StatisticalTable\QuasiIdentifierField> + */ + public function getQuasiIds() + { + return $this->quasi_ids; + } + + /** + * Required. Quasi-identifier columns. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\StatisticalTable\QuasiIdentifierField[] $var + * @return $this + */ + public function setQuasiIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\StatisticalTable\QuasiIdentifierField::class); + $this->quasi_ids = $arr; + + return $this; + } + + /** + * Required. The relative frequency column must contain a floating-point + * number between 0 and 1 (inclusive). Null values are assumed to be zero. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getRelativeFrequency() + { + return $this->relative_frequency; + } + + public function hasRelativeFrequency() + { + return isset($this->relative_frequency); + } + + public function clearRelativeFrequency() + { + unset($this->relative_frequency); + } + + /** + * Required. The relative frequency column must contain a floating-point + * number between 0 and 1 (inclusive). Null values are assumed to be zero. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setRelativeFrequency($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->relative_frequency = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable/QuasiIdentifierField.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable/QuasiIdentifierField.php new file mode 100644 index 000000000000..ba6fc14985bc --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable/QuasiIdentifierField.php @@ -0,0 +1,120 @@ +google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField + */ +class QuasiIdentifierField extends \Google\Protobuf\Internal\Message +{ + /** + * Identifies the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + */ + protected $field = null; + /** + * A column can be tagged with a custom tag. In this case, the user must + * indicate an auxiliary table that contains statistical information on + * the possible values of this column. + * + * Generated from protobuf field string custom_tag = 2; + */ + protected $custom_tag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FieldId $field + * Identifies the column. + * @type string $custom_tag + * A column can be tagged with a custom tag. In this case, the user must + * indicate an auxiliary table that contains statistical information on + * the possible values of this column. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Identifies the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getField() + { + return $this->field; + } + + public function hasField() + { + return isset($this->field); + } + + public function clearField() + { + unset($this->field); + } + + /** + * Identifies the column. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->field = $var; + + return $this; + } + + /** + * A column can be tagged with a custom tag. In this case, the user must + * indicate an auxiliary table that contains statistical information on + * the possible values of this column. + * + * Generated from protobuf field string custom_tag = 2; + * @return string + */ + public function getCustomTag() + { + return $this->custom_tag; + } + + /** + * A column can be tagged with a custom tag. In this case, the user must + * indicate an auxiliary table that contains statistical information on + * the possible values of this column. + * + * Generated from protobuf field string custom_tag = 2; + * @param string $var + * @return $this + */ + public function setCustomTag($var) + { + GPBUtil::checkString($var, True); + $this->custom_tag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig.php new file mode 100644 index 000000000000..77bd19469027 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig.php @@ -0,0 +1,218 @@ +google.privacy.dlp.v2.StorageConfig + */ +class StorageConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Configuration of the timespan of the items to include in scanning. + * + * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; + */ + protected $timespan_config = null; + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DatastoreOptions $datastore_options + * Google Cloud Datastore options. + * @type \Google\Cloud\Dlp\V2\CloudStorageOptions $cloud_storage_options + * Cloud Storage options. + * @type \Google\Cloud\Dlp\V2\BigQueryOptions $big_query_options + * BigQuery options. + * @type \Google\Cloud\Dlp\V2\HybridOptions $hybrid_options + * Hybrid inspection options. + * @type \Google\Cloud\Dlp\V2\StorageConfig\TimespanConfig $timespan_config + * Configuration of the timespan of the items to include in scanning. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Google Cloud Datastore options. + * + * Generated from protobuf field .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; + * @return \Google\Cloud\Dlp\V2\DatastoreOptions|null + */ + public function getDatastoreOptions() + { + return $this->readOneof(2); + } + + public function hasDatastoreOptions() + { + return $this->hasOneof(2); + } + + /** + * Google Cloud Datastore options. + * + * Generated from protobuf field .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; + * @param \Google\Cloud\Dlp\V2\DatastoreOptions $var + * @return $this + */ + public function setDatastoreOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DatastoreOptions::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Cloud Storage options. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; + * @return \Google\Cloud\Dlp\V2\CloudStorageOptions|null + */ + public function getCloudStorageOptions() + { + return $this->readOneof(3); + } + + public function hasCloudStorageOptions() + { + return $this->hasOneof(3); + } + + /** + * Cloud Storage options. + * + * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; + * @param \Google\Cloud\Dlp\V2\CloudStorageOptions $var + * @return $this + */ + public function setCloudStorageOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageOptions::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * BigQuery options. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; + * @return \Google\Cloud\Dlp\V2\BigQueryOptions|null + */ + public function getBigQueryOptions() + { + return $this->readOneof(4); + } + + public function hasBigQueryOptions() + { + return $this->hasOneof(4); + } + + /** + * BigQuery options. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; + * @param \Google\Cloud\Dlp\V2\BigQueryOptions $var + * @return $this + */ + public function setBigQueryOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryOptions::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Hybrid inspection options. + * + * Generated from protobuf field .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; + * @return \Google\Cloud\Dlp\V2\HybridOptions|null + */ + public function getHybridOptions() + { + return $this->readOneof(9); + } + + public function hasHybridOptions() + { + return $this->hasOneof(9); + } + + /** + * Hybrid inspection options. + * + * Generated from protobuf field .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; + * @param \Google\Cloud\Dlp\V2\HybridOptions $var + * @return $this + */ + public function setHybridOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\HybridOptions::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Configuration of the timespan of the items to include in scanning. + * + * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; + * @return \Google\Cloud\Dlp\V2\StorageConfig\TimespanConfig|null + */ + public function getTimespanConfig() + { + return $this->timespan_config; + } + + public function hasTimespanConfig() + { + return isset($this->timespan_config); + } + + public function clearTimespanConfig() + { + unset($this->timespan_config); + } + + /** + * Configuration of the timespan of the items to include in scanning. + * + * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; + * @param \Google\Cloud\Dlp\V2\StorageConfig\TimespanConfig $var + * @return $this + */ + public function setTimespanConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StorageConfig\TimespanConfig::class); + $this->timespan_config = $var; + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig/TimespanConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig/TimespanConfig.php new file mode 100644 index 000000000000..f7ad5dbec8e8 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig/TimespanConfig.php @@ -0,0 +1,356 @@ +google.privacy.dlp.v2.StorageConfig.TimespanConfig + */ +class TimespanConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Exclude files, tables, or rows older than this value. + * If not set, no lower time limit is applied. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; + */ + protected $start_time = null; + /** + * Exclude files, tables, or rows newer than this value. + * If not set, no upper time limit is applied. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; + */ + protected $end_time = null; + /** + * Specification of the field containing the timestamp of scanned items. + * Used for data sources like Datastore and BigQuery. + * **For BigQuery** + * If this value is not specified and the table was modified between the + * given start and end times, the entire table will be scanned. If this + * value is specified, then rows are filtered based on the given start and + * end times. Rows with a `NULL` value in the provided BigQuery column are + * skipped. + * Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`, + * `TIMESTAMP`, and `DATETIME`. + * If your BigQuery table is [partitioned at ingestion + * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time), + * you can use any of the following pseudo-columns as your timestamp field. + * When used with Cloud DLP, these pseudo-column names are case sensitive. + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` + * **For Datastore** + * If this value is specified, then entities are filtered based on the given + * start and end times. If an entity does not contain the provided timestamp + * property or contains empty or invalid values, then it is included. + * Valid data types of the provided timestamp property are: `TIMESTAMP`. + * See the + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) + * related to this operation. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId timestamp_field = 3; + */ + protected $timestamp_field = null; + /** + * When the job is started by a JobTrigger we will automatically figure out + * a valid start_time to avoid scanning files that have not been modified + * since the last time the JobTrigger executed. This will be based on the + * time of the execution of the last run of the JobTrigger or the timespan + * end_time used in the last run of the JobTrigger. + * **For BigQuery** + * Inspect jobs triggered by automatic population will scan data that is at + * least three hours old when the job starts. This is because streaming + * buffer rows are not read during inspection and reading up to the current + * timestamp will result in skipped rows. + * See the [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data) + * related to this operation. + * + * Generated from protobuf field bool enable_auto_population_of_timespan_config = 4; + */ + protected $enable_auto_population_of_timespan_config = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $start_time + * Exclude files, tables, or rows older than this value. + * If not set, no lower time limit is applied. + * @type \Google\Protobuf\Timestamp $end_time + * Exclude files, tables, or rows newer than this value. + * If not set, no upper time limit is applied. + * @type \Google\Cloud\Dlp\V2\FieldId $timestamp_field + * Specification of the field containing the timestamp of scanned items. + * Used for data sources like Datastore and BigQuery. + * **For BigQuery** + * If this value is not specified and the table was modified between the + * given start and end times, the entire table will be scanned. If this + * value is specified, then rows are filtered based on the given start and + * end times. Rows with a `NULL` value in the provided BigQuery column are + * skipped. + * Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`, + * `TIMESTAMP`, and `DATETIME`. + * If your BigQuery table is [partitioned at ingestion + * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time), + * you can use any of the following pseudo-columns as your timestamp field. + * When used with Cloud DLP, these pseudo-column names are case sensitive. + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` + * **For Datastore** + * If this value is specified, then entities are filtered based on the given + * start and end times. If an entity does not contain the provided timestamp + * property or contains empty or invalid values, then it is included. + * Valid data types of the provided timestamp property are: `TIMESTAMP`. + * See the + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) + * related to this operation. + * @type bool $enable_auto_population_of_timespan_config + * When the job is started by a JobTrigger we will automatically figure out + * a valid start_time to avoid scanning files that have not been modified + * since the last time the JobTrigger executed. This will be based on the + * time of the execution of the last run of the JobTrigger or the timespan + * end_time used in the last run of the JobTrigger. + * **For BigQuery** + * Inspect jobs triggered by automatic population will scan data that is at + * least three hours old when the job starts. This is because streaming + * buffer rows are not read during inspection and reading up to the current + * timestamp will result in skipped rows. + * See the [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data) + * related to this operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Exclude files, tables, or rows older than this value. + * If not set, no lower time limit is applied. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Exclude files, tables, or rows older than this value. + * If not set, no lower time limit is applied. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Exclude files, tables, or rows newer than this value. + * If not set, no upper time limit is applied. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Exclude files, tables, or rows newer than this value. + * If not set, no upper time limit is applied. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Specification of the field containing the timestamp of scanned items. + * Used for data sources like Datastore and BigQuery. + * **For BigQuery** + * If this value is not specified and the table was modified between the + * given start and end times, the entire table will be scanned. If this + * value is specified, then rows are filtered based on the given start and + * end times. Rows with a `NULL` value in the provided BigQuery column are + * skipped. + * Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`, + * `TIMESTAMP`, and `DATETIME`. + * If your BigQuery table is [partitioned at ingestion + * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time), + * you can use any of the following pseudo-columns as your timestamp field. + * When used with Cloud DLP, these pseudo-column names are case sensitive. + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` + * **For Datastore** + * If this value is specified, then entities are filtered based on the given + * start and end times. If an entity does not contain the provided timestamp + * property or contains empty or invalid values, then it is included. + * Valid data types of the provided timestamp property are: `TIMESTAMP`. + * See the + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) + * related to this operation. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId timestamp_field = 3; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getTimestampField() + { + return $this->timestamp_field; + } + + public function hasTimestampField() + { + return isset($this->timestamp_field); + } + + public function clearTimestampField() + { + unset($this->timestamp_field); + } + + /** + * Specification of the field containing the timestamp of scanned items. + * Used for data sources like Datastore and BigQuery. + * **For BigQuery** + * If this value is not specified and the table was modified between the + * given start and end times, the entire table will be scanned. If this + * value is specified, then rows are filtered based on the given start and + * end times. Rows with a `NULL` value in the provided BigQuery column are + * skipped. + * Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`, + * `TIMESTAMP`, and `DATETIME`. + * If your BigQuery table is [partitioned at ingestion + * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time), + * you can use any of the following pseudo-columns as your timestamp field. + * When used with Cloud DLP, these pseudo-column names are case sensitive. + * - `_PARTITIONTIME` + * - `_PARTITIONDATE` + * - `_PARTITION_LOAD_TIME` + * **For Datastore** + * If this value is specified, then entities are filtered based on the given + * start and end times. If an entity does not contain the provided timestamp + * property or contains empty or invalid values, then it is included. + * Valid data types of the provided timestamp property are: `TIMESTAMP`. + * See the + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) + * related to this operation. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId timestamp_field = 3; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setTimestampField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->timestamp_field = $var; + + return $this; + } + + /** + * When the job is started by a JobTrigger we will automatically figure out + * a valid start_time to avoid scanning files that have not been modified + * since the last time the JobTrigger executed. This will be based on the + * time of the execution of the last run of the JobTrigger or the timespan + * end_time used in the last run of the JobTrigger. + * **For BigQuery** + * Inspect jobs triggered by automatic population will scan data that is at + * least three hours old when the job starts. This is because streaming + * buffer rows are not read during inspection and reading up to the current + * timestamp will result in skipped rows. + * See the [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data) + * related to this operation. + * + * Generated from protobuf field bool enable_auto_population_of_timespan_config = 4; + * @return bool + */ + public function getEnableAutoPopulationOfTimespanConfig() + { + return $this->enable_auto_population_of_timespan_config; + } + + /** + * When the job is started by a JobTrigger we will automatically figure out + * a valid start_time to avoid scanning files that have not been modified + * since the last time the JobTrigger executed. This will be based on the + * time of the execution of the last run of the JobTrigger or the timespan + * end_time used in the last run of the JobTrigger. + * **For BigQuery** + * Inspect jobs triggered by automatic population will scan data that is at + * least three hours old when the job starts. This is because streaming + * buffer rows are not read during inspection and reading up to the current + * timestamp will result in skipped rows. + * See the [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data) + * related to this operation. + * + * Generated from protobuf field bool enable_auto_population_of_timespan_config = 4; + * @param bool $var + * @return $this + */ + public function setEnableAutoPopulationOfTimespanConfig($var) + { + GPBUtil::checkBool($var); + $this->enable_auto_population_of_timespan_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageMetadataLabel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageMetadataLabel.php new file mode 100644 index 000000000000..9452bb91c0e1 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageMetadataLabel.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.StorageMetadataLabel + */ +class StorageMetadataLabel extends \Google\Protobuf\Internal\Message +{ + /** + * Label name. + * + * Generated from protobuf field string key = 1; + */ + protected $key = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * Label name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Label name. + * + * Generated from protobuf field string key = 1; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * Label name. + * + * Generated from protobuf field string key = 1; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoType.php new file mode 100644 index 000000000000..345ce57dc641 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoType.php @@ -0,0 +1,150 @@ +google.privacy.dlp.v2.StoredInfoType + */ +class StoredInfoType extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Current version of the stored info type. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeVersion current_version = 2; + */ + protected $current_version = null; + /** + * Pending versions of the stored info type. Empty if no versions are + * pending. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3; + */ + private $pending_versions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource name. + * @type \Google\Cloud\Dlp\V2\StoredInfoTypeVersion $current_version + * Current version of the stored info type. + * @type \Google\Cloud\Dlp\V2\StoredInfoTypeVersion[] $pending_versions + * Pending versions of the stored info type. Empty if no versions are + * pending. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Resource name. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource name. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Current version of the stored info type. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeVersion current_version = 2; + * @return \Google\Cloud\Dlp\V2\StoredInfoTypeVersion|null + */ + public function getCurrentVersion() + { + return $this->current_version; + } + + public function hasCurrentVersion() + { + return isset($this->current_version); + } + + public function clearCurrentVersion() + { + unset($this->current_version); + } + + /** + * Current version of the stored info type. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeVersion current_version = 2; + * @param \Google\Cloud\Dlp\V2\StoredInfoTypeVersion $var + * @return $this + */ + public function setCurrentVersion($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredInfoTypeVersion::class); + $this->current_version = $var; + + return $this; + } + + /** + * Pending versions of the stored info type. Empty if no versions are + * pending. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3; + * @return RepeatedField<\Google\Cloud\Dlp\V2\StoredInfoTypeVersion> + */ + public function getPendingVersions() + { + return $this->pending_versions; + } + + /** + * Pending versions of the stored info type. Empty if no versions are + * pending. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3; + * @param \Google\Cloud\Dlp\V2\StoredInfoTypeVersion[] $var + * @return $this + */ + public function setPendingVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\StoredInfoTypeVersion::class); + $this->pending_versions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeConfig.php new file mode 100644 index 000000000000..8a0b7ce62852 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeConfig.php @@ -0,0 +1,211 @@ +google.privacy.dlp.v2.StoredInfoTypeConfig + */ +class StoredInfoTypeConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Display name of the StoredInfoType (max 256 characters). + * + * Generated from protobuf field string display_name = 1; + */ + protected $display_name = ''; + /** + * Description of the StoredInfoType (max 256 characters). + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $display_name + * Display name of the StoredInfoType (max 256 characters). + * @type string $description + * Description of the StoredInfoType (max 256 characters). + * @type \Google\Cloud\Dlp\V2\LargeCustomDictionaryConfig $large_custom_dictionary + * StoredInfoType where findings are defined by a dictionary of phrases. + * @type \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $dictionary + * Store dictionary-based CustomInfoType. + * @type \Google\Cloud\Dlp\V2\CustomInfoType\Regex $regex + * Store regular expression-based StoredInfoType. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Display name of the StoredInfoType (max 256 characters). + * + * Generated from protobuf field string display_name = 1; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Display name of the StoredInfoType (max 256 characters). + * + * Generated from protobuf field string display_name = 1; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Description of the StoredInfoType (max 256 characters). + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of the StoredInfoType (max 256 characters). + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * StoredInfoType where findings are defined by a dictionary of phrases. + * + * Generated from protobuf field .google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3; + * @return \Google\Cloud\Dlp\V2\LargeCustomDictionaryConfig|null + */ + public function getLargeCustomDictionary() + { + return $this->readOneof(3); + } + + public function hasLargeCustomDictionary() + { + return $this->hasOneof(3); + } + + /** + * StoredInfoType where findings are defined by a dictionary of phrases. + * + * Generated from protobuf field .google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3; + * @param \Google\Cloud\Dlp\V2\LargeCustomDictionaryConfig $var + * @return $this + */ + public function setLargeCustomDictionary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\LargeCustomDictionaryConfig::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Store dictionary-based CustomInfoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary|null + */ + public function getDictionary() + { + return $this->readOneof(4); + } + + public function hasDictionary() + { + return $this->hasOneof(4); + } + + /** + * Store dictionary-based CustomInfoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $var + * @return $this + */ + public function setDictionary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Store regular expression-based StoredInfoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; + * @return \Google\Cloud\Dlp\V2\CustomInfoType\Regex|null + */ + public function getRegex() + { + return $this->readOneof(5); + } + + public function hasRegex() + { + return $this->hasOneof(5); + } + + /** + * Store regular expression-based StoredInfoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; + * @param \Google\Cloud\Dlp\V2\CustomInfoType\Regex $var + * @return $this + */ + public function setRegex($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Regex::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeState.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeState.php new file mode 100644 index 000000000000..8b2ebfc111d0 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeState.php @@ -0,0 +1,78 @@ +google.privacy.dlp.v2.StoredInfoTypeState + */ +class StoredInfoTypeState +{ + /** + * Unused + * + * Generated from protobuf enum STORED_INFO_TYPE_STATE_UNSPECIFIED = 0; + */ + const STORED_INFO_TYPE_STATE_UNSPECIFIED = 0; + /** + * StoredInfoType version is being created. + * + * Generated from protobuf enum PENDING = 1; + */ + const PENDING = 1; + /** + * StoredInfoType version is ready for use. + * + * Generated from protobuf enum READY = 2; + */ + const READY = 2; + /** + * StoredInfoType creation failed. All relevant error messages are returned in + * the `StoredInfoTypeVersion` message. + * + * Generated from protobuf enum FAILED = 3; + */ + const FAILED = 3; + /** + * StoredInfoType is no longer valid because artifacts stored in + * user-controlled storage were modified. To fix an invalid StoredInfoType, + * use the `UpdateStoredInfoType` method to create a new version. + * + * Generated from protobuf enum INVALID = 4; + */ + const INVALID = 4; + + private static $valueToName = [ + self::STORED_INFO_TYPE_STATE_UNSPECIFIED => 'STORED_INFO_TYPE_STATE_UNSPECIFIED', + self::PENDING => 'PENDING', + self::READY => 'READY', + self::FAILED => 'FAILED', + self::INVALID => 'INVALID', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeStats.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeStats.php new file mode 100644 index 000000000000..042b470e56a1 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeStats.php @@ -0,0 +1,75 @@ +google.privacy.dlp.v2.StoredInfoTypeStats + */ +class StoredInfoTypeStats extends \Google\Protobuf\Internal\Message +{ + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\LargeCustomDictionaryStats $large_custom_dictionary + * StoredInfoType where findings are defined by a dictionary of phrases. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * StoredInfoType where findings are defined by a dictionary of phrases. + * + * Generated from protobuf field .google.privacy.dlp.v2.LargeCustomDictionaryStats large_custom_dictionary = 1; + * @return \Google\Cloud\Dlp\V2\LargeCustomDictionaryStats|null + */ + public function getLargeCustomDictionary() + { + return $this->readOneof(1); + } + + public function hasLargeCustomDictionary() + { + return $this->hasOneof(1); + } + + /** + * StoredInfoType where findings are defined by a dictionary of phrases. + * + * Generated from protobuf field .google.privacy.dlp.v2.LargeCustomDictionaryStats large_custom_dictionary = 1; + * @param \Google\Cloud\Dlp\V2\LargeCustomDictionaryStats $var + * @return $this + */ + public function setLargeCustomDictionary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\LargeCustomDictionaryStats::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeVersion.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeVersion.php new file mode 100644 index 000000000000..16ab591e8a43 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeVersion.php @@ -0,0 +1,282 @@ +google.privacy.dlp.v2.StoredInfoTypeVersion + */ +class StoredInfoTypeVersion extends \Google\Protobuf\Internal\Message +{ + /** + * StoredInfoType configuration. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1; + */ + protected $config = null; + /** + * Create timestamp of the version. Read-only, determined by the system + * when the version is created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; + */ + protected $create_time = null; + /** + * Stored info type version state. Read-only, updated by the system + * during dictionary creation. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeState state = 3; + */ + protected $state = 0; + /** + * Errors that occurred when creating this storedInfoType version, or + * anomalies detected in the storedInfoType data that render it unusable. Only + * the five most recent errors will be displayed, with the most recent error + * appearing first. + * For example, some of the data for stored custom dictionaries is put in + * the user's Cloud Storage bucket, and if this data is modified or + * deleted by the user or another system, the dictionary becomes invalid. + * If any errors occur, fix the problem indicated by the error message and + * use the UpdateStoredInfoType API method to create another version of the + * storedInfoType to continue using it, reusing the same `config` if it was + * not the source of the error. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 4; + */ + private $errors; + /** + * Statistics about this storedInfoType version. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeStats stats = 5; + */ + protected $stats = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config + * StoredInfoType configuration. + * @type \Google\Protobuf\Timestamp $create_time + * Create timestamp of the version. Read-only, determined by the system + * when the version is created. + * @type int $state + * Stored info type version state. Read-only, updated by the system + * during dictionary creation. + * @type \Google\Cloud\Dlp\V2\Error[] $errors + * Errors that occurred when creating this storedInfoType version, or + * anomalies detected in the storedInfoType data that render it unusable. Only + * the five most recent errors will be displayed, with the most recent error + * appearing first. + * For example, some of the data for stored custom dictionaries is put in + * the user's Cloud Storage bucket, and if this data is modified or + * deleted by the user or another system, the dictionary becomes invalid. + * If any errors occur, fix the problem indicated by the error message and + * use the UpdateStoredInfoType API method to create another version of the + * storedInfoType to continue using it, reusing the same `config` if it was + * not the source of the error. + * @type \Google\Cloud\Dlp\V2\StoredInfoTypeStats $stats + * Statistics about this storedInfoType version. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * StoredInfoType configuration. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1; + * @return \Google\Cloud\Dlp\V2\StoredInfoTypeConfig|null + */ + public function getConfig() + { + return $this->config; + } + + public function hasConfig() + { + return isset($this->config); + } + + public function clearConfig() + { + unset($this->config); + } + + /** + * StoredInfoType configuration. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1; + * @param \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $var + * @return $this + */ + public function setConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredInfoTypeConfig::class); + $this->config = $var; + + return $this; + } + + /** + * Create timestamp of the version. Read-only, determined by the system + * when the version is created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Create timestamp of the version. Read-only, determined by the system + * when the version is created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Stored info type version state. Read-only, updated by the system + * during dictionary creation. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeState state = 3; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Stored info type version state. Read-only, updated by the system + * during dictionary creation. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeState state = 3; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\StoredInfoTypeState::class); + $this->state = $var; + + return $this; + } + + /** + * Errors that occurred when creating this storedInfoType version, or + * anomalies detected in the storedInfoType data that render it unusable. Only + * the five most recent errors will be displayed, with the most recent error + * appearing first. + * For example, some of the data for stored custom dictionaries is put in + * the user's Cloud Storage bucket, and if this data is modified or + * deleted by the user or another system, the dictionary becomes invalid. + * If any errors occur, fix the problem indicated by the error message and + * use the UpdateStoredInfoType API method to create another version of the + * storedInfoType to continue using it, reusing the same `config` if it was + * not the source of the error. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 4; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Error> + */ + public function getErrors() + { + return $this->errors; + } + + /** + * Errors that occurred when creating this storedInfoType version, or + * anomalies detected in the storedInfoType data that render it unusable. Only + * the five most recent errors will be displayed, with the most recent error + * appearing first. + * For example, some of the data for stored custom dictionaries is put in + * the user's Cloud Storage bucket, and if this data is modified or + * deleted by the user or another system, the dictionary becomes invalid. + * If any errors occur, fix the problem indicated by the error message and + * use the UpdateStoredInfoType API method to create another version of the + * storedInfoType to continue using it, reusing the same `config` if it was + * not the source of the error. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 4; + * @param \Google\Cloud\Dlp\V2\Error[] $var + * @return $this + */ + public function setErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); + $this->errors = $arr; + + return $this; + } + + /** + * Statistics about this storedInfoType version. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeStats stats = 5; + * @return \Google\Cloud\Dlp\V2\StoredInfoTypeStats|null + */ + public function getStats() + { + return $this->stats; + } + + public function hasStats() + { + return isset($this->stats); + } + + public function clearStats() + { + unset($this->stats); + } + + /** + * Statistics about this storedInfoType version. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeStats stats = 5; + * @param \Google\Cloud\Dlp\V2\StoredInfoTypeStats $var + * @return $this + */ + public function setStats($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredInfoTypeStats::class); + $this->stats = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredType.php new file mode 100644 index 000000000000..9d39458f9e1e --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredType.php @@ -0,0 +1,123 @@ +google.privacy.dlp.v2.StoredType + */ +class StoredType extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of the requested `StoredInfoType`, for example + * `organizations/433245324/storedInfoTypes/432452342` or + * `projects/project-id/storedInfoTypes/432452342`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Timestamp indicating when the version of the `StoredInfoType` used for + * inspection was created. Output-only field, populated by the system. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; + */ + protected $create_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource name of the requested `StoredInfoType`, for example + * `organizations/433245324/storedInfoTypes/432452342` or + * `projects/project-id/storedInfoTypes/432452342`. + * @type \Google\Protobuf\Timestamp $create_time + * Timestamp indicating when the version of the `StoredInfoType` used for + * inspection was created. Output-only field, populated by the system. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of the requested `StoredInfoType`, for example + * `organizations/433245324/storedInfoTypes/432452342` or + * `projects/project-id/storedInfoTypes/432452342`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource name of the requested `StoredInfoType`, for example + * `organizations/433245324/storedInfoTypes/432452342` or + * `projects/project-id/storedInfoTypes/432452342`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Timestamp indicating when the version of the `StoredInfoType` used for + * inspection was created. Output-only field, populated by the system. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Timestamp indicating when the version of the `StoredInfoType` used for + * inspection was created. Output-only field, populated by the system. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table.php new file mode 100644 index 000000000000..5e614f34e5a5 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table.php @@ -0,0 +1,103 @@ +google.privacy.dlp.v2.Table + */ +class Table extends \Google\Protobuf\Internal\Message +{ + /** + * Headers of the table. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId headers = 1; + */ + private $headers; + /** + * Rows of the table. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Table.Row rows = 2; + */ + private $rows; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FieldId[] $headers + * Headers of the table. + * @type \Google\Cloud\Dlp\V2\Table\Row[] $rows + * Rows of the table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Headers of the table. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId headers = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldId> + */ + public function getHeaders() + { + return $this->headers; + } + + /** + * Headers of the table. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId headers = 1; + * @param \Google\Cloud\Dlp\V2\FieldId[] $var + * @return $this + */ + public function setHeaders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); + $this->headers = $arr; + + return $this; + } + + /** + * Rows of the table. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Table.Row rows = 2; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Table\Row> + */ + public function getRows() + { + return $this->rows; + } + + /** + * Rows of the table. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Table.Row rows = 2; + * @param \Google\Cloud\Dlp\V2\Table\Row[] $var + * @return $this + */ + public function setRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Table\Row::class); + $this->rows = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table/Row.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table/Row.php new file mode 100644 index 000000000000..bca93c1b016f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table/Row.php @@ -0,0 +1,67 @@ +google.privacy.dlp.v2.Table.Row + */ +class Row extends \Google\Protobuf\Internal\Message +{ + /** + * Individual cells. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value values = 1; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Value[] $values + * Individual cells. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Individual cells. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value values = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Value> + */ + public function getValues() + { + return $this->values; + } + + /** + * Individual cells. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Value values = 1; + * @param \Google\Cloud\Dlp\V2\Value[] $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); + $this->values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile.php new file mode 100644 index 000000000000..80ee291fcd14 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile.php @@ -0,0 +1,1189 @@ +google.privacy.dlp.v2.TableDataProfile + */ +class TableDataProfile extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the profile. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The resource type that was profiled. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + */ + protected $data_source_type = null; + /** + * The resource name of the project data profile for this table. + * + * Generated from protobuf field string project_data_profile = 2; + */ + protected $project_data_profile = ''; + /** + * The Google Cloud project ID that owns the resource. + * + * Generated from protobuf field string dataset_project_id = 24; + */ + protected $dataset_project_id = ''; + /** + * If supported, the location where the dataset's data is stored. + * See https://cloud.google.com/bigquery/docs/locations for supported + * locations. + * + * Generated from protobuf field string dataset_location = 29; + */ + protected $dataset_location = ''; + /** + * If the resource is BigQuery, the dataset ID. + * + * Generated from protobuf field string dataset_id = 25; + */ + protected $dataset_id = ''; + /** + * The table ID. + * + * Generated from protobuf field string table_id = 26; + */ + protected $table_id = ''; + /** + * The Cloud Asset Inventory resource that was profiled in order to generate + * this TableDataProfile. + * https://cloud.google.com/apis/design/resource_names#full_resource_name + * + * Generated from protobuf field string full_resource = 3; + */ + protected $full_resource = ''; + /** + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 21; + */ + protected $profile_status = null; + /** + * State of a profile. This will always be set to DONE when the table data + * profile is written to another service like BigQuery or Pub/Sub. + * + * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile.State state = 22; + */ + protected $state = 0; + /** + * The sensitivity score of this table. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5; + */ + protected $sensitivity_score = null; + /** + * The data risk level of this table. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6; + */ + protected $data_risk_level = null; + /** + * The infoTypes predicted from this table's data. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27; + */ + private $predicted_info_types; + /** + * Other infoTypes found in this table's data. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28; + */ + private $other_info_types; + /** + * The snapshot of the configurations used to generate the profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + */ + protected $config_snapshot = null; + /** + * The time when this table was last modified + * + * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 8; + */ + protected $last_modified_time = null; + /** + * Optional. The time when this table expires. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 9; + */ + protected $expiration_time = null; + /** + * The number of columns profiled in the table. + * + * Generated from protobuf field int64 scanned_column_count = 10; + */ + protected $scanned_column_count = 0; + /** + * The number of columns skipped in the table because of an error. + * + * Generated from protobuf field int64 failed_column_count = 11; + */ + protected $failed_column_count = 0; + /** + * The size of the table when the profile was generated. + * + * Generated from protobuf field int64 table_size_bytes = 12; + */ + protected $table_size_bytes = 0; + /** + * Number of rows in the table when the profile was generated. + * This will not be populated for BigLake tables. + * + * Generated from protobuf field int64 row_count = 13; + */ + protected $row_count = 0; + /** + * How the table is encrypted. + * + * Generated from protobuf field .google.privacy.dlp.v2.EncryptionStatus encryption_status = 14; + */ + protected $encryption_status = 0; + /** + * How broadly a resource has been shared. + * + * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15; + */ + protected $resource_visibility = 0; + /** + * The last time the profile was generated. + * + * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 16; + */ + protected $profile_last_generated = null; + /** + * The labels applied to the resource at the time the profile was generated. + * + * Generated from protobuf field map resource_labels = 17; + */ + private $resource_labels; + /** + * The time at which the table was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 23; + */ + protected $create_time = null; + /** + * The BigQuery table to which the sample findings are written. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 37; + */ + protected $sample_findings_table = null; + /** + * The tags attached to the table, including any tags attached during + * profiling. Because tags are attached to Cloud SQL instances rather than + * Cloud SQL tables, this field is empty for Cloud SQL table profiles. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Tag tags = 39; + */ + private $tags; + /** + * Resources related to this profile. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.RelatedResource related_resources = 41; + */ + private $related_resources; + /** + * Domains associated with the profile. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain domains = 47; + */ + private $domains; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the profile. + * @type \Google\Cloud\Dlp\V2\DataSourceType $data_source_type + * The resource type that was profiled. + * @type string $project_data_profile + * The resource name of the project data profile for this table. + * @type string $dataset_project_id + * The Google Cloud project ID that owns the resource. + * @type string $dataset_location + * If supported, the location where the dataset's data is stored. + * See https://cloud.google.com/bigquery/docs/locations for supported + * locations. + * @type string $dataset_id + * If the resource is BigQuery, the dataset ID. + * @type string $table_id + * The table ID. + * @type string $full_resource + * The Cloud Asset Inventory resource that was profiled in order to generate + * this TableDataProfile. + * https://cloud.google.com/apis/design/resource_names#full_resource_name + * @type \Google\Cloud\Dlp\V2\ProfileStatus $profile_status + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + * @type int $state + * State of a profile. This will always be set to DONE when the table data + * profile is written to another service like BigQuery or Pub/Sub. + * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score + * The sensitivity score of this table. + * @type \Google\Cloud\Dlp\V2\DataRiskLevel $data_risk_level + * The data risk level of this table. + * @type \Google\Cloud\Dlp\V2\InfoTypeSummary[] $predicted_info_types + * The infoTypes predicted from this table's data. + * @type \Google\Cloud\Dlp\V2\OtherInfoTypeSummary[] $other_info_types + * Other infoTypes found in this table's data. + * @type \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot $config_snapshot + * The snapshot of the configurations used to generate the profile. + * @type \Google\Protobuf\Timestamp $last_modified_time + * The time when this table was last modified + * @type \Google\Protobuf\Timestamp $expiration_time + * Optional. The time when this table expires. + * @type int|string $scanned_column_count + * The number of columns profiled in the table. + * @type int|string $failed_column_count + * The number of columns skipped in the table because of an error. + * @type int|string $table_size_bytes + * The size of the table when the profile was generated. + * @type int|string $row_count + * Number of rows in the table when the profile was generated. + * This will not be populated for BigLake tables. + * @type int $encryption_status + * How the table is encrypted. + * @type int $resource_visibility + * How broadly a resource has been shared. + * @type \Google\Protobuf\Timestamp $profile_last_generated + * The last time the profile was generated. + * @type array|\Google\Protobuf\Internal\MapField $resource_labels + * The labels applied to the resource at the time the profile was generated. + * @type \Google\Protobuf\Timestamp $create_time + * The time at which the table was created. + * @type \Google\Cloud\Dlp\V2\BigQueryTable $sample_findings_table + * The BigQuery table to which the sample findings are written. + * @type \Google\Cloud\Dlp\V2\Tag[] $tags + * The tags attached to the table, including any tags attached during + * profiling. Because tags are attached to Cloud SQL instances rather than + * Cloud SQL tables, this field is empty for Cloud SQL table profiles. + * @type \Google\Cloud\Dlp\V2\RelatedResource[] $related_resources + * Resources related to this profile. + * @type \Google\Cloud\Dlp\V2\Domain[] $domains + * Domains associated with the profile. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The name of the profile. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the profile. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The resource type that was profiled. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + * @return \Google\Cloud\Dlp\V2\DataSourceType|null + */ + public function getDataSourceType() + { + return $this->data_source_type; + } + + public function hasDataSourceType() + { + return isset($this->data_source_type); + } + + public function clearDataSourceType() + { + unset($this->data_source_type); + } + + /** + * The resource type that was profiled. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + * @param \Google\Cloud\Dlp\V2\DataSourceType $var + * @return $this + */ + public function setDataSourceType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataSourceType::class); + $this->data_source_type = $var; + + return $this; + } + + /** + * The resource name of the project data profile for this table. + * + * Generated from protobuf field string project_data_profile = 2; + * @return string + */ + public function getProjectDataProfile() + { + return $this->project_data_profile; + } + + /** + * The resource name of the project data profile for this table. + * + * Generated from protobuf field string project_data_profile = 2; + * @param string $var + * @return $this + */ + public function setProjectDataProfile($var) + { + GPBUtil::checkString($var, True); + $this->project_data_profile = $var; + + return $this; + } + + /** + * The Google Cloud project ID that owns the resource. + * + * Generated from protobuf field string dataset_project_id = 24; + * @return string + */ + public function getDatasetProjectId() + { + return $this->dataset_project_id; + } + + /** + * The Google Cloud project ID that owns the resource. + * + * Generated from protobuf field string dataset_project_id = 24; + * @param string $var + * @return $this + */ + public function setDatasetProjectId($var) + { + GPBUtil::checkString($var, True); + $this->dataset_project_id = $var; + + return $this; + } + + /** + * If supported, the location where the dataset's data is stored. + * See https://cloud.google.com/bigquery/docs/locations for supported + * locations. + * + * Generated from protobuf field string dataset_location = 29; + * @return string + */ + public function getDatasetLocation() + { + return $this->dataset_location; + } + + /** + * If supported, the location where the dataset's data is stored. + * See https://cloud.google.com/bigquery/docs/locations for supported + * locations. + * + * Generated from protobuf field string dataset_location = 29; + * @param string $var + * @return $this + */ + public function setDatasetLocation($var) + { + GPBUtil::checkString($var, True); + $this->dataset_location = $var; + + return $this; + } + + /** + * If the resource is BigQuery, the dataset ID. + * + * Generated from protobuf field string dataset_id = 25; + * @return string + */ + public function getDatasetId() + { + return $this->dataset_id; + } + + /** + * If the resource is BigQuery, the dataset ID. + * + * Generated from protobuf field string dataset_id = 25; + * @param string $var + * @return $this + */ + public function setDatasetId($var) + { + GPBUtil::checkString($var, True); + $this->dataset_id = $var; + + return $this; + } + + /** + * The table ID. + * + * Generated from protobuf field string table_id = 26; + * @return string + */ + public function getTableId() + { + return $this->table_id; + } + + /** + * The table ID. + * + * Generated from protobuf field string table_id = 26; + * @param string $var + * @return $this + */ + public function setTableId($var) + { + GPBUtil::checkString($var, True); + $this->table_id = $var; + + return $this; + } + + /** + * The Cloud Asset Inventory resource that was profiled in order to generate + * this TableDataProfile. + * https://cloud.google.com/apis/design/resource_names#full_resource_name + * + * Generated from protobuf field string full_resource = 3; + * @return string + */ + public function getFullResource() + { + return $this->full_resource; + } + + /** + * The Cloud Asset Inventory resource that was profiled in order to generate + * this TableDataProfile. + * https://cloud.google.com/apis/design/resource_names#full_resource_name + * + * Generated from protobuf field string full_resource = 3; + * @param string $var + * @return $this + */ + public function setFullResource($var) + { + GPBUtil::checkString($var, True); + $this->full_resource = $var; + + return $this; + } + + /** + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 21; + * @return \Google\Cloud\Dlp\V2\ProfileStatus|null + */ + public function getProfileStatus() + { + return $this->profile_status; + } + + public function hasProfileStatus() + { + return isset($this->profile_status); + } + + public function clearProfileStatus() + { + unset($this->profile_status); + } + + /** + * Success or error status from the most recent profile generation attempt. + * May be empty if the profile is still being generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 21; + * @param \Google\Cloud\Dlp\V2\ProfileStatus $var + * @return $this + */ + public function setProfileStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProfileStatus::class); + $this->profile_status = $var; + + return $this; + } + + /** + * State of a profile. This will always be set to DONE when the table data + * profile is written to another service like BigQuery or Pub/Sub. + * + * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile.State state = 22; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * State of a profile. This will always be set to DONE when the table data + * profile is written to another service like BigQuery or Pub/Sub. + * + * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile.State state = 22; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TableDataProfile\State::class); + $this->state = $var; + + return $this; + } + + /** + * The sensitivity score of this table. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5; + * @return \Google\Cloud\Dlp\V2\SensitivityScore|null + */ + public function getSensitivityScore() + { + return $this->sensitivity_score; + } + + public function hasSensitivityScore() + { + return isset($this->sensitivity_score); + } + + public function clearSensitivityScore() + { + unset($this->sensitivity_score); + } + + /** + * The sensitivity score of this table. + * + * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5; + * @param \Google\Cloud\Dlp\V2\SensitivityScore $var + * @return $this + */ + public function setSensitivityScore($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); + $this->sensitivity_score = $var; + + return $this; + } + + /** + * The data risk level of this table. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6; + * @return \Google\Cloud\Dlp\V2\DataRiskLevel|null + */ + public function getDataRiskLevel() + { + return $this->data_risk_level; + } + + public function hasDataRiskLevel() + { + return isset($this->data_risk_level); + } + + public function clearDataRiskLevel() + { + unset($this->data_risk_level); + } + + /** + * The data risk level of this table. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6; + * @param \Google\Cloud\Dlp\V2\DataRiskLevel $var + * @return $this + */ + public function setDataRiskLevel($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataRiskLevel::class); + $this->data_risk_level = $var; + + return $this; + } + + /** + * The infoTypes predicted from this table's data. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27; + * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoTypeSummary> + */ + public function getPredictedInfoTypes() + { + return $this->predicted_info_types; + } + + /** + * The infoTypes predicted from this table's data. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27; + * @param \Google\Cloud\Dlp\V2\InfoTypeSummary[] $var + * @return $this + */ + public function setPredictedInfoTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoTypeSummary::class); + $this->predicted_info_types = $arr; + + return $this; + } + + /** + * Other infoTypes found in this table's data. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28; + * @return RepeatedField<\Google\Cloud\Dlp\V2\OtherInfoTypeSummary> + */ + public function getOtherInfoTypes() + { + return $this->other_info_types; + } + + /** + * Other infoTypes found in this table's data. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28; + * @param \Google\Cloud\Dlp\V2\OtherInfoTypeSummary[] $var + * @return $this + */ + public function setOtherInfoTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\OtherInfoTypeSummary::class); + $this->other_info_types = $arr; + + return $this; + } + + /** + * The snapshot of the configurations used to generate the profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + * @return \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot|null + */ + public function getConfigSnapshot() + { + return $this->config_snapshot; + } + + public function hasConfigSnapshot() + { + return isset($this->config_snapshot); + } + + public function clearConfigSnapshot() + { + unset($this->config_snapshot); + } + + /** + * The snapshot of the configurations used to generate the profile. + * + * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; + * @param \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot $var + * @return $this + */ + public function setConfigSnapshot($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot::class); + $this->config_snapshot = $var; + + return $this; + } + + /** + * The time when this table was last modified + * + * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 8; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastModifiedTime() + { + return $this->last_modified_time; + } + + public function hasLastModifiedTime() + { + return isset($this->last_modified_time); + } + + public function clearLastModifiedTime() + { + unset($this->last_modified_time); + } + + /** + * The time when this table was last modified + * + * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 8; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastModifiedTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_modified_time = $var; + + return $this; + } + + /** + * Optional. The time when this table expires. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 9; + * @return \Google\Protobuf\Timestamp|null + */ + public function getExpirationTime() + { + return $this->expiration_time; + } + + public function hasExpirationTime() + { + return isset($this->expiration_time); + } + + public function clearExpirationTime() + { + unset($this->expiration_time); + } + + /** + * Optional. The time when this table expires. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 9; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setExpirationTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->expiration_time = $var; + + return $this; + } + + /** + * The number of columns profiled in the table. + * + * Generated from protobuf field int64 scanned_column_count = 10; + * @return int|string + */ + public function getScannedColumnCount() + { + return $this->scanned_column_count; + } + + /** + * The number of columns profiled in the table. + * + * Generated from protobuf field int64 scanned_column_count = 10; + * @param int|string $var + * @return $this + */ + public function setScannedColumnCount($var) + { + GPBUtil::checkInt64($var); + $this->scanned_column_count = $var; + + return $this; + } + + /** + * The number of columns skipped in the table because of an error. + * + * Generated from protobuf field int64 failed_column_count = 11; + * @return int|string + */ + public function getFailedColumnCount() + { + return $this->failed_column_count; + } + + /** + * The number of columns skipped in the table because of an error. + * + * Generated from protobuf field int64 failed_column_count = 11; + * @param int|string $var + * @return $this + */ + public function setFailedColumnCount($var) + { + GPBUtil::checkInt64($var); + $this->failed_column_count = $var; + + return $this; + } + + /** + * The size of the table when the profile was generated. + * + * Generated from protobuf field int64 table_size_bytes = 12; + * @return int|string + */ + public function getTableSizeBytes() + { + return $this->table_size_bytes; + } + + /** + * The size of the table when the profile was generated. + * + * Generated from protobuf field int64 table_size_bytes = 12; + * @param int|string $var + * @return $this + */ + public function setTableSizeBytes($var) + { + GPBUtil::checkInt64($var); + $this->table_size_bytes = $var; + + return $this; + } + + /** + * Number of rows in the table when the profile was generated. + * This will not be populated for BigLake tables. + * + * Generated from protobuf field int64 row_count = 13; + * @return int|string + */ + public function getRowCount() + { + return $this->row_count; + } + + /** + * Number of rows in the table when the profile was generated. + * This will not be populated for BigLake tables. + * + * Generated from protobuf field int64 row_count = 13; + * @param int|string $var + * @return $this + */ + public function setRowCount($var) + { + GPBUtil::checkInt64($var); + $this->row_count = $var; + + return $this; + } + + /** + * How the table is encrypted. + * + * Generated from protobuf field .google.privacy.dlp.v2.EncryptionStatus encryption_status = 14; + * @return int + */ + public function getEncryptionStatus() + { + return $this->encryption_status; + } + + /** + * How the table is encrypted. + * + * Generated from protobuf field .google.privacy.dlp.v2.EncryptionStatus encryption_status = 14; + * @param int $var + * @return $this + */ + public function setEncryptionStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\EncryptionStatus::class); + $this->encryption_status = $var; + + return $this; + } + + /** + * How broadly a resource has been shared. + * + * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15; + * @return int + */ + public function getResourceVisibility() + { + return $this->resource_visibility; + } + + /** + * How broadly a resource has been shared. + * + * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15; + * @param int $var + * @return $this + */ + public function setResourceVisibility($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ResourceVisibility::class); + $this->resource_visibility = $var; + + return $this; + } + + /** + * The last time the profile was generated. + * + * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 16; + * @return \Google\Protobuf\Timestamp|null + */ + public function getProfileLastGenerated() + { + return $this->profile_last_generated; + } + + public function hasProfileLastGenerated() + { + return isset($this->profile_last_generated); + } + + public function clearProfileLastGenerated() + { + unset($this->profile_last_generated); + } + + /** + * The last time the profile was generated. + * + * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 16; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setProfileLastGenerated($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->profile_last_generated = $var; + + return $this; + } + + /** + * The labels applied to the resource at the time the profile was generated. + * + * Generated from protobuf field map resource_labels = 17; + * @return \Google\Protobuf\Internal\MapField + */ + public function getResourceLabels() + { + return $this->resource_labels; + } + + /** + * The labels applied to the resource at the time the profile was generated. + * + * Generated from protobuf field map resource_labels = 17; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setResourceLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->resource_labels = $arr; + + return $this; + } + + /** + * The time at which the table was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 23; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * The time at which the table was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 23; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * The BigQuery table to which the sample findings are written. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 37; + * @return \Google\Cloud\Dlp\V2\BigQueryTable|null + */ + public function getSampleFindingsTable() + { + return $this->sample_findings_table; + } + + public function hasSampleFindingsTable() + { + return isset($this->sample_findings_table); + } + + public function clearSampleFindingsTable() + { + unset($this->sample_findings_table); + } + + /** + * The BigQuery table to which the sample findings are written. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 37; + * @param \Google\Cloud\Dlp\V2\BigQueryTable $var + * @return $this + */ + public function setSampleFindingsTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); + $this->sample_findings_table = $var; + + return $this; + } + + /** + * The tags attached to the table, including any tags attached during + * profiling. Because tags are attached to Cloud SQL instances rather than + * Cloud SQL tables, this field is empty for Cloud SQL table profiles. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Tag tags = 39; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Tag> + */ + public function getTags() + { + return $this->tags; + } + + /** + * The tags attached to the table, including any tags attached during + * profiling. Because tags are attached to Cloud SQL instances rather than + * Cloud SQL tables, this field is empty for Cloud SQL table profiles. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Tag tags = 39; + * @param \Google\Cloud\Dlp\V2\Tag[] $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Tag::class); + $this->tags = $arr; + + return $this; + } + + /** + * Resources related to this profile. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.RelatedResource related_resources = 41; + * @return RepeatedField<\Google\Cloud\Dlp\V2\RelatedResource> + */ + public function getRelatedResources() + { + return $this->related_resources; + } + + /** + * Resources related to this profile. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.RelatedResource related_resources = 41; + * @param \Google\Cloud\Dlp\V2\RelatedResource[] $var + * @return $this + */ + public function setRelatedResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\RelatedResource::class); + $this->related_resources = $arr; + + return $this; + } + + /** + * Domains associated with the profile. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain domains = 47; + * @return RepeatedField<\Google\Cloud\Dlp\V2\Domain> + */ + public function getDomains() + { + return $this->domains; + } + + /** + * Domains associated with the profile. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain domains = 47; + * @param \Google\Cloud\Dlp\V2\Domain[] $var + * @return $this + */ + public function setDomains($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Domain::class); + $this->domains = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile/State.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile/State.php new file mode 100644 index 000000000000..d47c01ccea78 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile/State.php @@ -0,0 +1,64 @@ +google.privacy.dlp.v2.TableDataProfile.State + */ +class State +{ + /** + * Unused. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The profile is currently running. Once a profile has finished it will + * transition to DONE. + * + * Generated from protobuf enum RUNNING = 1; + */ + const RUNNING = 1; + /** + * The profile is no longer generating. + * If profile_status.status.code is 0, the profile succeeded, otherwise, it + * failed. + * + * Generated from protobuf enum DONE = 2; + */ + const DONE = 2; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::RUNNING => 'RUNNING', + self::DONE => 'DONE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableLocation.php new file mode 100644 index 000000000000..ed538853a8bf --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableLocation.php @@ -0,0 +1,87 @@ +google.privacy.dlp.v2.TableLocation + */ +class TableLocation extends \Google\Protobuf\Internal\Message +{ + /** + * The zero-based index of the row where the finding is located. Only + * populated for resources that have a natural ordering, not BigQuery. In + * BigQuery, to identify the row a finding came from, populate + * BigQueryOptions.identifying_fields with your primary key column names and + * when you store the findings the value of those columns will be stored + * inside of Finding. + * + * Generated from protobuf field int64 row_index = 1; + */ + protected $row_index = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $row_index + * The zero-based index of the row where the finding is located. Only + * populated for resources that have a natural ordering, not BigQuery. In + * BigQuery, to identify the row a finding came from, populate + * BigQueryOptions.identifying_fields with your primary key column names and + * when you store the findings the value of those columns will be stored + * inside of Finding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The zero-based index of the row where the finding is located. Only + * populated for resources that have a natural ordering, not BigQuery. In + * BigQuery, to identify the row a finding came from, populate + * BigQueryOptions.identifying_fields with your primary key column names and + * when you store the findings the value of those columns will be stored + * inside of Finding. + * + * Generated from protobuf field int64 row_index = 1; + * @return int|string + */ + public function getRowIndex() + { + return $this->row_index; + } + + /** + * The zero-based index of the row where the finding is located. Only + * populated for resources that have a natural ordering, not BigQuery. In + * BigQuery, to identify the row a finding came from, populate + * BigQueryOptions.identifying_fields with your primary key column names and + * when you store the findings the value of those columns will be stored + * inside of Finding. + * + * Generated from protobuf field int64 row_index = 1; + * @param int|string $var + * @return $this + */ + public function setRowIndex($var) + { + GPBUtil::checkInt64($var); + $this->row_index = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableOptions.php new file mode 100644 index 000000000000..1ee57fdc04f2 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableOptions.php @@ -0,0 +1,79 @@ +google.privacy.dlp.v2.TableOptions + */ +class TableOptions extends \Google\Protobuf\Internal\Message +{ + /** + * The columns that are the primary keys for table objects included in + * ContentItem. A copy of this cell's value will stored alongside alongside + * each finding so that the finding can be traced to the specific row it came + * from. No more than 3 may be provided. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + */ + private $identifying_fields; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\FieldId[] $identifying_fields + * The columns that are the primary keys for table objects included in + * ContentItem. A copy of this cell's value will stored alongside alongside + * each finding so that the finding can be traced to the specific row it came + * from. No more than 3 may be provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * The columns that are the primary keys for table objects included in + * ContentItem. A copy of this cell's value will stored alongside alongside + * each finding so that the finding can be traced to the specific row it came + * from. No more than 3 may be provided. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldId> + */ + public function getIdentifyingFields() + { + return $this->identifying_fields; + } + + /** + * The columns that are the primary keys for table objects included in + * ContentItem. A copy of this cell's value will stored alongside alongside + * each finding so that the finding can be traced to the specific row it came + * from. No more than 3 may be provided. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; + * @param \Google\Cloud\Dlp\V2\FieldId[] $var + * @return $this + */ + public function setIdentifyingFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); + $this->identifying_fields = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableReference.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableReference.php new file mode 100644 index 000000000000..4f34329456b7 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableReference.php @@ -0,0 +1,144 @@ +google.privacy.dlp.v2.TableReference + */ +class TableReference extends \Google\Protobuf\Internal\Message +{ + /** + * Dataset ID of the table. + * + * Generated from protobuf field string dataset_id = 1; + */ + protected $dataset_id = ''; + /** + * Name of the table. + * + * Generated from protobuf field string table_id = 2; + */ + protected $table_id = ''; + /** + * The Google Cloud project ID of the project containing the table. + * If omitted, the project ID is inferred from the parent project. This field + * is required if the parent resource is an organization. + * + * Generated from protobuf field string project_id = 3; + */ + protected $project_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dataset_id + * Dataset ID of the table. + * @type string $table_id + * Name of the table. + * @type string $project_id + * The Google Cloud project ID of the project containing the table. + * If omitted, the project ID is inferred from the parent project. This field + * is required if the parent resource is an organization. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); + parent::__construct($data); + } + + /** + * Dataset ID of the table. + * + * Generated from protobuf field string dataset_id = 1; + * @return string + */ + public function getDatasetId() + { + return $this->dataset_id; + } + + /** + * Dataset ID of the table. + * + * Generated from protobuf field string dataset_id = 1; + * @param string $var + * @return $this + */ + public function setDatasetId($var) + { + GPBUtil::checkString($var, True); + $this->dataset_id = $var; + + return $this; + } + + /** + * Name of the table. + * + * Generated from protobuf field string table_id = 2; + * @return string + */ + public function getTableId() + { + return $this->table_id; + } + + /** + * Name of the table. + * + * Generated from protobuf field string table_id = 2; + * @param string $var + * @return $this + */ + public function setTableId($var) + { + GPBUtil::checkString($var, True); + $this->table_id = $var; + + return $this; + } + + /** + * The Google Cloud project ID of the project containing the table. + * If omitted, the project ID is inferred from the parent project. This field + * is required if the parent resource is an organization. + * + * Generated from protobuf field string project_id = 3; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * The Google Cloud project ID of the project containing the table. + * If omitted, the project ID is inferred from the parent project. This field + * is required if the parent resource is an organization. + * + * Generated from protobuf field string project_id = 3; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Tag.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Tag.php new file mode 100644 index 000000000000..6e393ad44917 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Tag.php @@ -0,0 +1,159 @@ +google.privacy.dlp.v2.Tag + */ +class Tag extends \Google\Protobuf\Internal\Message +{ + /** + * The namespaced name for the tag value to attach to Google Cloud resources. + * Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for + * example, "123456/environment/prod" for an organization parent, or + * "my-project/environment/prod" for a project parent. This is only set for + * Google Cloud resources. + * + * Generated from protobuf field string namespaced_tag_value = 1; + */ + protected $namespaced_tag_value = ''; + /** + * The key of a tag key-value pair. For Google Cloud resources, this is the + * resource name of the key, for example, "tagKeys/123456". + * + * Generated from protobuf field string key = 2; + */ + protected $key = ''; + /** + * The value of a tag key-value pair. For Google Cloud resources, this is the + * resource name of the value, for example, "tagValues/123456". + * + * Generated from protobuf field string value = 3; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $namespaced_tag_value + * The namespaced name for the tag value to attach to Google Cloud resources. + * Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for + * example, "123456/environment/prod" for an organization parent, or + * "my-project/environment/prod" for a project parent. This is only set for + * Google Cloud resources. + * @type string $key + * The key of a tag key-value pair. For Google Cloud resources, this is the + * resource name of the key, for example, "tagKeys/123456". + * @type string $value + * The value of a tag key-value pair. For Google Cloud resources, this is the + * resource name of the value, for example, "tagValues/123456". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The namespaced name for the tag value to attach to Google Cloud resources. + * Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for + * example, "123456/environment/prod" for an organization parent, or + * "my-project/environment/prod" for a project parent. This is only set for + * Google Cloud resources. + * + * Generated from protobuf field string namespaced_tag_value = 1; + * @return string + */ + public function getNamespacedTagValue() + { + return $this->namespaced_tag_value; + } + + /** + * The namespaced name for the tag value to attach to Google Cloud resources. + * Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for + * example, "123456/environment/prod" for an organization parent, or + * "my-project/environment/prod" for a project parent. This is only set for + * Google Cloud resources. + * + * Generated from protobuf field string namespaced_tag_value = 1; + * @param string $var + * @return $this + */ + public function setNamespacedTagValue($var) + { + GPBUtil::checkString($var, True); + $this->namespaced_tag_value = $var; + + return $this; + } + + /** + * The key of a tag key-value pair. For Google Cloud resources, this is the + * resource name of the key, for example, "tagKeys/123456". + * + * Generated from protobuf field string key = 2; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * The key of a tag key-value pair. For Google Cloud resources, this is the + * resource name of the key, for example, "tagKeys/123456". + * + * Generated from protobuf field string key = 2; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * The value of a tag key-value pair. For Google Cloud resources, this is the + * resource name of the value, for example, "tagValues/123456". + * + * Generated from protobuf field string value = 3; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The value of a tag key-value pair. For Google Cloud resources, this is the + * resource name of the value, for example, "tagValues/123456". + * + * Generated from protobuf field string value = 3; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TagFilter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TagFilter.php new file mode 100644 index 000000000000..b52d8c85932d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TagFilter.php @@ -0,0 +1,123 @@ +google.privacy.dlp.v2.TagFilter + */ +class TagFilter extends \Google\Protobuf\Internal\Message +{ + protected $format; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $namespaced_tag_value + * The namespaced name for the tag value. Must be in the format + * `{parent_id}/{tag_key_short_name}/{short_name}`, for example, + * "123456/environment/prod" for an organization parent, or + * "my-project/environment/prod" for a project parent. + * @type string $namespaced_tag_key + * The namespaced name for the tag key. Must be in the format + * `{parent_id}/{tag_key_short_name}`, for example, "123456/sensitive" for + * an organization parent, or "my-project/sensitive" for a project parent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The namespaced name for the tag value. Must be in the format + * `{parent_id}/{tag_key_short_name}/{short_name}`, for example, + * "123456/environment/prod" for an organization parent, or + * "my-project/environment/prod" for a project parent. + * + * Generated from protobuf field string namespaced_tag_value = 1; + * @return string + */ + public function getNamespacedTagValue() + { + return $this->readOneof(1); + } + + public function hasNamespacedTagValue() + { + return $this->hasOneof(1); + } + + /** + * The namespaced name for the tag value. Must be in the format + * `{parent_id}/{tag_key_short_name}/{short_name}`, for example, + * "123456/environment/prod" for an organization parent, or + * "my-project/environment/prod" for a project parent. + * + * Generated from protobuf field string namespaced_tag_value = 1; + * @param string $var + * @return $this + */ + public function setNamespacedTagValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The namespaced name for the tag key. Must be in the format + * `{parent_id}/{tag_key_short_name}`, for example, "123456/sensitive" for + * an organization parent, or "my-project/sensitive" for a project parent. + * + * Generated from protobuf field string namespaced_tag_key = 2; + * @return string + */ + public function getNamespacedTagKey() + { + return $this->readOneof(2); + } + + public function hasNamespacedTagKey() + { + return $this->hasOneof(2); + } + + /** + * The namespaced name for the tag key. Must be in the format + * `{parent_id}/{tag_key_short_name}`, for example, "123456/sensitive" for + * an organization parent, or "my-project/sensitive" for a project parent. + * + * Generated from protobuf field string namespaced_tag_key = 2; + * @param string $var + * @return $this + */ + public function setNamespacedTagKey($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getFormat() + { + return $this->whichOneof("format"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TagFilters.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TagFilters.php new file mode 100644 index 000000000000..1210f6ef6d99 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TagFilters.php @@ -0,0 +1,71 @@ +google.privacy.dlp.v2.TagFilters + */ +class TagFilters extends \Google\Protobuf\Internal\Message +{ + /** + * Required. A resource must match ALL of the specified tag filters to be + * included in the collection. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.TagFilter tag_filters = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $tag_filters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\TagFilter[] $tag_filters + * Required. A resource must match ALL of the specified tag filters to be + * included in the collection. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. A resource must match ALL of the specified tag filters to be + * included in the collection. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.TagFilter tag_filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Dlp\V2\TagFilter> + */ + public function getTagFilters() + { + return $this->tag_filters; + } + + /** + * Required. A resource must match ALL of the specified tag filters to be + * included in the collection. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.TagFilter tag_filters = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\TagFilter[] $var + * @return $this + */ + public function setTagFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\TagFilter::class); + $this->tag_filters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig.php new file mode 100644 index 000000000000..5d036fbccce8 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig.php @@ -0,0 +1,68 @@ +google.privacy.dlp.v2.TimePartConfig + */ +class TimePartConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The part of the time to keep. + * + * Generated from protobuf field .google.privacy.dlp.v2.TimePartConfig.TimePart part_to_extract = 1; + */ + protected $part_to_extract = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $part_to_extract + * The part of the time to keep. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The part of the time to keep. + * + * Generated from protobuf field .google.privacy.dlp.v2.TimePartConfig.TimePart part_to_extract = 1; + * @return int + */ + public function getPartToExtract() + { + return $this->part_to_extract; + } + + /** + * The part of the time to keep. + * + * Generated from protobuf field .google.privacy.dlp.v2.TimePartConfig.TimePart part_to_extract = 1; + * @param int $var + * @return $this + */ + public function setPartToExtract($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TimePartConfig\TimePart::class); + $this->part_to_extract = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig/TimePart.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig/TimePart.php new file mode 100644 index 000000000000..d8fdd5150ae8 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig/TimePart.php @@ -0,0 +1,89 @@ +google.privacy.dlp.v2.TimePartConfig.TimePart + */ +class TimePart +{ + /** + * Unused + * + * Generated from protobuf enum TIME_PART_UNSPECIFIED = 0; + */ + const TIME_PART_UNSPECIFIED = 0; + /** + * [0-9999] + * + * Generated from protobuf enum YEAR = 1; + */ + const YEAR = 1; + /** + * [1-12] + * + * Generated from protobuf enum MONTH = 2; + */ + const MONTH = 2; + /** + * [1-31] + * + * Generated from protobuf enum DAY_OF_MONTH = 3; + */ + const DAY_OF_MONTH = 3; + /** + * [1-7] + * + * Generated from protobuf enum DAY_OF_WEEK = 4; + */ + const DAY_OF_WEEK = 4; + /** + * [1-53] + * + * Generated from protobuf enum WEEK_OF_YEAR = 5; + */ + const WEEK_OF_YEAR = 5; + /** + * [0-23] + * + * Generated from protobuf enum HOUR_OF_DAY = 6; + */ + const HOUR_OF_DAY = 6; + + private static $valueToName = [ + self::TIME_PART_UNSPECIFIED => 'TIME_PART_UNSPECIFIED', + self::YEAR => 'YEAR', + self::MONTH => 'MONTH', + self::DAY_OF_MONTH => 'DAY_OF_MONTH', + self::DAY_OF_WEEK => 'DAY_OF_WEEK', + self::WEEK_OF_YEAR => 'WEEK_OF_YEAR', + self::HOUR_OF_DAY => 'HOUR_OF_DAY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationConfig.php new file mode 100644 index 000000000000..c7238f4595ae --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationConfig.php @@ -0,0 +1,193 @@ +google.privacy.dlp.v2.TransformationConfig + */ +class TransformationConfig extends \Google\Protobuf\Internal\Message +{ + /** + * De-identify template. + * If this template is specified, it will serve as the default de-identify + * template. This template cannot contain `record_transformations` since it + * can be used for unstructured content such as free-form text files. If this + * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to + * de-identify unstructured content. + * + * Generated from protobuf field string deidentify_template = 1; + */ + protected $deidentify_template = ''; + /** + * Structured de-identify template. + * If this template is specified, it will serve as the de-identify template + * for structured content such as delimited files and tables. If this template + * is not set but the `deidentify_template` is set, then `deidentify_template` + * will also apply to the structured content. If neither template is set, a + * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured + * content. + * + * Generated from protobuf field string structured_deidentify_template = 2; + */ + protected $structured_deidentify_template = ''; + /** + * Image redact template. + * If this template is specified, it will serve as the de-identify template + * for images. If this template is not set, all findings in the image will be + * redacted with a black box. + * + * Generated from protobuf field string image_redact_template = 4; + */ + protected $image_redact_template = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $deidentify_template + * De-identify template. + * If this template is specified, it will serve as the default de-identify + * template. This template cannot contain `record_transformations` since it + * can be used for unstructured content such as free-form text files. If this + * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to + * de-identify unstructured content. + * @type string $structured_deidentify_template + * Structured de-identify template. + * If this template is specified, it will serve as the de-identify template + * for structured content such as delimited files and tables. If this template + * is not set but the `deidentify_template` is set, then `deidentify_template` + * will also apply to the structured content. If neither template is set, a + * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured + * content. + * @type string $image_redact_template + * Image redact template. + * If this template is specified, it will serve as the de-identify template + * for images. If this template is not set, all findings in the image will be + * redacted with a black box. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * De-identify template. + * If this template is specified, it will serve as the default de-identify + * template. This template cannot contain `record_transformations` since it + * can be used for unstructured content such as free-form text files. If this + * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to + * de-identify unstructured content. + * + * Generated from protobuf field string deidentify_template = 1; + * @return string + */ + public function getDeidentifyTemplate() + { + return $this->deidentify_template; + } + + /** + * De-identify template. + * If this template is specified, it will serve as the default de-identify + * template. This template cannot contain `record_transformations` since it + * can be used for unstructured content such as free-form text files. If this + * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to + * de-identify unstructured content. + * + * Generated from protobuf field string deidentify_template = 1; + * @param string $var + * @return $this + */ + public function setDeidentifyTemplate($var) + { + GPBUtil::checkString($var, True); + $this->deidentify_template = $var; + + return $this; + } + + /** + * Structured de-identify template. + * If this template is specified, it will serve as the de-identify template + * for structured content such as delimited files and tables. If this template + * is not set but the `deidentify_template` is set, then `deidentify_template` + * will also apply to the structured content. If neither template is set, a + * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured + * content. + * + * Generated from protobuf field string structured_deidentify_template = 2; + * @return string + */ + public function getStructuredDeidentifyTemplate() + { + return $this->structured_deidentify_template; + } + + /** + * Structured de-identify template. + * If this template is specified, it will serve as the de-identify template + * for structured content such as delimited files and tables. If this template + * is not set but the `deidentify_template` is set, then `deidentify_template` + * will also apply to the structured content. If neither template is set, a + * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured + * content. + * + * Generated from protobuf field string structured_deidentify_template = 2; + * @param string $var + * @return $this + */ + public function setStructuredDeidentifyTemplate($var) + { + GPBUtil::checkString($var, True); + $this->structured_deidentify_template = $var; + + return $this; + } + + /** + * Image redact template. + * If this template is specified, it will serve as the de-identify template + * for images. If this template is not set, all findings in the image will be + * redacted with a black box. + * + * Generated from protobuf field string image_redact_template = 4; + * @return string + */ + public function getImageRedactTemplate() + { + return $this->image_redact_template; + } + + /** + * Image redact template. + * If this template is specified, it will serve as the de-identify template + * for images. If this template is not set, all findings in the image will be + * redacted with a black box. + * + * Generated from protobuf field string image_redact_template = 4; + * @param string $var + * @return $this + */ + public function setImageRedactTemplate($var) + { + GPBUtil::checkString($var, True); + $this->image_redact_template = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationContainerType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationContainerType.php new file mode 100644 index 000000000000..2030c3527e9f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationContainerType.php @@ -0,0 +1,68 @@ +google.privacy.dlp.v2.TransformationContainerType + */ +class TransformationContainerType +{ + /** + * Unused. + * + * Generated from protobuf enum TRANSFORM_UNKNOWN_CONTAINER = 0; + */ + const TRANSFORM_UNKNOWN_CONTAINER = 0; + /** + * Body of a file. + * + * Generated from protobuf enum TRANSFORM_BODY = 1; + */ + const TRANSFORM_BODY = 1; + /** + * Metadata for a file. + * + * Generated from protobuf enum TRANSFORM_METADATA = 2; + */ + const TRANSFORM_METADATA = 2; + /** + * A table. + * + * Generated from protobuf enum TRANSFORM_TABLE = 3; + */ + const TRANSFORM_TABLE = 3; + + private static $valueToName = [ + self::TRANSFORM_UNKNOWN_CONTAINER => 'TRANSFORM_UNKNOWN_CONTAINER', + self::TRANSFORM_BODY => 'TRANSFORM_BODY', + self::TRANSFORM_METADATA => 'TRANSFORM_METADATA', + self::TRANSFORM_TABLE => 'TRANSFORM_TABLE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDescription.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDescription.php new file mode 100644 index 000000000000..df91b2cf66ba --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDescription.php @@ -0,0 +1,224 @@ +google.privacy.dlp.v2.TransformationDescription + */ +class TransformationDescription extends \Google\Protobuf\Internal\Message +{ + /** + * The transformation type. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationType type = 1; + */ + protected $type = 0; + /** + * A description of the transformation. This is empty for a + * RECORD_SUPPRESSION, or is the output of calling toString() on the + * `PrimitiveTransformation` protocol buffer message for any other type of + * transformation. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * A human-readable string representation of the `RecordCondition` + * corresponding to this transformation. Set if a `RecordCondition` was used + * to determine whether or not to apply this transformation. + * Examples: + * * (age_field > 85) + * * (age_field <= 18) + * * (zip_field exists) + * * (zip_field == 01234) && (city_field != "Springville") + * * (zip_field == 01234) && (age_field <= 18) && (city_field exists) + * + * Generated from protobuf field string condition = 3; + */ + protected $condition = ''; + /** + * Set if the transformation was limited to a specific `InfoType`. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 4; + */ + protected $info_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * The transformation type. + * @type string $description + * A description of the transformation. This is empty for a + * RECORD_SUPPRESSION, or is the output of calling toString() on the + * `PrimitiveTransformation` protocol buffer message for any other type of + * transformation. + * @type string $condition + * A human-readable string representation of the `RecordCondition` + * corresponding to this transformation. Set if a `RecordCondition` was used + * to determine whether or not to apply this transformation. + * Examples: + * * (age_field > 85) + * * (age_field <= 18) + * * (zip_field exists) + * * (zip_field == 01234) && (city_field != "Springville") + * * (zip_field == 01234) && (age_field <= 18) && (city_field exists) + * @type \Google\Cloud\Dlp\V2\InfoType $info_type + * Set if the transformation was limited to a specific `InfoType`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The transformation type. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationType type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The transformation type. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationType type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TransformationType::class); + $this->type = $var; + + return $this; + } + + /** + * A description of the transformation. This is empty for a + * RECORD_SUPPRESSION, or is the output of calling toString() on the + * `PrimitiveTransformation` protocol buffer message for any other type of + * transformation. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A description of the transformation. This is empty for a + * RECORD_SUPPRESSION, or is the output of calling toString() on the + * `PrimitiveTransformation` protocol buffer message for any other type of + * transformation. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * A human-readable string representation of the `RecordCondition` + * corresponding to this transformation. Set if a `RecordCondition` was used + * to determine whether or not to apply this transformation. + * Examples: + * * (age_field > 85) + * * (age_field <= 18) + * * (zip_field exists) + * * (zip_field == 01234) && (city_field != "Springville") + * * (zip_field == 01234) && (age_field <= 18) && (city_field exists) + * + * Generated from protobuf field string condition = 3; + * @return string + */ + public function getCondition() + { + return $this->condition; + } + + /** + * A human-readable string representation of the `RecordCondition` + * corresponding to this transformation. Set if a `RecordCondition` was used + * to determine whether or not to apply this transformation. + * Examples: + * * (age_field > 85) + * * (age_field <= 18) + * * (zip_field exists) + * * (zip_field == 01234) && (city_field != "Springville") + * * (zip_field == 01234) && (age_field <= 18) && (city_field exists) + * + * Generated from protobuf field string condition = 3; + * @param string $var + * @return $this + */ + public function setCondition($var) + { + GPBUtil::checkString($var, True); + $this->condition = $var; + + return $this; + } + + /** + * Set if the transformation was limited to a specific `InfoType`. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 4; + * @return \Google\Cloud\Dlp\V2\InfoType|null + */ + public function getInfoType() + { + return $this->info_type; + } + + public function hasInfoType() + { + return isset($this->info_type); + } + + public function clearInfoType() + { + unset($this->info_type); + } + + /** + * Set if the transformation was limited to a specific `InfoType`. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 4; + * @param \Google\Cloud\Dlp\V2\InfoType $var + * @return $this + */ + public function setInfoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetails.php new file mode 100644 index 000000000000..fca4faf82d7b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetails.php @@ -0,0 +1,296 @@ +google.privacy.dlp.v2.TransformationDetails + */ +class TransformationDetails extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the job that completed the transformation. + * + * Generated from protobuf field string resource_name = 1; + */ + protected $resource_name = ''; + /** + * The top level name of the container where the transformation is located + * (this will be the source file name or table name). + * + * Generated from protobuf field string container_name = 2; + */ + protected $container_name = ''; + /** + * Description of transformation. This would only contain more than one + * element if there were multiple matching transformations and which one to + * apply was ambiguous. Not set for states that contain no transformation, + * currently only state that contains no transformation is + * TransformationResultStateType.METADATA_UNRETRIEVABLE. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3; + */ + private $transformation; + /** + * Status of the transformation, if transformation was not successful, this + * will specify what caused it to fail, otherwise it will show that the + * transformation was successful. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatus status_details = 4; + */ + protected $status_details = null; + /** + * The number of bytes that were transformed. If transformation was + * unsuccessful or did not take place because there was no content to + * transform, this will be zero. + * + * Generated from protobuf field int64 transformed_bytes = 5; + */ + protected $transformed_bytes = 0; + /** + * The precise location of the transformed content in the original container. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationLocation transformation_location = 6; + */ + protected $transformation_location = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource_name + * The name of the job that completed the transformation. + * @type string $container_name + * The top level name of the container where the transformation is located + * (this will be the source file name or table name). + * @type \Google\Cloud\Dlp\V2\TransformationDescription[] $transformation + * Description of transformation. This would only contain more than one + * element if there were multiple matching transformations and which one to + * apply was ambiguous. Not set for states that contain no transformation, + * currently only state that contains no transformation is + * TransformationResultStateType.METADATA_UNRETRIEVABLE. + * @type \Google\Cloud\Dlp\V2\TransformationResultStatus $status_details + * Status of the transformation, if transformation was not successful, this + * will specify what caused it to fail, otherwise it will show that the + * transformation was successful. + * @type int|string $transformed_bytes + * The number of bytes that were transformed. If transformation was + * unsuccessful or did not take place because there was no content to + * transform, this will be zero. + * @type \Google\Cloud\Dlp\V2\TransformationLocation $transformation_location + * The precise location of the transformed content in the original container. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The name of the job that completed the transformation. + * + * Generated from protobuf field string resource_name = 1; + * @return string + */ + public function getResourceName() + { + return $this->resource_name; + } + + /** + * The name of the job that completed the transformation. + * + * Generated from protobuf field string resource_name = 1; + * @param string $var + * @return $this + */ + public function setResourceName($var) + { + GPBUtil::checkString($var, True); + $this->resource_name = $var; + + return $this; + } + + /** + * The top level name of the container where the transformation is located + * (this will be the source file name or table name). + * + * Generated from protobuf field string container_name = 2; + * @return string + */ + public function getContainerName() + { + return $this->container_name; + } + + /** + * The top level name of the container where the transformation is located + * (this will be the source file name or table name). + * + * Generated from protobuf field string container_name = 2; + * @param string $var + * @return $this + */ + public function setContainerName($var) + { + GPBUtil::checkString($var, True); + $this->container_name = $var; + + return $this; + } + + /** + * Description of transformation. This would only contain more than one + * element if there were multiple matching transformations and which one to + * apply was ambiguous. Not set for states that contain no transformation, + * currently only state that contains no transformation is + * TransformationResultStateType.METADATA_UNRETRIEVABLE. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3; + * @return RepeatedField<\Google\Cloud\Dlp\V2\TransformationDescription> + */ + public function getTransformation() + { + return $this->transformation; + } + + /** + * Description of transformation. This would only contain more than one + * element if there were multiple matching transformations and which one to + * apply was ambiguous. Not set for states that contain no transformation, + * currently only state that contains no transformation is + * TransformationResultStateType.METADATA_UNRETRIEVABLE. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3; + * @param \Google\Cloud\Dlp\V2\TransformationDescription[] $var + * @return $this + */ + public function setTransformation($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\TransformationDescription::class); + $this->transformation = $arr; + + return $this; + } + + /** + * Status of the transformation, if transformation was not successful, this + * will specify what caused it to fail, otherwise it will show that the + * transformation was successful. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatus status_details = 4; + * @return \Google\Cloud\Dlp\V2\TransformationResultStatus|null + */ + public function getStatusDetails() + { + return $this->status_details; + } + + public function hasStatusDetails() + { + return isset($this->status_details); + } + + public function clearStatusDetails() + { + unset($this->status_details); + } + + /** + * Status of the transformation, if transformation was not successful, this + * will specify what caused it to fail, otherwise it will show that the + * transformation was successful. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatus status_details = 4; + * @param \Google\Cloud\Dlp\V2\TransformationResultStatus $var + * @return $this + */ + public function setStatusDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationResultStatus::class); + $this->status_details = $var; + + return $this; + } + + /** + * The number of bytes that were transformed. If transformation was + * unsuccessful or did not take place because there was no content to + * transform, this will be zero. + * + * Generated from protobuf field int64 transformed_bytes = 5; + * @return int|string + */ + public function getTransformedBytes() + { + return $this->transformed_bytes; + } + + /** + * The number of bytes that were transformed. If transformation was + * unsuccessful or did not take place because there was no content to + * transform, this will be zero. + * + * Generated from protobuf field int64 transformed_bytes = 5; + * @param int|string $var + * @return $this + */ + public function setTransformedBytes($var) + { + GPBUtil::checkInt64($var); + $this->transformed_bytes = $var; + + return $this; + } + + /** + * The precise location of the transformed content in the original container. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationLocation transformation_location = 6; + * @return \Google\Cloud\Dlp\V2\TransformationLocation|null + */ + public function getTransformationLocation() + { + return $this->transformation_location; + } + + public function hasTransformationLocation() + { + return isset($this->transformation_location); + } + + public function clearTransformationLocation() + { + unset($this->transformation_location); + } + + /** + * The precise location of the transformed content in the original container. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationLocation transformation_location = 6; + * @param \Google\Cloud\Dlp\V2\TransformationLocation $var + * @return $this + */ + public function setTransformationLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationLocation::class); + $this->transformation_location = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetailsStorageConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetailsStorageConfig.php new file mode 100644 index 000000000000..a21742d00fe7 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetailsStorageConfig.php @@ -0,0 +1,90 @@ +google.privacy.dlp.v2.TransformationDetailsStorageConfig + */ +class TransformationDetailsStorageConfig extends \Google\Protobuf\Internal\Message +{ + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\BigQueryTable $table + * The BigQuery table in which to store the output. This may be an existing + * table or in a new table in an existing dataset. + * If table_id is not set a new one will be generated for you with the + * following format: + * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific + * time zone will be used for generating the date details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The BigQuery table in which to store the output. This may be an existing + * table or in a new table in an existing dataset. + * If table_id is not set a new one will be generated for you with the + * following format: + * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific + * time zone will be used for generating the date details. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; + * @return \Google\Cloud\Dlp\V2\BigQueryTable|null + */ + public function getTable() + { + return $this->readOneof(1); + } + + public function hasTable() + { + return $this->hasOneof(1); + } + + /** + * The BigQuery table in which to store the output. This may be an existing + * table or in a new table in an existing dataset. + * If table_id is not set a new one will be generated for you with the + * following format: + * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific + * time zone will be used for generating the date details. + * + * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; + * @param \Google\Cloud\Dlp\V2\BigQueryTable $var + * @return $this + */ + public function setTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling.php new file mode 100644 index 000000000000..86a8d47b692b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling.php @@ -0,0 +1,115 @@ +google.privacy.dlp.v2.TransformationErrorHandling + */ +class TransformationErrorHandling extends \Google\Protobuf\Internal\Message +{ + protected $mode; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\TransformationErrorHandling\ThrowError $throw_error + * Throw an error + * @type \Google\Cloud\Dlp\V2\TransformationErrorHandling\LeaveUntransformed $leave_untransformed + * Ignore errors + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Throw an error + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; + * @return \Google\Cloud\Dlp\V2\TransformationErrorHandling\ThrowError|null + */ + public function getThrowError() + { + return $this->readOneof(1); + } + + public function hasThrowError() + { + return $this->hasOneof(1); + } + + /** + * Throw an error + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; + * @param \Google\Cloud\Dlp\V2\TransformationErrorHandling\ThrowError $var + * @return $this + */ + public function setThrowError($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationErrorHandling\ThrowError::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Ignore errors + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; + * @return \Google\Cloud\Dlp\V2\TransformationErrorHandling\LeaveUntransformed|null + */ + public function getLeaveUntransformed() + { + return $this->readOneof(2); + } + + public function hasLeaveUntransformed() + { + return $this->hasOneof(2); + } + + /** + * Ignore errors + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; + * @param \Google\Cloud\Dlp\V2\TransformationErrorHandling\LeaveUntransformed $var + * @return $this + */ + public function setLeaveUntransformed($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationErrorHandling\LeaveUntransformed::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getMode() + { + return $this->whichOneof("mode"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/LeaveUntransformed.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/LeaveUntransformed.php new file mode 100644 index 000000000000..dad2acd72683 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/LeaveUntransformed.php @@ -0,0 +1,36 @@ +google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed + */ +class LeaveUntransformed extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/ThrowError.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/ThrowError.php new file mode 100644 index 000000000000..f54bcafe0bab --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/ThrowError.php @@ -0,0 +1,33 @@ +google.privacy.dlp.v2.TransformationErrorHandling.ThrowError + */ +class ThrowError extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationLocation.php new file mode 100644 index 000000000000..39c8168f3431 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationLocation.php @@ -0,0 +1,158 @@ +google.privacy.dlp.v2.TransformationLocation + */ +class TransformationLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Information about the functionality of the container where this finding + * occurred, if available. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationContainerType container_type = 3; + */ + protected $container_type = 0; + protected $location_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $finding_id + * For infotype transformations, link to the corresponding findings ID so + * that location information does not need to be duplicated. Each findings + * ID correlates to an entry in the findings output table, this table only + * gets created when users specify to save findings (add the save findings + * action to the request). + * @type \Google\Cloud\Dlp\V2\RecordTransformation $record_transformation + * For record transformations, provide a field and container information. + * @type int $container_type + * Information about the functionality of the container where this finding + * occurred, if available. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * For infotype transformations, link to the corresponding findings ID so + * that location information does not need to be duplicated. Each findings + * ID correlates to an entry in the findings output table, this table only + * gets created when users specify to save findings (add the save findings + * action to the request). + * + * Generated from protobuf field string finding_id = 1; + * @return string + */ + public function getFindingId() + { + return $this->readOneof(1); + } + + public function hasFindingId() + { + return $this->hasOneof(1); + } + + /** + * For infotype transformations, link to the corresponding findings ID so + * that location information does not need to be duplicated. Each findings + * ID correlates to an entry in the findings output table, this table only + * gets created when users specify to save findings (add the save findings + * action to the request). + * + * Generated from protobuf field string finding_id = 1; + * @param string $var + * @return $this + */ + public function setFindingId($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * For record transformations, provide a field and container information. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordTransformation record_transformation = 2; + * @return \Google\Cloud\Dlp\V2\RecordTransformation|null + */ + public function getRecordTransformation() + { + return $this->readOneof(2); + } + + public function hasRecordTransformation() + { + return $this->hasOneof(2); + } + + /** + * For record transformations, provide a field and container information. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordTransformation record_transformation = 2; + * @param \Google\Cloud\Dlp\V2\RecordTransformation $var + * @return $this + */ + public function setRecordTransformation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordTransformation::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Information about the functionality of the container where this finding + * occurred, if available. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationContainerType container_type = 3; + * @return int + */ + public function getContainerType() + { + return $this->container_type; + } + + /** + * Information about the functionality of the container where this finding + * occurred, if available. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationContainerType container_type = 3; + * @param int $var + * @return $this + */ + public function setContainerType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TransformationContainerType::class); + $this->container_type = $var; + + return $this; + } + + /** + * @return string + */ + public function getLocationType() + { + return $this->whichOneof("location_type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationOverview.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationOverview.php new file mode 100644 index 000000000000..d5d296fb51fe --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationOverview.php @@ -0,0 +1,101 @@ +google.privacy.dlp.v2.TransformationOverview + */ +class TransformationOverview extends \Google\Protobuf\Internal\Message +{ + /** + * Total size in bytes that were transformed in some way. + * + * Generated from protobuf field int64 transformed_bytes = 2; + */ + protected $transformed_bytes = 0; + /** + * Transformations applied to the dataset. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; + */ + private $transformation_summaries; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $transformed_bytes + * Total size in bytes that were transformed in some way. + * @type \Google\Cloud\Dlp\V2\TransformationSummary[] $transformation_summaries + * Transformations applied to the dataset. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Total size in bytes that were transformed in some way. + * + * Generated from protobuf field int64 transformed_bytes = 2; + * @return int|string + */ + public function getTransformedBytes() + { + return $this->transformed_bytes; + } + + /** + * Total size in bytes that were transformed in some way. + * + * Generated from protobuf field int64 transformed_bytes = 2; + * @param int|string $var + * @return $this + */ + public function setTransformedBytes($var) + { + GPBUtil::checkInt64($var); + $this->transformed_bytes = $var; + + return $this; + } + + /** + * Transformations applied to the dataset. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; + * @return RepeatedField<\Google\Cloud\Dlp\V2\TransformationSummary> + */ + public function getTransformationSummaries() + { + return $this->transformation_summaries; + } + + /** + * Transformations applied to the dataset. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; + * @param \Google\Cloud\Dlp\V2\TransformationSummary[] $var + * @return $this + */ + public function setTransformationSummaries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\TransformationSummary::class); + $this->transformation_summaries = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatus.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatus.php new file mode 100644 index 000000000000..3f11d37edf5f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatus.php @@ -0,0 +1,115 @@ +google.privacy.dlp.v2.TransformationResultStatus + */ +class TransformationResultStatus extends \Google\Protobuf\Internal\Message +{ + /** + * Transformation result status type, this will be either SUCCESS, or it will + * be the reason for why the transformation was not completely successful. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1; + */ + protected $result_status_type = 0; + /** + * Detailed error codes and messages + * + * Generated from protobuf field .google.rpc.Status details = 2; + */ + protected $details = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $result_status_type + * Transformation result status type, this will be either SUCCESS, or it will + * be the reason for why the transformation was not completely successful. + * @type \Google\Rpc\Status $details + * Detailed error codes and messages + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Transformation result status type, this will be either SUCCESS, or it will + * be the reason for why the transformation was not completely successful. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1; + * @return int + */ + public function getResultStatusType() + { + return $this->result_status_type; + } + + /** + * Transformation result status type, this will be either SUCCESS, or it will + * be the reason for why the transformation was not completely successful. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1; + * @param int $var + * @return $this + */ + public function setResultStatusType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TransformationResultStatusType::class); + $this->result_status_type = $var; + + return $this; + } + + /** + * Detailed error codes and messages + * + * Generated from protobuf field .google.rpc.Status details = 2; + * @return \Google\Rpc\Status|null + */ + public function getDetails() + { + return $this->details; + } + + public function hasDetails() + { + return isset($this->details); + } + + public function clearDetails() + { + unset($this->details); + } + + /** + * Detailed error codes and messages + * + * Generated from protobuf field .google.rpc.Status details = 2; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setDetails($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->details = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatusType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatusType.php new file mode 100644 index 000000000000..a308e60c8154 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatusType.php @@ -0,0 +1,82 @@ +google.privacy.dlp.v2.TransformationResultStatusType + */ +class TransformationResultStatusType +{ + /** + * Unused. + * + * Generated from protobuf enum STATE_TYPE_UNSPECIFIED = 0; + */ + const STATE_TYPE_UNSPECIFIED = 0; + /** + * This will be set when a finding could not be transformed (i.e. outside user + * set bucket range). + * + * Generated from protobuf enum INVALID_TRANSFORM = 1; + */ + const INVALID_TRANSFORM = 1; + /** + * This will be set when a BigQuery transformation was successful but could + * not be stored back in BigQuery because the transformed row exceeds + * BigQuery's max row size. + * + * Generated from protobuf enum BIGQUERY_MAX_ROW_SIZE_EXCEEDED = 2; + */ + const BIGQUERY_MAX_ROW_SIZE_EXCEEDED = 2; + /** + * This will be set when there is a finding in the custom metadata of a file, + * but at the write time of the transformed file, this key / value pair is + * unretrievable. + * + * Generated from protobuf enum METADATA_UNRETRIEVABLE = 3; + */ + const METADATA_UNRETRIEVABLE = 3; + /** + * This will be set when the transformation and storing of it is successful. + * + * Generated from protobuf enum SUCCESS = 4; + */ + const SUCCESS = 4; + + private static $valueToName = [ + self::STATE_TYPE_UNSPECIFIED => 'STATE_TYPE_UNSPECIFIED', + self::INVALID_TRANSFORM => 'INVALID_TRANSFORM', + self::BIGQUERY_MAX_ROW_SIZE_EXCEEDED => 'BIGQUERY_MAX_ROW_SIZE_EXCEEDED', + self::METADATA_UNRETRIEVABLE => 'METADATA_UNRETRIEVABLE', + self::SUCCESS => 'SUCCESS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary.php new file mode 100644 index 000000000000..d936981eb41d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary.php @@ -0,0 +1,321 @@ +google.privacy.dlp.v2.TransformationSummary + */ +class TransformationSummary extends \Google\Protobuf\Internal\Message +{ + /** + * Set if the transformation was limited to a specific InfoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + */ + protected $info_type = null; + /** + * Set if the transformation was limited to a specific FieldId. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; + */ + protected $field = null; + /** + * The specific transformation these stats apply to. + * + * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation transformation = 3; + */ + protected $transformation = null; + /** + * The field transformation that was applied. + * If multiple field transformations are requested for a single field, + * this list will contain all of them; otherwise, only one is supplied. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5; + */ + private $field_transformations; + /** + * The specific suppression option these stats apply to. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordSuppression record_suppress = 6; + */ + protected $record_suppress = null; + /** + * Collection of all transformations that took place or had an error. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4; + */ + private $results; + /** + * Total size in bytes that were transformed in some way. + * + * Generated from protobuf field int64 transformed_bytes = 7; + */ + protected $transformed_bytes = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\InfoType $info_type + * Set if the transformation was limited to a specific InfoType. + * @type \Google\Cloud\Dlp\V2\FieldId $field + * Set if the transformation was limited to a specific FieldId. + * @type \Google\Cloud\Dlp\V2\PrimitiveTransformation $transformation + * The specific transformation these stats apply to. + * @type \Google\Cloud\Dlp\V2\FieldTransformation[] $field_transformations + * The field transformation that was applied. + * If multiple field transformations are requested for a single field, + * this list will contain all of them; otherwise, only one is supplied. + * @type \Google\Cloud\Dlp\V2\RecordSuppression $record_suppress + * The specific suppression option these stats apply to. + * @type \Google\Cloud\Dlp\V2\TransformationSummary\SummaryResult[] $results + * Collection of all transformations that took place or had an error. + * @type int|string $transformed_bytes + * Total size in bytes that were transformed in some way. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Set if the transformation was limited to a specific InfoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @return \Google\Cloud\Dlp\V2\InfoType|null + */ + public function getInfoType() + { + return $this->info_type; + } + + public function hasInfoType() + { + return isset($this->info_type); + } + + public function clearInfoType() + { + unset($this->info_type); + } + + /** + * Set if the transformation was limited to a specific InfoType. + * + * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; + * @param \Google\Cloud\Dlp\V2\InfoType $var + * @return $this + */ + public function setInfoType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); + $this->info_type = $var; + + return $this; + } + + /** + * Set if the transformation was limited to a specific FieldId. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; + * @return \Google\Cloud\Dlp\V2\FieldId|null + */ + public function getField() + { + return $this->field; + } + + public function hasField() + { + return isset($this->field); + } + + public function clearField() + { + unset($this->field); + } + + /** + * Set if the transformation was limited to a specific FieldId. + * + * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; + * @param \Google\Cloud\Dlp\V2\FieldId $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); + $this->field = $var; + + return $this; + } + + /** + * The specific transformation these stats apply to. + * + * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation transformation = 3; + * @return \Google\Cloud\Dlp\V2\PrimitiveTransformation|null + */ + public function getTransformation() + { + return $this->transformation; + } + + public function hasTransformation() + { + return isset($this->transformation); + } + + public function clearTransformation() + { + unset($this->transformation); + } + + /** + * The specific transformation these stats apply to. + * + * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation transformation = 3; + * @param \Google\Cloud\Dlp\V2\PrimitiveTransformation $var + * @return $this + */ + public function setTransformation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrimitiveTransformation::class); + $this->transformation = $var; + + return $this; + } + + /** + * The field transformation that was applied. + * If multiple field transformations are requested for a single field, + * this list will contain all of them; otherwise, only one is supplied. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5; + * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldTransformation> + */ + public function getFieldTransformations() + { + return $this->field_transformations; + } + + /** + * The field transformation that was applied. + * If multiple field transformations are requested for a single field, + * this list will contain all of them; otherwise, only one is supplied. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5; + * @param \Google\Cloud\Dlp\V2\FieldTransformation[] $var + * @return $this + */ + public function setFieldTransformations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldTransformation::class); + $this->field_transformations = $arr; + + return $this; + } + + /** + * The specific suppression option these stats apply to. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordSuppression record_suppress = 6; + * @return \Google\Cloud\Dlp\V2\RecordSuppression|null + */ + public function getRecordSuppress() + { + return $this->record_suppress; + } + + public function hasRecordSuppress() + { + return isset($this->record_suppress); + } + + public function clearRecordSuppress() + { + unset($this->record_suppress); + } + + /** + * The specific suppression option these stats apply to. + * + * Generated from protobuf field .google.privacy.dlp.v2.RecordSuppression record_suppress = 6; + * @param \Google\Cloud\Dlp\V2\RecordSuppression $var + * @return $this + */ + public function setRecordSuppress($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordSuppression::class); + $this->record_suppress = $var; + + return $this; + } + + /** + * Collection of all transformations that took place or had an error. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4; + * @return RepeatedField<\Google\Cloud\Dlp\V2\TransformationSummary\SummaryResult> + */ + public function getResults() + { + return $this->results; + } + + /** + * Collection of all transformations that took place or had an error. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4; + * @param \Google\Cloud\Dlp\V2\TransformationSummary\SummaryResult[] $var + * @return $this + */ + public function setResults($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\TransformationSummary\SummaryResult::class); + $this->results = $arr; + + return $this; + } + + /** + * Total size in bytes that were transformed in some way. + * + * Generated from protobuf field int64 transformed_bytes = 7; + * @return int|string + */ + public function getTransformedBytes() + { + return $this->transformed_bytes; + } + + /** + * Total size in bytes that were transformed in some way. + * + * Generated from protobuf field int64 transformed_bytes = 7; + * @param int|string $var + * @return $this + */ + public function setTransformedBytes($var) + { + GPBUtil::checkInt64($var); + $this->transformed_bytes = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/SummaryResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/SummaryResult.php new file mode 100644 index 000000000000..05ac48f17192 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/SummaryResult.php @@ -0,0 +1,140 @@ +google.privacy.dlp.v2.TransformationSummary.SummaryResult + */ +class SummaryResult extends \Google\Protobuf\Internal\Message +{ + /** + * Number of transformations counted by this result. + * + * Generated from protobuf field int64 count = 1; + */ + protected $count = 0; + /** + * Outcome of the transformation. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2; + */ + protected $code = 0; + /** + * A place for warnings or errors to show up if a transformation didn't + * work as expected. + * + * Generated from protobuf field string details = 3; + */ + protected $details = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $count + * Number of transformations counted by this result. + * @type int $code + * Outcome of the transformation. + * @type string $details + * A place for warnings or errors to show up if a transformation didn't + * work as expected. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Number of transformations counted by this result. + * + * Generated from protobuf field int64 count = 1; + * @return int|string + */ + public function getCount() + { + return $this->count; + } + + /** + * Number of transformations counted by this result. + * + * Generated from protobuf field int64 count = 1; + * @param int|string $var + * @return $this + */ + public function setCount($var) + { + GPBUtil::checkInt64($var); + $this->count = $var; + + return $this; + } + + /** + * Outcome of the transformation. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2; + * @return int + */ + public function getCode() + { + return $this->code; + } + + /** + * Outcome of the transformation. + * + * Generated from protobuf field .google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2; + * @param int $var + * @return $this + */ + public function setCode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TransformationSummary\TransformationResultCode::class); + $this->code = $var; + + return $this; + } + + /** + * A place for warnings or errors to show up if a transformation didn't + * work as expected. + * + * Generated from protobuf field string details = 3; + * @return string + */ + public function getDetails() + { + return $this->details; + } + + /** + * A place for warnings or errors to show up if a transformation didn't + * work as expected. + * + * Generated from protobuf field string details = 3; + * @param string $var + * @return $this + */ + public function setDetails($var) + { + GPBUtil::checkString($var, True); + $this->details = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/TransformationResultCode.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/TransformationResultCode.php new file mode 100644 index 000000000000..854a4ad49a38 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/TransformationResultCode.php @@ -0,0 +1,61 @@ +google.privacy.dlp.v2.TransformationSummary.TransformationResultCode + */ +class TransformationResultCode +{ + /** + * Unused + * + * Generated from protobuf enum TRANSFORMATION_RESULT_CODE_UNSPECIFIED = 0; + */ + const TRANSFORMATION_RESULT_CODE_UNSPECIFIED = 0; + /** + * Transformation completed without an error. + * + * Generated from protobuf enum SUCCESS = 1; + */ + const SUCCESS = 1; + /** + * Transformation had an error. + * + * Generated from protobuf enum ERROR = 2; + */ + const ERROR = 2; + + private static $valueToName = [ + self::TRANSFORMATION_RESULT_CODE_UNSPECIFIED => 'TRANSFORMATION_RESULT_CODE_UNSPECIFIED', + self::SUCCESS => 'SUCCESS', + self::ERROR => 'ERROR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationType.php new file mode 100644 index 000000000000..0bff43bdcf5e --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationType.php @@ -0,0 +1,147 @@ +google.privacy.dlp.v2.TransformationType + */ +class TransformationType +{ + /** + * Unused + * + * Generated from protobuf enum TRANSFORMATION_TYPE_UNSPECIFIED = 0; + */ + const TRANSFORMATION_TYPE_UNSPECIFIED = 0; + /** + * Record suppression + * + * Generated from protobuf enum RECORD_SUPPRESSION = 1; + */ + const RECORD_SUPPRESSION = 1; + /** + * Replace value + * + * Generated from protobuf enum REPLACE_VALUE = 2; + */ + const REPLACE_VALUE = 2; + /** + * Replace value using a dictionary. + * + * Generated from protobuf enum REPLACE_DICTIONARY = 15; + */ + const REPLACE_DICTIONARY = 15; + /** + * Redact + * + * Generated from protobuf enum REDACT = 3; + */ + const REDACT = 3; + /** + * Character mask + * + * Generated from protobuf enum CHARACTER_MASK = 4; + */ + const CHARACTER_MASK = 4; + /** + * FFX-FPE + * + * Generated from protobuf enum CRYPTO_REPLACE_FFX_FPE = 5; + */ + const CRYPTO_REPLACE_FFX_FPE = 5; + /** + * Fixed size bucketing + * + * Generated from protobuf enum FIXED_SIZE_BUCKETING = 6; + */ + const FIXED_SIZE_BUCKETING = 6; + /** + * Bucketing + * + * Generated from protobuf enum BUCKETING = 7; + */ + const BUCKETING = 7; + /** + * Replace with info type + * + * Generated from protobuf enum REPLACE_WITH_INFO_TYPE = 8; + */ + const REPLACE_WITH_INFO_TYPE = 8; + /** + * Time part + * + * Generated from protobuf enum TIME_PART = 9; + */ + const TIME_PART = 9; + /** + * Crypto hash + * + * Generated from protobuf enum CRYPTO_HASH = 10; + */ + const CRYPTO_HASH = 10; + /** + * Date shift + * + * Generated from protobuf enum DATE_SHIFT = 12; + */ + const DATE_SHIFT = 12; + /** + * Deterministic crypto + * + * Generated from protobuf enum CRYPTO_DETERMINISTIC_CONFIG = 13; + */ + const CRYPTO_DETERMINISTIC_CONFIG = 13; + /** + * Redact image + * + * Generated from protobuf enum REDACT_IMAGE = 14; + */ + const REDACT_IMAGE = 14; + + private static $valueToName = [ + self::TRANSFORMATION_TYPE_UNSPECIFIED => 'TRANSFORMATION_TYPE_UNSPECIFIED', + self::RECORD_SUPPRESSION => 'RECORD_SUPPRESSION', + self::REPLACE_VALUE => 'REPLACE_VALUE', + self::REPLACE_DICTIONARY => 'REPLACE_DICTIONARY', + self::REDACT => 'REDACT', + self::CHARACTER_MASK => 'CHARACTER_MASK', + self::CRYPTO_REPLACE_FFX_FPE => 'CRYPTO_REPLACE_FFX_FPE', + self::FIXED_SIZE_BUCKETING => 'FIXED_SIZE_BUCKETING', + self::BUCKETING => 'BUCKETING', + self::REPLACE_WITH_INFO_TYPE => 'REPLACE_WITH_INFO_TYPE', + self::TIME_PART => 'TIME_PART', + self::CRYPTO_HASH => 'CRYPTO_HASH', + self::DATE_SHIFT => 'DATE_SHIFT', + self::CRYPTO_DETERMINISTIC_CONFIG => 'CRYPTO_DETERMINISTIC_CONFIG', + self::REDACT_IMAGE => 'REDACT_IMAGE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransientCryptoKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransientCryptoKey.php new file mode 100644 index 000000000000..6a508d57129c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransientCryptoKey.php @@ -0,0 +1,88 @@ +google.privacy.dlp.v2.TransientCryptoKey + */ +class TransientCryptoKey extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the key. + * This is an arbitrary string used to differentiate different keys. + * A unique key is generated per name: two separate `TransientCryptoKey` + * protos share the same generated key if their names are the same. + * When the data crypto key is generated, this name is not used in any way + * (repeating the api call will result in a different key being generated). + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the key. + * This is an arbitrary string used to differentiate different keys. + * A unique key is generated per name: two separate `TransientCryptoKey` + * protos share the same generated key if their names are the same. + * When the data crypto key is generated, this name is not used in any way + * (repeating the api call will result in a different key being generated). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the key. + * This is an arbitrary string used to differentiate different keys. + * A unique key is generated per name: two separate `TransientCryptoKey` + * protos share the same generated key if their names are the same. + * When the data crypto key is generated, this name is not used in any way + * (repeating the api call will result in a different key being generated). + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the key. + * This is an arbitrary string used to differentiate different keys. + * A unique key is generated per name: two separate `TransientCryptoKey` + * protos share the same generated key if their names are the same. + * When the data crypto key is generated, this name is not used in any way + * (repeating the api call will result in a different key being generated). + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UniquenessScoreLevel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UniquenessScoreLevel.php new file mode 100644 index 000000000000..32a233f41645 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UniquenessScoreLevel.php @@ -0,0 +1,72 @@ +google.privacy.dlp.v2.UniquenessScoreLevel + */ +class UniquenessScoreLevel +{ + /** + * Some columns do not have estimated uniqueness. Possible reasons include + * having too few values. + * + * Generated from protobuf enum UNIQUENESS_SCORE_LEVEL_UNSPECIFIED = 0; + */ + const UNIQUENESS_SCORE_LEVEL_UNSPECIFIED = 0; + /** + * Low uniqueness, possibly a boolean, enum or similiarly typed column. + * + * Generated from protobuf enum UNIQUENESS_SCORE_LOW = 1; + */ + const UNIQUENESS_SCORE_LOW = 1; + /** + * Medium uniqueness. + * + * Generated from protobuf enum UNIQUENESS_SCORE_MEDIUM = 2; + */ + const UNIQUENESS_SCORE_MEDIUM = 2; + /** + * High uniqueness, possibly a column of free text or unique identifiers. + * + * Generated from protobuf enum UNIQUENESS_SCORE_HIGH = 3; + */ + const UNIQUENESS_SCORE_HIGH = 3; + + private static $valueToName = [ + self::UNIQUENESS_SCORE_LEVEL_UNSPECIFIED => 'UNIQUENESS_SCORE_LEVEL_UNSPECIFIED', + self::UNIQUENESS_SCORE_LOW => 'UNIQUENESS_SCORE_LOW', + self::UNIQUENESS_SCORE_MEDIUM => 'UNIQUENESS_SCORE_MEDIUM', + self::UNIQUENESS_SCORE_HIGH => 'UNIQUENESS_SCORE_HIGH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UnwrappedCryptoKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UnwrappedCryptoKey.php new file mode 100644 index 000000000000..29f528b8ab3b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UnwrappedCryptoKey.php @@ -0,0 +1,68 @@ +google.privacy.dlp.v2.UnwrappedCryptoKey + */ +class UnwrappedCryptoKey extends \Google\Protobuf\Internal\Message +{ + /** + * Required. A 128/192/256 bit key. + * + * Generated from protobuf field bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $key = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * Required. A 128/192/256 bit key. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. A 128/192/256 bit key. + * + * Generated from protobuf field bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * Required. A 128/192/256 bit key. + * + * Generated from protobuf field bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, False); + $this->key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateConnectionRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateConnectionRequest.php new file mode 100644 index 000000000000..47e5822d9ed0 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateConnectionRequest.php @@ -0,0 +1,174 @@ +google.privacy.dlp.v2.UpdateConnectionRequest + */ +class UpdateConnectionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name in the format: + * `projects/{project}/locations/{location}/connections/{connection}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The connection with new values for the relevant fields. + * + * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $connection = null; + /** + * Optional. Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param string $name Required. Resource name in the format: + * `projects/{project}/locations/{location}/connections/{connection}`. Please see + * {@see DlpServiceClient::connectionName()} for help formatting this field. + * + * @return \Google\Cloud\Dlp\V2\UpdateConnectionRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name in the format: + * `projects/{project}/locations/{location}/connections/{connection}`. + * @type \Google\Cloud\Dlp\V2\Connection $connection + * Required. The connection with new values for the relevant fields. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Mask to control which fields get updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name in the format: + * `projects/{project}/locations/{location}/connections/{connection}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name in the format: + * `projects/{project}/locations/{location}/connections/{connection}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The connection with new values for the relevant fields. + * + * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\Connection|null + */ + public function getConnection() + { + return $this->connection; + } + + public function hasConnection() + { + return isset($this->connection); + } + + public function clearConnection() + { + unset($this->connection); + } + + /** + * Required. The connection with new values for the relevant fields. + * + * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\Connection $var + * @return $this + */ + public function setConnection($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Connection::class); + $this->connection = $var; + + return $this; + } + + /** + * Optional. Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDeidentifyTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDeidentifyTemplateRequest.php new file mode 100644 index 000000000000..3214f002f473 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDeidentifyTemplateRequest.php @@ -0,0 +1,188 @@ +google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest + */ +class UpdateDeidentifyTemplateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of organization and deidentify template to be + * updated, for example + * `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * New DeidentifyTemplate value. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2; + */ + protected $deidentify_template = null; + /** + * Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + */ + protected $update_mask = null; + + /** + * @param string $name Required. Resource name of organization and deidentify template to be + * updated, for example + * `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. Please see + * {@see DlpServiceClient::deidentifyTemplateName()} for help formatting this field. + * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentifyTemplate New DeidentifyTemplate value. + * @param \Google\Protobuf\FieldMask $updateMask Mask to control which fields get updated. + * + * @return \Google\Cloud\Dlp\V2\UpdateDeidentifyTemplateRequest + * + * @experimental + */ + public static function build(string $name, \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentifyTemplate, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setName($name) + ->setDeidentifyTemplate($deidentifyTemplate) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of organization and deidentify template to be + * updated, for example + * `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentify_template + * New DeidentifyTemplate value. + * @type \Google\Protobuf\FieldMask $update_mask + * Mask to control which fields get updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of organization and deidentify template to be + * updated, for example + * `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of organization and deidentify template to be + * updated, for example + * `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * New DeidentifyTemplate value. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2; + * @return \Google\Cloud\Dlp\V2\DeidentifyTemplate|null + */ + public function getDeidentifyTemplate() + { + return $this->deidentify_template; + } + + public function hasDeidentifyTemplate() + { + return isset($this->deidentify_template); + } + + public function clearDeidentifyTemplate() + { + unset($this->deidentify_template); + } + + /** + * New DeidentifyTemplate value. + * + * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2; + * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $var + * @return $this + */ + public function setDeidentifyTemplate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); + $this->deidentify_template = $var; + + return $this; + } + + /** + * Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDiscoveryConfigRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDiscoveryConfigRequest.php new file mode 100644 index 000000000000..b76f2c16ca48 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDiscoveryConfigRequest.php @@ -0,0 +1,178 @@ +google.privacy.dlp.v2.UpdateDiscoveryConfigRequest + */ +class UpdateDiscoveryConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the project and the configuration, for example + * `projects/dlp-test-project/discoveryConfigs/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. New DiscoveryConfig value. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $discovery_config = null; + /** + * Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + */ + protected $update_mask = null; + + /** + * @param string $name Required. Resource name of the project and the configuration, for example + * `projects/dlp-test-project/discoveryConfigs/53234423`. Please see + * {@see DlpServiceClient::discoveryConfigName()} for help formatting this field. + * @param \Google\Cloud\Dlp\V2\DiscoveryConfig $discoveryConfig Required. New DiscoveryConfig value. + * @param \Google\Protobuf\FieldMask $updateMask Mask to control which fields get updated. + * + * @return \Google\Cloud\Dlp\V2\UpdateDiscoveryConfigRequest + * + * @experimental + */ + public static function build(string $name, \Google\Cloud\Dlp\V2\DiscoveryConfig $discoveryConfig, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setName($name) + ->setDiscoveryConfig($discoveryConfig) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the project and the configuration, for example + * `projects/dlp-test-project/discoveryConfigs/53234423`. + * @type \Google\Cloud\Dlp\V2\DiscoveryConfig $discovery_config + * Required. New DiscoveryConfig value. + * @type \Google\Protobuf\FieldMask $update_mask + * Mask to control which fields get updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the project and the configuration, for example + * `projects/dlp-test-project/discoveryConfigs/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the project and the configuration, for example + * `projects/dlp-test-project/discoveryConfigs/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. New DiscoveryConfig value. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\DiscoveryConfig|null + */ + public function getDiscoveryConfig() + { + return $this->discovery_config; + } + + public function hasDiscoveryConfig() + { + return isset($this->discovery_config); + } + + public function clearDiscoveryConfig() + { + unset($this->discovery_config); + } + + /** + * Required. New DiscoveryConfig value. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\DiscoveryConfig $var + * @return $this + */ + public function setDiscoveryConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryConfig::class); + $this->discovery_config = $var; + + return $this; + } + + /** + * Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateInspectTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateInspectTemplateRequest.php new file mode 100644 index 000000000000..ff8577e4ca2a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateInspectTemplateRequest.php @@ -0,0 +1,183 @@ +google.privacy.dlp.v2.UpdateInspectTemplateRequest + */ +class UpdateInspectTemplateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of organization and inspectTemplate to be updated, + * for example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * New InspectTemplate value. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2; + */ + protected $inspect_template = null; + /** + * Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + */ + protected $update_mask = null; + + /** + * @param string $name Required. Resource name of organization and inspectTemplate to be updated, + * for example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. Please see + * {@see DlpServiceClient::inspectTemplateName()} for help formatting this field. + * @param \Google\Cloud\Dlp\V2\InspectTemplate $inspectTemplate New InspectTemplate value. + * @param \Google\Protobuf\FieldMask $updateMask Mask to control which fields get updated. + * + * @return \Google\Cloud\Dlp\V2\UpdateInspectTemplateRequest + * + * @experimental + */ + public static function build(string $name, \Google\Cloud\Dlp\V2\InspectTemplate $inspectTemplate, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setName($name) + ->setInspectTemplate($inspectTemplate) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of organization and inspectTemplate to be updated, + * for example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + * @type \Google\Cloud\Dlp\V2\InspectTemplate $inspect_template + * New InspectTemplate value. + * @type \Google\Protobuf\FieldMask $update_mask + * Mask to control which fields get updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of organization and inspectTemplate to be updated, + * for example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of organization and inspectTemplate to be updated, + * for example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * New InspectTemplate value. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2; + * @return \Google\Cloud\Dlp\V2\InspectTemplate|null + */ + public function getInspectTemplate() + { + return $this->inspect_template; + } + + public function hasInspectTemplate() + { + return isset($this->inspect_template); + } + + public function clearInspectTemplate() + { + unset($this->inspect_template); + } + + /** + * New InspectTemplate value. + * + * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2; + * @param \Google\Cloud\Dlp\V2\InspectTemplate $var + * @return $this + */ + public function setInspectTemplate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectTemplate::class); + $this->inspect_template = $var; + + return $this; + } + + /** + * Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateJobTriggerRequest.php new file mode 100644 index 000000000000..575f4bb02f70 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateJobTriggerRequest.php @@ -0,0 +1,178 @@ +google.privacy.dlp.v2.UpdateJobTriggerRequest + */ +class UpdateJobTriggerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * New JobTrigger value. + * + * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2; + */ + protected $job_trigger = null; + /** + * Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + */ + protected $update_mask = null; + + /** + * @param string $name Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. Please see + * {@see DlpServiceClient::jobTriggerName()} for help formatting this field. + * @param \Google\Cloud\Dlp\V2\JobTrigger $jobTrigger New JobTrigger value. + * @param \Google\Protobuf\FieldMask $updateMask Mask to control which fields get updated. + * + * @return \Google\Cloud\Dlp\V2\UpdateJobTriggerRequest + * + * @experimental + */ + public static function build(string $name, \Google\Cloud\Dlp\V2\JobTrigger $jobTrigger, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setName($name) + ->setJobTrigger($jobTrigger) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * @type \Google\Cloud\Dlp\V2\JobTrigger $job_trigger + * New JobTrigger value. + * @type \Google\Protobuf\FieldMask $update_mask + * Mask to control which fields get updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * New JobTrigger value. + * + * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2; + * @return \Google\Cloud\Dlp\V2\JobTrigger|null + */ + public function getJobTrigger() + { + return $this->job_trigger; + } + + public function hasJobTrigger() + { + return isset($this->job_trigger); + } + + public function clearJobTrigger() + { + unset($this->job_trigger); + } + + /** + * New JobTrigger value. + * + * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2; + * @param \Google\Cloud\Dlp\V2\JobTrigger $var + * @return $this + */ + public function setJobTrigger($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\JobTrigger::class); + $this->job_trigger = $var; + + return $this; + } + + /** + * Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateStoredInfoTypeRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateStoredInfoTypeRequest.php new file mode 100644 index 000000000000..8ff747aade1a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateStoredInfoTypeRequest.php @@ -0,0 +1,193 @@ +google.privacy.dlp.v2.UpdateStoredInfoTypeRequest + */ +class UpdateStoredInfoTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of organization and storedInfoType to be updated, + * for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Updated configuration for the storedInfoType. If not provided, a new + * version of the storedInfoType will be created with the existing + * configuration. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2; + */ + protected $config = null; + /** + * Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + */ + protected $update_mask = null; + + /** + * @param string $name Required. Resource name of organization and storedInfoType to be updated, + * for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. Please see + * {@see DlpServiceClient::storedInfoTypeName()} for help formatting this field. + * @param \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config Updated configuration for the storedInfoType. If not provided, a new + * version of the storedInfoType will be created with the existing + * configuration. + * @param \Google\Protobuf\FieldMask $updateMask Mask to control which fields get updated. + * + * @return \Google\Cloud\Dlp\V2\UpdateStoredInfoTypeRequest + * + * @experimental + */ + public static function build(string $name, \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setName($name) + ->setConfig($config) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of organization and storedInfoType to be updated, + * for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * @type \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config + * Updated configuration for the storedInfoType. If not provided, a new + * version of the storedInfoType will be created with the existing + * configuration. + * @type \Google\Protobuf\FieldMask $update_mask + * Mask to control which fields get updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of organization and storedInfoType to be updated, + * for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Resource name of organization and storedInfoType to be updated, + * for example `organizations/433245324/storedInfoTypes/432452342` or + * projects/project-id/storedInfoTypes/432452342. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Updated configuration for the storedInfoType. If not provided, a new + * version of the storedInfoType will be created with the existing + * configuration. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2; + * @return \Google\Cloud\Dlp\V2\StoredInfoTypeConfig|null + */ + public function getConfig() + { + return $this->config; + } + + public function hasConfig() + { + return isset($this->config); + } + + public function clearConfig() + { + unset($this->config); + } + + /** + * Updated configuration for the storedInfoType. If not provided, a new + * version of the storedInfoType will be created with the existing + * configuration. + * + * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2; + * @param \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $var + * @return $this + */ + public function setConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredInfoTypeConfig::class); + $this->config = $var; + + return $this; + } + + /** + * Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Mask to control which fields get updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Value.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Value.php new file mode 100644 index 000000000000..1218c67d098c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Value.php @@ -0,0 +1,311 @@ +google.privacy.dlp.v2.Value + */ +class Value extends \Google\Protobuf\Internal\Message +{ + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $integer_value + * integer + * @type float $float_value + * float + * @type string $string_value + * string + * @type bool $boolean_value + * boolean + * @type \Google\Protobuf\Timestamp $timestamp_value + * timestamp + * @type \Google\Type\TimeOfDay $time_value + * time of day + * @type \Google\Type\Date $date_value + * date + * @type int $day_of_week_value + * day of week + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * integer + * + * Generated from protobuf field int64 integer_value = 1; + * @return int|string + */ + public function getIntegerValue() + { + return $this->readOneof(1); + } + + public function hasIntegerValue() + { + return $this->hasOneof(1); + } + + /** + * integer + * + * Generated from protobuf field int64 integer_value = 1; + * @param int|string $var + * @return $this + */ + public function setIntegerValue($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * float + * + * Generated from protobuf field double float_value = 2; + * @return float + */ + public function getFloatValue() + { + return $this->readOneof(2); + } + + public function hasFloatValue() + { + return $this->hasOneof(2); + } + + /** + * float + * + * Generated from protobuf field double float_value = 2; + * @param float $var + * @return $this + */ + public function setFloatValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * string + * + * Generated from protobuf field string string_value = 3; + * @return string + */ + public function getStringValue() + { + return $this->readOneof(3); + } + + public function hasStringValue() + { + return $this->hasOneof(3); + } + + /** + * string + * + * Generated from protobuf field string string_value = 3; + * @param string $var + * @return $this + */ + public function setStringValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * boolean + * + * Generated from protobuf field bool boolean_value = 4; + * @return bool + */ + public function getBooleanValue() + { + return $this->readOneof(4); + } + + public function hasBooleanValue() + { + return $this->hasOneof(4); + } + + /** + * boolean + * + * Generated from protobuf field bool boolean_value = 4; + * @param bool $var + * @return $this + */ + public function setBooleanValue($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * timestamp + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 5; + * @return \Google\Protobuf\Timestamp|null + */ + public function getTimestampValue() + { + return $this->readOneof(5); + } + + public function hasTimestampValue() + { + return $this->hasOneof(5); + } + + /** + * timestamp + * + * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 5; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setTimestampValue($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * time of day + * + * Generated from protobuf field .google.type.TimeOfDay time_value = 6; + * @return \Google\Type\TimeOfDay|null + */ + public function getTimeValue() + { + return $this->readOneof(6); + } + + public function hasTimeValue() + { + return $this->hasOneof(6); + } + + /** + * time of day + * + * Generated from protobuf field .google.type.TimeOfDay time_value = 6; + * @param \Google\Type\TimeOfDay $var + * @return $this + */ + public function setTimeValue($var) + { + GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * date + * + * Generated from protobuf field .google.type.Date date_value = 7; + * @return \Google\Type\Date|null + */ + public function getDateValue() + { + return $this->readOneof(7); + } + + public function hasDateValue() + { + return $this->hasOneof(7); + } + + /** + * date + * + * Generated from protobuf field .google.type.Date date_value = 7; + * @param \Google\Type\Date $var + * @return $this + */ + public function setDateValue($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * day of week + * + * Generated from protobuf field .google.type.DayOfWeek day_of_week_value = 8; + * @return int + */ + public function getDayOfWeekValue() + { + return $this->readOneof(8); + } + + public function hasDayOfWeekValue() + { + return $this->hasOneof(8); + } + + /** + * day of week + * + * Generated from protobuf field .google.type.DayOfWeek day_of_week_value = 8; + * @param int $var + * @return $this + */ + public function setDayOfWeekValue($var) + { + GPBUtil::checkEnum($var, \Google\Type\DayOfWeek::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ValueFrequency.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ValueFrequency.php new file mode 100644 index 000000000000..4afe4711c700 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ValueFrequency.php @@ -0,0 +1,111 @@ +google.privacy.dlp.v2.ValueFrequency + */ +class ValueFrequency extends \Google\Protobuf\Internal\Message +{ + /** + * A value contained in the field in question. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value value = 1; + */ + protected $value = null; + /** + * How many times the value is contained in the field. + * + * Generated from protobuf field int64 count = 2; + */ + protected $count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\Value $value + * A value contained in the field in question. + * @type int|string $count + * How many times the value is contained in the field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * A value contained in the field in question. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value value = 1; + * @return \Google\Cloud\Dlp\V2\Value|null + */ + public function getValue() + { + return $this->value; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * A value contained in the field in question. + * + * Generated from protobuf field .google.privacy.dlp.v2.Value value = 1; + * @param \Google\Cloud\Dlp\V2\Value $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); + $this->value = $var; + + return $this; + } + + /** + * How many times the value is contained in the field. + * + * Generated from protobuf field int64 count = 2; + * @return int|string + */ + public function getCount() + { + return $this->count; + } + + /** + * How many times the value is contained in the field. + * + * Generated from protobuf field int64 count = 2; + * @param int|string $var + * @return $this + */ + public function setCount($var) + { + GPBUtil::checkInt64($var); + $this->count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VersionDescription.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VersionDescription.php new file mode 100644 index 000000000000..5e6528eae58a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VersionDescription.php @@ -0,0 +1,101 @@ +google.privacy.dlp.v2.VersionDescription + */ +class VersionDescription extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the version + * + * Generated from protobuf field string version = 1; + */ + protected $version = ''; + /** + * Description of the version. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * Name of the version + * @type string $description + * Description of the version. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Name of the version + * + * Generated from protobuf field string version = 1; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Name of the version + * + * Generated from protobuf field string version = 1; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Description of the version. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of the version. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetCollection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetCollection.php new file mode 100644 index 000000000000..ff5915cb14b1 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetCollection.php @@ -0,0 +1,75 @@ +google.privacy.dlp.v2.VertexDatasetCollection + */ +class VertexDatasetCollection extends \Google\Protobuf\Internal\Message +{ + protected $pattern; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\VertexDatasetRegexes $vertex_dataset_regexes + * The regex used to filter dataset resources. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * The regex used to filter dataset resources. + * + * Generated from protobuf field .google.privacy.dlp.v2.VertexDatasetRegexes vertex_dataset_regexes = 1; + * @return \Google\Cloud\Dlp\V2\VertexDatasetRegexes|null + */ + public function getVertexDatasetRegexes() + { + return $this->readOneof(1); + } + + public function hasVertexDatasetRegexes() + { + return $this->hasOneof(1); + } + + /** + * The regex used to filter dataset resources. + * + * Generated from protobuf field .google.privacy.dlp.v2.VertexDatasetRegexes vertex_dataset_regexes = 1; + * @param \Google\Cloud\Dlp\V2\VertexDatasetRegexes $var + * @return $this + */ + public function setVertexDatasetRegexes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\VertexDatasetRegexes::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getPattern() + { + return $this->whichOneof("pattern"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetDiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetDiscoveryTarget.php new file mode 100644 index 000000000000..bf7a2ef37114 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetDiscoveryTarget.php @@ -0,0 +1,210 @@ +google.privacy.dlp.v2.VertexDatasetDiscoveryTarget + */ +class VertexDatasetDiscoveryTarget extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The datasets the discovery cadence applies to. The first target + * with a matching filter will be the one to apply to a dataset. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryVertexDatasetFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $filter = null; + /** + * In addition to matching the filter, these conditions must be true + * before a profile is generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryVertexDatasetConditions conditions = 2; + */ + protected $conditions = null; + protected $cadence; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetFilter $filter + * Required. The datasets the discovery cadence applies to. The first target + * with a matching filter will be the one to apply to a dataset. + * @type \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetConditions $conditions + * In addition to matching the filter, these conditions must be true + * before a profile is generated. + * @type \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetGenerationCadence $generation_cadence + * How often and when to update profiles. New datasets that match both the + * filter and conditions are scanned as quickly as possible depending on + * system capacity. + * @type \Google\Cloud\Dlp\V2\Disabled $disabled + * Disable profiling for datasets that match this filter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. The datasets the discovery cadence applies to. The first target + * with a matching filter will be the one to apply to a dataset. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryVertexDatasetFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetFilter|null + */ + public function getFilter() + { + return $this->filter; + } + + public function hasFilter() + { + return isset($this->filter); + } + + public function clearFilter() + { + unset($this->filter); + } + + /** + * Required. The datasets the discovery cadence applies to. The first target + * with a matching filter will be the one to apply to a dataset. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryVertexDatasetFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetFilter $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetFilter::class); + $this->filter = $var; + + return $this; + } + + /** + * In addition to matching the filter, these conditions must be true + * before a profile is generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryVertexDatasetConditions conditions = 2; + * @return \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetConditions|null + */ + public function getConditions() + { + return $this->conditions; + } + + public function hasConditions() + { + return isset($this->conditions); + } + + public function clearConditions() + { + unset($this->conditions); + } + + /** + * In addition to matching the filter, these conditions must be true + * before a profile is generated. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryVertexDatasetConditions conditions = 2; + * @param \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetConditions $var + * @return $this + */ + public function setConditions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetConditions::class); + $this->conditions = $var; + + return $this; + } + + /** + * How often and when to update profiles. New datasets that match both the + * filter and conditions are scanned as quickly as possible depending on + * system capacity. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryVertexDatasetGenerationCadence generation_cadence = 3; + * @return \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetGenerationCadence|null + */ + public function getGenerationCadence() + { + return $this->readOneof(3); + } + + public function hasGenerationCadence() + { + return $this->hasOneof(3); + } + + /** + * How often and when to update profiles. New datasets that match both the + * filter and conditions are scanned as quickly as possible depending on + * system capacity. + * + * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryVertexDatasetGenerationCadence generation_cadence = 3; + * @param \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetGenerationCadence $var + * @return $this + */ + public function setGenerationCadence($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetGenerationCadence::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Disable profiling for datasets that match this filter. + * + * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 4; + * @return \Google\Cloud\Dlp\V2\Disabled|null + */ + public function getDisabled() + { + return $this->readOneof(4); + } + + public function hasDisabled() + { + return $this->hasOneof(4); + } + + /** + * Disable profiling for datasets that match this filter. + * + * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 4; + * @param \Google\Cloud\Dlp\V2\Disabled $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Disabled::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getCadence() + { + return $this->whichOneof("cadence"); + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetRegex.php new file mode 100644 index 000000000000..1d12b2278af2 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetRegex.php @@ -0,0 +1,71 @@ +google.privacy.dlp.v2.VertexDatasetRegex + */ +class VertexDatasetRegex extends \Google\Protobuf\Internal\Message +{ + /** + * For organizations, if unset, will match all projects. Has no effect + * for configurations created within a project. + * + * Generated from protobuf field string project_id_regex = 1; + */ + protected $project_id_regex = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id_regex + * For organizations, if unset, will match all projects. Has no effect + * for configurations created within a project. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * For organizations, if unset, will match all projects. Has no effect + * for configurations created within a project. + * + * Generated from protobuf field string project_id_regex = 1; + * @return string + */ + public function getProjectIdRegex() + { + return $this->project_id_regex; + } + + /** + * For organizations, if unset, will match all projects. Has no effect + * for configurations created within a project. + * + * Generated from protobuf field string project_id_regex = 1; + * @param string $var + * @return $this + */ + public function setProjectIdRegex($var) + { + GPBUtil::checkString($var, True); + $this->project_id_regex = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetRegexes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetRegexes.php new file mode 100644 index 000000000000..9e7f476e858b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetRegexes.php @@ -0,0 +1,76 @@ +google.privacy.dlp.v2.VertexDatasetRegexes + */ +class VertexDatasetRegexes extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The group of regular expression patterns to match against one or + * more datasets. Maximum of 100 entries. The sum of the lengths of all + * regular expressions can't exceed 10 KiB. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.VertexDatasetRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $patterns; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dlp\V2\VertexDatasetRegex[] $patterns + * Required. The group of regular expression patterns to match against one or + * more datasets. Maximum of 100 entries. The sum of the lengths of all + * regular expressions can't exceed 10 KiB. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. The group of regular expression patterns to match against one or + * more datasets. Maximum of 100 entries. The sum of the lengths of all + * regular expressions can't exceed 10 KiB. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.VertexDatasetRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Dlp\V2\VertexDatasetRegex> + */ + public function getPatterns() + { + return $this->patterns; + } + + /** + * Required. The group of regular expression patterns to match against one or + * more datasets. Maximum of 100 entries. The sum of the lengths of all + * regular expressions can't exceed 10 KiB. + * + * Generated from protobuf field repeated .google.privacy.dlp.v2.VertexDatasetRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dlp\V2\VertexDatasetRegex[] $var + * @return $this + */ + public function setPatterns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\VertexDatasetRegex::class); + $this->patterns = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetResourceReference.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetResourceReference.php new file mode 100644 index 000000000000..6d831f52ab71 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetResourceReference.php @@ -0,0 +1,80 @@ +google.privacy.dlp.v2.VertexDatasetResourceReference + */ +class VertexDatasetResourceReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Vertex AI resource. If set within a project-level + * configuration, the specified resource must be within the project. + * Examples: + * * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string dataset_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dataset_resource_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dataset_resource_name + * Required. The name of the Vertex AI resource. If set within a project-level + * configuration, the specified resource must be within the project. + * Examples: + * * `projects/{project}/locations/{location}/datasets/{dataset}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Vertex AI resource. If set within a project-level + * configuration, the specified resource must be within the project. + * Examples: + * * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string dataset_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDatasetResourceName() + { + return $this->dataset_resource_name; + } + + /** + * Required. The name of the Vertex AI resource. If set within a project-level + * configuration, the specified resource must be within the project. + * Examples: + * * `projects/{project}/locations/{location}/datasets/{dataset}` + * + * Generated from protobuf field string dataset_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDatasetResourceName($var) + { + GPBUtil::checkString($var, True); + $this->dataset_resource_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/activate_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/activate_job_trigger.php new file mode 100644 index 000000000000..04e27caeaf00 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/activate_job_trigger.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DlpJob $response */ + $response = $dlpServiceClient->activateJobTrigger($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); + + activate_job_trigger_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_ActivateJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/cancel_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/cancel_dlp_job.php new file mode 100644 index 000000000000..9a1f8b4eb980 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/cancel_dlp_job.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dlpServiceClient->cancelDlpJob($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::dlpJobName('[PROJECT]', '[DLP_JOB]'); + + cancel_dlp_job_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_CancelDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_connection.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_connection.php new file mode 100644 index 000000000000..62e692cf0323 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_connection.php @@ -0,0 +1,85 @@ +setState($connectionState); + $request = (new CreateConnectionRequest()) + ->setParent($formattedParent) + ->setConnection($connection); + + // Call the API and handle any network failures. + try { + /** @var Connection $response */ + $response = $dlpServiceClient->createConnection($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; + + create_connection_sample($formattedParent, $connectionState); +} +// [END dlp_v2_generated_DlpService_CreateConnection_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_deidentify_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_deidentify_template.php new file mode 100644 index 000000000000..52b3c26a1ebd --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_deidentify_template.php @@ -0,0 +1,96 @@ +setParent($formattedParent) + ->setDeidentifyTemplate($deidentifyTemplate); + + // Call the API and handle any network failures. + try { + /** @var DeidentifyTemplate $response */ + $response = $dlpServiceClient->createDeidentifyTemplate($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + create_deidentify_template_sample($formattedParent); +} +// [END dlp_v2_generated_DlpService_CreateDeidentifyTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_discovery_config.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_discovery_config.php new file mode 100644 index 000000000000..d07530cb21ad --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_discovery_config.php @@ -0,0 +1,91 @@ +setStatus($discoveryConfigStatus); + $request = (new CreateDiscoveryConfigRequest()) + ->setParent($formattedParent) + ->setDiscoveryConfig($discoveryConfig); + + // Call the API and handle any network failures. + try { + /** @var DiscoveryConfig $response */ + $response = $dlpServiceClient->createDiscoveryConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::locationName('[PROJECT]', '[LOCATION]'); + $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; + + create_discovery_config_sample($formattedParent, $discoveryConfigStatus); +} +// [END dlp_v2_generated_DlpService_CreateDiscoveryConfig_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_dlp_job.php new file mode 100644 index 000000000000..166bb38f5aed --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_dlp_job.php @@ -0,0 +1,95 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var DlpJob $response */ + $response = $dlpServiceClient->createDlpJob($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::projectName('[PROJECT]'); + + create_dlp_job_sample($formattedParent); +} +// [END dlp_v2_generated_DlpService_CreateDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_inspect_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_inspect_template.php new file mode 100644 index 000000000000..8c5218b22cf7 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_inspect_template.php @@ -0,0 +1,96 @@ +setParent($formattedParent) + ->setInspectTemplate($inspectTemplate); + + // Call the API and handle any network failures. + try { + /** @var InspectTemplate $response */ + $response = $dlpServiceClient->createInspectTemplate($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + create_inspect_template_sample($formattedParent); +} +// [END dlp_v2_generated_DlpService_CreateInspectTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_job_trigger.php new file mode 100644 index 000000000000..a33817b07767 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_job_trigger.php @@ -0,0 +1,96 @@ +setStatus($jobTriggerStatus); + $request = (new CreateJobTriggerRequest()) + ->setParent($formattedParent) + ->setJobTrigger($jobTrigger); + + // Call the API and handle any network failures. + try { + /** @var JobTrigger $response */ + $response = $dlpServiceClient->createJobTrigger($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::projectName('[PROJECT]'); + $jobTriggerStatus = Status::STATUS_UNSPECIFIED; + + create_job_trigger_sample($formattedParent, $jobTriggerStatus); +} +// [END dlp_v2_generated_DlpService_CreateJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_stored_info_type.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_stored_info_type.php new file mode 100644 index 000000000000..0b8e9e1458cb --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_stored_info_type.php @@ -0,0 +1,96 @@ +setParent($formattedParent) + ->setConfig($config); + + // Call the API and handle any network failures. + try { + /** @var StoredInfoType $response */ + $response = $dlpServiceClient->createStoredInfoType($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + create_stored_info_type_sample($formattedParent); +} +// [END dlp_v2_generated_DlpService_CreateStoredInfoType_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/deidentify_content.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/deidentify_content.php new file mode 100644 index 000000000000..9769fca9f1f1 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/deidentify_content.php @@ -0,0 +1,65 @@ +deidentifyContent($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END dlp_v2_generated_DlpService_DeidentifyContent_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_connection.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_connection.php new file mode 100644 index 000000000000..b19aa97345cc --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_connection.php @@ -0,0 +1,70 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dlpServiceClient->deleteConnection($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); + + delete_connection_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_DeleteConnection_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_deidentify_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_deidentify_template.php new file mode 100644 index 000000000000..43b18b8d5b16 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_deidentify_template.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dlpServiceClient->deleteDeidentifyTemplate($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::deidentifyTemplateName( + '[ORGANIZATION]', + '[DEIDENTIFY_TEMPLATE]' + ); + + delete_deidentify_template_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_DeleteDeidentifyTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_discovery_config.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_discovery_config.php new file mode 100644 index 000000000000..c7758fe1f97a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_discovery_config.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dlpServiceClient->deleteDiscoveryConfig($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::discoveryConfigName( + '[PROJECT]', + '[LOCATION]', + '[DISCOVERY_CONFIG]' + ); + + delete_discovery_config_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_DeleteDiscoveryConfig_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_dlp_job.php new file mode 100644 index 000000000000..4e06417ccb84 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_dlp_job.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dlpServiceClient->deleteDlpJob($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::dlpJobName('[PROJECT]', '[DLP_JOB]'); + + delete_dlp_job_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_DeleteDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_file_store_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_file_store_data_profile.php new file mode 100644 index 000000000000..637982767c4d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_file_store_data_profile.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dlpServiceClient->deleteFileStoreDataProfile($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::fileStoreDataProfileName( + '[ORGANIZATION]', + '[LOCATION]', + '[FILE_STORE_DATA_PROFILE]' + ); + + delete_file_store_data_profile_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_DeleteFileStoreDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_inspect_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_inspect_template.php new file mode 100644 index 000000000000..dff7db078153 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_inspect_template.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dlpServiceClient->deleteInspectTemplate($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); + + delete_inspect_template_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_DeleteInspectTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_job_trigger.php new file mode 100644 index 000000000000..80ecaf514058 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_job_trigger.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dlpServiceClient->deleteJobTrigger($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); + + delete_job_trigger_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_DeleteJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_stored_info_type.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_stored_info_type.php new file mode 100644 index 000000000000..a8250641e3e8 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_stored_info_type.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dlpServiceClient->deleteStoredInfoType($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); + + delete_stored_info_type_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_DeleteStoredInfoType_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_table_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_table_data_profile.php new file mode 100644 index 000000000000..face86fef936 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_table_data_profile.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dlpServiceClient->deleteTableDataProfile($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::tableDataProfileName( + '[ORGANIZATION]', + '[LOCATION]', + '[TABLE_DATA_PROFILE]' + ); + + delete_table_data_profile_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_DeleteTableDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/finish_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/finish_dlp_job.php new file mode 100644 index 000000000000..c0250e81f894 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/finish_dlp_job.php @@ -0,0 +1,70 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dlpServiceClient->finishDlpJob($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::dlpJobName('[PROJECT]', '[DLP_JOB]'); + + finish_dlp_job_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_FinishDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_column_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_column_data_profile.php new file mode 100644 index 000000000000..a9ed68704837 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_column_data_profile.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ColumnDataProfile $response */ + $response = $dlpServiceClient->getColumnDataProfile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::columnDataProfileName( + '[ORGANIZATION]', + '[LOCATION]', + '[COLUMN_DATA_PROFILE]' + ); + + get_column_data_profile_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_GetColumnDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_connection.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_connection.php new file mode 100644 index 000000000000..f6244aa1fc15 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_connection.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Connection $response */ + $response = $dlpServiceClient->getConnection($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); + + get_connection_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_GetConnection_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_deidentify_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_deidentify_template.php new file mode 100644 index 000000000000..97a41367b293 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_deidentify_template.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DeidentifyTemplate $response */ + $response = $dlpServiceClient->getDeidentifyTemplate($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::deidentifyTemplateName( + '[ORGANIZATION]', + '[DEIDENTIFY_TEMPLATE]' + ); + + get_deidentify_template_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_GetDeidentifyTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_discovery_config.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_discovery_config.php new file mode 100644 index 000000000000..a72a1625e61d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_discovery_config.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DiscoveryConfig $response */ + $response = $dlpServiceClient->getDiscoveryConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::discoveryConfigName( + '[PROJECT]', + '[LOCATION]', + '[DISCOVERY_CONFIG]' + ); + + get_discovery_config_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_GetDiscoveryConfig_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_dlp_job.php new file mode 100644 index 000000000000..c54c5fbe1e49 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_dlp_job.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DlpJob $response */ + $response = $dlpServiceClient->getDlpJob($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::dlpJobName('[PROJECT]', '[DLP_JOB]'); + + get_dlp_job_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_GetDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_file_store_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_file_store_data_profile.php new file mode 100644 index 000000000000..5aec92cc0163 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_file_store_data_profile.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var FileStoreDataProfile $response */ + $response = $dlpServiceClient->getFileStoreDataProfile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::projectDataProfileName( + '[ORGANIZATION]', + '[LOCATION]', + '[PROJECT_DATA_PROFILE]' + ); + + get_file_store_data_profile_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_GetFileStoreDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_inspect_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_inspect_template.php new file mode 100644 index 000000000000..6eaa0007bc5f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_inspect_template.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var InspectTemplate $response */ + $response = $dlpServiceClient->getInspectTemplate($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); + + get_inspect_template_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_GetInspectTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_job_trigger.php new file mode 100644 index 000000000000..487e14f692bc --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_job_trigger.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var JobTrigger $response */ + $response = $dlpServiceClient->getJobTrigger($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); + + get_job_trigger_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_GetJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_project_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_project_data_profile.php new file mode 100644 index 000000000000..c501e8239fff --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_project_data_profile.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ProjectDataProfile $response */ + $response = $dlpServiceClient->getProjectDataProfile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::projectDataProfileName( + '[ORGANIZATION]', + '[LOCATION]', + '[PROJECT_DATA_PROFILE]' + ); + + get_project_data_profile_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_GetProjectDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_stored_info_type.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_stored_info_type.php new file mode 100644 index 000000000000..7fe0a67cfea2 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_stored_info_type.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var StoredInfoType $response */ + $response = $dlpServiceClient->getStoredInfoType($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); + + get_stored_info_type_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_GetStoredInfoType_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_table_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_table_data_profile.php new file mode 100644 index 000000000000..6178fe33034e --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_table_data_profile.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var TableDataProfile $response */ + $response = $dlpServiceClient->getTableDataProfile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::tableDataProfileName( + '[ORGANIZATION]', + '[LOCATION]', + '[TABLE_DATA_PROFILE]' + ); + + get_table_data_profile_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_GetTableDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_dlp_job.php new file mode 100644 index 000000000000..620569221957 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_dlp_job.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var HybridInspectResponse $response */ + $response = $dlpServiceClient->hybridInspectDlpJob($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::dlpJobName('[PROJECT]', '[DLP_JOB]'); + + hybrid_inspect_dlp_job_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_HybridInspectDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_job_trigger.php new file mode 100644 index 000000000000..0447df0254c3 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_job_trigger.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var HybridInspectResponse $response */ + $response = $dlpServiceClient->hybridInspectJobTrigger($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); + + hybrid_inspect_job_trigger_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_HybridInspectJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/inspect_content.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/inspect_content.php new file mode 100644 index 000000000000..97ea2a7b272a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/inspect_content.php @@ -0,0 +1,67 @@ +inspectContent($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END dlp_v2_generated_DlpService_InspectContent_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_column_data_profiles.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_column_data_profiles.php new file mode 100644 index 000000000000..9e6a8f7f1c28 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_column_data_profiles.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dlpServiceClient->listColumnDataProfiles($request); + + /** @var ColumnDataProfile $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + list_column_data_profiles_sample($formattedParent); +} +// [END dlp_v2_generated_DlpService_ListColumnDataProfiles_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_connections.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_connections.php new file mode 100644 index 000000000000..a24a6a1fea6d --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_connections.php @@ -0,0 +1,79 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dlpServiceClient->listConnections($request); + + /** @var Connection $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + list_connections_sample($formattedParent); +} +// [END dlp_v2_generated_DlpService_ListConnections_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_deidentify_templates.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_deidentify_templates.php new file mode 100644 index 000000000000..47a5dba018bb --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_deidentify_templates.php @@ -0,0 +1,98 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dlpServiceClient->listDeidentifyTemplates($request); + + /** @var DeidentifyTemplate $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + list_deidentify_templates_sample($formattedParent); +} +// [END dlp_v2_generated_DlpService_ListDeidentifyTemplates_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_discovery_configs.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_discovery_configs.php new file mode 100644 index 000000000000..dd938c826d57 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_discovery_configs.php @@ -0,0 +1,85 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dlpServiceClient->listDiscoveryConfigs($request); + + /** @var DiscoveryConfig $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_discovery_configs_sample($formattedParent); +} +// [END dlp_v2_generated_DlpService_ListDiscoveryConfigs_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_dlp_jobs.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_dlp_jobs.php new file mode 100644 index 000000000000..7f7149582666 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_dlp_jobs.php @@ -0,0 +1,96 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dlpServiceClient->listDlpJobs($request); + + /** @var DlpJob $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::projectName('[PROJECT]'); + + list_dlp_jobs_sample($formattedParent); +} +// [END dlp_v2_generated_DlpService_ListDlpJobs_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_file_store_data_profiles.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_file_store_data_profiles.php new file mode 100644 index 000000000000..d29d17bf1e1c --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_file_store_data_profiles.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dlpServiceClient->listFileStoreDataProfiles($request); + + /** @var FileStoreDataProfile $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + list_file_store_data_profiles_sample($formattedParent); +} +// [END dlp_v2_generated_DlpService_ListFileStoreDataProfiles_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_info_types.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_info_types.php new file mode 100644 index 000000000000..756c1e705c5a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_info_types.php @@ -0,0 +1,60 @@ +listInfoTypes($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END dlp_v2_generated_DlpService_ListInfoTypes_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_inspect_templates.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_inspect_templates.php new file mode 100644 index 000000000000..e1c64c529c4a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_inspect_templates.php @@ -0,0 +1,98 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dlpServiceClient->listInspectTemplates($request); + + /** @var InspectTemplate $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + list_inspect_templates_sample($formattedParent); +} +// [END dlp_v2_generated_DlpService_ListInspectTemplates_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_job_triggers.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_job_triggers.php new file mode 100644 index 000000000000..d48c46d43278 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_job_triggers.php @@ -0,0 +1,94 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dlpServiceClient->listJobTriggers($request); + + /** @var JobTrigger $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::projectName('[PROJECT]'); + + list_job_triggers_sample($formattedParent); +} +// [END dlp_v2_generated_DlpService_ListJobTriggers_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_project_data_profiles.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_project_data_profiles.php new file mode 100644 index 000000000000..e84bd84b02f7 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_project_data_profiles.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dlpServiceClient->listProjectDataProfiles($request); + + /** @var ProjectDataProfile $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + list_project_data_profiles_sample($formattedParent); +} +// [END dlp_v2_generated_DlpService_ListProjectDataProfiles_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_stored_info_types.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_stored_info_types.php new file mode 100644 index 000000000000..5a80b688afea --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_stored_info_types.php @@ -0,0 +1,94 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dlpServiceClient->listStoredInfoTypes($request); + + /** @var StoredInfoType $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + list_stored_info_types_sample($formattedParent); +} +// [END dlp_v2_generated_DlpService_ListStoredInfoTypes_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_table_data_profiles.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_table_data_profiles.php new file mode 100644 index 000000000000..bd4af1359983 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_table_data_profiles.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dlpServiceClient->listTableDataProfiles($request); + + /** @var TableDataProfile $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + list_table_data_profiles_sample($formattedParent); +} +// [END dlp_v2_generated_DlpService_ListTableDataProfiles_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/redact_image.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/redact_image.php new file mode 100644 index 000000000000..b5192e2fe978 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/redact_image.php @@ -0,0 +1,68 @@ +redactImage($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END dlp_v2_generated_DlpService_RedactImage_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/reidentify_content.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/reidentify_content.php new file mode 100644 index 000000000000..0b589f897c6b --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/reidentify_content.php @@ -0,0 +1,89 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var ReidentifyContentResponse $response */ + $response = $dlpServiceClient->reidentifyContent($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::projectName('[PROJECT]'); + + reidentify_content_sample($formattedParent); +} +// [END dlp_v2_generated_DlpService_ReidentifyContent_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/search_connections.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/search_connections.php new file mode 100644 index 000000000000..58a0136a74fb --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/search_connections.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dlpServiceClient->searchConnections($request); + + /** @var Connection $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + search_connections_sample($formattedParent); +} +// [END dlp_v2_generated_DlpService_SearchConnections_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_connection.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_connection.php new file mode 100644 index 000000000000..f74f9c6cfa4e --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_connection.php @@ -0,0 +1,78 @@ +setState($connectionState); + $request = (new UpdateConnectionRequest()) + ->setName($formattedName) + ->setConnection($connection); + + // Call the API and handle any network failures. + try { + /** @var Connection $response */ + $response = $dlpServiceClient->updateConnection($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); + $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; + + update_connection_sample($formattedName, $connectionState); +} +// [END dlp_v2_generated_DlpService_UpdateConnection_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_deidentify_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_deidentify_template.php new file mode 100644 index 000000000000..886de778c76f --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_deidentify_template.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DeidentifyTemplate $response */ + $response = $dlpServiceClient->updateDeidentifyTemplate($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::deidentifyTemplateName( + '[ORGANIZATION]', + '[DEIDENTIFY_TEMPLATE]' + ); + + update_deidentify_template_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_UpdateDeidentifyTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_discovery_config.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_discovery_config.php new file mode 100644 index 000000000000..9827c957154a --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_discovery_config.php @@ -0,0 +1,82 @@ +setStatus($discoveryConfigStatus); + $request = (new UpdateDiscoveryConfigRequest()) + ->setName($formattedName) + ->setDiscoveryConfig($discoveryConfig); + + // Call the API and handle any network failures. + try { + /** @var DiscoveryConfig $response */ + $response = $dlpServiceClient->updateDiscoveryConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::discoveryConfigName( + '[PROJECT]', + '[LOCATION]', + '[DISCOVERY_CONFIG]' + ); + $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; + + update_discovery_config_sample($formattedName, $discoveryConfigStatus); +} +// [END dlp_v2_generated_DlpService_UpdateDiscoveryConfig_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_inspect_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_inspect_template.php new file mode 100644 index 000000000000..d1728a2ba2da --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_inspect_template.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var InspectTemplate $response */ + $response = $dlpServiceClient->updateInspectTemplate($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); + + update_inspect_template_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_UpdateInspectTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_job_trigger.php new file mode 100644 index 000000000000..cfded42f3aaa --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_job_trigger.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var JobTrigger $response */ + $response = $dlpServiceClient->updateJobTrigger($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); + + update_job_trigger_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_UpdateJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_stored_info_type.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_stored_info_type.php new file mode 100644 index 000000000000..476ff3f23735 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_stored_info_type.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var StoredInfoType $response */ + $response = $dlpServiceClient->updateStoredInfoType($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DlpServiceClient::storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); + + update_stored_info_type_sample($formattedName); +} +// [END dlp_v2_generated_DlpService_UpdateStoredInfoType_sync] diff --git a/owl-bot-staging/Dlp/v2/src/V2/Client/DlpServiceClient.php b/owl-bot-staging/Dlp/v2/src/V2/Client/DlpServiceClient.php new file mode 100644 index 000000000000..4f561f8c4d52 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/src/V2/Client/DlpServiceClient.php @@ -0,0 +1,2670 @@ + activateJobTriggerAsync(ActivateJobTriggerRequest $request, array $optionalArgs = []) + * @method PromiseInterface cancelDlpJobAsync(CancelDlpJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface createConnectionAsync(CreateConnectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDeidentifyTemplateAsync(CreateDeidentifyTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDiscoveryConfigAsync(CreateDiscoveryConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDlpJobAsync(CreateDlpJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface createInspectTemplateAsync(CreateInspectTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface createJobTriggerAsync(CreateJobTriggerRequest $request, array $optionalArgs = []) + * @method PromiseInterface createStoredInfoTypeAsync(CreateStoredInfoTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface deidentifyContentAsync(DeidentifyContentRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteConnectionAsync(DeleteConnectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDeidentifyTemplateAsync(DeleteDeidentifyTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDiscoveryConfigAsync(DeleteDiscoveryConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDlpJobAsync(DeleteDlpJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFileStoreDataProfileAsync(DeleteFileStoreDataProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteInspectTemplateAsync(DeleteInspectTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteJobTriggerAsync(DeleteJobTriggerRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteStoredInfoTypeAsync(DeleteStoredInfoTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteTableDataProfileAsync(DeleteTableDataProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface finishDlpJobAsync(FinishDlpJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface getColumnDataProfileAsync(GetColumnDataProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface getConnectionAsync(GetConnectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDeidentifyTemplateAsync(GetDeidentifyTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDiscoveryConfigAsync(GetDiscoveryConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDlpJobAsync(GetDlpJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface getFileStoreDataProfileAsync(GetFileStoreDataProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface getInspectTemplateAsync(GetInspectTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface getJobTriggerAsync(GetJobTriggerRequest $request, array $optionalArgs = []) + * @method PromiseInterface getProjectDataProfileAsync(GetProjectDataProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface getStoredInfoTypeAsync(GetStoredInfoTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTableDataProfileAsync(GetTableDataProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface hybridInspectDlpJobAsync(HybridInspectDlpJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface hybridInspectJobTriggerAsync(HybridInspectJobTriggerRequest $request, array $optionalArgs = []) + * @method PromiseInterface inspectContentAsync(InspectContentRequest $request, array $optionalArgs = []) + * @method PromiseInterface listColumnDataProfilesAsync(ListColumnDataProfilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listConnectionsAsync(ListConnectionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDeidentifyTemplatesAsync(ListDeidentifyTemplatesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDiscoveryConfigsAsync(ListDiscoveryConfigsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDlpJobsAsync(ListDlpJobsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFileStoreDataProfilesAsync(ListFileStoreDataProfilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listInfoTypesAsync(ListInfoTypesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listInspectTemplatesAsync(ListInspectTemplatesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listJobTriggersAsync(ListJobTriggersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listProjectDataProfilesAsync(ListProjectDataProfilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listStoredInfoTypesAsync(ListStoredInfoTypesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTableDataProfilesAsync(ListTableDataProfilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface redactImageAsync(RedactImageRequest $request, array $optionalArgs = []) + * @method PromiseInterface reidentifyContentAsync(ReidentifyContentRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchConnectionsAsync(SearchConnectionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateConnectionAsync(UpdateConnectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDeidentifyTemplateAsync(UpdateDeidentifyTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDiscoveryConfigAsync(UpdateDiscoveryConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateInspectTemplateAsync(UpdateInspectTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateJobTriggerAsync(UpdateJobTriggerRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateStoredInfoTypeAsync(UpdateStoredInfoTypeRequest $request, array $optionalArgs = []) + */ +final class DlpServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.privacy.dlp.v2.DlpService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'dlp.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'dlp.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/dlp_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/dlp_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/dlp_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/dlp_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * column_data_profile resource. + * + * @param string $organization + * @param string $location + * @param string $columnDataProfile + * + * @return string The formatted column_data_profile resource. + */ + public static function columnDataProfileName(string $organization, string $location, string $columnDataProfile): string + { + return self::getPathTemplate('columnDataProfile')->render([ + 'organization' => $organization, + 'location' => $location, + 'column_data_profile' => $columnDataProfile, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a connection + * resource. + * + * @param string $project + * @param string $location + * @param string $connection + * + * @return string The formatted connection resource. + */ + public static function connectionName(string $project, string $location, string $connection): string + { + return self::getPathTemplate('connection')->render([ + 'project' => $project, + 'location' => $location, + 'connection' => $connection, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * deidentify_template resource. + * + * @param string $organization + * @param string $deidentifyTemplate + * + * @return string The formatted deidentify_template resource. + */ + public static function deidentifyTemplateName(string $organization, string $deidentifyTemplate): string + { + return self::getPathTemplate('deidentifyTemplate')->render([ + 'organization' => $organization, + 'deidentify_template' => $deidentifyTemplate, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * discovery_config resource. + * + * @param string $project + * @param string $location + * @param string $discoveryConfig + * + * @return string The formatted discovery_config resource. + */ + public static function discoveryConfigName(string $project, string $location, string $discoveryConfig): string + { + return self::getPathTemplate('discoveryConfig')->render([ + 'project' => $project, + 'location' => $location, + 'discovery_config' => $discoveryConfig, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a dlp_job + * resource. + * + * @param string $project + * @param string $dlpJob + * + * @return string The formatted dlp_job resource. + */ + public static function dlpJobName(string $project, string $dlpJob): string + { + return self::getPathTemplate('dlpJob')->render([ + 'project' => $project, + 'dlp_job' => $dlpJob, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * file_store_data_profile resource. + * + * @param string $organization + * @param string $location + * @param string $fileStoreDataProfile + * + * @return string The formatted file_store_data_profile resource. + */ + public static function fileStoreDataProfileName(string $organization, string $location, string $fileStoreDataProfile): string + { + return self::getPathTemplate('fileStoreDataProfile')->render([ + 'organization' => $organization, + 'location' => $location, + 'file_store_data_profile' => $fileStoreDataProfile, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * inspect_template resource. + * + * @param string $organization + * @param string $inspectTemplate + * + * @return string The formatted inspect_template resource. + */ + public static function inspectTemplateName(string $organization, string $inspectTemplate): string + { + return self::getPathTemplate('inspectTemplate')->render([ + 'organization' => $organization, + 'inspect_template' => $inspectTemplate, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a job_trigger + * resource. + * + * @param string $project + * @param string $jobTrigger + * + * @return string The formatted job_trigger resource. + */ + public static function jobTriggerName(string $project, string $jobTrigger): string + { + return self::getPathTemplate('jobTrigger')->render([ + 'project' => $project, + 'job_trigger' => $jobTrigger, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a organization + * resource. + * + * @param string $organization + * + * @return string The formatted organization resource. + */ + public static function organizationName(string $organization): string + { + return self::getPathTemplate('organization')->render([ + 'organization' => $organization, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_deidentify_template resource. + * + * @param string $organization + * @param string $deidentifyTemplate + * + * @return string The formatted organization_deidentify_template resource. + */ + public static function organizationDeidentifyTemplateName(string $organization, string $deidentifyTemplate): string + { + return self::getPathTemplate('organizationDeidentifyTemplate')->render([ + 'organization' => $organization, + 'deidentify_template' => $deidentifyTemplate, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_inspect_template resource. + * + * @param string $organization + * @param string $inspectTemplate + * + * @return string The formatted organization_inspect_template resource. + */ + public static function organizationInspectTemplateName(string $organization, string $inspectTemplate): string + { + return self::getPathTemplate('organizationInspectTemplate')->render([ + 'organization' => $organization, + 'inspect_template' => $inspectTemplate, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location resource. + * + * @param string $organization + * @param string $location + * + * @return string The formatted organization_location resource. + */ + public static function organizationLocationName(string $organization, string $location): string + { + return self::getPathTemplate('organizationLocation')->render([ + 'organization' => $organization, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_column_data_profile resource. + * + * @param string $organization + * @param string $location + * @param string $columnDataProfile + * + * @return string The formatted organization_location_column_data_profile resource. + */ + public static function organizationLocationColumnDataProfileName(string $organization, string $location, string $columnDataProfile): string + { + return self::getPathTemplate('organizationLocationColumnDataProfile')->render([ + 'organization' => $organization, + 'location' => $location, + 'column_data_profile' => $columnDataProfile, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_connection resource. + * + * @param string $organization + * @param string $location + * @param string $connection + * + * @return string The formatted organization_location_connection resource. + */ + public static function organizationLocationConnectionName(string $organization, string $location, string $connection): string + { + return self::getPathTemplate('organizationLocationConnection')->render([ + 'organization' => $organization, + 'location' => $location, + 'connection' => $connection, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_deidentify_template resource. + * + * @param string $organization + * @param string $location + * @param string $deidentifyTemplate + * + * @return string The formatted organization_location_deidentify_template resource. + */ + public static function organizationLocationDeidentifyTemplateName(string $organization, string $location, string $deidentifyTemplate): string + { + return self::getPathTemplate('organizationLocationDeidentifyTemplate')->render([ + 'organization' => $organization, + 'location' => $location, + 'deidentify_template' => $deidentifyTemplate, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_file_store_data_profile resource. + * + * @param string $organization + * @param string $location + * @param string $fileStoreDataProfile + * + * @return string The formatted organization_location_file_store_data_profile resource. + */ + public static function organizationLocationFileStoreDataProfileName(string $organization, string $location, string $fileStoreDataProfile): string + { + return self::getPathTemplate('organizationLocationFileStoreDataProfile')->render([ + 'organization' => $organization, + 'location' => $location, + 'file_store_data_profile' => $fileStoreDataProfile, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_inspect_template resource. + * + * @param string $organization + * @param string $location + * @param string $inspectTemplate + * + * @return string The formatted organization_location_inspect_template resource. + */ + public static function organizationLocationInspectTemplateName(string $organization, string $location, string $inspectTemplate): string + { + return self::getPathTemplate('organizationLocationInspectTemplate')->render([ + 'organization' => $organization, + 'location' => $location, + 'inspect_template' => $inspectTemplate, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_project_data_profile resource. + * + * @param string $organization + * @param string $location + * @param string $projectDataProfile + * + * @return string The formatted organization_location_project_data_profile resource. + */ + public static function organizationLocationProjectDataProfileName(string $organization, string $location, string $projectDataProfile): string + { + return self::getPathTemplate('organizationLocationProjectDataProfile')->render([ + 'organization' => $organization, + 'location' => $location, + 'project_data_profile' => $projectDataProfile, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_stored_info_type resource. + * + * @param string $organization + * @param string $location + * @param string $storedInfoType + * + * @return string The formatted organization_location_stored_info_type resource. + */ + public static function organizationLocationStoredInfoTypeName(string $organization, string $location, string $storedInfoType): string + { + return self::getPathTemplate('organizationLocationStoredInfoType')->render([ + 'organization' => $organization, + 'location' => $location, + 'stored_info_type' => $storedInfoType, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_location_table_data_profile resource. + * + * @param string $organization + * @param string $location + * @param string $tableDataProfile + * + * @return string The formatted organization_location_table_data_profile resource. + */ + public static function organizationLocationTableDataProfileName(string $organization, string $location, string $tableDataProfile): string + { + return self::getPathTemplate('organizationLocationTableDataProfile')->render([ + 'organization' => $organization, + 'location' => $location, + 'table_data_profile' => $tableDataProfile, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * organization_stored_info_type resource. + * + * @param string $organization + * @param string $storedInfoType + * + * @return string The formatted organization_stored_info_type resource. + */ + public static function organizationStoredInfoTypeName(string $organization, string $storedInfoType): string + { + return self::getPathTemplate('organizationStoredInfoType')->render([ + 'organization' => $organization, + 'stored_info_type' => $storedInfoType, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a project + * resource. + * + * @param string $project + * + * @return string The formatted project resource. + */ + public static function projectName(string $project): string + { + return self::getPathTemplate('project')->render([ + 'project' => $project, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_data_profile resource. + * + * @param string $organization + * @param string $location + * @param string $projectDataProfile + * + * @return string The formatted project_data_profile resource. + */ + public static function projectDataProfileName(string $organization, string $location, string $projectDataProfile): string + { + return self::getPathTemplate('projectDataProfile')->render([ + 'organization' => $organization, + 'location' => $location, + 'project_data_profile' => $projectDataProfile, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_deidentify_template resource. + * + * @param string $project + * @param string $deidentifyTemplate + * + * @return string The formatted project_deidentify_template resource. + */ + public static function projectDeidentifyTemplateName(string $project, string $deidentifyTemplate): string + { + return self::getPathTemplate('projectDeidentifyTemplate')->render([ + 'project' => $project, + 'deidentify_template' => $deidentifyTemplate, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_dlp_job resource. + * + * @param string $project + * @param string $dlpJob + * + * @return string The formatted project_dlp_job resource. + */ + public static function projectDlpJobName(string $project, string $dlpJob): string + { + return self::getPathTemplate('projectDlpJob')->render([ + 'project' => $project, + 'dlp_job' => $dlpJob, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_inspect_template resource. + * + * @param string $project + * @param string $inspectTemplate + * + * @return string The formatted project_inspect_template resource. + */ + public static function projectInspectTemplateName(string $project, string $inspectTemplate): string + { + return self::getPathTemplate('projectInspectTemplate')->render([ + 'project' => $project, + 'inspect_template' => $inspectTemplate, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_job_trigger resource. + * + * @param string $project + * @param string $jobTrigger + * + * @return string The formatted project_job_trigger resource. + */ + public static function projectJobTriggerName(string $project, string $jobTrigger): string + { + return self::getPathTemplate('projectJobTrigger')->render([ + 'project' => $project, + 'job_trigger' => $jobTrigger, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_column_data_profile resource. + * + * @param string $project + * @param string $location + * @param string $columnDataProfile + * + * @return string The formatted project_location_column_data_profile resource. + */ + public static function projectLocationColumnDataProfileName(string $project, string $location, string $columnDataProfile): string + { + return self::getPathTemplate('projectLocationColumnDataProfile')->render([ + 'project' => $project, + 'location' => $location, + 'column_data_profile' => $columnDataProfile, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_connection resource. + * + * @param string $project + * @param string $location + * @param string $connection + * + * @return string The formatted project_location_connection resource. + */ + public static function projectLocationConnectionName(string $project, string $location, string $connection): string + { + return self::getPathTemplate('projectLocationConnection')->render([ + 'project' => $project, + 'location' => $location, + 'connection' => $connection, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_deidentify_template resource. + * + * @param string $project + * @param string $location + * @param string $deidentifyTemplate + * + * @return string The formatted project_location_deidentify_template resource. + */ + public static function projectLocationDeidentifyTemplateName(string $project, string $location, string $deidentifyTemplate): string + { + return self::getPathTemplate('projectLocationDeidentifyTemplate')->render([ + 'project' => $project, + 'location' => $location, + 'deidentify_template' => $deidentifyTemplate, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_dlp_job resource. + * + * @param string $project + * @param string $location + * @param string $dlpJob + * + * @return string The formatted project_location_dlp_job resource. + */ + public static function projectLocationDlpJobName(string $project, string $location, string $dlpJob): string + { + return self::getPathTemplate('projectLocationDlpJob')->render([ + 'project' => $project, + 'location' => $location, + 'dlp_job' => $dlpJob, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_file_store_data_profile resource. + * + * @param string $project + * @param string $location + * @param string $fileStoreDataProfile + * + * @return string The formatted project_location_file_store_data_profile resource. + */ + public static function projectLocationFileStoreDataProfileName(string $project, string $location, string $fileStoreDataProfile): string + { + return self::getPathTemplate('projectLocationFileStoreDataProfile')->render([ + 'project' => $project, + 'location' => $location, + 'file_store_data_profile' => $fileStoreDataProfile, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_inspect_template resource. + * + * @param string $project + * @param string $location + * @param string $inspectTemplate + * + * @return string The formatted project_location_inspect_template resource. + */ + public static function projectLocationInspectTemplateName(string $project, string $location, string $inspectTemplate): string + { + return self::getPathTemplate('projectLocationInspectTemplate')->render([ + 'project' => $project, + 'location' => $location, + 'inspect_template' => $inspectTemplate, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_job_trigger resource. + * + * @param string $project + * @param string $location + * @param string $jobTrigger + * + * @return string The formatted project_location_job_trigger resource. + */ + public static function projectLocationJobTriggerName(string $project, string $location, string $jobTrigger): string + { + return self::getPathTemplate('projectLocationJobTrigger')->render([ + 'project' => $project, + 'location' => $location, + 'job_trigger' => $jobTrigger, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_project_data_profile resource. + * + * @param string $project + * @param string $location + * @param string $projectDataProfile + * + * @return string The formatted project_location_project_data_profile resource. + */ + public static function projectLocationProjectDataProfileName(string $project, string $location, string $projectDataProfile): string + { + return self::getPathTemplate('projectLocationProjectDataProfile')->render([ + 'project' => $project, + 'location' => $location, + 'project_data_profile' => $projectDataProfile, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_stored_info_type resource. + * + * @param string $project + * @param string $location + * @param string $storedInfoType + * + * @return string The formatted project_location_stored_info_type resource. + */ + public static function projectLocationStoredInfoTypeName(string $project, string $location, string $storedInfoType): string + { + return self::getPathTemplate('projectLocationStoredInfoType')->render([ + 'project' => $project, + 'location' => $location, + 'stored_info_type' => $storedInfoType, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_table_data_profile resource. + * + * @param string $project + * @param string $location + * @param string $tableDataProfile + * + * @return string The formatted project_location_table_data_profile resource. + */ + public static function projectLocationTableDataProfileName(string $project, string $location, string $tableDataProfile): string + { + return self::getPathTemplate('projectLocationTableDataProfile')->render([ + 'project' => $project, + 'location' => $location, + 'table_data_profile' => $tableDataProfile, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_stored_info_type resource. + * + * @param string $project + * @param string $storedInfoType + * + * @return string The formatted project_stored_info_type resource. + */ + public static function projectStoredInfoTypeName(string $project, string $storedInfoType): string + { + return self::getPathTemplate('projectStoredInfoType')->render([ + 'project' => $project, + 'stored_info_type' => $storedInfoType, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * stored_info_type resource. + * + * @param string $organization + * @param string $storedInfoType + * + * @return string The formatted stored_info_type resource. + */ + public static function storedInfoTypeName(string $organization, string $storedInfoType): string + { + return self::getPathTemplate('storedInfoType')->render([ + 'organization' => $organization, + 'stored_info_type' => $storedInfoType, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * table_data_profile resource. + * + * @param string $organization + * @param string $location + * @param string $tableDataProfile + * + * @return string The formatted table_data_profile resource. + */ + public static function tableDataProfileName(string $organization, string $location, string $tableDataProfile): string + { + return self::getPathTemplate('tableDataProfile')->render([ + 'organization' => $organization, + 'location' => $location, + 'table_data_profile' => $tableDataProfile, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - columnDataProfile: organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile} + * - connection: projects/{project}/locations/{location}/connections/{connection} + * - deidentifyTemplate: organizations/{organization}/deidentifyTemplates/{deidentify_template} + * - discoveryConfig: projects/{project}/locations/{location}/discoveryConfigs/{discovery_config} + * - dlpJob: projects/{project}/dlpJobs/{dlp_job} + * - fileStoreDataProfile: organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile} + * - inspectTemplate: organizations/{organization}/inspectTemplates/{inspect_template} + * - jobTrigger: projects/{project}/jobTriggers/{job_trigger} + * - location: projects/{project}/locations/{location} + * - organization: organizations/{organization} + * - organizationDeidentifyTemplate: organizations/{organization}/deidentifyTemplates/{deidentify_template} + * - organizationInspectTemplate: organizations/{organization}/inspectTemplates/{inspect_template} + * - organizationLocation: organizations/{organization}/locations/{location} + * - organizationLocationColumnDataProfile: organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile} + * - organizationLocationConnection: organizations/{organization}/locations/{location}/connections/{connection} + * - organizationLocationDeidentifyTemplate: organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template} + * - organizationLocationFileStoreDataProfile: organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile} + * - organizationLocationInspectTemplate: organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template} + * - organizationLocationProjectDataProfile: organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile} + * - organizationLocationStoredInfoType: organizations/{organization}/locations/{location}/storedInfoTypes/{stored_info_type} + * - organizationLocationTableDataProfile: organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile} + * - organizationStoredInfoType: organizations/{organization}/storedInfoTypes/{stored_info_type} + * - project: projects/{project} + * - projectDataProfile: organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile} + * - projectDeidentifyTemplate: projects/{project}/deidentifyTemplates/{deidentify_template} + * - projectDlpJob: projects/{project}/dlpJobs/{dlp_job} + * - projectInspectTemplate: projects/{project}/inspectTemplates/{inspect_template} + * - projectJobTrigger: projects/{project}/jobTriggers/{job_trigger} + * - projectLocationColumnDataProfile: projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile} + * - projectLocationConnection: projects/{project}/locations/{location}/connections/{connection} + * - projectLocationDeidentifyTemplate: projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template} + * - projectLocationDlpJob: projects/{project}/locations/{location}/dlpJobs/{dlp_job} + * - projectLocationFileStoreDataProfile: projects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile} + * - projectLocationInspectTemplate: projects/{project}/locations/{location}/inspectTemplates/{inspect_template} + * - projectLocationJobTrigger: projects/{project}/locations/{location}/jobTriggers/{job_trigger} + * - projectLocationProjectDataProfile: projects/{project}/locations/{location}/projectDataProfiles/{project_data_profile} + * - projectLocationStoredInfoType: projects/{project}/locations/{location}/storedInfoTypes/{stored_info_type} + * - projectLocationTableDataProfile: projects/{project}/locations/{location}/tableDataProfiles/{table_data_profile} + * - projectStoredInfoType: projects/{project}/storedInfoTypes/{stored_info_type} + * - storedInfoType: organizations/{organization}/storedInfoTypes/{stored_info_type} + * - tableDataProfile: organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'dlp.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Dlp\V2\DlpServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DlpServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Activate a job trigger. Causes the immediate execute of a trigger + * instead of waiting on the trigger event to occur. + * + * The async variant is {@see DlpServiceClient::activateJobTriggerAsync()} . + * + * @example samples/V2/DlpServiceClient/activate_job_trigger.php + * + * @param ActivateJobTriggerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DlpJob + * + * @throws ApiException Thrown if the API call fails. + */ + public function activateJobTrigger(ActivateJobTriggerRequest $request, array $callOptions = []): DlpJob + { + return $this->startApiCall('ActivateJobTrigger', $request, $callOptions)->wait(); + } + + /** + * Starts asynchronous cancellation on a long-running DlpJob. The server + * makes a best effort to cancel the DlpJob, but success is not + * guaranteed. + * See + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + * and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + * to learn more. + * + * The async variant is {@see DlpServiceClient::cancelDlpJobAsync()} . + * + * @example samples/V2/DlpServiceClient/cancel_dlp_job.php + * + * @param CancelDlpJobRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function cancelDlpJob(CancelDlpJobRequest $request, array $callOptions = []): void + { + $this->startApiCall('CancelDlpJob', $request, $callOptions)->wait(); + } + + /** + * Create a Connection to an external data source. + * + * The async variant is {@see DlpServiceClient::createConnectionAsync()} . + * + * @example samples/V2/DlpServiceClient/create_connection.php + * + * @param CreateConnectionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Connection + * + * @throws ApiException Thrown if the API call fails. + */ + public function createConnection(CreateConnectionRequest $request, array $callOptions = []): Connection + { + return $this->startApiCall('CreateConnection', $request, $callOptions)->wait(); + } + + /** + * Creates a DeidentifyTemplate for reusing frequently used configuration + * for de-identifying content, images, and storage. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid + * to learn more. + * + * The async variant is {@see DlpServiceClient::createDeidentifyTemplateAsync()} . + * + * @example samples/V2/DlpServiceClient/create_deidentify_template.php + * + * @param CreateDeidentifyTemplateRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DeidentifyTemplate + * + * @throws ApiException Thrown if the API call fails. + */ + public function createDeidentifyTemplate(CreateDeidentifyTemplateRequest $request, array $callOptions = []): DeidentifyTemplate + { + return $this->startApiCall('CreateDeidentifyTemplate', $request, $callOptions)->wait(); + } + + /** + * Creates a config for discovery to scan and profile storage. + * + * The async variant is {@see DlpServiceClient::createDiscoveryConfigAsync()} . + * + * @example samples/V2/DlpServiceClient/create_discovery_config.php + * + * @param CreateDiscoveryConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DiscoveryConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function createDiscoveryConfig(CreateDiscoveryConfigRequest $request, array $callOptions = []): DiscoveryConfig + { + return $this->startApiCall('CreateDiscoveryConfig', $request, $callOptions)->wait(); + } + + /** + * Creates a new job to inspect storage or calculate risk metrics. + * See + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + * and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + * to learn more. + * + * When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the + * system will automatically choose what detectors to run. By default this may + * be all types, but may change over time as detectors are updated. + * + * The async variant is {@see DlpServiceClient::createDlpJobAsync()} . + * + * @example samples/V2/DlpServiceClient/create_dlp_job.php + * + * @param CreateDlpJobRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DlpJob + * + * @throws ApiException Thrown if the API call fails. + */ + public function createDlpJob(CreateDlpJobRequest $request, array $callOptions = []): DlpJob + { + return $this->startApiCall('CreateDlpJob', $request, $callOptions)->wait(); + } + + /** + * Creates an InspectTemplate for reusing frequently used configuration + * for inspecting content, images, and storage. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates + * to learn more. + * + * The async variant is {@see DlpServiceClient::createInspectTemplateAsync()} . + * + * @example samples/V2/DlpServiceClient/create_inspect_template.php + * + * @param CreateInspectTemplateRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return InspectTemplate + * + * @throws ApiException Thrown if the API call fails. + */ + public function createInspectTemplate(CreateInspectTemplateRequest $request, array $callOptions = []): InspectTemplate + { + return $this->startApiCall('CreateInspectTemplate', $request, $callOptions)->wait(); + } + + /** + * Creates a job trigger to run DLP actions such as scanning storage for + * sensitive information on a set schedule. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers + * to learn more. + * + * The async variant is {@see DlpServiceClient::createJobTriggerAsync()} . + * + * @example samples/V2/DlpServiceClient/create_job_trigger.php + * + * @param CreateJobTriggerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return JobTrigger + * + * @throws ApiException Thrown if the API call fails. + */ + public function createJobTrigger(CreateJobTriggerRequest $request, array $callOptions = []): JobTrigger + { + return $this->startApiCall('CreateJobTrigger', $request, $callOptions)->wait(); + } + + /** + * Creates a pre-built stored infoType to be used for inspection. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes + * to learn more. + * + * The async variant is {@see DlpServiceClient::createStoredInfoTypeAsync()} . + * + * @example samples/V2/DlpServiceClient/create_stored_info_type.php + * + * @param CreateStoredInfoTypeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return StoredInfoType + * + * @throws ApiException Thrown if the API call fails. + */ + public function createStoredInfoType(CreateStoredInfoTypeRequest $request, array $callOptions = []): StoredInfoType + { + return $this->startApiCall('CreateStoredInfoType', $request, $callOptions)->wait(); + } + + /** + * De-identifies potentially sensitive info from a ContentItem. + * This method has limits on input size and output size. + * See + * https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data + * to learn more. + * + * When no InfoTypes or CustomInfoTypes are specified in this request, the + * system will automatically choose what detectors to run. By default this may + * be all types, but may change over time as detectors are updated. + * + * The async variant is {@see DlpServiceClient::deidentifyContentAsync()} . + * + * @example samples/V2/DlpServiceClient/deidentify_content.php + * + * @param DeidentifyContentRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DeidentifyContentResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deidentifyContent(DeidentifyContentRequest $request, array $callOptions = []): DeidentifyContentResponse + { + return $this->startApiCall('DeidentifyContent', $request, $callOptions)->wait(); + } + + /** + * Delete a Connection. + * + * The async variant is {@see DlpServiceClient::deleteConnectionAsync()} . + * + * @example samples/V2/DlpServiceClient/delete_connection.php + * + * @param DeleteConnectionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteConnection(DeleteConnectionRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteConnection', $request, $callOptions)->wait(); + } + + /** + * Deletes a DeidentifyTemplate. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid + * to learn more. + * + * The async variant is {@see DlpServiceClient::deleteDeidentifyTemplateAsync()} . + * + * @example samples/V2/DlpServiceClient/delete_deidentify_template.php + * + * @param DeleteDeidentifyTemplateRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteDeidentifyTemplate', $request, $callOptions)->wait(); + } + + /** + * Deletes a discovery configuration. + * + * The async variant is {@see DlpServiceClient::deleteDiscoveryConfigAsync()} . + * + * @example samples/V2/DlpServiceClient/delete_discovery_config.php + * + * @param DeleteDiscoveryConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteDiscoveryConfig(DeleteDiscoveryConfigRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteDiscoveryConfig', $request, $callOptions)->wait(); + } + + /** + * Deletes a long-running DlpJob. This method indicates that the client is + * no longer interested in the DlpJob result. The job will be canceled if + * possible. + * See + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + * and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + * to learn more. + * + * The async variant is {@see DlpServiceClient::deleteDlpJobAsync()} . + * + * @example samples/V2/DlpServiceClient/delete_dlp_job.php + * + * @param DeleteDlpJobRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteDlpJob(DeleteDlpJobRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteDlpJob', $request, $callOptions)->wait(); + } + + /** + * Delete a FileStoreDataProfile. Will not prevent the profile from being + * regenerated if the resource is still included in a discovery configuration. + * + * The async variant is {@see DlpServiceClient::deleteFileStoreDataProfileAsync()} + * . + * + * @example samples/V2/DlpServiceClient/delete_file_store_data_profile.php + * + * @param DeleteFileStoreDataProfileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteFileStoreDataProfile(DeleteFileStoreDataProfileRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteFileStoreDataProfile', $request, $callOptions)->wait(); + } + + /** + * Deletes an InspectTemplate. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates + * to learn more. + * + * The async variant is {@see DlpServiceClient::deleteInspectTemplateAsync()} . + * + * @example samples/V2/DlpServiceClient/delete_inspect_template.php + * + * @param DeleteInspectTemplateRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteInspectTemplate(DeleteInspectTemplateRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteInspectTemplate', $request, $callOptions)->wait(); + } + + /** + * Deletes a job trigger. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers + * to learn more. + * + * The async variant is {@see DlpServiceClient::deleteJobTriggerAsync()} . + * + * @example samples/V2/DlpServiceClient/delete_job_trigger.php + * + * @param DeleteJobTriggerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteJobTrigger(DeleteJobTriggerRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteJobTrigger', $request, $callOptions)->wait(); + } + + /** + * Deletes a stored infoType. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes + * to learn more. + * + * The async variant is {@see DlpServiceClient::deleteStoredInfoTypeAsync()} . + * + * @example samples/V2/DlpServiceClient/delete_stored_info_type.php + * + * @param DeleteStoredInfoTypeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteStoredInfoType(DeleteStoredInfoTypeRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteStoredInfoType', $request, $callOptions)->wait(); + } + + /** + * Delete a TableDataProfile. Will not prevent the profile from being + * regenerated if the table is still included in a discovery configuration. + * + * The async variant is {@see DlpServiceClient::deleteTableDataProfileAsync()} . + * + * @example samples/V2/DlpServiceClient/delete_table_data_profile.php + * + * @param DeleteTableDataProfileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteTableDataProfile(DeleteTableDataProfileRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteTableDataProfile', $request, $callOptions)->wait(); + } + + /** + * Finish a running hybrid DlpJob. Triggers the finalization steps and running + * of any enabled actions that have not yet run. + * + * The async variant is {@see DlpServiceClient::finishDlpJobAsync()} . + * + * @example samples/V2/DlpServiceClient/finish_dlp_job.php + * + * @param FinishDlpJobRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function finishDlpJob(FinishDlpJobRequest $request, array $callOptions = []): void + { + $this->startApiCall('FinishDlpJob', $request, $callOptions)->wait(); + } + + /** + * Gets a column data profile. + * + * The async variant is {@see DlpServiceClient::getColumnDataProfileAsync()} . + * + * @example samples/V2/DlpServiceClient/get_column_data_profile.php + * + * @param GetColumnDataProfileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ColumnDataProfile + * + * @throws ApiException Thrown if the API call fails. + */ + public function getColumnDataProfile(GetColumnDataProfileRequest $request, array $callOptions = []): ColumnDataProfile + { + return $this->startApiCall('GetColumnDataProfile', $request, $callOptions)->wait(); + } + + /** + * Get a Connection by name. + * + * The async variant is {@see DlpServiceClient::getConnectionAsync()} . + * + * @example samples/V2/DlpServiceClient/get_connection.php + * + * @param GetConnectionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Connection + * + * @throws ApiException Thrown if the API call fails. + */ + public function getConnection(GetConnectionRequest $request, array $callOptions = []): Connection + { + return $this->startApiCall('GetConnection', $request, $callOptions)->wait(); + } + + /** + * Gets a DeidentifyTemplate. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid + * to learn more. + * + * The async variant is {@see DlpServiceClient::getDeidentifyTemplateAsync()} . + * + * @example samples/V2/DlpServiceClient/get_deidentify_template.php + * + * @param GetDeidentifyTemplateRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DeidentifyTemplate + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDeidentifyTemplate(GetDeidentifyTemplateRequest $request, array $callOptions = []): DeidentifyTemplate + { + return $this->startApiCall('GetDeidentifyTemplate', $request, $callOptions)->wait(); + } + + /** + * Gets a discovery configuration. + * + * The async variant is {@see DlpServiceClient::getDiscoveryConfigAsync()} . + * + * @example samples/V2/DlpServiceClient/get_discovery_config.php + * + * @param GetDiscoveryConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DiscoveryConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDiscoveryConfig(GetDiscoveryConfigRequest $request, array $callOptions = []): DiscoveryConfig + { + return $this->startApiCall('GetDiscoveryConfig', $request, $callOptions)->wait(); + } + + /** + * Gets the latest state of a long-running DlpJob. + * See + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + * and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + * to learn more. + * + * The async variant is {@see DlpServiceClient::getDlpJobAsync()} . + * + * @example samples/V2/DlpServiceClient/get_dlp_job.php + * + * @param GetDlpJobRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DlpJob + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDlpJob(GetDlpJobRequest $request, array $callOptions = []): DlpJob + { + return $this->startApiCall('GetDlpJob', $request, $callOptions)->wait(); + } + + /** + * Gets a file store data profile. + * + * The async variant is {@see DlpServiceClient::getFileStoreDataProfileAsync()} . + * + * @example samples/V2/DlpServiceClient/get_file_store_data_profile.php + * + * @param GetFileStoreDataProfileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return FileStoreDataProfile + * + * @throws ApiException Thrown if the API call fails. + */ + public function getFileStoreDataProfile(GetFileStoreDataProfileRequest $request, array $callOptions = []): FileStoreDataProfile + { + return $this->startApiCall('GetFileStoreDataProfile', $request, $callOptions)->wait(); + } + + /** + * Gets an InspectTemplate. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates + * to learn more. + * + * The async variant is {@see DlpServiceClient::getInspectTemplateAsync()} . + * + * @example samples/V2/DlpServiceClient/get_inspect_template.php + * + * @param GetInspectTemplateRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return InspectTemplate + * + * @throws ApiException Thrown if the API call fails. + */ + public function getInspectTemplate(GetInspectTemplateRequest $request, array $callOptions = []): InspectTemplate + { + return $this->startApiCall('GetInspectTemplate', $request, $callOptions)->wait(); + } + + /** + * Gets a job trigger. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers + * to learn more. + * + * The async variant is {@see DlpServiceClient::getJobTriggerAsync()} . + * + * @example samples/V2/DlpServiceClient/get_job_trigger.php + * + * @param GetJobTriggerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return JobTrigger + * + * @throws ApiException Thrown if the API call fails. + */ + public function getJobTrigger(GetJobTriggerRequest $request, array $callOptions = []): JobTrigger + { + return $this->startApiCall('GetJobTrigger', $request, $callOptions)->wait(); + } + + /** + * Gets a project data profile. + * + * The async variant is {@see DlpServiceClient::getProjectDataProfileAsync()} . + * + * @example samples/V2/DlpServiceClient/get_project_data_profile.php + * + * @param GetProjectDataProfileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ProjectDataProfile + * + * @throws ApiException Thrown if the API call fails. + */ + public function getProjectDataProfile(GetProjectDataProfileRequest $request, array $callOptions = []): ProjectDataProfile + { + return $this->startApiCall('GetProjectDataProfile', $request, $callOptions)->wait(); + } + + /** + * Gets a stored infoType. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes + * to learn more. + * + * The async variant is {@see DlpServiceClient::getStoredInfoTypeAsync()} . + * + * @example samples/V2/DlpServiceClient/get_stored_info_type.php + * + * @param GetStoredInfoTypeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return StoredInfoType + * + * @throws ApiException Thrown if the API call fails. + */ + public function getStoredInfoType(GetStoredInfoTypeRequest $request, array $callOptions = []): StoredInfoType + { + return $this->startApiCall('GetStoredInfoType', $request, $callOptions)->wait(); + } + + /** + * Gets a table data profile. + * + * The async variant is {@see DlpServiceClient::getTableDataProfileAsync()} . + * + * @example samples/V2/DlpServiceClient/get_table_data_profile.php + * + * @param GetTableDataProfileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TableDataProfile + * + * @throws ApiException Thrown if the API call fails. + */ + public function getTableDataProfile(GetTableDataProfileRequest $request, array $callOptions = []): TableDataProfile + { + return $this->startApiCall('GetTableDataProfile', $request, $callOptions)->wait(); + } + + /** + * Inspect hybrid content and store findings to a job. + * To review the findings, inspect the job. Inspection will occur + * asynchronously. + * + * The async variant is {@see DlpServiceClient::hybridInspectDlpJobAsync()} . + * + * @example samples/V2/DlpServiceClient/hybrid_inspect_dlp_job.php + * + * @param HybridInspectDlpJobRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return HybridInspectResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function hybridInspectDlpJob(HybridInspectDlpJobRequest $request, array $callOptions = []): HybridInspectResponse + { + return $this->startApiCall('HybridInspectDlpJob', $request, $callOptions)->wait(); + } + + /** + * Inspect hybrid content and store findings to a trigger. The inspection + * will be processed asynchronously. To review the findings monitor the + * jobs within the trigger. + * + * The async variant is {@see DlpServiceClient::hybridInspectJobTriggerAsync()} . + * + * @example samples/V2/DlpServiceClient/hybrid_inspect_job_trigger.php + * + * @param HybridInspectJobTriggerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return HybridInspectResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function hybridInspectJobTrigger(HybridInspectJobTriggerRequest $request, array $callOptions = []): HybridInspectResponse + { + return $this->startApiCall('HybridInspectJobTrigger', $request, $callOptions)->wait(); + } + + /** + * Finds potentially sensitive info in content. + * This method has limits on input size, processing time, and output size. + * + * When no InfoTypes or CustomInfoTypes are specified in this request, the + * system will automatically choose what detectors to run. By default this may + * be all types, but may change over time as detectors are updated. + * + * For how to guides, see + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-images + * and + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text, + * + * The async variant is {@see DlpServiceClient::inspectContentAsync()} . + * + * @example samples/V2/DlpServiceClient/inspect_content.php + * + * @param InspectContentRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return InspectContentResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function inspectContent(InspectContentRequest $request, array $callOptions = []): InspectContentResponse + { + return $this->startApiCall('InspectContent', $request, $callOptions)->wait(); + } + + /** + * Lists column data profiles for an organization. + * + * The async variant is {@see DlpServiceClient::listColumnDataProfilesAsync()} . + * + * @example samples/V2/DlpServiceClient/list_column_data_profiles.php + * + * @param ListColumnDataProfilesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listColumnDataProfiles(ListColumnDataProfilesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListColumnDataProfiles', $request, $callOptions); + } + + /** + * Lists Connections in a parent. Use SearchConnections to see all connections + * within an organization. + * + * The async variant is {@see DlpServiceClient::listConnectionsAsync()} . + * + * @example samples/V2/DlpServiceClient/list_connections.php + * + * @param ListConnectionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listConnections(ListConnectionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListConnections', $request, $callOptions); + } + + /** + * Lists DeidentifyTemplates. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid + * to learn more. + * + * The async variant is {@see DlpServiceClient::listDeidentifyTemplatesAsync()} . + * + * @example samples/V2/DlpServiceClient/list_deidentify_templates.php + * + * @param ListDeidentifyTemplatesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDeidentifyTemplates(ListDeidentifyTemplatesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDeidentifyTemplates', $request, $callOptions); + } + + /** + * Lists discovery configurations. + * + * The async variant is {@see DlpServiceClient::listDiscoveryConfigsAsync()} . + * + * @example samples/V2/DlpServiceClient/list_discovery_configs.php + * + * @param ListDiscoveryConfigsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDiscoveryConfigs(ListDiscoveryConfigsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDiscoveryConfigs', $request, $callOptions); + } + + /** + * Lists DlpJobs that match the specified filter in the request. + * See + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + * and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + * to learn more. + * + * The async variant is {@see DlpServiceClient::listDlpJobsAsync()} . + * + * @example samples/V2/DlpServiceClient/list_dlp_jobs.php + * + * @param ListDlpJobsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDlpJobs(ListDlpJobsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDlpJobs', $request, $callOptions); + } + + /** + * Lists file store data profiles for an organization. + * + * The async variant is {@see DlpServiceClient::listFileStoreDataProfilesAsync()} . + * + * @example samples/V2/DlpServiceClient/list_file_store_data_profiles.php + * + * @param ListFileStoreDataProfilesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listFileStoreDataProfiles(ListFileStoreDataProfilesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListFileStoreDataProfiles', $request, $callOptions); + } + + /** + * Returns a list of the sensitive information types that the DLP API + * supports. See + * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference + * to learn more. + * + * The async variant is {@see DlpServiceClient::listInfoTypesAsync()} . + * + * @example samples/V2/DlpServiceClient/list_info_types.php + * + * @param ListInfoTypesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ListInfoTypesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listInfoTypes(ListInfoTypesRequest $request, array $callOptions = []): ListInfoTypesResponse + { + return $this->startApiCall('ListInfoTypes', $request, $callOptions)->wait(); + } + + /** + * Lists InspectTemplates. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates + * to learn more. + * + * The async variant is {@see DlpServiceClient::listInspectTemplatesAsync()} . + * + * @example samples/V2/DlpServiceClient/list_inspect_templates.php + * + * @param ListInspectTemplatesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listInspectTemplates(ListInspectTemplatesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListInspectTemplates', $request, $callOptions); + } + + /** + * Lists job triggers. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers + * to learn more. + * + * The async variant is {@see DlpServiceClient::listJobTriggersAsync()} . + * + * @example samples/V2/DlpServiceClient/list_job_triggers.php + * + * @param ListJobTriggersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listJobTriggers(ListJobTriggersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListJobTriggers', $request, $callOptions); + } + + /** + * Lists project data profiles for an organization. + * + * The async variant is {@see DlpServiceClient::listProjectDataProfilesAsync()} . + * + * @example samples/V2/DlpServiceClient/list_project_data_profiles.php + * + * @param ListProjectDataProfilesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listProjectDataProfiles(ListProjectDataProfilesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListProjectDataProfiles', $request, $callOptions); + } + + /** + * Lists stored infoTypes. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes + * to learn more. + * + * The async variant is {@see DlpServiceClient::listStoredInfoTypesAsync()} . + * + * @example samples/V2/DlpServiceClient/list_stored_info_types.php + * + * @param ListStoredInfoTypesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listStoredInfoTypes(ListStoredInfoTypesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListStoredInfoTypes', $request, $callOptions); + } + + /** + * Lists table data profiles for an organization. + * + * The async variant is {@see DlpServiceClient::listTableDataProfilesAsync()} . + * + * @example samples/V2/DlpServiceClient/list_table_data_profiles.php + * + * @param ListTableDataProfilesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listTableDataProfiles(ListTableDataProfilesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListTableDataProfiles', $request, $callOptions); + } + + /** + * Redacts potentially sensitive info from an image. + * This method has limits on input size, processing time, and output size. + * See + * https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images + * to learn more. + * + * When no InfoTypes or CustomInfoTypes are specified in this request, the + * system will automatically choose what detectors to run. By default this may + * be all types, but may change over time as detectors are updated. + * + * Only the first frame of each multiframe image is redacted. Metadata and + * other frames are omitted in the response. + * + * The async variant is {@see DlpServiceClient::redactImageAsync()} . + * + * @example samples/V2/DlpServiceClient/redact_image.php + * + * @param RedactImageRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RedactImageResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function redactImage(RedactImageRequest $request, array $callOptions = []): RedactImageResponse + { + return $this->startApiCall('RedactImage', $request, $callOptions)->wait(); + } + + /** + * Re-identifies content that has been de-identified. + * See + * https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example + * to learn more. + * + * The async variant is {@see DlpServiceClient::reidentifyContentAsync()} . + * + * @example samples/V2/DlpServiceClient/reidentify_content.php + * + * @param ReidentifyContentRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ReidentifyContentResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function reidentifyContent(ReidentifyContentRequest $request, array $callOptions = []): ReidentifyContentResponse + { + return $this->startApiCall('ReidentifyContent', $request, $callOptions)->wait(); + } + + /** + * Searches for Connections in a parent. + * + * The async variant is {@see DlpServiceClient::searchConnectionsAsync()} . + * + * @example samples/V2/DlpServiceClient/search_connections.php + * + * @param SearchConnectionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function searchConnections(SearchConnectionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('SearchConnections', $request, $callOptions); + } + + /** + * Update a Connection. + * + * The async variant is {@see DlpServiceClient::updateConnectionAsync()} . + * + * @example samples/V2/DlpServiceClient/update_connection.php + * + * @param UpdateConnectionRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Connection + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateConnection(UpdateConnectionRequest $request, array $callOptions = []): Connection + { + return $this->startApiCall('UpdateConnection', $request, $callOptions)->wait(); + } + + /** + * Updates the DeidentifyTemplate. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid + * to learn more. + * + * The async variant is {@see DlpServiceClient::updateDeidentifyTemplateAsync()} . + * + * @example samples/V2/DlpServiceClient/update_deidentify_template.php + * + * @param UpdateDeidentifyTemplateRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DeidentifyTemplate + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateDeidentifyTemplate(UpdateDeidentifyTemplateRequest $request, array $callOptions = []): DeidentifyTemplate + { + return $this->startApiCall('UpdateDeidentifyTemplate', $request, $callOptions)->wait(); + } + + /** + * Updates a discovery configuration. + * + * The async variant is {@see DlpServiceClient::updateDiscoveryConfigAsync()} . + * + * @example samples/V2/DlpServiceClient/update_discovery_config.php + * + * @param UpdateDiscoveryConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DiscoveryConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateDiscoveryConfig(UpdateDiscoveryConfigRequest $request, array $callOptions = []): DiscoveryConfig + { + return $this->startApiCall('UpdateDiscoveryConfig', $request, $callOptions)->wait(); + } + + /** + * Updates the InspectTemplate. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates + * to learn more. + * + * The async variant is {@see DlpServiceClient::updateInspectTemplateAsync()} . + * + * @example samples/V2/DlpServiceClient/update_inspect_template.php + * + * @param UpdateInspectTemplateRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return InspectTemplate + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateInspectTemplate(UpdateInspectTemplateRequest $request, array $callOptions = []): InspectTemplate + { + return $this->startApiCall('UpdateInspectTemplate', $request, $callOptions)->wait(); + } + + /** + * Updates a job trigger. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers + * to learn more. + * + * The async variant is {@see DlpServiceClient::updateJobTriggerAsync()} . + * + * @example samples/V2/DlpServiceClient/update_job_trigger.php + * + * @param UpdateJobTriggerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return JobTrigger + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateJobTrigger(UpdateJobTriggerRequest $request, array $callOptions = []): JobTrigger + { + return $this->startApiCall('UpdateJobTrigger', $request, $callOptions)->wait(); + } + + /** + * Updates the stored infoType by creating a new version. The existing version + * will continue to be used until the new version is ready. + * See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes + * to learn more. + * + * The async variant is {@see DlpServiceClient::updateStoredInfoTypeAsync()} . + * + * @example samples/V2/DlpServiceClient/update_stored_info_type.php + * + * @param UpdateStoredInfoTypeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return StoredInfoType + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateStoredInfoType(UpdateStoredInfoTypeRequest $request, array $callOptions = []): StoredInfoType + { + return $this->startApiCall('UpdateStoredInfoType', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Dlp/v2/src/V2/gapic_metadata.json b/owl-bot-staging/Dlp/v2/src/V2/gapic_metadata.json new file mode 100644 index 000000000000..d3726bb9688e --- /dev/null +++ b/owl-bot-staging/Dlp/v2/src/V2/gapic_metadata.json @@ -0,0 +1,293 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.privacy.dlp.v2", + "libraryPackage": "Google\\Cloud\\Dlp\\V2", + "services": { + "DlpService": { + "clients": { + "grpc": { + "libraryClient": "DlpServiceGapicClient", + "rpcs": { + "ActivateJobTrigger": { + "methods": [ + "activateJobTrigger" + ] + }, + "CancelDlpJob": { + "methods": [ + "cancelDlpJob" + ] + }, + "CreateConnection": { + "methods": [ + "createConnection" + ] + }, + "CreateDeidentifyTemplate": { + "methods": [ + "createDeidentifyTemplate" + ] + }, + "CreateDiscoveryConfig": { + "methods": [ + "createDiscoveryConfig" + ] + }, + "CreateDlpJob": { + "methods": [ + "createDlpJob" + ] + }, + "CreateInspectTemplate": { + "methods": [ + "createInspectTemplate" + ] + }, + "CreateJobTrigger": { + "methods": [ + "createJobTrigger" + ] + }, + "CreateStoredInfoType": { + "methods": [ + "createStoredInfoType" + ] + }, + "DeidentifyContent": { + "methods": [ + "deidentifyContent" + ] + }, + "DeleteConnection": { + "methods": [ + "deleteConnection" + ] + }, + "DeleteDeidentifyTemplate": { + "methods": [ + "deleteDeidentifyTemplate" + ] + }, + "DeleteDiscoveryConfig": { + "methods": [ + "deleteDiscoveryConfig" + ] + }, + "DeleteDlpJob": { + "methods": [ + "deleteDlpJob" + ] + }, + "DeleteFileStoreDataProfile": { + "methods": [ + "deleteFileStoreDataProfile" + ] + }, + "DeleteInspectTemplate": { + "methods": [ + "deleteInspectTemplate" + ] + }, + "DeleteJobTrigger": { + "methods": [ + "deleteJobTrigger" + ] + }, + "DeleteStoredInfoType": { + "methods": [ + "deleteStoredInfoType" + ] + }, + "DeleteTableDataProfile": { + "methods": [ + "deleteTableDataProfile" + ] + }, + "FinishDlpJob": { + "methods": [ + "finishDlpJob" + ] + }, + "GetColumnDataProfile": { + "methods": [ + "getColumnDataProfile" + ] + }, + "GetConnection": { + "methods": [ + "getConnection" + ] + }, + "GetDeidentifyTemplate": { + "methods": [ + "getDeidentifyTemplate" + ] + }, + "GetDiscoveryConfig": { + "methods": [ + "getDiscoveryConfig" + ] + }, + "GetDlpJob": { + "methods": [ + "getDlpJob" + ] + }, + "GetFileStoreDataProfile": { + "methods": [ + "getFileStoreDataProfile" + ] + }, + "GetInspectTemplate": { + "methods": [ + "getInspectTemplate" + ] + }, + "GetJobTrigger": { + "methods": [ + "getJobTrigger" + ] + }, + "GetProjectDataProfile": { + "methods": [ + "getProjectDataProfile" + ] + }, + "GetStoredInfoType": { + "methods": [ + "getStoredInfoType" + ] + }, + "GetTableDataProfile": { + "methods": [ + "getTableDataProfile" + ] + }, + "HybridInspectDlpJob": { + "methods": [ + "hybridInspectDlpJob" + ] + }, + "HybridInspectJobTrigger": { + "methods": [ + "hybridInspectJobTrigger" + ] + }, + "InspectContent": { + "methods": [ + "inspectContent" + ] + }, + "ListColumnDataProfiles": { + "methods": [ + "listColumnDataProfiles" + ] + }, + "ListConnections": { + "methods": [ + "listConnections" + ] + }, + "ListDeidentifyTemplates": { + "methods": [ + "listDeidentifyTemplates" + ] + }, + "ListDiscoveryConfigs": { + "methods": [ + "listDiscoveryConfigs" + ] + }, + "ListDlpJobs": { + "methods": [ + "listDlpJobs" + ] + }, + "ListFileStoreDataProfiles": { + "methods": [ + "listFileStoreDataProfiles" + ] + }, + "ListInfoTypes": { + "methods": [ + "listInfoTypes" + ] + }, + "ListInspectTemplates": { + "methods": [ + "listInspectTemplates" + ] + }, + "ListJobTriggers": { + "methods": [ + "listJobTriggers" + ] + }, + "ListProjectDataProfiles": { + "methods": [ + "listProjectDataProfiles" + ] + }, + "ListStoredInfoTypes": { + "methods": [ + "listStoredInfoTypes" + ] + }, + "ListTableDataProfiles": { + "methods": [ + "listTableDataProfiles" + ] + }, + "RedactImage": { + "methods": [ + "redactImage" + ] + }, + "ReidentifyContent": { + "methods": [ + "reidentifyContent" + ] + }, + "SearchConnections": { + "methods": [ + "searchConnections" + ] + }, + "UpdateConnection": { + "methods": [ + "updateConnection" + ] + }, + "UpdateDeidentifyTemplate": { + "methods": [ + "updateDeidentifyTemplate" + ] + }, + "UpdateDiscoveryConfig": { + "methods": [ + "updateDiscoveryConfig" + ] + }, + "UpdateInspectTemplate": { + "methods": [ + "updateInspectTemplate" + ] + }, + "UpdateJobTrigger": { + "methods": [ + "updateJobTrigger" + ] + }, + "UpdateStoredInfoType": { + "methods": [ + "updateStoredInfoType" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_client_config.json b/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_client_config.json new file mode 100644 index 000000000000..5850bca2a2e0 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_client_config.json @@ -0,0 +1,320 @@ +{ + "interfaces": { + "google.privacy.dlp.v2.DlpService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE", + "DEADLINE_EXCEEDED" + ], + "no_retry_1_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 300000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 300000, + "total_timeout_millis": 300000 + }, + "no_retry_1_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 300000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 300000, + "total_timeout_millis": 300000 + } + }, + "methods": { + "ActivateJobTrigger": { + "timeout_millis": 300000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CancelDlpJob": { + "timeout_millis": 300000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateConnection": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateDeidentifyTemplate": { + "timeout_millis": 300000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateDiscoveryConfig": { + "timeout_millis": 300000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateDlpJob": { + "timeout_millis": 300000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateInspectTemplate": { + "timeout_millis": 300000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateJobTrigger": { + "timeout_millis": 300000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateStoredInfoType": { + "timeout_millis": 300000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeidentifyContent": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteConnection": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteDeidentifyTemplate": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteDiscoveryConfig": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteDlpJob": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteFileStoreDataProfile": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteInspectTemplate": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteJobTrigger": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteStoredInfoType": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteTableDataProfile": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "FinishDlpJob": { + "timeout_millis": 300000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetColumnDataProfile": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetConnection": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetDeidentifyTemplate": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDiscoveryConfig": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDlpJob": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetFileStoreDataProfile": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetInspectTemplate": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetJobTrigger": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetProjectDataProfile": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetStoredInfoType": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetTableDataProfile": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "HybridInspectDlpJob": { + "timeout_millis": 300000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "HybridInspectJobTrigger": { + "timeout_millis": 300000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "InspectContent": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListColumnDataProfiles": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListConnections": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListDeidentifyTemplates": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListDiscoveryConfigs": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListDlpJobs": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListFileStoreDataProfiles": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListInfoTypes": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListInspectTemplates": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListJobTriggers": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListProjectDataProfiles": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListStoredInfoTypes": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListTableDataProfiles": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "RedactImage": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ReidentifyContent": { + "timeout_millis": 300000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "SearchConnections": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateConnection": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateDeidentifyTemplate": { + "timeout_millis": 300000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateDiscoveryConfig": { + "timeout_millis": 300000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateInspectTemplate": { + "timeout_millis": 300000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateJobTrigger": { + "timeout_millis": 300000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateStoredInfoType": { + "timeout_millis": 300000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_descriptor_config.php b/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_descriptor_config.php new file mode 100644 index 000000000000..83e6179cf330 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_descriptor_config.php @@ -0,0 +1,827 @@ + [ + 'google.privacy.dlp.v2.DlpService' => [ + 'ActivateJobTrigger' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\DlpJob', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CancelDlpJob' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CreateConnection' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\Connection', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDeidentifyTemplate' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\DeidentifyTemplate', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDiscoveryConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\DiscoveryConfig', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDlpJob' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\DlpJob', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateInspectTemplate' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\InspectTemplate', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateJobTrigger' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\JobTrigger', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateStoredInfoType' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\StoredInfoType', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeidentifyContent' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\DeidentifyContentResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteConnection' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDeidentifyTemplate' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDiscoveryConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDlpJob' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteFileStoreDataProfile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteInspectTemplate' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteJobTrigger' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteStoredInfoType' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTableDataProfile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'FinishDlpJob' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetColumnDataProfile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\ColumnDataProfile', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetConnection' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\Connection', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDeidentifyTemplate' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\DeidentifyTemplate', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDiscoveryConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\DiscoveryConfig', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDlpJob' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\DlpJob', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetFileStoreDataProfile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\FileStoreDataProfile', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetInspectTemplate' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\InspectTemplate', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetJobTrigger' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\JobTrigger', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetProjectDataProfile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\ProjectDataProfile', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetStoredInfoType' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\StoredInfoType', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetTableDataProfile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\TableDataProfile', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'HybridInspectDlpJob' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\HybridInspectResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'HybridInspectJobTrigger' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\HybridInspectResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'InspectContent' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\InspectContentResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListColumnDataProfiles' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getColumnDataProfiles', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\ListColumnDataProfilesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListConnections' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getConnections', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\ListConnectionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDeidentifyTemplates' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDeidentifyTemplates', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\ListDeidentifyTemplatesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDiscoveryConfigs' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDiscoveryConfigs', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\ListDiscoveryConfigsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDlpJobs' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getJobs', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\ListDlpJobsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListFileStoreDataProfiles' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getFileStoreDataProfiles', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\ListFileStoreDataProfilesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListInfoTypes' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\ListInfoTypesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListInspectTemplates' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getInspectTemplates', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\ListInspectTemplatesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListJobTriggers' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getJobTriggers', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\ListJobTriggersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListProjectDataProfiles' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getProjectDataProfiles', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\ListProjectDataProfilesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListStoredInfoTypes' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getStoredInfoTypes', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\ListStoredInfoTypesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListTableDataProfiles' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getTableDataProfiles', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\ListTableDataProfilesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'RedactImage' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\RedactImageResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ReidentifyContent' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\ReidentifyContentResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'SearchConnections' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getConnections', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\SearchConnectionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateConnection' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\Connection', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateDeidentifyTemplate' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\DeidentifyTemplate', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateDiscoveryConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\DiscoveryConfig', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateInspectTemplate' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\InspectTemplate', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateJobTrigger' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\JobTrigger', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateStoredInfoType' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dlp\V2\StoredInfoType', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'columnDataProfile' => 'organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}', + 'connection' => 'projects/{project}/locations/{location}/connections/{connection}', + 'deidentifyTemplate' => 'organizations/{organization}/deidentifyTemplates/{deidentify_template}', + 'discoveryConfig' => 'projects/{project}/locations/{location}/discoveryConfigs/{discovery_config}', + 'dlpJob' => 'projects/{project}/dlpJobs/{dlp_job}', + 'fileStoreDataProfile' => 'organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}', + 'inspectTemplate' => 'organizations/{organization}/inspectTemplates/{inspect_template}', + 'jobTrigger' => 'projects/{project}/jobTriggers/{job_trigger}', + 'location' => 'projects/{project}/locations/{location}', + 'organization' => 'organizations/{organization}', + 'organizationDeidentifyTemplate' => 'organizations/{organization}/deidentifyTemplates/{deidentify_template}', + 'organizationInspectTemplate' => 'organizations/{organization}/inspectTemplates/{inspect_template}', + 'organizationLocation' => 'organizations/{organization}/locations/{location}', + 'organizationLocationColumnDataProfile' => 'organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}', + 'organizationLocationConnection' => 'organizations/{organization}/locations/{location}/connections/{connection}', + 'organizationLocationDeidentifyTemplate' => 'organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}', + 'organizationLocationFileStoreDataProfile' => 'organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}', + 'organizationLocationInspectTemplate' => 'organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}', + 'organizationLocationProjectDataProfile' => 'organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}', + 'organizationLocationStoredInfoType' => 'organizations/{organization}/locations/{location}/storedInfoTypes/{stored_info_type}', + 'organizationLocationTableDataProfile' => 'organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}', + 'organizationStoredInfoType' => 'organizations/{organization}/storedInfoTypes/{stored_info_type}', + 'project' => 'projects/{project}', + 'projectDataProfile' => 'organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}', + 'projectDeidentifyTemplate' => 'projects/{project}/deidentifyTemplates/{deidentify_template}', + 'projectDlpJob' => 'projects/{project}/dlpJobs/{dlp_job}', + 'projectInspectTemplate' => 'projects/{project}/inspectTemplates/{inspect_template}', + 'projectJobTrigger' => 'projects/{project}/jobTriggers/{job_trigger}', + 'projectLocationColumnDataProfile' => 'projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}', + 'projectLocationConnection' => 'projects/{project}/locations/{location}/connections/{connection}', + 'projectLocationDeidentifyTemplate' => 'projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}', + 'projectLocationDlpJob' => 'projects/{project}/locations/{location}/dlpJobs/{dlp_job}', + 'projectLocationFileStoreDataProfile' => 'projects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}', + 'projectLocationInspectTemplate' => 'projects/{project}/locations/{location}/inspectTemplates/{inspect_template}', + 'projectLocationJobTrigger' => 'projects/{project}/locations/{location}/jobTriggers/{job_trigger}', + 'projectLocationProjectDataProfile' => 'projects/{project}/locations/{location}/projectDataProfiles/{project_data_profile}', + 'projectLocationStoredInfoType' => 'projects/{project}/locations/{location}/storedInfoTypes/{stored_info_type}', + 'projectLocationTableDataProfile' => 'projects/{project}/locations/{location}/tableDataProfiles/{table_data_profile}', + 'projectStoredInfoType' => 'projects/{project}/storedInfoTypes/{stored_info_type}', + 'storedInfoType' => 'organizations/{organization}/storedInfoTypes/{stored_info_type}', + 'tableDataProfile' => 'organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_rest_client_config.php b/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_rest_client_config.php new file mode 100644 index 000000000000..c97d35f12a10 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_rest_client_config.php @@ -0,0 +1,1153 @@ + [ + 'google.privacy.dlp.v2.DlpService' => [ + 'ActivateJobTrigger' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/jobTriggers/*}:activate', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/jobTriggers/*}:activate', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CancelDlpJob' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/dlpJobs/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/dlpJobs/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CreateConnection' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/connections', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/connections', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDeidentifyTemplate' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=organizations/*}/deidentifyTemplates', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/deidentifyTemplates', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*}/deidentifyTemplates', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/deidentifyTemplates', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDiscoveryConfig' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/discoveryConfigs', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/discoveryConfigs', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDlpJob' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*}/dlpJobs', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/dlpJobs', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateInspectTemplate' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/inspectTemplates', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/inspectTemplates', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*}/inspectTemplates', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=organizations/*}/inspectTemplates', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateJobTrigger' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*}/jobTriggers', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/jobTriggers', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/jobTriggers', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateStoredInfoType' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=organizations/*}/storedInfoTypes', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/storedInfoTypes', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*}/storedInfoTypes', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/storedInfoTypes', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeidentifyContent' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*}/content:deidentify', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/content:deidentify', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteConnection' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/connections/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/connections/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDeidentifyTemplate' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=organizations/*/deidentifyTemplates/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/deidentifyTemplates/*}', + ], + [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/deidentifyTemplates/*}', + ], + [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/deidentifyTemplates/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDiscoveryConfig' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/discoveryConfigs/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/discoveryConfigs/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDlpJob' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/dlpJobs/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/dlpJobs/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteFileStoreDataProfile' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteInspectTemplate' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/inspectTemplates/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/inspectTemplates/*}', + ], + [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/inspectTemplates/*}', + ], + [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=organizations/*/inspectTemplates/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteJobTrigger' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/jobTriggers/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/jobTriggers/*}', + ], + [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/jobTriggers/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteStoredInfoType' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=organizations/*/storedInfoTypes/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/storedInfoTypes/*}', + ], + [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/storedInfoTypes/*}', + ], + [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/storedInfoTypes/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTableDataProfile' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/tableDataProfiles/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/tableDataProfiles/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'FinishDlpJob' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/dlpJobs/*}:finish', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetColumnDataProfile' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/columnDataProfiles/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/columnDataProfiles/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetConnection' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/connections/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/connections/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDeidentifyTemplate' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=organizations/*/deidentifyTemplates/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/deidentifyTemplates/*}', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/deidentifyTemplates/*}', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/deidentifyTemplates/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDiscoveryConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/discoveryConfigs/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/discoveryConfigs/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDlpJob' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/dlpJobs/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/dlpJobs/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetFileStoreDataProfile' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetInspectTemplate' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/inspectTemplates/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/inspectTemplates/*}', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/inspectTemplates/*}', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=organizations/*/inspectTemplates/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetJobTrigger' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/jobTriggers/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/jobTriggers/*}', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/jobTriggers/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetProjectDataProfile' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/projectDataProfiles/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/projectDataProfiles/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetStoredInfoType' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=organizations/*/storedInfoTypes/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/storedInfoTypes/*}', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/storedInfoTypes/*}', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/storedInfoTypes/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetTableDataProfile' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/tableDataProfiles/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/tableDataProfiles/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'HybridInspectDlpJob' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/dlpJobs/*}:hybridInspect', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'HybridInspectJobTrigger' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/jobTriggers/*}:hybridInspect', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'InspectContent' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*}/content:inspect', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/content:inspect', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListColumnDataProfiles' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/columnDataProfiles', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/columnDataProfiles', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListConnections' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/connections', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/connections', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDeidentifyTemplates' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*}/deidentifyTemplates', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/deidentifyTemplates', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*}/deidentifyTemplates', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/deidentifyTemplates', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDiscoveryConfigs' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/discoveryConfigs', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/discoveryConfigs', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDlpJobs' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*}/dlpJobs', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/dlpJobs', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/dlpJobs', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListFileStoreDataProfiles' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/fileStoreDataProfiles', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/fileStoreDataProfiles', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListInfoTypes' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/infoTypes', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=locations/*}/infoTypes', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/infoTypes', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/infoTypes', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListInspectTemplates' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/inspectTemplates', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/inspectTemplates', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*}/inspectTemplates', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*}/inspectTemplates', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListJobTriggers' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*}/jobTriggers', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/jobTriggers', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/jobTriggers', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListProjectDataProfiles' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/projectDataProfiles', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/projectDataProfiles', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListStoredInfoTypes' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*}/storedInfoTypes', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/storedInfoTypes', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*}/storedInfoTypes', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/storedInfoTypes', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListTableDataProfiles' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/tableDataProfiles', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/tableDataProfiles', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'RedactImage' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*}/image:redact', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/image:redact', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ReidentifyContent' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*}/content:reidentify', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/content:reidentify', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'SearchConnections' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/connections:search', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/connections:search', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateConnection' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/connections/*}', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/connections/*}', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateDeidentifyTemplate' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=organizations/*/deidentifyTemplates/*}', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/deidentifyTemplates/*}', + 'body' => '*', + ], + [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=projects/*/deidentifyTemplates/*}', + 'body' => '*', + ], + [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/deidentifyTemplates/*}', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateDiscoveryConfig' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/discoveryConfigs/*}', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/discoveryConfigs/*}', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateInspectTemplate' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/inspectTemplates/*}', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/inspectTemplates/*}', + 'body' => '*', + ], + [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=projects/*/inspectTemplates/*}', + 'body' => '*', + ], + [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=organizations/*/inspectTemplates/*}', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateJobTrigger' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=projects/*/jobTriggers/*}', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/jobTriggers/*}', + 'body' => '*', + ], + [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/jobTriggers/*}', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateStoredInfoType' => [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=organizations/*/storedInfoTypes/*}', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=organizations/*/locations/*/storedInfoTypes/*}', + 'body' => '*', + ], + [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=projects/*/storedInfoTypes/*}', + 'body' => '*', + ], + [ + 'method' => 'patch', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/storedInfoTypes/*}', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Dlp/v2/tests/Unit/V2/Client/DlpServiceClientTest.php b/owl-bot-staging/Dlp/v2/tests/Unit/V2/Client/DlpServiceClientTest.php new file mode 100644 index 000000000000..4f8f576bb625 --- /dev/null +++ b/owl-bot-staging/Dlp/v2/tests/Unit/V2/Client/DlpServiceClientTest.php @@ -0,0 +1,3892 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DlpServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DlpServiceClient($options); + } + + /** @test */ + public function activateJobTriggerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $jobTriggerName = 'jobTriggerName1819490804'; + $expectedResponse = new DlpJob(); + $expectedResponse->setName($name2); + $expectedResponse->setJobTriggerName($jobTriggerName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); + $request = (new ActivateJobTriggerRequest()) + ->setName($formattedName); + $response = $gapicClient->activateJobTrigger($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/ActivateJobTrigger', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function activateJobTriggerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); + $request = (new ActivateJobTriggerRequest()) + ->setName($formattedName); + try { + $gapicClient->activateJobTrigger($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelDlpJobTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); + $request = (new CancelDlpJobRequest()) + ->setName($formattedName); + $gapicClient->cancelDlpJob($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/CancelDlpJob', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelDlpJobExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); + $request = (new CancelDlpJobRequest()) + ->setName($formattedName); + try { + $gapicClient->cancelDlpJob($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createConnectionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $expectedResponse = new Connection(); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $connection = new Connection(); + $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; + $connection->setState($connectionState); + $request = (new CreateConnectionRequest()) + ->setParent($formattedParent) + ->setConnection($connection); + $response = $gapicClient->createConnection($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateConnection', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getConnection(); + $this->assertProtobufEquals($connection, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createConnectionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $connection = new Connection(); + $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; + $connection->setState($connectionState); + $request = (new CreateConnectionRequest()) + ->setParent($formattedParent) + ->setConnection($connection); + try { + $gapicClient->createConnection($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDeidentifyTemplateTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new DeidentifyTemplate(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $deidentifyTemplate = new DeidentifyTemplate(); + $request = (new CreateDeidentifyTemplateRequest()) + ->setParent($formattedParent) + ->setDeidentifyTemplate($deidentifyTemplate); + $response = $gapicClient->createDeidentifyTemplate($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateDeidentifyTemplate', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDeidentifyTemplate(); + $this->assertProtobufEquals($deidentifyTemplate, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDeidentifyTemplateExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $deidentifyTemplate = new DeidentifyTemplate(); + $request = (new CreateDeidentifyTemplateRequest()) + ->setParent($formattedParent) + ->setDeidentifyTemplate($deidentifyTemplate); + try { + $gapicClient->createDeidentifyTemplate($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDiscoveryConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DiscoveryConfig(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $discoveryConfig = new DiscoveryConfig(); + $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; + $discoveryConfig->setStatus($discoveryConfigStatus); + $request = (new CreateDiscoveryConfigRequest()) + ->setParent($formattedParent) + ->setDiscoveryConfig($discoveryConfig); + $response = $gapicClient->createDiscoveryConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateDiscoveryConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDiscoveryConfig(); + $this->assertProtobufEquals($discoveryConfig, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDiscoveryConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $discoveryConfig = new DiscoveryConfig(); + $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; + $discoveryConfig->setStatus($discoveryConfigStatus); + $request = (new CreateDiscoveryConfigRequest()) + ->setParent($formattedParent) + ->setDiscoveryConfig($discoveryConfig); + try { + $gapicClient->createDiscoveryConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDlpJobTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $jobTriggerName = 'jobTriggerName1819490804'; + $expectedResponse = new DlpJob(); + $expectedResponse->setName($name); + $expectedResponse->setJobTriggerName($jobTriggerName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $request = (new CreateDlpJobRequest()) + ->setParent($formattedParent); + $response = $gapicClient->createDlpJob($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateDlpJob', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDlpJobExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $request = (new CreateDlpJobRequest()) + ->setParent($formattedParent); + try { + $gapicClient->createDlpJob($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createInspectTemplateTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new InspectTemplate(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $inspectTemplate = new InspectTemplate(); + $request = (new CreateInspectTemplateRequest()) + ->setParent($formattedParent) + ->setInspectTemplate($inspectTemplate); + $response = $gapicClient->createInspectTemplate($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateInspectTemplate', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getInspectTemplate(); + $this->assertProtobufEquals($inspectTemplate, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createInspectTemplateExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $inspectTemplate = new InspectTemplate(); + $request = (new CreateInspectTemplateRequest()) + ->setParent($formattedParent) + ->setInspectTemplate($inspectTemplate); + try { + $gapicClient->createInspectTemplate($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createJobTriggerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new JobTrigger(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $jobTrigger = new JobTrigger(); + $jobTriggerStatus = \Google\Cloud\Dlp\V2\JobTrigger\Status::STATUS_UNSPECIFIED; + $jobTrigger->setStatus($jobTriggerStatus); + $request = (new CreateJobTriggerRequest()) + ->setParent($formattedParent) + ->setJobTrigger($jobTrigger); + $response = $gapicClient->createJobTrigger($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateJobTrigger', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getJobTrigger(); + $this->assertProtobufEquals($jobTrigger, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createJobTriggerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $jobTrigger = new JobTrigger(); + $jobTriggerStatus = \Google\Cloud\Dlp\V2\JobTrigger\Status::STATUS_UNSPECIFIED; + $jobTrigger->setStatus($jobTriggerStatus); + $request = (new CreateJobTriggerRequest()) + ->setParent($formattedParent) + ->setJobTrigger($jobTrigger); + try { + $gapicClient->createJobTrigger($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createStoredInfoTypeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $expectedResponse = new StoredInfoType(); + $expectedResponse->setName($name); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $config = new StoredInfoTypeConfig(); + $request = (new CreateStoredInfoTypeRequest()) + ->setParent($formattedParent) + ->setConfig($config); + $response = $gapicClient->createStoredInfoType($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateStoredInfoType', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getConfig(); + $this->assertProtobufEquals($config, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createStoredInfoTypeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $config = new StoredInfoTypeConfig(); + $request = (new CreateStoredInfoTypeRequest()) + ->setParent($formattedParent) + ->setConfig($config); + try { + $gapicClient->createStoredInfoType($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deidentifyContentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new DeidentifyContentResponse(); + $transport->addResponse($expectedResponse); + $request = new DeidentifyContentRequest(); + $response = $gapicClient->deidentifyContent($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/DeidentifyContent', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deidentifyContentExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new DeidentifyContentRequest(); + try { + $gapicClient->deidentifyContent($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteConnectionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); + $request = (new DeleteConnectionRequest()) + ->setName($formattedName); + $gapicClient->deleteConnection($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteConnection', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteConnectionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); + $request = (new DeleteConnectionRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteConnection($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDeidentifyTemplateTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); + $request = (new DeleteDeidentifyTemplateRequest()) + ->setName($formattedName); + $gapicClient->deleteDeidentifyTemplate($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteDeidentifyTemplate', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDeidentifyTemplateExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); + $request = (new DeleteDeidentifyTemplateRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteDeidentifyTemplate($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDiscoveryConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); + $request = (new DeleteDiscoveryConfigRequest()) + ->setName($formattedName); + $gapicClient->deleteDiscoveryConfig($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteDiscoveryConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDiscoveryConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); + $request = (new DeleteDiscoveryConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteDiscoveryConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDlpJobTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); + $request = (new DeleteDlpJobRequest()) + ->setName($formattedName); + $gapicClient->deleteDlpJob($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteDlpJob', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteDlpJobExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); + $request = (new DeleteDlpJobRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteDlpJob($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteFileStoreDataProfileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->fileStoreDataProfileName('[ORGANIZATION]', '[LOCATION]', '[FILE_STORE_DATA_PROFILE]'); + $request = (new DeleteFileStoreDataProfileRequest()) + ->setName($formattedName); + $gapicClient->deleteFileStoreDataProfile($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteFileStoreDataProfile', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteFileStoreDataProfileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->fileStoreDataProfileName('[ORGANIZATION]', '[LOCATION]', '[FILE_STORE_DATA_PROFILE]'); + $request = (new DeleteFileStoreDataProfileRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteFileStoreDataProfile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteInspectTemplateTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); + $request = (new DeleteInspectTemplateRequest()) + ->setName($formattedName); + $gapicClient->deleteInspectTemplate($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteInspectTemplate', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteInspectTemplateExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); + $request = (new DeleteInspectTemplateRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteInspectTemplate($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteJobTriggerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); + $request = (new DeleteJobTriggerRequest()) + ->setName($formattedName); + $gapicClient->deleteJobTrigger($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteJobTrigger', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteJobTriggerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); + $request = (new DeleteJobTriggerRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteJobTrigger($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteStoredInfoTypeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); + $request = (new DeleteStoredInfoTypeRequest()) + ->setName($formattedName); + $gapicClient->deleteStoredInfoType($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteStoredInfoType', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteStoredInfoTypeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); + $request = (new DeleteStoredInfoTypeRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteStoredInfoType($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteTableDataProfileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->tableDataProfileName('[ORGANIZATION]', '[LOCATION]', '[TABLE_DATA_PROFILE]'); + $request = (new DeleteTableDataProfileRequest()) + ->setName($formattedName); + $gapicClient->deleteTableDataProfile($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteTableDataProfile', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteTableDataProfileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tableDataProfileName('[ORGANIZATION]', '[LOCATION]', '[TABLE_DATA_PROFILE]'); + $request = (new DeleteTableDataProfileRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteTableDataProfile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function finishDlpJobTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); + $request = (new FinishDlpJobRequest()) + ->setName($formattedName); + $gapicClient->finishDlpJob($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/FinishDlpJob', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function finishDlpJobExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); + $request = (new FinishDlpJobRequest()) + ->setName($formattedName); + try { + $gapicClient->finishDlpJob($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getColumnDataProfileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $tableDataProfile = 'tableDataProfile1230971621'; + $tableFullResource = 'tableFullResource1490522381'; + $datasetProjectId = 'datasetProjectId1943685672'; + $datasetLocation = 'datasetLocation1011262364'; + $datasetId = 'datasetId-2115646910'; + $tableId = 'tableId-895419604'; + $column = 'column-1354837162'; + $freeTextScore = 1.21823761E8; + $expectedResponse = new ColumnDataProfile(); + $expectedResponse->setName($name2); + $expectedResponse->setTableDataProfile($tableDataProfile); + $expectedResponse->setTableFullResource($tableFullResource); + $expectedResponse->setDatasetProjectId($datasetProjectId); + $expectedResponse->setDatasetLocation($datasetLocation); + $expectedResponse->setDatasetId($datasetId); + $expectedResponse->setTableId($tableId); + $expectedResponse->setColumn($column); + $expectedResponse->setFreeTextScore($freeTextScore); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->columnDataProfileName('[ORGANIZATION]', '[LOCATION]', '[COLUMN_DATA_PROFILE]'); + $request = (new GetColumnDataProfileRequest()) + ->setName($formattedName); + $response = $gapicClient->getColumnDataProfile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/GetColumnDataProfile', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getColumnDataProfileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->columnDataProfileName('[ORGANIZATION]', '[LOCATION]', '[COLUMN_DATA_PROFILE]'); + $request = (new GetColumnDataProfileRequest()) + ->setName($formattedName); + try { + $gapicClient->getColumnDataProfile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConnectionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new Connection(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); + $request = (new GetConnectionRequest()) + ->setName($formattedName); + $response = $gapicClient->getConnection($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/GetConnection', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConnectionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); + $request = (new GetConnectionRequest()) + ->setName($formattedName); + try { + $gapicClient->getConnection($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDeidentifyTemplateTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new DeidentifyTemplate(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); + $request = (new GetDeidentifyTemplateRequest()) + ->setName($formattedName); + $response = $gapicClient->getDeidentifyTemplate($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/GetDeidentifyTemplate', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDeidentifyTemplateExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); + $request = (new GetDeidentifyTemplateRequest()) + ->setName($formattedName); + try { + $gapicClient->getDeidentifyTemplate($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDiscoveryConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DiscoveryConfig(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); + $request = (new GetDiscoveryConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->getDiscoveryConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/GetDiscoveryConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDiscoveryConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); + $request = (new GetDiscoveryConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->getDiscoveryConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDlpJobTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $jobTriggerName = 'jobTriggerName1819490804'; + $expectedResponse = new DlpJob(); + $expectedResponse->setName($name2); + $expectedResponse->setJobTriggerName($jobTriggerName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); + $request = (new GetDlpJobRequest()) + ->setName($formattedName); + $response = $gapicClient->getDlpJob($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/GetDlpJob', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDlpJobExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); + $request = (new GetDlpJobRequest()) + ->setName($formattedName); + try { + $gapicClient->getDlpJob($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFileStoreDataProfileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $projectDataProfile = 'projectDataProfile-316045958'; + $projectId = 'projectId-1969970175'; + $fileStoreLocation = 'fileStoreLocation-169306506'; + $locationType = 'locationType-1796591228'; + $fileStorePath = 'fileStorePath-1852775578'; + $fullResource = 'fullResource1559053246'; + $fileStoreIsEmpty = false; + $expectedResponse = new FileStoreDataProfile(); + $expectedResponse->setName($name2); + $expectedResponse->setProjectDataProfile($projectDataProfile); + $expectedResponse->setProjectId($projectId); + $expectedResponse->setFileStoreLocation($fileStoreLocation); + $expectedResponse->setLocationType($locationType); + $expectedResponse->setFileStorePath($fileStorePath); + $expectedResponse->setFullResource($fullResource); + $expectedResponse->setFileStoreIsEmpty($fileStoreIsEmpty); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->projectDataProfileName('[ORGANIZATION]', '[LOCATION]', '[PROJECT_DATA_PROFILE]'); + $request = (new GetFileStoreDataProfileRequest()) + ->setName($formattedName); + $response = $gapicClient->getFileStoreDataProfile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/GetFileStoreDataProfile', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFileStoreDataProfileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->projectDataProfileName('[ORGANIZATION]', '[LOCATION]', '[PROJECT_DATA_PROFILE]'); + $request = (new GetFileStoreDataProfileRequest()) + ->setName($formattedName); + try { + $gapicClient->getFileStoreDataProfile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getInspectTemplateTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new InspectTemplate(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); + $request = (new GetInspectTemplateRequest()) + ->setName($formattedName); + $response = $gapicClient->getInspectTemplate($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/GetInspectTemplate', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getInspectTemplateExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); + $request = (new GetInspectTemplateRequest()) + ->setName($formattedName); + try { + $gapicClient->getInspectTemplate($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getJobTriggerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new JobTrigger(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); + $request = (new GetJobTriggerRequest()) + ->setName($formattedName); + $response = $gapicClient->getJobTrigger($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/GetJobTrigger', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getJobTriggerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); + $request = (new GetJobTriggerRequest()) + ->setName($formattedName); + try { + $gapicClient->getJobTrigger($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getProjectDataProfileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $projectId = 'projectId-1969970175'; + $tableDataProfileCount = 330585909; + $fileStoreDataProfileCount = 332405595; + $expectedResponse = new ProjectDataProfile(); + $expectedResponse->setName($name2); + $expectedResponse->setProjectId($projectId); + $expectedResponse->setTableDataProfileCount($tableDataProfileCount); + $expectedResponse->setFileStoreDataProfileCount($fileStoreDataProfileCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->projectDataProfileName('[ORGANIZATION]', '[LOCATION]', '[PROJECT_DATA_PROFILE]'); + $request = (new GetProjectDataProfileRequest()) + ->setName($formattedName); + $response = $gapicClient->getProjectDataProfile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/GetProjectDataProfile', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getProjectDataProfileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->projectDataProfileName('[ORGANIZATION]', '[LOCATION]', '[PROJECT_DATA_PROFILE]'); + $request = (new GetProjectDataProfileRequest()) + ->setName($formattedName); + try { + $gapicClient->getProjectDataProfile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getStoredInfoTypeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new StoredInfoType(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); + $request = (new GetStoredInfoTypeRequest()) + ->setName($formattedName); + $response = $gapicClient->getStoredInfoType($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/GetStoredInfoType', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getStoredInfoTypeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); + $request = (new GetStoredInfoTypeRequest()) + ->setName($formattedName); + try { + $gapicClient->getStoredInfoType($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTableDataProfileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $projectDataProfile = 'projectDataProfile-316045958'; + $datasetProjectId = 'datasetProjectId1943685672'; + $datasetLocation = 'datasetLocation1011262364'; + $datasetId = 'datasetId-2115646910'; + $tableId = 'tableId-895419604'; + $fullResource = 'fullResource1559053246'; + $scannedColumnCount = 787756843; + $failedColumnCount = 706572376; + $tableSizeBytes = 927763390; + $rowCount = 1340416618; + $expectedResponse = new TableDataProfile(); + $expectedResponse->setName($name2); + $expectedResponse->setProjectDataProfile($projectDataProfile); + $expectedResponse->setDatasetProjectId($datasetProjectId); + $expectedResponse->setDatasetLocation($datasetLocation); + $expectedResponse->setDatasetId($datasetId); + $expectedResponse->setTableId($tableId); + $expectedResponse->setFullResource($fullResource); + $expectedResponse->setScannedColumnCount($scannedColumnCount); + $expectedResponse->setFailedColumnCount($failedColumnCount); + $expectedResponse->setTableSizeBytes($tableSizeBytes); + $expectedResponse->setRowCount($rowCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->tableDataProfileName('[ORGANIZATION]', '[LOCATION]', '[TABLE_DATA_PROFILE]'); + $request = (new GetTableDataProfileRequest()) + ->setName($formattedName); + $response = $gapicClient->getTableDataProfile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/GetTableDataProfile', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTableDataProfileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->tableDataProfileName('[ORGANIZATION]', '[LOCATION]', '[TABLE_DATA_PROFILE]'); + $request = (new GetTableDataProfileRequest()) + ->setName($formattedName); + try { + $gapicClient->getTableDataProfile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function hybridInspectDlpJobTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new HybridInspectResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); + $request = (new HybridInspectDlpJobRequest()) + ->setName($formattedName); + $response = $gapicClient->hybridInspectDlpJob($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/HybridInspectDlpJob', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function hybridInspectDlpJobExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); + $request = (new HybridInspectDlpJobRequest()) + ->setName($formattedName); + try { + $gapicClient->hybridInspectDlpJob($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function hybridInspectJobTriggerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new HybridInspectResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); + $request = (new HybridInspectJobTriggerRequest()) + ->setName($formattedName); + $response = $gapicClient->hybridInspectJobTrigger($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/HybridInspectJobTrigger', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function hybridInspectJobTriggerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); + $request = (new HybridInspectJobTriggerRequest()) + ->setName($formattedName); + try { + $gapicClient->hybridInspectJobTrigger($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function inspectContentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new InspectContentResponse(); + $transport->addResponse($expectedResponse); + $request = new InspectContentRequest(); + $response = $gapicClient->inspectContent($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/InspectContent', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function inspectContentExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new InspectContentRequest(); + try { + $gapicClient->inspectContent($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listColumnDataProfilesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $columnDataProfilesElement = new ColumnDataProfile(); + $columnDataProfiles = [ + $columnDataProfilesElement, + ]; + $expectedResponse = new ListColumnDataProfilesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setColumnDataProfiles($columnDataProfiles); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListColumnDataProfilesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listColumnDataProfiles($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getColumnDataProfiles()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/ListColumnDataProfiles', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listColumnDataProfilesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListColumnDataProfilesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listColumnDataProfiles($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listConnectionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $connectionsElement = new Connection(); + $connections = [ + $connectionsElement, + ]; + $expectedResponse = new ListConnectionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setConnections($connections); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListConnectionsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listConnections($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getConnections()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/ListConnections', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listConnectionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListConnectionsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listConnections($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDeidentifyTemplatesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $deidentifyTemplatesElement = new DeidentifyTemplate(); + $deidentifyTemplates = [ + $deidentifyTemplatesElement, + ]; + $expectedResponse = new ListDeidentifyTemplatesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDeidentifyTemplates($deidentifyTemplates); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListDeidentifyTemplatesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDeidentifyTemplates($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDeidentifyTemplates()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/ListDeidentifyTemplates', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDeidentifyTemplatesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListDeidentifyTemplatesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDeidentifyTemplates($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDiscoveryConfigsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $discoveryConfigsElement = new DiscoveryConfig(); + $discoveryConfigs = [ + $discoveryConfigsElement, + ]; + $expectedResponse = new ListDiscoveryConfigsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDiscoveryConfigs($discoveryConfigs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDiscoveryConfigsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDiscoveryConfigs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDiscoveryConfigs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/ListDiscoveryConfigs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDiscoveryConfigsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDiscoveryConfigsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDiscoveryConfigs($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDlpJobsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $jobsElement = new DlpJob(); + $jobs = [ + $jobsElement, + ]; + $expectedResponse = new ListDlpJobsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setJobs($jobs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $request = (new ListDlpJobsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDlpJobs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getJobs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/ListDlpJobs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDlpJobsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $request = (new ListDlpJobsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDlpJobs($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFileStoreDataProfilesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $fileStoreDataProfilesElement = new FileStoreDataProfile(); + $fileStoreDataProfiles = [ + $fileStoreDataProfilesElement, + ]; + $expectedResponse = new ListFileStoreDataProfilesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setFileStoreDataProfiles($fileStoreDataProfiles); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListFileStoreDataProfilesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listFileStoreDataProfiles($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getFileStoreDataProfiles()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/ListFileStoreDataProfiles', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listFileStoreDataProfilesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListFileStoreDataProfilesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listFileStoreDataProfiles($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listInfoTypesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ListInfoTypesResponse(); + $transport->addResponse($expectedResponse); + $request = new ListInfoTypesRequest(); + $response = $gapicClient->listInfoTypes($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/ListInfoTypes', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listInfoTypesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListInfoTypesRequest(); + try { + $gapicClient->listInfoTypes($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listInspectTemplatesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $inspectTemplatesElement = new InspectTemplate(); + $inspectTemplates = [ + $inspectTemplatesElement, + ]; + $expectedResponse = new ListInspectTemplatesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setInspectTemplates($inspectTemplates); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListInspectTemplatesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listInspectTemplates($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getInspectTemplates()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/ListInspectTemplates', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listInspectTemplatesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListInspectTemplatesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listInspectTemplates($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listJobTriggersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $jobTriggersElement = new JobTrigger(); + $jobTriggers = [ + $jobTriggersElement, + ]; + $expectedResponse = new ListJobTriggersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setJobTriggers($jobTriggers); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $request = (new ListJobTriggersRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listJobTriggers($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getJobTriggers()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/ListJobTriggers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listJobTriggersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $request = (new ListJobTriggersRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listJobTriggers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listProjectDataProfilesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $projectDataProfilesElement = new ProjectDataProfile(); + $projectDataProfiles = [ + $projectDataProfilesElement, + ]; + $expectedResponse = new ListProjectDataProfilesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setProjectDataProfiles($projectDataProfiles); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListProjectDataProfilesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listProjectDataProfiles($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getProjectDataProfiles()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/ListProjectDataProfiles', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listProjectDataProfilesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListProjectDataProfilesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listProjectDataProfiles($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listStoredInfoTypesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $storedInfoTypesElement = new StoredInfoType(); + $storedInfoTypes = [ + $storedInfoTypesElement, + ]; + $expectedResponse = new ListStoredInfoTypesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setStoredInfoTypes($storedInfoTypes); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListStoredInfoTypesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listStoredInfoTypes($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getStoredInfoTypes()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/ListStoredInfoTypes', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listStoredInfoTypesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListStoredInfoTypesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listStoredInfoTypes($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTableDataProfilesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $tableDataProfilesElement = new TableDataProfile(); + $tableDataProfiles = [ + $tableDataProfilesElement, + ]; + $expectedResponse = new ListTableDataProfilesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTableDataProfiles($tableDataProfiles); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListTableDataProfilesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listTableDataProfiles($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getTableDataProfiles()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/ListTableDataProfiles', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTableDataProfilesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListTableDataProfilesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listTableDataProfiles($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function redactImageTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $redactedImage = '28'; + $extractedText = 'extractedText998260012'; + $expectedResponse = new RedactImageResponse(); + $expectedResponse->setRedactedImage($redactedImage); + $expectedResponse->setExtractedText($extractedText); + $transport->addResponse($expectedResponse); + $request = new RedactImageRequest(); + $response = $gapicClient->redactImage($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/RedactImage', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function redactImageExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new RedactImageRequest(); + try { + $gapicClient->redactImage($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function reidentifyContentTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ReidentifyContentResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $request = (new ReidentifyContentRequest()) + ->setParent($formattedParent); + $response = $gapicClient->reidentifyContent($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/ReidentifyContent', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function reidentifyContentExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $request = (new ReidentifyContentRequest()) + ->setParent($formattedParent); + try { + $gapicClient->reidentifyContent($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchConnectionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $connectionsElement = new Connection(); + $connections = [ + $connectionsElement, + ]; + $expectedResponse = new SearchConnectionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setConnections($connections); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new SearchConnectionsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->searchConnections($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getConnections()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/SearchConnections', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchConnectionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new SearchConnectionsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->searchConnections($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateConnectionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new Connection(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); + $connection = new Connection(); + $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; + $connection->setState($connectionState); + $request = (new UpdateConnectionRequest()) + ->setName($formattedName) + ->setConnection($connection); + $response = $gapicClient->updateConnection($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateConnection', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getConnection(); + $this->assertProtobufEquals($connection, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateConnectionExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); + $connection = new Connection(); + $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; + $connection->setState($connectionState); + $request = (new UpdateConnectionRequest()) + ->setName($formattedName) + ->setConnection($connection); + try { + $gapicClient->updateConnection($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDeidentifyTemplateTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new DeidentifyTemplate(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); + $request = (new UpdateDeidentifyTemplateRequest()) + ->setName($formattedName); + $response = $gapicClient->updateDeidentifyTemplate($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateDeidentifyTemplate', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDeidentifyTemplateExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); + $request = (new UpdateDeidentifyTemplateRequest()) + ->setName($formattedName); + try { + $gapicClient->updateDeidentifyTemplate($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDiscoveryConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DiscoveryConfig(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); + $discoveryConfig = new DiscoveryConfig(); + $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; + $discoveryConfig->setStatus($discoveryConfigStatus); + $request = (new UpdateDiscoveryConfigRequest()) + ->setName($formattedName) + ->setDiscoveryConfig($discoveryConfig); + $response = $gapicClient->updateDiscoveryConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateDiscoveryConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getDiscoveryConfig(); + $this->assertProtobufEquals($discoveryConfig, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDiscoveryConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); + $discoveryConfig = new DiscoveryConfig(); + $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; + $discoveryConfig->setStatus($discoveryConfigStatus); + $request = (new UpdateDiscoveryConfigRequest()) + ->setName($formattedName) + ->setDiscoveryConfig($discoveryConfig); + try { + $gapicClient->updateDiscoveryConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateInspectTemplateTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new InspectTemplate(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); + $request = (new UpdateInspectTemplateRequest()) + ->setName($formattedName); + $response = $gapicClient->updateInspectTemplate($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateInspectTemplate', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateInspectTemplateExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); + $request = (new UpdateInspectTemplateRequest()) + ->setName($formattedName); + try { + $gapicClient->updateInspectTemplate($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateJobTriggerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $expectedResponse = new JobTrigger(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); + $request = (new UpdateJobTriggerRequest()) + ->setName($formattedName); + $response = $gapicClient->updateJobTrigger($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateJobTrigger', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateJobTriggerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); + $request = (new UpdateJobTriggerRequest()) + ->setName($formattedName); + try { + $gapicClient->updateJobTrigger($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateStoredInfoTypeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new StoredInfoType(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); + $request = (new UpdateStoredInfoTypeRequest()) + ->setName($formattedName); + $response = $gapicClient->updateStoredInfoType($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateStoredInfoType', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateStoredInfoTypeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); + $request = (new UpdateStoredInfoTypeRequest()) + ->setName($formattedName); + try { + $gapicClient->updateStoredInfoType($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function activateJobTriggerAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $jobTriggerName = 'jobTriggerName1819490804'; + $expectedResponse = new DlpJob(); + $expectedResponse->setName($name2); + $expectedResponse->setJobTriggerName($jobTriggerName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); + $request = (new ActivateJobTriggerRequest()) + ->setName($formattedName); + $response = $gapicClient->activateJobTriggerAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.privacy.dlp.v2.DlpService/ActivateJobTrigger', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} From f1de90f3b79bfd943431f5f3fb766f287615d66e Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 6 Apr 2026 05:08:55 +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 --- Dlp/metadata/V2/Dlp.php | 2 +- Dlp/src/V2/ContentItem.php | 44 + .../Dlp => Dlp/src}/V2/ContentMetadata.php | 0 .../src}/V2/KeyValueMetadataProperty.php | 0 Dlp/src/V2/MetadataType.php | 7 + .../GPBMetadata/Google/Privacy/Dlp/V2/Dlp.php | 37 - .../Google/Privacy/Dlp/V2/Storage.php | 26 - .../proto/src/Google/Cloud/Dlp/V2/Action.php | 329 -- .../Google/Cloud/Dlp/V2/Action/Deidentify.php | 439 -- .../Dlp/V2/Action/JobNotificationEmails.php | 35 - .../PublishFindingsToCloudDataCatalog.php | 48 - .../PublishFindingsToDataplexCatalog.php | 43 - .../Dlp/V2/Action/PublishSummaryToCscc.php | 40 - .../Cloud/Dlp/V2/Action/PublishToPubSub.php | 83 - .../Dlp/V2/Action/PublishToStackdriver.php | 36 - .../Cloud/Dlp/V2/Action/SaveFindings.php | 80 - .../src/Google/Cloud/Dlp/V2/ActionDetails.php | 75 - .../Dlp/V2/ActivateJobTriggerRequest.php | 71 - .../Cloud/Dlp/V2/AdjustByImageFindings.php | 218 - .../Dlp/V2/AdjustByMatchingInfoTypes.php | 199 - .../Google/Cloud/Dlp/V2/AdjustmentRule.php | 153 - .../Dlp/V2/AllOtherDatabaseResources.php | 33 - .../Google/Cloud/Dlp/V2/AllOtherResources.php | 33 - .../Google/Cloud/Dlp/V2/AmazonS3Bucket.php | 111 - .../Cloud/Dlp/V2/AmazonS3BucketConditions.php | 109 - .../AmazonS3BucketConditions/BucketType.php | 62 - .../ObjectStorageClass.php | 83 - .../Cloud/Dlp/V2/AmazonS3BucketRegex.php | 115 - .../Dlp/V2/AnalyzeDataSourceRiskDetails.php | 372 -- .../CategoricalStatsResult.php | 67 - .../CategoricalStatsHistogramBucket.php | 207 - .../DeltaPresenceEstimationResult.php | 96 - ...DeltaPresenceEstimationHistogramBucket.php | 215 - .../DeltaPresenceEstimationQuasiIdValues.php | 129 - .../KAnonymityResult.php | 67 - .../KAnonymityEquivalenceClass.php | 113 - .../KAnonymityHistogramBucket.php | 207 - .../KMapEstimationResult.php | 96 - .../KMapEstimationHistogramBucket.php | 214 - .../KMapEstimationQuasiIdValues.php | 101 - .../LDiversityResult.php | 67 - .../LDiversityEquivalenceClass.php | 173 - .../LDiversityHistogramBucket.php | 215 - .../NumericalStatsResult.php | 159 - .../RequestedRiskAnalysisOptions.php | 77 - .../src/Google/Cloud/Dlp/V2/AwsAccount.php | 67 - .../Google/Cloud/Dlp/V2/AwsAccountRegex.php | 71 - .../Cloud/Dlp/V2/BigQueryDiscoveryTarget.php | 210 - .../src/Google/Cloud/Dlp/V2/BigQueryField.php | 121 - .../src/Google/Cloud/Dlp/V2/BigQueryKey.php | 127 - .../Google/Cloud/Dlp/V2/BigQueryOptions.php | 369 -- .../Dlp/V2/BigQueryOptions/SampleMethod.php | 65 - .../src/Google/Cloud/Dlp/V2/BigQueryRegex.php | 143 - .../Google/Cloud/Dlp/V2/BigQueryRegexes.php | 72 - .../Dlp/V2/BigQuerySchemaModification.php | 63 - .../src/Google/Cloud/Dlp/V2/BigQueryTable.php | 143 - .../Cloud/Dlp/V2/BigQueryTableCollection.php | 75 - .../Dlp/V2/BigQueryTableModification.php | 56 - .../Google/Cloud/Dlp/V2/BigQueryTableType.php | 69 - .../Dlp/V2/BigQueryTableTypeCollection.php | 68 - .../Cloud/Dlp/V2/BigQueryTableTypes.php | 67 - .../src/Google/Cloud/Dlp/V2/BoundingBox.php | 169 - .../Google/Cloud/Dlp/V2/BucketingConfig.php | 76 - .../Cloud/Dlp/V2/BucketingConfig/Bucket.php | 169 - .../Google/Cloud/Dlp/V2/ByteContentItem.php | 101 - .../Dlp/V2/ByteContentItem/BytesType.php | 170 - .../Cloud/Dlp/V2/CancelDlpJobRequest.php | 67 - .../Cloud/Dlp/V2/CharacterMaskConfig.php | 266 -- .../src/Google/Cloud/Dlp/V2/CharsToIgnore.php | 112 - .../V2/CharsToIgnore/CommonCharsToIgnore.php | 82 - .../Cloud/Dlp/V2/CloudSqlDiscoveryTarget.php | 210 - .../Cloud/Dlp/V2/CloudSqlIamCredential.php | 36 - .../Cloud/Dlp/V2/CloudSqlProperties.php | 250 -- .../V2/CloudSqlProperties/DatabaseEngine.php | 62 - .../Dlp/V2/CloudStorageDiscoveryTarget.php | 210 - .../Cloud/Dlp/V2/CloudStorageFileSet.php | 71 - .../Cloud/Dlp/V2/CloudStorageOptions.php | 332 -- .../Dlp/V2/CloudStorageOptions/FileSet.php | 143 - .../V2/CloudStorageOptions/SampleMethod.php | 64 - .../Google/Cloud/Dlp/V2/CloudStoragePath.php | 71 - .../Google/Cloud/Dlp/V2/CloudStorageRegex.php | 112 - .../Cloud/Dlp/V2/CloudStorageRegexFileSet.php | 208 - .../Dlp/V2/CloudStorageResourceReference.php | 105 - .../proto/src/Google/Cloud/Dlp/V2/Color.php | 135 - .../Google/Cloud/Dlp/V2/ColumnDataProfile.php | 795 ---- .../V2/ColumnDataProfile/ColumnDataType.php | 174 - .../ColumnDataProfile/ColumnPolicyState.php | 54 - .../Cloud/Dlp/V2/ColumnDataProfile/State.php | 64 - .../src/Google/Cloud/Dlp/V2/Connection.php | 186 - .../Google/Cloud/Dlp/V2/ConnectionState.php | 75 - .../src/Google/Cloud/Dlp/V2/Container.php | 354 -- .../src/Google/Cloud/Dlp/V2/ContentItem.php | 191 - .../Google/Cloud/Dlp/V2/ContentLocation.php | 331 -- .../src/Google/Cloud/Dlp/V2/ContentOption.php | 61 - .../Cloud/Dlp/V2/CreateConnectionRequest.php | 159 - .../V2/CreateDeidentifyTemplateRequest.php | 286 -- .../Dlp/V2/CreateDiscoveryConfigRequest.php | 227 - .../Cloud/Dlp/V2/CreateDlpJobRequest.php | 334 -- .../Dlp/V2/CreateInspectTemplateRequest.php | 286 -- .../Cloud/Dlp/V2/CreateJobTriggerRequest.php | 266 -- .../Dlp/V2/CreateStoredInfoTypeRequest.php | 286 -- .../Dlp/V2/CryptoDeterministicConfig.php | 327 -- .../Google/Cloud/Dlp/V2/CryptoHashConfig.php | 84 - .../src/Google/Cloud/Dlp/V2/CryptoKey.php | 146 - .../Dlp/V2/CryptoReplaceFfxFpeConfig.php | 445 -- .../FfxCommonNativeAlphabet.php | 77 - .../Google/Cloud/Dlp/V2/CustomInfoType.php | 461 -- .../Dlp/V2/CustomInfoType/DetectionRule.php | 78 - .../DetectionRule/HotwordRule.php | 210 - .../DetectionRule/LikelihoodAdjustment.php | 130 - .../DetectionRule/Proximity.php | 118 - .../Dlp/V2/CustomInfoType/Dictionary.php | 131 - .../V2/CustomInfoType/Dictionary/WordList.php | 75 - .../Dlp/V2/CustomInfoType/ExclusionType.php | 55 - .../MetadataKeyValueExpression.php | 106 - .../Cloud/Dlp/V2/CustomInfoType/Regex.php | 113 - .../Dlp/V2/CustomInfoType/SurrogateType.php | 40 - .../Google/Cloud/Dlp/V2/DataProfileAction.php | 252 -- .../Dlp/V2/DataProfileAction/EventType.php | 77 - .../Cloud/Dlp/V2/DataProfileAction/Export.php | 242 - .../DataProfileAction/PubSubNotification.php | 201 - .../PubSubNotification/DetailLevel.php | 68 - .../DataProfileAction/PublishToChronicle.php | 33 - .../PublishToDataplexCatalog.php | 89 - .../PublishToSecurityCommandCenter.php | 34 - .../Dlp/V2/DataProfileAction/TagResources.php | 188 - .../TagResources/TagCondition.php | 123 - .../TagResources/TagValue.php | 84 - .../Dlp/V2/DataProfileBigQueryRowSchema.php | 142 - .../Dlp/V2/DataProfileConfigSnapshot.php | 274 -- .../Cloud/Dlp/V2/DataProfileFinding.php | 452 -- .../Dlp/V2/DataProfileFindingLocation.php | 128 - .../V2/DataProfileFindingRecordLocation.php | 77 - .../Cloud/Dlp/V2/DataProfileJobConfig.php | 284 -- .../Cloud/Dlp/V2/DataProfileLocation.php | 108 - .../Dlp/V2/DataProfilePubSubCondition.php | 77 - .../ProfileScoreBucket.php | 61 - .../PubSubCondition.php | 108 - .../PubSubExpressions.php | 101 - .../PubSubLogicalOperator.php | 65 - .../Cloud/Dlp/V2/DataProfilePubSubMessage.php | 173 - .../Dlp/V2/DataProfileUpdateFrequency.php | 69 - .../src/Google/Cloud/Dlp/V2/DataRiskLevel.php | 68 - .../V2/DataRiskLevel/DataRiskLevelScore.php | 81 - .../Google/Cloud/Dlp/V2/DataSourceType.php | 87 - .../Dlp/V2/DatabaseResourceCollection.php | 76 - .../Dlp/V2/DatabaseResourceReference.php | 181 - .../Cloud/Dlp/V2/DatabaseResourceRegex.php | 188 - .../Cloud/Dlp/V2/DatabaseResourceRegexes.php | 80 - .../src/Google/Cloud/Dlp/V2/DatastoreKey.php | 77 - .../Google/Cloud/Dlp/V2/DatastoreOptions.php | 125 - .../Google/Cloud/Dlp/V2/DateShiftConfig.php | 220 - .../src/Google/Cloud/Dlp/V2/DateTime.php | 204 - .../Google/Cloud/Dlp/V2/DateTime/TimeZone.php | 71 - .../Google/Cloud/Dlp/V2/DeidentifyConfig.php | 198 - .../Cloud/Dlp/V2/DeidentifyContentRequest.php | 417 -- .../Dlp/V2/DeidentifyContentResponse.php | 121 - .../Dlp/V2/DeidentifyDataSourceDetails.php | 122 - .../RequestedDeidentifyOptions.php | 181 - .../Dlp/V2/DeidentifyDataSourceStats.php | 135 - .../Cloud/Dlp/V2/DeidentifyTemplate.php | 282 -- .../Cloud/Dlp/V2/DeleteConnectionRequest.php | 86 - .../V2/DeleteDeidentifyTemplateRequest.php | 96 - .../Dlp/V2/DeleteDiscoveryConfigRequest.php | 86 - .../Cloud/Dlp/V2/DeleteDlpJobRequest.php | 81 - .../V2/DeleteFileStoreDataProfileRequest.php | 81 - .../Dlp/V2/DeleteInspectTemplateRequest.php | 91 - .../Cloud/Dlp/V2/DeleteJobTriggerRequest.php | 86 - .../Dlp/V2/DeleteStoredInfoTypeRequest.php | 91 - .../Dlp/V2/DeleteTableDataProfileRequest.php | 81 - .../src/Google/Cloud/Dlp/V2/Disabled.php | 33 - .../Dlp/V2/DiscoveryBigQueryConditions.php | 204 - .../OrConditions.php | 120 - .../Cloud/Dlp/V2/DiscoveryBigQueryFilter.php | 167 - .../AllOtherBigQueryTables.php | 35 - .../Dlp/V2/DiscoveryCloudSqlConditions.php | 114 - .../DatabaseEngine.php | 68 - .../DatabaseResourceType.php | 61 - .../Cloud/Dlp/V2/DiscoveryCloudSqlFilter.php | 155 - .../V2/DiscoveryCloudSqlGenerationCadence.php | 177 - .../SchemaModifiedCadence.php | 109 - .../CloudSqlSchemaModification.php | 61 - .../V2/DiscoveryCloudStorageConditions.php | 123 - .../CloudStorageBucketAttribute.php | 73 - .../CloudStorageObjectAttribute.php | 109 - .../Dlp/V2/DiscoveryCloudStorageFilter.php | 161 - ...DiscoveryCloudStorageGenerationCadence.php | 129 - .../Google/Cloud/Dlp/V2/DiscoveryConfig.php | 616 --- .../Dlp/V2/DiscoveryConfig/OrgConfig.php | 119 - .../Cloud/Dlp/V2/DiscoveryConfig/Status.php | 62 - .../Dlp/V2/DiscoveryFileStoreConditions.php | 173 - .../Dlp/V2/DiscoveryGenerationCadence.php | 214 - ...iscoveryInspectTemplateModifiedCadence.php | 72 - .../Dlp/V2/DiscoveryOtherCloudConditions.php | 124 - .../Dlp/V2/DiscoveryOtherCloudFilter.php | 154 - .../DiscoveryOtherCloudGenerationCadence.php | 125 - .../Dlp/V2/DiscoverySchemaModifiedCadence.php | 113 - .../Dlp/V2/DiscoveryStartingLocation.php | 109 - .../Dlp/V2/DiscoveryTableModifiedCadence.php | 113 - .../Google/Cloud/Dlp/V2/DiscoveryTarget.php | 279 -- .../V2/DiscoveryVertexDatasetConditions.php | 130 - .../Dlp/V2/DiscoveryVertexDatasetFilter.php | 155 - ...iscoveryVertexDatasetGenerationCadence.php | 133 - .../proto/src/Google/Cloud/Dlp/V2/DlpJob.php | 492 --- .../Google/Cloud/Dlp/V2/DlpJob/JobState.php | 93 - .../src/Google/Cloud/Dlp/V2/DlpJobType.php | 61 - .../Google/Cloud/Dlp/V2/DocumentLocation.php | 71 - .../proto/src/Google/Cloud/Dlp/V2/Domain.php | 101 - .../Google/Cloud/Dlp/V2/Domain/Category.php | 64 - .../src/Google/Cloud/Dlp/V2/Domain/Signal.php | 104 - .../src/Google/Cloud/Dlp/V2/Encloses.php | 33 - .../Google/Cloud/Dlp/V2/EncryptionStatus.php | 61 - .../src/Google/Cloud/Dlp/V2/EntityId.php | 81 - .../proto/src/Google/Cloud/Dlp/V2/Error.php | 150 - .../Cloud/Dlp/V2/Error/ErrorExtraInfo.php | 61 - .../Google/Cloud/Dlp/V2/ExcludeByHotword.php | 136 - .../Cloud/Dlp/V2/ExcludeByImageFindings.php | 158 - .../Google/Cloud/Dlp/V2/ExcludeInfoTypes.php | 95 - .../src/Google/Cloud/Dlp/V2/ExclusionRule.php | 248 -- .../proto/src/Google/Cloud/Dlp/V2/FieldId.php | 67 - .../Cloud/Dlp/V2/FieldTransformation.php | 225 - .../Cloud/Dlp/V2/FileClusterSummary.php | 367 -- .../Google/Cloud/Dlp/V2/FileClusterType.php | 75 - .../Cloud/Dlp/V2/FileClusterType/Cluster.php | 118 - .../Google/Cloud/Dlp/V2/FileExtensionInfo.php | 67 - .../Cloud/Dlp/V2/FileStoreCollection.php | 150 - .../Cloud/Dlp/V2/FileStoreDataProfile.php | 1143 ----- .../Dlp/V2/FileStoreDataProfile/State.php | 64 - .../Cloud/Dlp/V2/FileStoreInfoTypeSummary.php | 77 - .../Google/Cloud/Dlp/V2/FileStoreRegex.php | 75 - .../Google/Cloud/Dlp/V2/FileStoreRegexes.php | 76 - .../src/Google/Cloud/Dlp/V2/FileType.php | 150 - .../proto/src/Google/Cloud/Dlp/V2/Finding.php | 593 --- .../Cloud/Dlp/V2/FinishDlpJobRequest.php | 67 - .../Cloud/Dlp/V2/FixedSizeBucketingConfig.php | 196 - .../src/Google/Cloud/Dlp/V2/FullyInside.php | 33 - .../Dlp/V2/GetColumnDataProfileRequest.php | 86 - .../Cloud/Dlp/V2/GetConnectionRequest.php | 86 - .../Dlp/V2/GetDeidentifyTemplateRequest.php | 91 - .../Dlp/V2/GetDiscoveryConfigRequest.php | 86 - .../Google/Cloud/Dlp/V2/GetDlpJobRequest.php | 82 - .../Dlp/V2/GetFileStoreDataProfileRequest.php | 86 - .../Dlp/V2/GetInspectTemplateRequest.php | 91 - .../Cloud/Dlp/V2/GetJobTriggerRequest.php | 86 - .../Dlp/V2/GetProjectDataProfileRequest.php | 86 - .../Cloud/Dlp/V2/GetStoredInfoTypeRequest.php | 91 - .../Dlp/V2/GetTableDataProfileRequest.php | 86 - .../Google/Cloud/Dlp/V2/HybridContentItem.php | 122 - .../Cloud/Dlp/V2/HybridFindingDetails.php | 303 -- .../Dlp/V2/HybridInspectDlpJobRequest.php | 130 - .../Dlp/V2/HybridInspectJobTriggerRequest.php | 130 - .../Cloud/Dlp/V2/HybridInspectResponse.php | 33 - .../Cloud/Dlp/V2/HybridInspectStatistics.php | 155 - .../src/Google/Cloud/Dlp/V2/HybridOptions.php | 240 - .../Cloud/Dlp/V2/ImageContainmentType.php | 150 - .../src/Google/Cloud/Dlp/V2/ImageLocation.php | 67 - .../Cloud/Dlp/V2/ImageTransformations.php | 67 - .../ImageTransformation.php | 198 - .../ImageTransformation/AllInfoTypes.php | 33 - .../ImageTransformation/AllText.php | 33 - .../ImageTransformation/SelectedInfoTypes.php | 71 - .../src/Google/Cloud/Dlp/V2/InfoType.php | 173 - .../Google/Cloud/Dlp/V2/InfoTypeCategory.php | 145 - .../V2/InfoTypeCategory/IndustryCategory.php | 69 - .../V2/InfoTypeCategory/LocationCategory.php | 417 -- .../Dlp/V2/InfoTypeCategory/TypeCategory.php | 108 - .../Cloud/Dlp/V2/InfoTypeDescription.php | 447 -- .../InfoTypeLaunchStatus.php | 68 - .../src/Google/Cloud/Dlp/V2/InfoTypeStats.php | 111 - .../Google/Cloud/Dlp/V2/InfoTypeSummary.php | 118 - .../Cloud/Dlp/V2/InfoTypeSupportedBy.php | 61 - .../Cloud/Dlp/V2/InfoTypeTransformations.php | 74 - .../InfoTypeTransformation.php | 120 - .../src/Google/Cloud/Dlp/V2/InspectConfig.php | 499 --- .../Dlp/V2/InspectConfig/FindingLimits.php | 201 - .../FindingLimits/InfoTypeLimit.php | 124 - .../V2/InspectConfig/InfoTypeLikelihood.php | 127 - .../Cloud/Dlp/V2/InspectContentRequest.php | 287 -- .../Cloud/Dlp/V2/InspectContentResponse.php | 77 - .../Cloud/Dlp/V2/InspectDataSourceDetails.php | 121 - .../RequestedOptions.php | 125 - .../V2/InspectDataSourceDetails/Result.php | 221 - .../Google/Cloud/Dlp/V2/InspectJobConfig.php | 197 - .../src/Google/Cloud/Dlp/V2/InspectResult.php | 121 - .../Google/Cloud/Dlp/V2/InspectTemplate.php | 283 -- .../Google/Cloud/Dlp/V2/InspectionRule.php | 142 - .../Google/Cloud/Dlp/V2/InspectionRuleSet.php | 102 - .../src/Google/Cloud/Dlp/V2/JobTrigger.php | 442 -- .../Google/Cloud/Dlp/V2/JobTrigger/Status.php | 71 - .../Cloud/Dlp/V2/JobTrigger/Trigger.php | 108 - .../v2/proto/src/Google/Cloud/Dlp/V2/Key.php | 150 - .../Google/Cloud/Dlp/V2/Key/PathElement.php | 171 - .../Cloud/Dlp/V2/KeyValueMetadataLabel.php | 79 - .../Google/Cloud/Dlp/V2/KindExpression.php | 67 - .../Cloud/Dlp/V2/KmsWrappedCryptoKey.php | 109 - .../Dlp/V2/LargeCustomDictionaryConfig.php | 169 - .../Dlp/V2/LargeCustomDictionaryStats.php | 67 - .../src/Google/Cloud/Dlp/V2/Likelihood.php | 93 - .../Dlp/V2/ListColumnDataProfilesRequest.php | 407 -- .../Dlp/V2/ListColumnDataProfilesResponse.php | 101 - .../Cloud/Dlp/V2/ListConnectionsRequest.php | 201 - .../Cloud/Dlp/V2/ListConnectionsResponse.php | 105 - .../Dlp/V2/ListDeidentifyTemplatesRequest.php | 340 -- .../V2/ListDeidentifyTemplatesResponse.php | 109 - .../Dlp/V2/ListDiscoveryConfigsRequest.php | 256 -- .../Dlp/V2/ListDiscoveryConfigsResponse.php | 105 - .../Cloud/Dlp/V2/ListDlpJobsRequest.php | 472 -- .../Cloud/Dlp/V2/ListDlpJobsResponse.php | 101 - .../V2/ListFileStoreDataProfilesRequest.php | 420 -- .../V2/ListFileStoreDataProfilesResponse.php | 102 - .../Cloud/Dlp/V2/ListInfoTypesRequest.php | 206 - .../Cloud/Dlp/V2/ListInfoTypesResponse.php | 67 - .../Dlp/V2/ListInspectTemplatesRequest.php | 340 -- .../Dlp/V2/ListInspectTemplatesResponse.php | 105 - .../Cloud/Dlp/V2/ListJobTriggersRequest.php | 472 -- .../Cloud/Dlp/V2/ListJobTriggersResponse.php | 105 - .../Dlp/V2/ListProjectDataProfilesRequest.php | 353 -- .../V2/ListProjectDataProfilesResponse.php | 101 - .../Dlp/V2/ListStoredInfoTypesRequest.php | 324 -- .../Dlp/V2/ListStoredInfoTypesResponse.php | 105 - .../Dlp/V2/ListTableDataProfilesRequest.php | 403 -- .../Dlp/V2/ListTableDataProfilesResponse.php | 101 - .../src/Google/Cloud/Dlp/V2/Location.php | 227 - .../Google/Cloud/Dlp/V2/LocationSupport.php | 109 - .../LocationSupport/RegionalizationScope.php | 61 - .../proto/src/Google/Cloud/Dlp/V2/Manual.php | 34 - .../src/Google/Cloud/Dlp/V2/MatchingType.php | 93 - .../Google/Cloud/Dlp/V2/MetadataLocation.php | 142 - .../src/Google/Cloud/Dlp/V2/MetadataType.php | 68 - .../Cloud/Dlp/V2/NullPercentageLevel.php | 76 - .../OtherCloudDiscoveryStartingLocation.php | 75 - .../AwsDiscoveryStartingLocation.php | 120 - .../Dlp/V2/OtherCloudDiscoveryTarget.php | 265 -- .../Dlp/V2/OtherCloudResourceCollection.php | 75 - .../Cloud/Dlp/V2/OtherCloudResourceRegex.php | 78 - .../Dlp/V2/OtherCloudResourceRegexes.php | 80 - .../V2/OtherCloudSingleResourceReference.php | 75 - .../Cloud/Dlp/V2/OtherInfoTypeSummary.php | 153 - .../Cloud/Dlp/V2/OutputStorageConfig.php | 234 - .../V2/OutputStorageConfig/OutputSchema.php | 84 - .../proto/src/Google/Cloud/Dlp/V2/Overlap.php | 33 - .../src/Google/Cloud/Dlp/V2/PartitionId.php | 105 - .../Cloud/Dlp/V2/PrimitiveTransformation.php | 441 -- .../src/Google/Cloud/Dlp/V2/PrivacyMetric.php | 240 - .../PrivacyMetric/CategoricalStatsConfig.php | 90 - .../DeltaPresenceEstimationConfig.php | 158 - .../Dlp/V2/PrivacyMetric/KAnonymityConfig.php | 159 - .../V2/PrivacyMetric/KMapEstimationConfig.php | 160 - .../KMapEstimationConfig/AuxiliaryTable.php | 165 - .../AuxiliaryTable/QuasiIdField.php | 112 - .../KMapEstimationConfig/TaggedField.php | 206 - .../Dlp/V2/PrivacyMetric/LDiversityConfig.php | 119 - .../V2/PrivacyMetric/NumericalStatsConfig.php | 82 - .../Cloud/Dlp/V2/ProcessingLocation.php | 123 - .../DocumentFallbackLocation.php | 127 - .../ProcessingLocation/GlobalProcessing.php | 33 - .../ImageFallbackLocation.php | 127 - .../MultiRegionProcessing.php | 34 - .../Google/Cloud/Dlp/V2/ProfileGeneration.php | 61 - .../src/Google/Cloud/Dlp/V2/ProfileStatus.php | 125 - .../Cloud/Dlp/V2/ProjectDataProfile.php | 346 -- .../proto/src/Google/Cloud/Dlp/V2/QuasiId.php | 206 - .../src/Google/Cloud/Dlp/V2/QuoteInfo.php | 75 - .../proto/src/Google/Cloud/Dlp/V2/Range.php | 101 - .../Google/Cloud/Dlp/V2/RecordCondition.php | 78 - .../Dlp/V2/RecordCondition/Condition.php | 171 - .../Dlp/V2/RecordCondition/Conditions.php | 67 - .../Dlp/V2/RecordCondition/Expressions.php | 113 - .../Expressions/LogicalOperator.php | 58 - .../src/Google/Cloud/Dlp/V2/RecordKey.php | 146 - .../Google/Cloud/Dlp/V2/RecordLocation.php | 165 - .../Google/Cloud/Dlp/V2/RecordSuppression.php | 82 - .../Cloud/Dlp/V2/RecordTransformation.php | 155 - .../Cloud/Dlp/V2/RecordTransformations.php | 106 - .../src/Google/Cloud/Dlp/V2/RedactConfig.php | 35 - .../Cloud/Dlp/V2/RedactImageRequest.php | 418 -- .../ImageRedactionConfig.php | 168 - .../Cloud/Dlp/V2/RedactImageResponse.php | 153 - .../Cloud/Dlp/V2/ReidentifyContentRequest.php | 417 -- .../Dlp/V2/ReidentifyContentResponse.php | 121 - .../Google/Cloud/Dlp/V2/RelatedResource.php | 70 - .../Cloud/Dlp/V2/RelationalOperator.php | 96 - .../Cloud/Dlp/V2/ReplaceDictionaryConfig.php | 81 - .../Cloud/Dlp/V2/ReplaceValueConfig.php | 77 - .../Dlp/V2/ReplaceWithInfoTypeConfig.php | 33 - .../Cloud/Dlp/V2/ResourceVisibility.php | 71 - .../Cloud/Dlp/V2/RiskAnalysisJobConfig.php | 161 - .../Cloud/Dlp/V2/SaveToGcsFindingsOutput.php | 69 - .../src/Google/Cloud/Dlp/V2/Schedule.php | 90 - .../Cloud/Dlp/V2/SearchConnectionsRequest.php | 201 - .../Dlp/V2/SearchConnectionsResponse.php | 113 - .../Cloud/Dlp/V2/SecretManagerCredential.php | 108 - .../Cloud/Dlp/V2/SecretsDiscoveryTarget.php | 41 - .../Google/Cloud/Dlp/V2/SensitivityScore.php | 68 - .../SensitivityScoreLevel.php | 82 - .../Google/Cloud/Dlp/V2/StatisticalTable.php | 165 - .../StatisticalTable/QuasiIdentifierField.php | 120 - .../src/Google/Cloud/Dlp/V2/StorageConfig.php | 218 - .../Dlp/V2/StorageConfig/TimespanConfig.php | 356 -- .../Cloud/Dlp/V2/StorageMetadataLabel.php | 67 - .../Google/Cloud/Dlp/V2/StoredInfoType.php | 150 - .../Cloud/Dlp/V2/StoredInfoTypeConfig.php | 211 - .../Cloud/Dlp/V2/StoredInfoTypeState.php | 78 - .../Cloud/Dlp/V2/StoredInfoTypeStats.php | 75 - .../Cloud/Dlp/V2/StoredInfoTypeVersion.php | 282 -- .../src/Google/Cloud/Dlp/V2/StoredType.php | 123 - .../proto/src/Google/Cloud/Dlp/V2/Table.php | 103 - .../src/Google/Cloud/Dlp/V2/Table/Row.php | 67 - .../Google/Cloud/Dlp/V2/TableDataProfile.php | 1189 ----- .../Cloud/Dlp/V2/TableDataProfile/State.php | 64 - .../src/Google/Cloud/Dlp/V2/TableLocation.php | 87 - .../src/Google/Cloud/Dlp/V2/TableOptions.php | 79 - .../Google/Cloud/Dlp/V2/TableReference.php | 144 - .../v2/proto/src/Google/Cloud/Dlp/V2/Tag.php | 159 - .../src/Google/Cloud/Dlp/V2/TagFilter.php | 123 - .../src/Google/Cloud/Dlp/V2/TagFilters.php | 71 - .../Google/Cloud/Dlp/V2/TimePartConfig.php | 68 - .../Cloud/Dlp/V2/TimePartConfig/TimePart.php | 89 - .../Cloud/Dlp/V2/TransformationConfig.php | 193 - .../Dlp/V2/TransformationContainerType.php | 68 - .../Dlp/V2/TransformationDescription.php | 224 - .../Cloud/Dlp/V2/TransformationDetails.php | 296 -- .../V2/TransformationDetailsStorageConfig.php | 90 - .../Dlp/V2/TransformationErrorHandling.php | 115 - .../LeaveUntransformed.php | 36 - .../ThrowError.php | 33 - .../Cloud/Dlp/V2/TransformationLocation.php | 158 - .../Cloud/Dlp/V2/TransformationOverview.php | 101 - .../Dlp/V2/TransformationResultStatus.php | 115 - .../Dlp/V2/TransformationResultStatusType.php | 82 - .../Cloud/Dlp/V2/TransformationSummary.php | 321 -- .../TransformationSummary/SummaryResult.php | 140 - .../TransformationResultCode.php | 61 - .../Cloud/Dlp/V2/TransformationType.php | 147 - .../Cloud/Dlp/V2/TransientCryptoKey.php | 88 - .../Cloud/Dlp/V2/UniquenessScoreLevel.php | 72 - .../Cloud/Dlp/V2/UnwrappedCryptoKey.php | 68 - .../Cloud/Dlp/V2/UpdateConnectionRequest.php | 174 - .../V2/UpdateDeidentifyTemplateRequest.php | 188 - .../Dlp/V2/UpdateDiscoveryConfigRequest.php | 178 - .../Dlp/V2/UpdateInspectTemplateRequest.php | 183 - .../Cloud/Dlp/V2/UpdateJobTriggerRequest.php | 178 - .../Dlp/V2/UpdateStoredInfoTypeRequest.php | 193 - .../proto/src/Google/Cloud/Dlp/V2/Value.php | 311 -- .../Google/Cloud/Dlp/V2/ValueFrequency.php | 111 - .../Cloud/Dlp/V2/VersionDescription.php | 101 - .../Cloud/Dlp/V2/VertexDatasetCollection.php | 75 - .../Dlp/V2/VertexDatasetDiscoveryTarget.php | 210 - .../Cloud/Dlp/V2/VertexDatasetRegex.php | 71 - .../Cloud/Dlp/V2/VertexDatasetRegexes.php | 76 - .../Dlp/V2/VertexDatasetResourceReference.php | 80 - .../DlpServiceClient/activate_job_trigger.php | 73 - .../V2/DlpServiceClient/cancel_dlp_job.php | 76 - .../V2/DlpServiceClient/create_connection.php | 85 - .../create_deidentify_template.php | 96 - .../create_discovery_config.php | 91 - .../V2/DlpServiceClient/create_dlp_job.php | 95 - .../create_inspect_template.php | 96 - .../DlpServiceClient/create_job_trigger.php | 96 - .../create_stored_info_type.php | 96 - .../DlpServiceClient/deidentify_content.php | 65 - .../V2/DlpServiceClient/delete_connection.php | 70 - .../delete_deidentify_template.php | 78 - .../delete_discovery_config.php | 74 - .../V2/DlpServiceClient/delete_dlp_job.php | 76 - .../delete_file_store_data_profile.php | 74 - .../delete_inspect_template.php | 74 - .../DlpServiceClient/delete_job_trigger.php | 73 - .../delete_stored_info_type.php | 74 - .../delete_table_data_profile.php | 74 - .../V2/DlpServiceClient/finish_dlp_job.php | 70 - .../get_column_data_profile.php | 76 - .../V2/DlpServiceClient/get_connection.php | 72 - .../get_deidentify_template.php | 79 - .../DlpServiceClient/get_discovery_config.php | 76 - .../V2/DlpServiceClient/get_dlp_job.php | 76 - .../get_file_store_data_profile.php | 76 - .../DlpServiceClient/get_inspect_template.php | 76 - .../V2/DlpServiceClient/get_job_trigger.php | 75 - .../get_project_data_profile.php | 76 - .../DlpServiceClient/get_stored_info_type.php | 76 - .../get_table_data_profile.php | 76 - .../hybrid_inspect_dlp_job.php | 74 - .../hybrid_inspect_job_trigger.php | 74 - .../V2/DlpServiceClient/inspect_content.php | 67 - .../list_column_data_profiles.php | 78 - .../V2/DlpServiceClient/list_connections.php | 79 - .../list_deidentify_templates.php | 98 - .../list_discovery_configs.php | 85 - .../V2/DlpServiceClient/list_dlp_jobs.php | 96 - .../list_file_store_data_profiles.php | 78 - .../V2/DlpServiceClient/list_info_types.php | 60 - .../list_inspect_templates.php | 98 - .../V2/DlpServiceClient/list_job_triggers.php | 94 - .../list_project_data_profiles.php | 76 - .../list_stored_info_types.php | 94 - .../list_table_data_profiles.php | 78 - .../V2/DlpServiceClient/redact_image.php | 68 - .../DlpServiceClient/reidentify_content.php | 89 - .../DlpServiceClient/search_connections.php | 78 - .../V2/DlpServiceClient/update_connection.php | 78 - .../update_deidentify_template.php | 80 - .../update_discovery_config.php | 82 - .../update_inspect_template.php | 76 - .../DlpServiceClient/update_job_trigger.php | 75 - .../update_stored_info_type.php | 77 - .../Dlp/v2/src/V2/Client/DlpServiceClient.php | 2670 ----------- .../Dlp/v2/src/V2/gapic_metadata.json | 293 -- .../resources/dlp_service_client_config.json | 320 -- .../dlp_service_descriptor_config.php | 827 ---- .../dlp_service_rest_client_config.php | 1153 ----- .../Unit/V2/Client/DlpServiceClientTest.php | 3892 ----------------- 512 files changed, 52 insertions(+), 79708 deletions(-) rename {owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp => Dlp/src}/V2/ContentMetadata.php (100%) rename {owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp => Dlp/src}/V2/KeyValueMetadataProperty.php (100%) delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Dlp.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Storage.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/Deidentify.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/JobNotificationEmails.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToCloudDataCatalog.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToDataplexCatalog.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishSummaryToCscc.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToPubSub.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToStackdriver.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/SaveFindings.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActionDetails.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActivateJobTriggerRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustByImageFindings.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustByMatchingInfoTypes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustmentRule.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherDatabaseResources.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherResources.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3Bucket.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/BucketType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/ObjectStorageClass.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketRegex.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult/CategoricalStatsHistogramBucket.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationHistogramBucket.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationQuasiIdValues.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityEquivalenceClass.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityHistogramBucket.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationHistogramBucket.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationQuasiIdValues.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityEquivalenceClass.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityHistogramBucket.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/NumericalStatsResult.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/RequestedRiskAnalysisOptions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccount.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccountRegex.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryDiscoveryTarget.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryField.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryKey.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions/SampleMethod.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegex.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegexes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQuerySchemaModification.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTable.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableCollection.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableModification.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypeCollection.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BoundingBox.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig/Bucket.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem/BytesType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CancelDlpJobRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharacterMaskConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore/CommonCharsToIgnore.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlDiscoveryTarget.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlIamCredential.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties/DatabaseEngine.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageDiscoveryTarget.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageFileSet.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/FileSet.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/SampleMethod.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStoragePath.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegex.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegexFileSet.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageResourceReference.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Color.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnDataType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnPolicyState.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/State.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Connection.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ConnectionState.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Container.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentItem.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentOption.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateConnectionRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDeidentifyTemplateRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDiscoveryConfigRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDlpJobRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateInspectTemplateRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateJobTriggerRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateStoredInfoTypeRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoDeterministicConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoHashConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoKey.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig/FfxCommonNativeAlphabet.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/HotwordRule.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/LikelihoodAdjustment.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/Proximity.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary/WordList.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/ExclusionType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/MetadataKeyValueExpression.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Regex.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/SurrogateType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/EventType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/Export.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification/DetailLevel.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToChronicle.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToDataplexCatalog.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToSecurityCommandCenter.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagCondition.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagValue.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileBigQueryRowSchema.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileConfigSnapshot.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFinding.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFindingLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFindingRecordLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileJobConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/ProfileScoreBucket.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubCondition.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions/PubSubLogicalOperator.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubMessage.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileUpdateFrequency.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel/DataRiskLevelScore.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataSourceType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceCollection.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceReference.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegex.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegexes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreKey.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreOptions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateShiftConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime/TimeZone.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails/RequestedDeidentifyOptions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceStats.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyTemplate.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteConnectionRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDeidentifyTemplateRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDiscoveryConfigRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDlpJobRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteFileStoreDataProfileRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteInspectTemplateRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteJobTriggerRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteStoredInfoTypeRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteTableDataProfileRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Disabled.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions/OrConditions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter/AllOtherBigQueryTables.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseEngine.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseResourceType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlFilter.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence/CloudSqlSchemaModification.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageBucketAttribute.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageObjectAttribute.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageFilter.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageGenerationCadence.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/OrgConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/Status.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryFileStoreConditions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryGenerationCadence.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryInspectTemplateModifiedCadence.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudConditions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudFilter.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudGenerationCadence.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoverySchemaModifiedCadence.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryStartingLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTableModifiedCadence.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTarget.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetConditions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetFilter.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetGenerationCadence.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob/JobState.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJobType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DocumentLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain/Category.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain/Signal.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Encloses.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EncryptionStatus.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EntityId.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error/ErrorExtraInfo.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByHotword.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByImageFindings.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeInfoTypes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExclusionRule.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldId.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldTransformation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterSummary.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType/Cluster.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileExtensionInfo.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreCollection.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile/State.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreInfoTypeSummary.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegex.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegexes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Finding.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FinishDlpJobRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FixedSizeBucketingConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FullyInside.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetColumnDataProfileRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetConnectionRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDeidentifyTemplateRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDiscoveryConfigRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDlpJobRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetFileStoreDataProfileRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetInspectTemplateRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetJobTriggerRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetProjectDataProfileRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetStoredInfoTypeRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetTableDataProfileRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridContentItem.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridFindingDetails.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectDlpJobRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectJobTriggerRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectStatistics.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridOptions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageContainmentType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllInfoTypes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllText.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/SelectedInfoTypes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/IndustryCategory.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/LocationCategory.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/TypeCategory.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription/InfoTypeLaunchStatus.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeStats.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSummary.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSupportedBy.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations/InfoTypeTransformation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits/InfoTypeLimit.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/InfoTypeLikelihood.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/RequestedOptions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/Result.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectJobConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectResult.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectTemplate.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRule.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRuleSet.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Status.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Trigger.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key/PathElement.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KeyValueMetadataLabel.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KindExpression.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KmsWrappedCryptoKey.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryStats.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Likelihood.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Location.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LocationSupport.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LocationSupport/RegionalizationScope.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Manual.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MatchingType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/NullPercentageLevel.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation/AwsDiscoveryStartingLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryTarget.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceCollection.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegex.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegexes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudSingleResourceReference.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherInfoTypeSummary.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig/OutputSchema.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Overlap.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PartitionId.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrimitiveTransformation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/CategoricalStatsConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KAnonymityConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable/QuasiIdField.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/TaggedField.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/LDiversityConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/NumericalStatsConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/DocumentFallbackLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/GlobalProcessing.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/ImageFallbackLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/MultiRegionProcessing.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileGeneration.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileStatus.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProjectDataProfile.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuasiId.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuoteInfo.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Range.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Condition.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Conditions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions/LogicalOperator.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordKey.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordSuppression.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformations.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest/ImageRedactionConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelatedResource.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelationalOperator.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceDictionaryConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceValueConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceWithInfoTypeConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ResourceVisibility.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RiskAnalysisJobConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SaveToGcsFindingsOutput.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Schedule.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretManagerCredential.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretsDiscoveryTarget.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore/SensitivityScoreLevel.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable/QuasiIdentifierField.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig/TimespanConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageMetadataLabel.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeState.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeStats.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeVersion.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table/Row.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile/State.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableOptions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableReference.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Tag.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TagFilter.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TagFilters.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig/TimePart.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationContainerType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDescription.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetails.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetailsStorageConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/LeaveUntransformed.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/ThrowError.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationOverview.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatus.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatusType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/SummaryResult.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/TransformationResultCode.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransientCryptoKey.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UniquenessScoreLevel.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UnwrappedCryptoKey.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateConnectionRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDeidentifyTemplateRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDiscoveryConfigRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateInspectTemplateRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateJobTriggerRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateStoredInfoTypeRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Value.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ValueFrequency.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VersionDescription.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetCollection.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetDiscoveryTarget.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetRegex.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetRegexes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetResourceReference.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/activate_job_trigger.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/cancel_dlp_job.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_connection.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_deidentify_template.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_discovery_config.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_dlp_job.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_inspect_template.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_job_trigger.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_stored_info_type.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/deidentify_content.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_connection.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_deidentify_template.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_discovery_config.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_dlp_job.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_file_store_data_profile.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_inspect_template.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_job_trigger.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_stored_info_type.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_table_data_profile.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/finish_dlp_job.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_column_data_profile.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_connection.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_deidentify_template.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_discovery_config.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_dlp_job.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_file_store_data_profile.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_inspect_template.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_job_trigger.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_project_data_profile.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_stored_info_type.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_table_data_profile.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_dlp_job.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_job_trigger.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/inspect_content.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_column_data_profiles.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_connections.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_deidentify_templates.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_discovery_configs.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_dlp_jobs.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_file_store_data_profiles.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_info_types.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_inspect_templates.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_job_triggers.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_project_data_profiles.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_stored_info_types.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_table_data_profiles.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/redact_image.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/reidentify_content.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/search_connections.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_connection.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_deidentify_template.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_discovery_config.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_inspect_template.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_job_trigger.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_stored_info_type.php delete mode 100644 owl-bot-staging/Dlp/v2/src/V2/Client/DlpServiceClient.php delete mode 100644 owl-bot-staging/Dlp/v2/src/V2/gapic_metadata.json delete mode 100644 owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_client_config.json delete mode 100644 owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_descriptor_config.php delete mode 100644 owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_rest_client_config.php delete mode 100644 owl-bot-staging/Dlp/v2/tests/Unit/V2/Client/DlpServiceClientTest.php diff --git a/Dlp/metadata/V2/Dlp.php b/Dlp/metadata/V2/Dlp.php index 22c3cef9fd3f..12a2f070d63c 100644 --- a/Dlp/metadata/V2/Dlp.php +++ b/Dlp/metadata/V2/Dlp.php @@ -28,7 +28,7 @@ public static function initOnce() { \GPBMetadata\Google\Type\Dayofweek::initOnce(); \GPBMetadata\Google\Type\Timeofday::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xDC\xBA\x05\x0A\x1Fgoogle/privacy/dlp/v2/dlp.proto\x12\x15google.privacy.dlp.v2\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A#google/privacy/dlp/v2/storage.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\x1A\x16google/type/date.proto\x1A\x1Bgoogle/type/dayofweek.proto\x1A\x1Bgoogle/type/timeofday.proto\"G\x0A\x10ExcludeInfoTypes\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\"\xA8\x01\x0A\x10ExcludeByHotword\x12B\x0A\x0Dhotword_regex\x18\x01 \x01(\x0B2+.google.privacy.dlp.v2.CustomInfoType.Regex\x12P\x0A\x09proximity\x18\x02 \x01(\x0B2=.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity\"\x9A\x01\x0A\x16ExcludeByImageFindings\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12K\x0A\x16image_containment_type\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.ImageContainmentType\"\xBB\x03\x0A\x0DExclusionRule\x12F\x0A\x0Adictionary\x18\x01 \x01(\x0B20.google.privacy.dlp.v2.CustomInfoType.DictionaryH\x00\x12<\x0A\x05regex\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.CustomInfoType.RegexH\x00\x12E\x0A\x12exclude_info_types\x18\x03 \x01(\x0B2'.google.privacy.dlp.v2.ExcludeInfoTypesH\x00\x12E\x0A\x12exclude_by_hotword\x18\x05 \x01(\x0B2'.google.privacy.dlp.v2.ExcludeByHotwordH\x00\x12R\x0A\x19exclude_by_image_findings\x18\x06 \x01(\x0B2-.google.privacy.dlp.v2.ExcludeByImageFindingsH\x00\x12:\x0A\x0Dmatching_type\x18\x04 \x01(\x0E2#.google.privacy.dlp.v2.MatchingTypeB\x06\x0A\x04type\"\xC7\x01\x0A\x19AdjustByMatchingInfoTypes\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x129\x0A\x0Emin_likelihood\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x12:\x0A\x0Dmatching_type\x18\x03 \x01(\x0E2#.google.privacy.dlp.v2.MatchingType\"\xD4\x01\x0A\x15AdjustByImageFindings\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x129\x0A\x0Emin_likelihood\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x12K\x0A\x16image_containment_type\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.ImageContainmentType\"\xB4\x02\x0A\x0EAdjustmentRule\x12Y\x0A\x1Dadjust_by_matching_info_types\x18\x01 \x01(\x0B20.google.privacy.dlp.v2.AdjustByMatchingInfoTypesH\x00\x12P\x0A\x18adjust_by_image_findings\x18\x03 \x01(\x0B2,.google.privacy.dlp.v2.AdjustByImageFindingsH\x00\x12g\x0A\x15likelihood_adjustment\x18\x02 \x01(\x0B2H.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustmentB\x0C\x0A\x0Aconditions\"\xF3\x01\x0A\x0EInspectionRule\x12W\x0A\x0Chotword_rule\x18\x01 \x01(\x0B2?.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRuleH\x00\x12>\x0A\x0Eexclusion_rule\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.ExclusionRuleH\x00\x12@\x0A\x0Fadjustment_rule\x18\x03 \x01(\x0B2%.google.privacy.dlp.v2.AdjustmentRuleH\x00B\x06\x0A\x04type\"~\x0A\x11InspectionRuleSet\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x124\x0A\x05rules\x18\x02 \x03(\x0B2%.google.privacy.dlp.v2.InspectionRule\"\xAC\x07\x0A\x0DInspectConfig\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x129\x0A\x0Emin_likelihood\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x12]\x0A\x1Cmin_likelihood_per_info_type\x18\x0B \x03(\x0B27.google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood\x12B\x0A\x06limits\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.InspectConfig.FindingLimits\x12\x15\x0A\x0Dinclude_quote\x18\x04 \x01(\x08\x12\x1A\x0A\x12exclude_info_types\x18\x05 \x01(\x08\x12@\x0A\x11custom_info_types\x18\x06 \x03(\x0B2%.google.privacy.dlp.v2.CustomInfoType\x12=\x0A\x0Fcontent_options\x18\x08 \x03(\x0E2\$.google.privacy.dlp.v2.ContentOption\x12:\x0A\x08rule_set\x18\x0A \x03(\x0B2(.google.privacy.dlp.v2.InspectionRuleSet\x1A\x83\x01\x0A\x12InfoTypeLikelihood\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x129\x0A\x0Emin_likelihood\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x1A\x91\x02\x0A\x0DFindingLimits\x12\x1D\x0A\x15max_findings_per_item\x18\x01 \x01(\x05\x12 \x0A\x18max_findings_per_request\x18\x02 \x01(\x05\x12d\x0A\x1Amax_findings_per_info_type\x18\x03 \x03(\x0B2@.google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit\x1AY\x0A\x0DInfoTypeLimit\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12\x14\x0A\x0Cmax_findings\x18\x02 \x01(\x05\"\xF9\x02\x0A\x0FByteContentItem\x12>\x0A\x04type\x18\x01 \x01(\x0E20.google.privacy.dlp.v2.ByteContentItem.BytesType\x12\x0C\x0A\x04data\x18\x02 \x01(\x0C\"\x97\x02\x0A\x09BytesType\x12\x1A\x0A\x16BYTES_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05IMAGE\x10\x06\x12\x0E\x0A\x0AIMAGE_JPEG\x10\x01\x12\x0D\x0A\x09IMAGE_BMP\x10\x02\x12\x0D\x0A\x09IMAGE_PNG\x10\x03\x12\x0D\x0A\x09IMAGE_SVG\x10\x04\x12\x0D\x0A\x09TEXT_UTF8\x10\x05\x12\x11\x0A\x0DWORD_DOCUMENT\x10\x07\x12\x07\x0A\x03PDF\x10\x08\x12\x17\x0A\x13POWERPOINT_DOCUMENT\x10\x09\x12\x12\x0A\x0EEXCEL_DOCUMENT\x10\x0A\x12\x08\x0A\x04AVRO\x10\x0B\x12\x07\x0A\x03CSV\x10\x0C\x12\x07\x0A\x03TSV\x10\x0D\x12\x09\x0A\x05AUDIO\x10\x0F\x12\x09\x0A\x05VIDEO\x10\x10\x12\x0E\x0A\x0AEXECUTABLE\x10\x11\x12\x0C\x0A\x08AI_MODEL\x10\x12\"\x97\x01\x0A\x0BContentItem\x12\x0F\x0A\x05value\x18\x03 \x01(\x09H\x00\x12-\x0A\x05table\x18\x04 \x01(\x0B2\x1C.google.privacy.dlp.v2.TableH\x00\x12;\x0A\x09byte_item\x18\x05 \x01(\x0B2&.google.privacy.dlp.v2.ByteContentItemH\x00B\x0B\x0A\x09data_item\"\x9D\x01\x0A\x05Table\x12/\x0A\x07headers\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12.\x0A\x04rows\x18\x02 \x03(\x0B2 .google.privacy.dlp.v2.Table.Row\x1A3\x0A\x03Row\x12,\x0A\x06values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\"]\x0A\x0DInspectResult\x120\x0A\x08findings\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.Finding\x12\x1A\x0A\x12findings_truncated\x18\x02 \x01(\x08\"\xDF\x05\x0A\x07Finding\x12\x0C\x0A\x04name\x18\x0E \x01(\x09\x12\x0D\x0A\x05quote\x18\x01 \x01(\x09\x122\x0A\x09info_type\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x125\x0A\x0Alikelihood\x18\x03 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x121\x0A\x08location\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.Location\x12/\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x124\x0A\x0Aquote_info\x18\x07 \x01(\x0B2 .google.privacy.dlp.v2.QuoteInfo\x125\x0A\x0Dresource_name\x18\x08 \x01(\x09B\x1E\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\x128\x0A\x0Ctrigger_name\x18\x09 \x01(\x09B\"\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\x12:\x0A\x06labels\x18\x0A \x03(\x0B2*.google.privacy.dlp.v2.Finding.LabelsEntry\x123\x0A\x0Fjob_create_time\x18\x0B \x01(\x0B2\x1A.google.protobuf.Timestamp\x120\x0A\x08job_name\x18\x0D \x01(\x09B\x1E\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\x12\x12\x0A\x0Afinding_id\x18\x0F \x01(\x09\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:[\xEAAX\x0A\x1Adlp.googleapis.com/Finding\x12:projects/{project}/locations/{location}/findings/{finding}\"\xEB\x01\x0A\x08Location\x120\x0A\x0Abyte_range\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Range\x125\x0A\x0Fcodepoint_range\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.Range\x12A\x0A\x11content_locations\x18\x07 \x03(\x0B2&.google.privacy.dlp.v2.ContentLocation\x123\x0A\x09container\x18\x08 \x01(\x0B2 .google.privacy.dlp.v2.Container\"\x97\x03\x0A\x0FContentLocation\x12\x16\x0A\x0Econtainer_name\x18\x01 \x01(\x09\x12@\x0A\x0Frecord_location\x18\x02 \x01(\x0B2%.google.privacy.dlp.v2.RecordLocationH\x00\x12>\x0A\x0Eimage_location\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.ImageLocationH\x00\x12D\x0A\x11document_location\x18\x05 \x01(\x0B2'.google.privacy.dlp.v2.DocumentLocationH\x00\x12D\x0A\x11metadata_location\x18\x08 \x01(\x0B2'.google.privacy.dlp.v2.MetadataLocationH\x00\x127\x0A\x13container_timestamp\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x19\x0A\x11container_version\x18\x07 \x01(\x09B\x0A\x0A\x08location\"\xE6\x01\x0A\x10MetadataLocation\x121\x0A\x04type\x18\x01 \x01(\x0E2#.google.privacy.dlp.v2.MetadataType\x12D\x0A\x0Dstorage_label\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.StorageMetadataLabelH\x00\x12P\x0A\x18key_value_metadata_label\x18\x04 \x01(\x0B2,.google.privacy.dlp.v2.KeyValueMetadataLabelH\x00B\x07\x0A\x05label\"#\x0A\x14StorageMetadataLabel\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\"\$\x0A\x15KeyValueMetadataLabel\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\"'\x0A\x10DocumentLocation\x12\x13\x0A\x0Bfile_offset\x18\x01 \x01(\x03\"\xB6\x01\x0A\x0ERecordLocation\x124\x0A\x0Arecord_key\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.RecordKey\x120\x0A\x08field_id\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12<\x0A\x0Etable_location\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.TableLocation\"\"\x0A\x0DTableLocation\x12\x11\x0A\x09row_index\x18\x01 \x01(\x03\"\xAC\x01\x0A\x09Container\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x12\x0A\x0Aproject_id\x18\x02 \x01(\x09\x12\x11\x0A\x09full_path\x18\x03 \x01(\x09\x12\x11\x0A\x09root_path\x18\x04 \x01(\x09\x12\x15\x0A\x0Drelative_path\x18\x05 \x01(\x09\x12/\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0F\x0A\x07version\x18\x07 \x01(\x09\"#\x0A\x05Range\x12\x0D\x0A\x05start\x18\x01 \x01(\x03\x12\x0B\x0A\x03end\x18\x02 \x01(\x03\"K\x0A\x0DImageLocation\x12:\x0A\x0Ebounding_boxes\x18\x01 \x03(\x0B2\".google.privacy.dlp.v2.BoundingBox\"G\x0A\x0BBoundingBox\x12\x0B\x0A\x03top\x18\x01 \x01(\x05\x12\x0C\x0A\x04left\x18\x02 \x01(\x05\x12\x0D\x0A\x05width\x18\x03 \x01(\x05\x12\x0E\x0A\x06height\x18\x04 \x01(\x05\"\xB3\x04\x0A\x12RedactImageRequest\x122\x0A\x06parent\x18\x01 \x01(\x09B\"\xFAA\x1F\x12\x1Ddlp.googleapis.com/DlpContent\x12\x13\x0A\x0Blocation_id\x18\x08 \x01(\x09\x12<\x0A\x0Einspect_config\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x12_\x0A\x17image_redaction_configs\x18\x05 \x03(\x0B2>.google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig\x12\x18\x0A\x10include_findings\x18\x06 \x01(\x08\x129\x0A\x09byte_item\x18\x07 \x01(\x0B2&.google.privacy.dlp.v2.ByteContentItem\x12\x18\x0A\x10inspect_template\x18\x09 \x01(\x09\x12\x1B\x0A\x13deidentify_template\x18\x0A \x01(\x09\x1A\xA8\x01\x0A\x14ImageRedactionConfig\x124\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoTypeH\x00\x12\x19\x0A\x0Fredact_all_text\x18\x02 \x01(\x08H\x00\x125\x0A\x0Fredaction_color\x18\x03 \x01(\x0B2\x1C.google.privacy.dlp.v2.ColorB\x08\x0A\x06target\"1\x0A\x05Color\x12\x0B\x0A\x03red\x18\x01 \x01(\x02\x12\x0D\x0A\x05green\x18\x02 \x01(\x02\x12\x0C\x0A\x04blue\x18\x03 \x01(\x02\"\x83\x01\x0A\x13RedactImageResponse\x12\x16\x0A\x0Eredacted_image\x18\x01 \x01(\x0C\x12\x16\x0A\x0Eextracted_text\x18\x02 \x01(\x09\x12<\x0A\x0Einspect_result\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.InspectResult\"\xD8\x02\x0A\x18DeidentifyContentRequest\x122\x0A\x06parent\x18\x01 \x01(\x09B\"\xFAA\x1F\x12\x1Ddlp.googleapis.com/DlpContent\x12B\x0A\x11deidentify_config\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.DeidentifyConfig\x12<\x0A\x0Einspect_config\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x120\x0A\x04item\x18\x04 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12\x1D\x0A\x15inspect_template_name\x18\x05 \x01(\x09\x12 \x0A\x18deidentify_template_name\x18\x06 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x07 \x01(\x09\"\x8E\x01\x0A\x19DeidentifyContentResponse\x120\x0A\x04item\x18\x01 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12?\x0A\x08overview\x18\x02 \x01(\x0B2-.google.privacy.dlp.v2.TransformationOverview\"\xDB\x02\x0A\x18ReidentifyContentRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/DlpContent\x12B\x0A\x11reidentify_config\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.DeidentifyConfig\x12<\x0A\x0Einspect_config\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x120\x0A\x04item\x18\x04 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12\x1D\x0A\x15inspect_template_name\x18\x05 \x01(\x09\x12 \x0A\x18reidentify_template_name\x18\x06 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x07 \x01(\x09\"\x8E\x01\x0A\x19ReidentifyContentResponse\x120\x0A\x04item\x18\x01 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12?\x0A\x08overview\x18\x02 \x01(\x0B2-.google.privacy.dlp.v2.TransformationOverview\"\xEF\x01\x0A\x15InspectContentRequest\x122\x0A\x06parent\x18\x01 \x01(\x09B\"\xFAA\x1F\x12\x1Ddlp.googleapis.com/DlpContent\x12<\x0A\x0Einspect_config\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x120\x0A\x04item\x18\x03 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12\x1D\x0A\x15inspect_template_name\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09\"N\x0A\x16InspectContentResponse\x124\x0A\x06result\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.InspectResult\"\xF8\x02\x0A\x13OutputStorageConfig\x125\x0A\x05table\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTableH\x00\x12?\x0A\x0Cstorage_path\x18\x05 \x01(\x0B2'.google.privacy.dlp.v2.CloudStoragePathH\x00\x12N\x0A\x0Doutput_schema\x18\x03 \x01(\x0E27.google.privacy.dlp.v2.OutputStorageConfig.OutputSchema\"\x90\x01\x0A\x0COutputSchema\x12\x1D\x0A\x19OUTPUT_SCHEMA_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DBASIC_COLUMNS\x10\x01\x12\x0F\x0A\x0BGCS_COLUMNS\x10\x02\x12\x15\x0A\x11DATASTORE_COLUMNS\x10\x03\x12\x15\x0A\x11BIG_QUERY_COLUMNS\x10\x04\x12\x0F\x0A\x0BALL_COLUMNS\x10\x05B\x06\x0A\x04type\"R\x0A\x0DInfoTypeStats\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12\x0D\x0A\x05count\x18\x02 \x01(\x03\"\xC0\x04\x0A\x18InspectDataSourceDetails\x12[\x0A\x11requested_options\x18\x02 \x01(\x0B2@.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions\x12F\x0A\x06result\x18\x03 \x01(\x0B26.google.privacy.dlp.v2.InspectDataSourceDetails.Result\x1A\x9A\x01\x0A\x10RequestedOptions\x12I\x0A\x19snapshot_inspect_template\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.InspectTemplate\x12;\x0A\x0Ajob_config\x18\x03 \x01(\x0B2'.google.privacy.dlp.v2.InspectJobConfig\x1A\xE1\x01\x0A\x06Result\x12\x17\x0A\x0Fprocessed_bytes\x18\x01 \x01(\x03\x12\x1D\x0A\x15total_estimated_bytes\x18\x02 \x01(\x03\x12=\x0A\x0Finfo_type_stats\x18\x03 \x03(\x0B2\$.google.privacy.dlp.v2.InfoTypeStats\x12\x1A\x0A\x12num_rows_processed\x18\x05 \x01(\x03\x12D\x0A\x0Chybrid_stats\x18\x07 \x01(\x0B2..google.privacy.dlp.v2.HybridInspectStatistics\"\xFF\x01\x0A\x1CDataProfileBigQueryRowSchema\x12@\x0A\x0Dtable_profile\x18\x01 \x01(\x0B2'.google.privacy.dlp.v2.TableDataProfileH\x00\x12B\x0A\x0Ecolumn_profile\x18\x02 \x01(\x0B2(.google.privacy.dlp.v2.ColumnDataProfileH\x00\x12I\x0A\x12file_store_profile\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.FileStoreDataProfileH\x00B\x0E\x0A\x0Cdata_profile\"`\x0A\x17HybridInspectStatistics\x12\x17\x0A\x0Fprocessed_count\x18\x01 \x01(\x03\x12\x15\x0A\x0Daborted_count\x18\x02 \x01(\x03\x12\x15\x0A\x0Dpending_count\x18\x03 \x01(\x03\"l\x0A\x0DActionDetails\x12P\x0A\x12deidentify_details\x18\x01 \x01(\x0B22.google.privacy.dlp.v2.DeidentifyDataSourceDetailsH\x00B\x09\x0A\x07details\"x\x0A\x19DeidentifyDataSourceStats\x12\x19\x0A\x11transformed_bytes\x18\x01 \x01(\x03\x12\x1C\x0A\x14transformation_count\x18\x02 \x01(\x03\x12\"\x0A\x1Atransformation_error_count\x18\x03 \x01(\x03\"\xF2\x03\x0A\x1BDeidentifyDataSourceDetails\x12h\x0A\x11requested_options\x18\x01 \x01(\x0B2M.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions\x12J\x0A\x10deidentify_stats\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.DeidentifyDataSourceStats\x1A\x9C\x02\x0A\x1ARequestedDeidentifyOptions\x12O\x0A\x1Csnapshot_deidentify_template\x18\x01 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\x12Z\x0A'snapshot_structured_deidentify_template\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\x12Q\x0A\x1Esnapshot_image_redact_template\x18\x03 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\"\xDF\x01\x0A\x0FLocationSupport\x12Z\x0A\x15regionalization_scope\x18\x01 \x01(\x0E2;.google.privacy.dlp.v2.LocationSupport.RegionalizationScope\x12\x11\x0A\x09locations\x18\x02 \x03(\x09\"]\x0A\x14RegionalizationScope\x12%\x0A!REGIONALIZATION_SCOPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08REGIONAL\x10\x01\x12\x10\x0A\x0CANY_LOCATION\x10\x02\"\x9B\x05\x0A\x13InfoTypeDescription\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12@\x0A\x0Csupported_by\x18\x03 \x03(\x0E2*.google.privacy.dlp.v2.InfoTypeSupportedBy\x12\x13\x0A\x0Bdescription\x18\x04 \x01(\x09\x12@\x0A\x10location_support\x18\x06 \x01(\x0B2&.google.privacy.dlp.v2.LocationSupport\x12\x0F\x0A\x07example\x18\x08 \x01(\x09\x12;\x0A\x08versions\x18\x09 \x03(\x0B2).google.privacy.dlp.v2.VersionDescription\x12;\x0A\x0Acategories\x18\x0A \x03(\x0B2'.google.privacy.dlp.v2.InfoTypeCategory\x12B\x0A\x11sensitivity_score\x18\x0B \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12\x1B\x0A\x13specific_info_types\x18\x0C \x03(\x09\x12V\x0A\x0Dlaunch_status\x18\x0D \x01(\x0E2?.google.privacy.dlp.v2.InfoTypeDescription.InfoTypeLaunchStatus\"\x82\x01\x0A\x14InfoTypeLaunchStatus\x12'\x0A#INFO_TYPE_LAUNCH_STATUS_UNSPECIFIED\x10\x00\x12\x18\x0A\x14GENERAL_AVAILABILITY\x10\x01\x12\x12\x0A\x0EPUBLIC_PREVIEW\x10\x02\x12\x13\x0A\x0FPRIVATE_PREVIEW\x10\x03\"\x90\x0A\x0A\x10InfoTypeCategory\x12U\x0A\x11location_category\x18\x01 \x01(\x0E28.google.privacy.dlp.v2.InfoTypeCategory.LocationCategoryH\x00\x12U\x0A\x11industry_category\x18\x02 \x01(\x0E28.google.privacy.dlp.v2.InfoTypeCategory.IndustryCategoryH\x00\x12M\x0A\x0Dtype_category\x18\x03 \x01(\x0E24.google.privacy.dlp.v2.InfoTypeCategory.TypeCategoryH\x00\"\xEF\x05\x0A\x10LocationCategory\x12\x18\x0A\x14LOCATION_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GLOBAL\x10\x01\x12\x0D\x0A\x09ARGENTINA\x10\x02\x12\x0B\x0A\x07ARMENIA\x103\x12\x0D\x0A\x09AUSTRALIA\x10\x03\x12\x0B\x0A\x07AUSTRIA\x105\x12\x0E\x0A\x0AAZERBAIJAN\x100\x12\x0B\x0A\x07BELARUS\x102\x12\x0B\x0A\x07BELGIUM\x10\x04\x12\x0A\x0A\x06BRAZIL\x10\x05\x12\x0A\x0A\x06CANADA\x10\x06\x12\x09\x0A\x05CHILE\x10\x07\x12\x09\x0A\x05CHINA\x10\x08\x12\x0C\x0A\x08COLOMBIA\x10\x09\x12\x0B\x0A\x07CROATIA\x10*\x12\x0B\x0A\x07CZECHIA\x104\x12\x0B\x0A\x07DENMARK\x10\x0A\x12\x0A\x0A\x06FRANCE\x10\x0B\x12\x0B\x0A\x07FINLAND\x10\x0C\x12\x0B\x0A\x07GERMANY\x10\x0D\x12\x0D\x0A\x09HONG_KONG\x10\x0E\x12\x09\x0A\x05INDIA\x10\x0F\x12\x0D\x0A\x09INDONESIA\x10\x10\x12\x0B\x0A\x07IRELAND\x10\x11\x12\x0A\x0A\x06ISRAEL\x10\x12\x12\x09\x0A\x05ITALY\x10\x13\x12\x09\x0A\x05JAPAN\x10\x14\x12\x0E\x0A\x0AKAZAKHSTAN\x10/\x12\x09\x0A\x05KOREA\x10\x15\x12\x0A\x0A\x06MEXICO\x10\x16\x12\x13\x0A\x0FTHE_NETHERLANDS\x10\x17\x12\x0F\x0A\x0BNEW_ZEALAND\x10)\x12\x0A\x0A\x06NORWAY\x10\x18\x12\x0C\x0A\x08PARAGUAY\x10\x19\x12\x08\x0A\x04PERU\x10\x1A\x12\x0A\x0A\x06POLAND\x10\x1B\x12\x0C\x0A\x08PORTUGAL\x10\x1C\x12\x0A\x0A\x06RUSSIA\x10,\x12\x0D\x0A\x09SINGAPORE\x10\x1D\x12\x10\x0A\x0CSOUTH_AFRICA\x10\x1E\x12\x09\x0A\x05SPAIN\x10\x1F\x12\x0A\x0A\x06SWEDEN\x10 \x12\x0F\x0A\x0BSWITZERLAND\x10+\x12\x0A\x0A\x06TAIWAN\x10!\x12\x0C\x0A\x08THAILAND\x10\"\x12\x0A\x0A\x06TURKEY\x10#\x12\x0B\x0A\x07UKRAINE\x10-\x12\x12\x0A\x0EUNITED_KINGDOM\x10\$\x12\x11\x0A\x0DUNITED_STATES\x10%\x12\x0B\x0A\x07URUGUAY\x10&\x12\x0E\x0A\x0AUZBEKISTAN\x10.\x12\x0D\x0A\x09VENEZUELA\x10'\x12\x0C\x0A\x08INTERNAL\x10(\"]\x0A\x10IndustryCategory\x12\x18\x0A\x14INDUSTRY_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07FINANCE\x10\x01\x12\x0A\x0A\x06HEALTH\x10\x02\x12\x16\x0A\x12TELECOMMUNICATIONS\x10\x03\"\xA1\x01\x0A\x0CTypeCategory\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03PII\x10\x01\x12\x08\x0A\x04SPII\x10\x02\x12\x0F\x0A\x0BDEMOGRAPHIC\x10\x03\x12\x0E\x0A\x0ACREDENTIAL\x10\x04\x12\x11\x0A\x0DGOVERNMENT_ID\x10\x05\x12\x0C\x0A\x08DOCUMENT\x10\x06\x12\x1A\x0A\x16CONTEXTUAL_INFORMATION\x10\x07\x12\x0A\x0A\x06CUSTOM\x10\x08B\x0A\x0A\x08category\":\x0A\x12VersionDescription\x12\x0F\x0A\x07version\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\"b\x0A\x14ListInfoTypesRequest\x12\x0E\x0A\x06parent\x18\x04 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x01 \x01(\x09\x12\x0E\x0A\x06filter\x18\x02 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x03 \x01(\x09\"W\x0A\x15ListInfoTypesResponse\x12>\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2*.google.privacy.dlp.v2.InfoTypeDescription\"\xC1\x01\x0A\x15RiskAnalysisJobConfig\x12<\x0A\x0Eprivacy_metric\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.PrivacyMetric\x12:\x0A\x0Csource_table\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12.\x0A\x07actions\x18\x03 \x03(\x0B2\x1D.google.privacy.dlp.v2.Action\"\xBC\x01\x0A\x07QuasiId\x122\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x124\x0A\x09info_type\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoTypeH\x00\x12\x14\x0A\x0Acustom_tag\x18\x03 \x01(\x09H\x00\x12*\x0A\x08inferred\x18\x04 \x01(\x0B2\x16.google.protobuf.EmptyH\x00B\x05\x0A\x03tag\"\xBE\x02\x0A\x10StatisticalTable\x128\x0A\x05table\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTableB\x03\xE0A\x02\x12T\x0A\x09quasi_ids\x18\x01 \x03(\x0B2<.google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierFieldB\x03\xE0A\x02\x12?\x0A\x12relative_frequency\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x1AY\x0A\x14QuasiIdentifierField\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12\x12\x0A\x0Acustom_tag\x18\x02 \x01(\x09\"\x93\x0F\x0A\x0DPrivacyMetric\x12[\x0A\x16numerical_stats_config\x18\x01 \x01(\x0B29.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfigH\x00\x12_\x0A\x18categorical_stats_config\x18\x02 \x01(\x0B2;.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfigH\x00\x12S\x0A\x12k_anonymity_config\x18\x03 \x01(\x0B25.google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfigH\x00\x12S\x0A\x12l_diversity_config\x18\x04 \x01(\x0B25.google.privacy.dlp.v2.PrivacyMetric.LDiversityConfigH\x00\x12\\\x0A\x17k_map_estimation_config\x18\x05 \x01(\x0B29.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfigH\x00\x12n\x0A delta_presence_estimation_config\x18\x06 \x01(\x0B2B.google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfigH\x00\x1AE\x0A\x14NumericalStatsConfig\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x1AG\x0A\x16CategoricalStatsConfig\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x1Ay\x0A\x10KAnonymityConfig\x121\x0A\x09quasi_ids\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x122\x0A\x09entity_id\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.EntityId\x1A\x82\x01\x0A\x10LDiversityConfig\x121\x0A\x09quasi_ids\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12;\x0A\x13sensitive_attribute\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x1A\x81\x06\x0A\x14KMapEstimationConfig\x12]\x0A\x09quasi_ids\x18\x01 \x03(\x0B2E.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedFieldB\x03\xE0A\x02\x12\x13\x0A\x0Bregion_code\x18\x02 \x01(\x09\x12b\x0A\x10auxiliary_tables\x18\x03 \x03(\x0B2H.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable\x1A\xC0\x01\x0A\x0BTaggedField\x122\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x124\x0A\x09info_type\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoTypeH\x00\x12\x14\x0A\x0Acustom_tag\x18\x03 \x01(\x09H\x00\x12*\x0A\x08inferred\x18\x04 \x01(\x0B2\x16.google.protobuf.EmptyH\x00B\x05\x0A\x03tag\x1A\xCD\x02\x0A\x0EAuxiliaryTable\x128\x0A\x05table\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTableB\x03\xE0A\x02\x12m\x0A\x09quasi_ids\x18\x01 \x03(\x0B2U.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdFieldB\x03\xE0A\x02\x12?\x0A\x12relative_frequency\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x1AQ\x0A\x0CQuasiIdField\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12\x12\x0A\x0Acustom_tag\x18\x02 \x01(\x09\x1A\xAF\x01\x0A\x1DDeltaPresenceEstimationConfig\x126\x0A\x09quasi_ids\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.QuasiIdB\x03\xE0A\x02\x12\x13\x0A\x0Bregion_code\x18\x02 \x01(\x09\x12A\x0A\x10auxiliary_tables\x18\x03 \x03(\x0B2'.google.privacy.dlp.v2.StatisticalTableB\x06\x0A\x04type\"\xC1\x1F\x0A\x1CAnalyzeDataSourceRiskDetails\x12F\x0A\x18requested_privacy_metric\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.PrivacyMetric\x12D\x0A\x16requested_source_table\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12j\x0A\x16numerical_stats_result\x18\x03 \x01(\x0B2H.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResultH\x00\x12n\x0A\x18categorical_stats_result\x18\x04 \x01(\x0B2J.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResultH\x00\x12b\x0A\x12k_anonymity_result\x18\x05 \x01(\x0B2D.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResultH\x00\x12b\x0A\x12l_diversity_result\x18\x06 \x01(\x0B2D.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResultH\x00\x12k\x0A\x17k_map_estimation_result\x18\x07 \x01(\x0B2H.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResultH\x00\x12}\x0A delta_presence_estimation_result\x18\x09 \x01(\x0B2Q.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResultH\x00\x12k\x0A\x11requested_options\x18\x0A \x01(\x0B2P.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions\x1A\xAF\x01\x0A\x14NumericalStatsResult\x12/\x0A\x09min_value\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x12/\x0A\x09max_value\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x125\x0A\x0Fquantile_values\x18\x04 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x1A\x8D\x03\x0A\x16CategoricalStatsResult\x12\x95\x01\x0A!value_frequency_histogram_buckets\x18\x05 \x03(\x0B2j.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket\x1A\xDA\x01\x0A\x1FCategoricalStatsHistogramBucket\x12#\x0A\x1Bvalue_frequency_lower_bound\x18\x01 \x01(\x03\x12#\x0A\x1Bvalue_frequency_upper_bound\x18\x02 \x01(\x03\x12\x13\x0A\x0Bbucket_size\x18\x03 \x01(\x03\x12<\x0A\x0Dbucket_values\x18\x04 \x03(\x0B2%.google.privacy.dlp.v2.ValueFrequency\x12\x1A\x0A\x12bucket_value_count\x18\x05 \x01(\x03\x1A\xB5\x04\x0A\x10KAnonymityResult\x12\x8B\x01\x0A#equivalence_class_histogram_buckets\x18\x05 \x03(\x0B2^.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket\x1At\x0A\x1AKAnonymityEquivalenceClass\x126\x0A\x10quasi_ids_values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x1E\x0A\x16equivalence_class_size\x18\x02 \x01(\x03\x1A\x9C\x02\x0A\x19KAnonymityHistogramBucket\x12*\x0A\"equivalence_class_size_lower_bound\x18\x01 \x01(\x03\x12*\x0A\"equivalence_class_size_upper_bound\x18\x02 \x01(\x03\x12\x13\x0A\x0Bbucket_size\x18\x03 \x01(\x03\x12v\x0A\x0Dbucket_values\x18\x04 \x03(\x0B2_.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass\x12\x1A\x0A\x12bucket_value_count\x18\x05 \x01(\x03\x1A\xB0\x05\x0A\x10LDiversityResult\x12\x93\x01\x0A+sensitive_value_frequency_histogram_buckets\x18\x05 \x03(\x0B2^.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket\x1A\xE0\x01\x0A\x1ALDiversityEquivalenceClass\x126\x0A\x10quasi_ids_values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x1E\x0A\x16equivalence_class_size\x18\x02 \x01(\x03\x12%\x0A\x1Dnum_distinct_sensitive_values\x18\x03 \x01(\x03\x12C\x0A\x14top_sensitive_values\x18\x04 \x03(\x0B2%.google.privacy.dlp.v2.ValueFrequency\x1A\xA2\x02\x0A\x19LDiversityHistogramBucket\x12-\x0A%sensitive_value_frequency_lower_bound\x18\x01 \x01(\x03\x12-\x0A%sensitive_value_frequency_upper_bound\x18\x02 \x01(\x03\x12\x13\x0A\x0Bbucket_size\x18\x03 \x01(\x03\x12v\x0A\x0Dbucket_values\x18\x04 \x03(\x0B2_.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass\x12\x1A\x0A\x12bucket_value_count\x18\x05 \x01(\x03\x1A\x95\x04\x0A\x14KMapEstimationResult\x12\x8A\x01\x0A\x1Ak_map_estimation_histogram\x18\x01 \x03(\x0B2f.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket\x1Ar\x0A\x1BKMapEstimationQuasiIdValues\x126\x0A\x10quasi_ids_values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x1B\x0A\x13estimated_anonymity\x18\x02 \x01(\x03\x1A\xFB\x01\x0A\x1DKMapEstimationHistogramBucket\x12\x15\x0A\x0Dmin_anonymity\x18\x01 \x01(\x03\x12\x15\x0A\x0Dmax_anonymity\x18\x02 \x01(\x03\x12\x13\x0A\x0Bbucket_size\x18\x05 \x01(\x03\x12{\x0A\x0Dbucket_values\x18\x06 \x03(\x0B2d.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues\x12\x1A\x0A\x12bucket_value_count\x18\x07 \x01(\x03\x1A\xE4\x04\x0A\x1DDeltaPresenceEstimationResult\x12\xA5\x01\x0A#delta_presence_estimation_histogram\x18\x01 \x03(\x0B2x.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket\x1A}\x0A\$DeltaPresenceEstimationQuasiIdValues\x126\x0A\x10quasi_ids_values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x1D\x0A\x15estimated_probability\x18\x02 \x01(\x01\x1A\x9B\x02\x0A&DeltaPresenceEstimationHistogramBucket\x12\x17\x0A\x0Fmin_probability\x18\x01 \x01(\x01\x12\x17\x0A\x0Fmax_probability\x18\x02 \x01(\x01\x12\x13\x0A\x0Bbucket_size\x18\x05 \x01(\x03\x12\x8D\x01\x0A\x0Dbucket_values\x18\x06 \x03(\x0B2v.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues\x12\x1A\x0A\x12bucket_value_count\x18\x07 \x01(\x03\x1A`\x0A\x1CRequestedRiskAnalysisOptions\x12@\x0A\x0Ajob_config\x18\x01 \x01(\x0B2,.google.privacy.dlp.v2.RiskAnalysisJobConfigB\x08\x0A\x06result\"L\x0A\x0EValueFrequency\x12+\x0A\x05value\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x0D\x0A\x05count\x18\x02 \x01(\x03\"\xB3\x02\x0A\x05Value\x12\x17\x0A\x0Dinteger_value\x18\x01 \x01(\x03H\x00\x12\x15\x0A\x0Bfloat_value\x18\x02 \x01(\x01H\x00\x12\x16\x0A\x0Cstring_value\x18\x03 \x01(\x09H\x00\x12\x17\x0A\x0Dboolean_value\x18\x04 \x01(\x08H\x00\x125\x0A\x0Ftimestamp_value\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00\x12,\x0A\x0Atime_value\x18\x06 \x01(\x0B2\x16.google.type.TimeOfDayH\x00\x12'\x0A\x0Adate_value\x18\x07 \x01(\x0B2\x11.google.type.DateH\x00\x123\x0A\x11day_of_week_value\x18\x08 \x01(\x0E2\x16.google.type.DayOfWeekH\x00B\x06\x0A\x04type\"Q\x0A\x09QuoteInfo\x124\x0A\x09date_time\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.DateTimeH\x00B\x0E\x0A\x0Cparsed_quote\"\xDF\x01\x0A\x08DateTime\x12\x1F\x0A\x04date\x18\x01 \x01(\x0B2\x11.google.type.Date\x12+\x0A\x0Bday_of_week\x18\x02 \x01(\x0E2\x16.google.type.DayOfWeek\x12\$\x0A\x04time\x18\x03 \x01(\x0B2\x16.google.type.TimeOfDay\x12;\x0A\x09time_zone\x18\x04 \x01(\x0B2(.google.privacy.dlp.v2.DateTime.TimeZone\x1A\"\x0A\x08TimeZone\x12\x16\x0A\x0Eoffset_minutes\x18\x01 \x01(\x05\"\xF2\x02\x0A\x10DeidentifyConfig\x12S\x0A\x19info_type_transformations\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.InfoTypeTransformationsH\x00\x12N\x0A\x16record_transformations\x18\x02 \x01(\x0B2,.google.privacy.dlp.v2.RecordTransformationsH\x00\x12L\x0A\x15image_transformations\x18\x04 \x01(\x0B2+.google.privacy.dlp.v2.ImageTransformationsH\x00\x12Y\x0A\x1Dtransformation_error_handling\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.TransformationErrorHandlingB\x10\x0A\x0Etransformation\"\xE5\x04\x0A\x14ImageTransformations\x12S\x0A\x0Atransforms\x18\x02 \x03(\x0B2?.google.privacy.dlp.v2.ImageTransformations.ImageTransformation\x1A\xF7\x03\x0A\x13ImageTransformation\x12p\x0A\x13selected_info_types\x18\x04 \x01(\x0B2Q.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypesH\x00\x12f\x0A\x0Eall_info_types\x18\x05 \x01(\x0B2L.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypesH\x00\x12[\x0A\x08all_text\x18\x06 \x01(\x0B2G.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllTextH\x00\x125\x0A\x0Fredaction_color\x18\x03 \x01(\x0B2\x1C.google.privacy.dlp.v2.Color\x1AM\x0A\x11SelectedInfoTypes\x128\x0A\x0Ainfo_types\x18\x05 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoTypeB\x03\xE0A\x02\x1A\x0E\x0A\x0CAllInfoTypes\x1A\x09\x0A\x07AllTextB\x08\x0A\x06target\"\x85\x02\x0A\x1BTransformationErrorHandling\x12T\x0A\x0Bthrow_error\x18\x01 \x01(\x0B2=.google.privacy.dlp.v2.TransformationErrorHandling.ThrowErrorH\x00\x12d\x0A\x13leave_untransformed\x18\x02 \x01(\x0B2E.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformedH\x00\x1A\x0C\x0A\x0AThrowError\x1A\x14\x0A\x12LeaveUntransformedB\x06\x0A\x04mode\"\xCA\x07\x0A\x17PrimitiveTransformation\x12C\x0A\x0Ereplace_config\x18\x01 \x01(\x0B2).google.privacy.dlp.v2.ReplaceValueConfigH\x00\x12<\x0A\x0Dredact_config\x18\x02 \x01(\x0B2#.google.privacy.dlp.v2.RedactConfigH\x00\x12K\x0A\x15character_mask_config\x18\x03 \x01(\x0B2*.google.privacy.dlp.v2.CharacterMaskConfigH\x00\x12Y\x0A\x1Dcrypto_replace_ffx_fpe_config\x18\x04 \x01(\x0B20.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfigH\x00\x12V\x0A\x1Bfixed_size_bucketing_config\x18\x05 \x01(\x0B2/.google.privacy.dlp.v2.FixedSizeBucketingConfigH\x00\x12B\x0A\x10bucketing_config\x18\x06 \x01(\x0B2&.google.privacy.dlp.v2.BucketingConfigH\x00\x12Y\x0A\x1Dreplace_with_info_type_config\x18\x07 \x01(\x0B20.google.privacy.dlp.v2.ReplaceWithInfoTypeConfigH\x00\x12A\x0A\x10time_part_config\x18\x08 \x01(\x0B2%.google.privacy.dlp.v2.TimePartConfigH\x00\x12E\x0A\x12crypto_hash_config\x18\x09 \x01(\x0B2'.google.privacy.dlp.v2.CryptoHashConfigH\x00\x12C\x0A\x11date_shift_config\x18\x0B \x01(\x0B2&.google.privacy.dlp.v2.DateShiftConfigH\x00\x12W\x0A\x1Bcrypto_deterministic_config\x18\x0C \x01(\x0B20.google.privacy.dlp.v2.CryptoDeterministicConfigH\x00\x12S\x0A\x19replace_dictionary_config\x18\x0D \x01(\x0B2..google.privacy.dlp.v2.ReplaceDictionaryConfigH\x00B\x10\x0A\x0Etransformation\"\xDC\x01\x0A\x0ETimePartConfig\x12G\x0A\x0Fpart_to_extract\x18\x01 \x01(\x0E2..google.privacy.dlp.v2.TimePartConfig.TimePart\"\x80\x01\x0A\x08TimePart\x12\x19\x0A\x15TIME_PART_UNSPECIFIED\x10\x00\x12\x08\x0A\x04YEAR\x10\x01\x12\x09\x0A\x05MONTH\x10\x02\x12\x10\x0A\x0CDAY_OF_MONTH\x10\x03\x12\x0F\x0A\x0BDAY_OF_WEEK\x10\x04\x12\x10\x0A\x0CWEEK_OF_YEAR\x10\x05\x12\x0F\x0A\x0BHOUR_OF_DAY\x10\x06\"H\x0A\x10CryptoHashConfig\x124\x0A\x0Acrypto_key\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.CryptoKey\"\xC0\x01\x0A\x19CryptoDeterministicConfig\x124\x0A\x0Acrypto_key\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.CryptoKey\x12<\x0A\x13surrogate_info_type\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12/\x0A\x07context\x18\x03 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\"E\x0A\x12ReplaceValueConfig\x12/\x0A\x09new_value\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\"q\x0A\x17ReplaceDictionaryConfig\x12N\x0A\x09word_list\x18\x01 \x01(\x0B29.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordListH\x00B\x06\x0A\x04type\"\x1B\x0A\x19ReplaceWithInfoTypeConfig\"\x0E\x0A\x0CRedactConfig\"\xB6\x02\x0A\x0DCharsToIgnore\x12\x1C\x0A\x12characters_to_skip\x18\x01 \x01(\x09H\x00\x12_\x0A\x1Bcommon_characters_to_ignore\x18\x02 \x01(\x0E28.google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnoreH\x00\"\x97\x01\x0A\x13CommonCharsToIgnore\x12&\x0A\"COMMON_CHARS_TO_IGNORE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07NUMERIC\x10\x01\x12\x14\x0A\x10ALPHA_UPPER_CASE\x10\x02\x12\x14\x0A\x10ALPHA_LOWER_CASE\x10\x03\x12\x0F\x0A\x0BPUNCTUATION\x10\x04\x12\x0E\x0A\x0AWHITESPACE\x10\x05B\x0C\x0A\x0Acharacters\"\xA3\x01\x0A\x13CharacterMaskConfig\x12\x19\x0A\x11masking_character\x18\x01 \x01(\x09\x12\x16\x0A\x0Enumber_to_mask\x18\x02 \x01(\x05\x12\x15\x0A\x0Dreverse_order\x18\x03 \x01(\x08\x12B\x0A\x14characters_to_ignore\x18\x04 \x03(\x0B2\$.google.privacy.dlp.v2.CharsToIgnore\"\xA4\x01\x0A\x18FixedSizeBucketingConfig\x126\x0A\x0Blower_bound\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.ValueB\x03\xE0A\x02\x126\x0A\x0Bupper_bound\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.ValueB\x03\xE0A\x02\x12\x18\x0A\x0Bbucket_size\x18\x03 \x01(\x01B\x03\xE0A\x02\"\xF0\x01\x0A\x0FBucketingConfig\x12>\x0A\x07buckets\x18\x01 \x03(\x0B2-.google.privacy.dlp.v2.BucketingConfig.Bucket\x1A\x9C\x01\x0A\x06Bucket\x12)\x0A\x03min\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x12)\x0A\x03max\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x12<\x0A\x11replacement_value\x18\x03 \x01(\x0B2\x1C.google.privacy.dlp.v2.ValueB\x03\xE0A\x02\"\xF9\x03\x0A\x19CryptoReplaceFfxFpeConfig\x129\x0A\x0Acrypto_key\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.CryptoKeyB\x03\xE0A\x02\x12/\x0A\x07context\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12c\x0A\x0Fcommon_alphabet\x18\x04 \x01(\x0E2H.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabetH\x00\x12\x19\x0A\x0Fcustom_alphabet\x18\x05 \x01(\x09H\x00\x12\x0F\x0A\x05radix\x18\x06 \x01(\x05H\x00\x12<\x0A\x13surrogate_info_type\x18\x08 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\"\x94\x01\x0A\x17FfxCommonNativeAlphabet\x12*\x0A&FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07NUMERIC\x10\x01\x12\x0F\x0A\x0BHEXADECIMAL\x10\x02\x12\x1C\x0A\x18UPPER_CASE_ALPHA_NUMERIC\x10\x03\x12\x11\x0A\x0DALPHA_NUMERIC\x10\x04B\x0A\x0A\x08alphabet\"\xD8\x01\x0A\x09CryptoKey\x12>\x0A\x09transient\x18\x01 \x01(\x0B2).google.privacy.dlp.v2.TransientCryptoKeyH\x00\x12>\x0A\x09unwrapped\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.UnwrappedCryptoKeyH\x00\x12A\x0A\x0Bkms_wrapped\x18\x03 \x01(\x0B2*.google.privacy.dlp.v2.KmsWrappedCryptoKeyH\x00B\x08\x0A\x06source\"'\x0A\x12TransientCryptoKey\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\"&\x0A\x12UnwrappedCryptoKey\x12\x10\x0A\x03key\x18\x01 \x01(\x0CB\x03\xE0A\x02\"M\x0A\x13KmsWrappedCryptoKey\x12\x18\x0A\x0Bwrapped_key\x18\x01 \x01(\x0CB\x03\xE0A\x02\x12\x1C\x0A\x0Fcrypto_key_name\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xC2\x01\x0A\x0FDateShiftConfig\x12\x1D\x0A\x10upper_bound_days\x18\x01 \x01(\x05B\x03\xE0A\x02\x12\x1D\x0A\x10lower_bound_days\x18\x02 \x01(\x05B\x03\xE0A\x02\x12/\x0A\x07context\x18\x03 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x126\x0A\x0Acrypto_key\x18\x04 \x01(\x0B2 .google.privacy.dlp.v2.CryptoKeyH\x00B\x08\x0A\x06method\"\xA5\x02\x0A\x17InfoTypeTransformations\x12c\x0A\x0Ftransformations\x18\x01 \x03(\x0B2E.google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformationB\x03\xE0A\x02\x1A\xA4\x01\x0A\x16InfoTypeTransformation\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12U\x0A\x18primitive_transformation\x18\x02 \x01(\x0B2..google.privacy.dlp.v2.PrimitiveTransformationB\x03\xE0A\x02\"\xC0\x02\x0A\x13FieldTransformation\x123\x0A\x06fields\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x129\x0A\x09condition\x18\x03 \x01(\x0B2&.google.privacy.dlp.v2.RecordCondition\x12R\x0A\x18primitive_transformation\x18\x04 \x01(\x0B2..google.privacy.dlp.v2.PrimitiveTransformationH\x00\x12S\x0A\x19info_type_transformations\x18\x05 \x01(\x0B2..google.privacy.dlp.v2.InfoTypeTransformationsH\x00B\x10\x0A\x0Etransformation\"\xA9\x01\x0A\x15RecordTransformations\x12I\x0A\x15field_transformations\x18\x01 \x03(\x0B2*.google.privacy.dlp.v2.FieldTransformation\x12E\x0A\x13record_suppressions\x18\x02 \x03(\x0B2(.google.privacy.dlp.v2.RecordSuppression\"N\x0A\x11RecordSuppression\x129\x0A\x09condition\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.RecordCondition\"\xDC\x04\x0A\x0FRecordCondition\x12G\x0A\x0Bexpressions\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.RecordCondition.Expressions\x1A\xAE\x01\x0A\x09Condition\x122\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x12@\x0A\x08operator\x18\x03 \x01(\x0E2).google.privacy.dlp.v2.RelationalOperatorB\x03\xE0A\x02\x12+\x0A\x05value\x18\x04 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x1AR\x0A\x0AConditions\x12D\x0A\x0Aconditions\x18\x01 \x03(\x0B20.google.privacy.dlp.v2.RecordCondition.Condition\x1A\xFA\x01\x0A\x0BExpressions\x12\\\x0A\x10logical_operator\x18\x01 \x01(\x0E2B.google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator\x12G\x0A\x0Aconditions\x18\x03 \x01(\x0B21.google.privacy.dlp.v2.RecordCondition.ConditionsH\x00\"<\x0A\x0FLogicalOperator\x12 \x0A\x1CLOGICAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x07\x0A\x03AND\x10\x01B\x06\x0A\x04type\"\x83\x01\x0A\x16TransformationOverview\x12\x19\x0A\x11transformed_bytes\x18\x02 \x01(\x03\x12N\x0A\x18transformation_summaries\x18\x03 \x03(\x0B2,.google.privacy.dlp.v2.TransformationSummary\"\x9F\x05\x0A\x15TransformationSummary\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12-\x0A\x05field\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12F\x0A\x0Etransformation\x18\x03 \x01(\x0B2..google.privacy.dlp.v2.PrimitiveTransformation\x12I\x0A\x15field_transformations\x18\x05 \x03(\x0B2*.google.privacy.dlp.v2.FieldTransformation\x12A\x0A\x0Frecord_suppress\x18\x06 \x01(\x0B2(.google.privacy.dlp.v2.RecordSuppression\x12K\x0A\x07results\x18\x04 \x03(\x0B2:.google.privacy.dlp.v2.TransformationSummary.SummaryResult\x12\x19\x0A\x11transformed_bytes\x18\x07 \x01(\x03\x1A\x84\x01\x0A\x0DSummaryResult\x12\x0D\x0A\x05count\x18\x01 \x01(\x03\x12S\x0A\x04code\x18\x02 \x01(\x0E2E.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode\x12\x0F\x0A\x07details\x18\x03 \x01(\x09\"^\x0A\x18TransformationResultCode\x12*\x0A&TRANSFORMATION_RESULT_CODE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07SUCCESS\x10\x01\x12\x09\x0A\x05ERROR\x10\x02\"\xB0\x01\x0A\x19TransformationDescription\x127\x0A\x04type\x18\x01 \x01(\x0E2).google.privacy.dlp.v2.TransformationType\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x11\x0A\x09condition\x18\x03 \x01(\x09\x122\x0A\x09info_type\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\"\xC6\x02\x0A\x15TransformationDetails\x12\x15\x0A\x0Dresource_name\x18\x01 \x01(\x09\x12\x16\x0A\x0Econtainer_name\x18\x02 \x01(\x09\x12H\x0A\x0Etransformation\x18\x03 \x03(\x0B20.google.privacy.dlp.v2.TransformationDescription\x12I\x0A\x0Estatus_details\x18\x04 \x01(\x0B21.google.privacy.dlp.v2.TransformationResultStatus\x12\x19\x0A\x11transformed_bytes\x18\x05 \x01(\x03\x12N\x0A\x17transformation_location\x18\x06 \x01(\x0B2-.google.privacy.dlp.v2.TransformationLocation\"\xD9\x01\x0A\x16TransformationLocation\x12\x14\x0A\x0Afinding_id\x18\x01 \x01(\x09H\x00\x12L\x0A\x15record_transformation\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.RecordTransformationH\x00\x12J\x0A\x0Econtainer_type\x18\x03 \x01(\x0E22.google.privacy.dlp.v2.TransformationContainerTypeB\x0F\x0A\x0Dlocation_type\"\x9C\x01\x0A\x14RecordTransformation\x120\x0A\x08field_id\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x127\x0A\x13container_timestamp\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x19\x0A\x11container_version\x18\x03 \x01(\x09\"\x94\x01\x0A\x1ATransformationResultStatus\x12Q\x0A\x12result_status_type\x18\x01 \x01(\x0E25.google.privacy.dlp.v2.TransformationResultStatusType\x12#\x0A\x07details\x18\x02 \x01(\x0B2\x12.google.rpc.Status\"c\x0A\"TransformationDetailsStorageConfig\x125\x0A\x05table\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTableH\x00B\x06\x0A\x04type\"U\x0A\x08Schedule\x12?\x0A\x1Arecurrence_period_duration\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationH\x00B\x08\x0A\x06option\"\x08\x0A\x06Manual\"\xC2\x04\x0A\x0FInspectTemplate\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12<\x0A\x0Einspect_config\x18\x06 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig:\xC6\x02\xEAA\xC2\x02\x0A\"dlp.googleapis.com/InspectTemplate\x12@organizations/{organization}/inspectTemplates/{inspect_template}\x126projects/{project}/inspectTemplates/{inspect_template}\x12Uorganizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}\x12Kprojects/{project}/locations/{location}/inspectTemplates/{inspect_template}\"\xE6\x04\x0A\x12DeidentifyTemplate\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12B\x0A\x11deidentify_config\x18\x06 \x01(\x0B2'.google.privacy.dlp.v2.DeidentifyConfig:\xE1\x02\xEAA\xDD\x02\x0A%dlp.googleapis.com/DeidentifyTemplate\x12Forganizations/{organization}/deidentifyTemplates/{deidentify_template}\x12\x0A\x0Binspect_job\x18\x04 \x01(\x0B2'.google.privacy.dlp.v2.InspectJobConfigH\x00\x12;\x0A\x08triggers\x18\x05 \x03(\x0B2).google.privacy.dlp.v2.JobTrigger.Trigger\x121\x0A\x06errors\x18\x06 \x03(\x0B2\x1C.google.privacy.dlp.v2.ErrorB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x126\x0A\x0Dlast_run_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12=\x0A\x06status\x18\x0A \x01(\x0E2(.google.privacy.dlp.v2.JobTrigger.StatusB\x03\xE0A\x02\x1Az\x0A\x07Trigger\x123\x0A\x08schedule\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.ScheduleH\x00\x12/\x0A\x06manual\x18\x02 \x01(\x0B2\x1D.google.privacy.dlp.v2.ManualH\x00B\x09\x0A\x07trigger\"H\x0A\x06Status\x12\x16\x0A\x12STATUS_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07HEALTHY\x10\x01\x12\x0A\x0A\x06PAUSED\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03:\x94\x01\xEAA\x90\x01\x0A\x1Ddlp.googleapis.com/JobTrigger\x12,projects/{project}/jobTriggers/{job_trigger}\x12Aprojects/{project}/locations/{location}/jobTriggers/{job_trigger}B\x05\x0A\x03job\"\x82\x0A\x0A\x06Action\x12C\x0A\x0Dsave_findings\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.Action.SaveFindingsH\x00\x12@\x0A\x07pub_sub\x18\x02 \x01(\x0B2-.google.privacy.dlp.v2.Action.PublishToPubSubH\x00\x12U\x0A\x17publish_summary_to_cscc\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.Action.PublishSummaryToCsccH\x00\x12u\x0A&publish_findings_to_cloud_data_catalog\x18\x05 \x01(\x0B2?.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogB\x02\x18\x01H\x00\x12n\x0A\$publish_findings_to_dataplex_catalog\x18\x0A \x01(\x0B2>.google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalogH\x00\x12>\x0A\x0Adeidentify\x18\x07 \x01(\x0B2(.google.privacy.dlp.v2.Action.DeidentifyH\x00\x12V\x0A\x17job_notification_emails\x18\x08 \x01(\x0B23.google.privacy.dlp.v2.Action.JobNotificationEmailsH\x00\x12T\x0A\x16publish_to_stackdriver\x18\x09 \x01(\x0B22.google.privacy.dlp.v2.Action.PublishToStackdriverH\x00\x1AQ\x0A\x0CSaveFindings\x12A\x0A\x0Doutput_config\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.OutputStorageConfig\x1A \x0A\x0FPublishToPubSub\x12\x0D\x0A\x05topic\x18\x01 \x01(\x09\x1A\x16\x0A\x14PublishSummaryToCscc\x1A#\x0A!PublishFindingsToCloudDataCatalog\x1A\"\x0A PublishFindingsToDataplexCatalog\x1A\xB3\x02\x0A\x0ADeidentify\x12J\x0A\x15transformation_config\x18\x07 \x01(\x0B2+.google.privacy.dlp.v2.TransformationConfig\x12h\x0A%transformation_details_storage_config\x18\x03 \x01(\x0B29.google.privacy.dlp.v2.TransformationDetailsStorageConfig\x12#\x0A\x14cloud_storage_output\x18\x09 \x01(\x09B\x03\xE0A\x02H\x00\x12@\x0A\x17file_types_to_transform\x18\x08 \x03(\x0E2\x1F.google.privacy.dlp.v2.FileTypeB\x08\x0A\x06output\x1A\x17\x0A\x15JobNotificationEmails\x1A\x16\x0A\x14PublishToStackdriverB\x08\x0A\x06action\"z\x0A\x14TransformationConfig\x12\x1B\x0A\x13deidentify_template\x18\x01 \x01(\x09\x12&\x0A\x1Estructured_deidentify_template\x18\x02 \x01(\x09\x12\x1D\x0A\x15image_redact_template\x18\x04 \x01(\x09\"\xCB\x01\x0A\x1CCreateInspectTemplateRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"dlp.googleapis.com/InspectTemplate\x12E\x0A\x10inspect_template\x18\x02 \x01(\x0B2&.google.privacy.dlp.v2.InspectTemplateB\x03\xE0A\x02\x12\x13\x0A\x0Btemplate_id\x18\x03 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\"\xCB\x01\x0A\x1CUpdateInspectTemplateRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/InspectTemplate\x12@\x0A\x10inspect_template\x18\x02 \x01(\x0B2&.google.privacy.dlp.v2.InspectTemplate\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"U\x0A\x19GetInspectTemplateRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/InspectTemplate\"\xA7\x01\x0A\x1BListInspectTemplatesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"dlp.googleapis.com/InspectTemplate\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09\"z\x0A\x1CListInspectTemplatesResponse\x12A\x0A\x11inspect_templates\x18\x01 \x03(\x0B2&.google.privacy.dlp.v2.InspectTemplate\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"X\x0A\x1CDeleteInspectTemplateRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/InspectTemplate\"\xB6\x01\x0A\x17CreateJobTriggerRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/JobTrigger\x12;\x0A\x0Bjob_trigger\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.JobTriggerB\x03\xE0A\x02\x12\x12\x0A\x0Atrigger_id\x18\x03 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\"P\x0A\x19ActivateJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\"\xB7\x01\x0A\x17UpdateJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\x126\x0A\x0Bjob_trigger\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.JobTrigger\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"K\x0A\x14GetJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\"\xB4\x01\x0A\x1CCreateDiscoveryConfigRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"dlp.googleapis.com/DiscoveryConfig\x12E\x0A\x10discovery_config\x18\x02 \x01(\x0B2&.google.privacy.dlp.v2.DiscoveryConfigB\x03\xE0A\x02\x12\x11\x0A\x09config_id\x18\x03 \x01(\x09\"\xD0\x01\x0A\x1CUpdateDiscoveryConfigRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/DiscoveryConfig\x12E\x0A\x10discovery_config\x18\x02 \x01(\x0B2&.google.privacy.dlp.v2.DiscoveryConfigB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"U\x0A\x19GetDiscoveryConfigRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/DiscoveryConfig\"\x92\x01\x0A\x1BListDiscoveryConfigsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"dlp.googleapis.com/DiscoveryConfig\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\"z\x0A\x1CListDiscoveryConfigsResponse\x12A\x0A\x11discovery_configs\x18\x01 \x03(\x0B2&.google.privacy.dlp.v2.DiscoveryConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"X\x0A\x1CDeleteDiscoveryConfigRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/DiscoveryConfig\"\xF6\x01\x0A\x13CreateDlpJobRequest\x121\x0A\x06parent\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x12\x19dlp.googleapis.com/DlpJob\x12>\x0A\x0Binspect_job\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.InspectJobConfigH\x00\x12@\x0A\x08risk_job\x18\x03 \x01(\x0B2,.google.privacy.dlp.v2.RiskAnalysisJobConfigH\x00\x12\x0E\x0A\x06job_id\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09B\x05\x0A\x03job\"\xDE\x01\x0A\x16ListJobTriggersRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/JobTrigger\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\x12/\x0A\x04type\x18\x06 \x01(\x0E2!.google.privacy.dlp.v2.DlpJobType\x12\x13\x0A\x0Blocation_id\x18\x07 \x01(\x09\"k\x0A\x17ListJobTriggersResponse\x127\x0A\x0Cjob_triggers\x18\x01 \x03(\x0B2!.google.privacy.dlp.v2.JobTrigger\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"N\x0A\x17DeleteJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\"\xDD\x01\x0A\x10InspectJobConfig\x12<\x0A\x0Estorage_config\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.StorageConfig\x12<\x0A\x0Einspect_config\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x12\x1D\x0A\x15inspect_template_name\x18\x03 \x01(\x09\x12.\x0A\x07actions\x18\x04 \x03(\x0B2\x1D.google.privacy.dlp.v2.Action\"\xF2\x0D\x0A\x11DataProfileAction\x12F\x0A\x0Bexport_data\x18\x01 \x01(\x0B2/.google.privacy.dlp.v2.DataProfileAction.ExportH\x00\x12[\x0A\x14pub_sub_notification\x18\x02 \x01(\x0B2;.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationH\x00\x12[\x0A\x14publish_to_chronicle\x18\x03 \x01(\x0B2;.google.privacy.dlp.v2.DataProfileAction.PublishToChronicleH\x00\x12a\x0A\x0Epublish_to_scc\x18\x04 \x01(\x0B2G.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenterH\x00\x12N\x0A\x0Dtag_resources\x18\x08 \x01(\x0B25.google.privacy.dlp.v2.DataProfileAction.TagResourcesH\x00\x12h\x0A\x1Bpublish_to_dataplex_catalog\x18\x09 \x01(\x0B2A.google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalogH\x00\x1A\x8A\x01\x0A\x06Export\x12;\x0A\x0Dprofile_table\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12C\x0A\x15sample_findings_table\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x1A\x82\x03\x0A\x12PubSubNotification\x12\x0D\x0A\x05topic\x18\x01 \x01(\x09\x12A\x0A\x05event\x18\x02 \x01(\x0E22.google.privacy.dlp.v2.DataProfileAction.EventType\x12K\x0A\x10pubsub_condition\x18\x03 \x01(\x0B21.google.privacy.dlp.v2.DataProfilePubSubCondition\x12b\x0A\x11detail_of_message\x18\x04 \x01(\x0E2G.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel\"i\x0A\x0BDetailLevel\x12\x1C\x0A\x18DETAIL_LEVEL_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DTABLE_PROFILE\x10\x01\x12\x11\x0A\x0DRESOURCE_NAME\x10\x02\x12\x16\x0A\x12FILE_STORE_PROFILE\x10\x03\x1A\x14\x0A\x12PublishToChronicle\x1A \x0A\x1EPublishToSecurityCommandCenter\x1A:\x0A\x18PublishToDataplexCatalog\x12\x1E\x0A\x16lower_data_risk_to_low\x18\x01 \x01(\x08\x1A\xB6\x03\x0A\x0CTagResources\x12Z\x0A\x0Etag_conditions\x18\x01 \x03(\x0B2B.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition\x12L\x0A\x1Aprofile_generations_to_tag\x18\x02 \x03(\x0E2(.google.privacy.dlp.v2.ProfileGeneration\x12\x1E\x0A\x16lower_data_risk_to_low\x18\x03 \x01(\x08\x1A\xA9\x01\x0A\x0CTagCondition\x12K\x0A\x03tag\x18\x01 \x01(\x0B2>.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue\x12D\x0A\x11sensitivity_score\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScoreH\x00B\x06\x0A\x04type\x1A0\x0A\x08TagValue\x12\x1A\x0A\x10namespaced_value\x18\x01 \x01(\x09H\x00B\x08\x0A\x06format\"u\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BNEW_PROFILE\x10\x01\x12\x13\x0A\x0FCHANGED_PROFILE\x10\x02\x12\x13\x0A\x0FSCORE_INCREASED\x10\x03\x12\x11\x0A\x0DERROR_CHANGED\x10\x04B\x08\x0A\x06action\"\xDD\x03\x0A\x12DataProfileFinding\x12\x0D\x0A\x05quote\x18\x01 \x01(\x09\x121\x0A\x08infotype\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x124\x0A\x0Aquote_info\x18\x03 \x01(\x0B2 .google.privacy.dlp.v2.QuoteInfo\x12\"\x0A\x1Adata_profile_resource_name\x18\x04 \x01(\x09\x12\x12\x0A\x0Afinding_id\x18\x05 \x01(\x09\x12-\x0A\x09timestamp\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12C\x0A\x08location\x18\x07 \x01(\x0B21.google.privacy.dlp.v2.DataProfileFindingLocation\x12F\x0A\x13resource_visibility\x18\x08 \x01(\x0E2).google.privacy.dlp.v2.ResourceVisibility\x12\x1A\x0A\x12full_resource_name\x18\x09 \x01(\x09\x12?\x0A\x10data_source_type\x18\x0A \x01(\x0B2%.google.privacy.dlp.v2.DataSourceType\"\xB7\x01\x0A\x1ADataProfileFindingLocation\x12\x16\x0A\x0Econtainer_name\x18\x01 \x01(\x09\x12g\x0A\$data_profile_finding_record_location\x18\x02 \x01(\x0B27.google.privacy.dlp.v2.DataProfileFindingRecordLocationH\x00B\x18\x0A\x16location_extra_details\"Q\x0A DataProfileFindingRecordLocation\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\"\xAE\x02\x0A\x14DataProfileJobConfig\x12<\x0A\x08location\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.DataProfileLocation\x12\x12\x0A\x0Aproject_id\x18\x05 \x01(\x09\x12a\x0A\x1Dother_cloud_starting_location\x18\x08 \x01(\x0B2:.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation\x12\x19\x0A\x11inspect_templates\x18\x07 \x03(\x09\x12F\x0A\x14data_profile_actions\x18\x06 \x03(\x0B2(.google.privacy.dlp.v2.DataProfileAction\"[\x0A\x0DBigQueryRegex\x12\x18\x0A\x10project_id_regex\x18\x01 \x01(\x09\x12\x18\x0A\x10dataset_id_regex\x18\x02 \x01(\x09\x12\x16\x0A\x0Etable_id_regex\x18\x03 \x01(\x09\"I\x0A\x0FBigQueryRegexes\x126\x0A\x08patterns\x18\x01 \x03(\x0B2\$.google.privacy.dlp.v2.BigQueryRegex\"M\x0A\x12BigQueryTableTypes\x127\x0A\x05types\x18\x01 \x03(\x0E2(.google.privacy.dlp.v2.BigQueryTableType\"\x0A\x0A\x08Disabled\"Q\x0A\x13DataProfileLocation\x12\x19\x0A\x0Forganization_id\x18\x01 \x01(\x03H\x00\x12\x13\x0A\x09folder_id\x18\x02 \x01(\x03H\x00B\x0A\x0A\x08location\"\xEB\x07\x0A\x0FDiscoveryConfig\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x0B \x01(\x09\x12D\x0A\x0Aorg_config\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig\x12a\x0A\x1Dother_cloud_starting_location\x18\x0C \x01(\x0B2:.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation\x12\x19\x0A\x11inspect_templates\x18\x03 \x03(\x09\x129\x0A\x07actions\x18\x04 \x03(\x0B2(.google.privacy.dlp.v2.DataProfileAction\x127\x0A\x07targets\x18\x05 \x03(\x0B2&.google.privacy.dlp.v2.DiscoveryTarget\x121\x0A\x06errors\x18\x06 \x03(\x0B2\x1C.google.privacy.dlp.v2.ErrorB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x126\x0A\x0Dlast_run_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12B\x0A\x06status\x18\x0A \x01(\x0E2-.google.privacy.dlp.v2.DiscoveryConfig.StatusB\x03\xE0A\x02\x12K\x0A\x13processing_location\x18\x0D \x01(\x0B2).google.privacy.dlp.v2.ProcessingLocationB\x03\xE0A\x01\x1Ac\x0A\x09OrgConfig\x12B\x0A\x08location\x18\x01 \x01(\x0B20.google.privacy.dlp.v2.DiscoveryStartingLocation\x12\x12\x0A\x0Aproject_id\x18\x02 \x01(\x09\"9\x0A\x06Status\x12\x16\x0A\x12STATUS_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0A\x0A\x06PAUSED\x10\x02:t\xEAAq\x0A\"dlp.googleapis.com/DiscoveryConfig\x12Kprojects/{project}/locations/{location}/discoveryConfigs/{discovery_config}\"\xF6\x03\x0A\x0FDiscoveryTarget\x12J\x0A\x10big_query_target\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.BigQueryDiscoveryTargetH\x00\x12J\x0A\x10cloud_sql_target\x18\x02 \x01(\x0B2..google.privacy.dlp.v2.CloudSqlDiscoveryTargetH\x00\x12G\x0A\x0Esecrets_target\x18\x03 \x01(\x0B2-.google.privacy.dlp.v2.SecretsDiscoveryTargetH\x00\x12R\x0A\x14cloud_storage_target\x18\x04 \x01(\x0B22.google.privacy.dlp.v2.CloudStorageDiscoveryTargetH\x00\x12N\x0A\x12other_cloud_target\x18\x05 \x01(\x0B20.google.privacy.dlp.v2.OtherCloudDiscoveryTargetH\x00\x12T\x0A\x15vertex_dataset_target\x18\x07 \x01(\x0B23.google.privacy.dlp.v2.VertexDatasetDiscoveryTargetH\x00B\x08\x0A\x06target\"\xAE\x02\x0A\x17BigQueryDiscoveryTarget\x12C\x0A\x06filter\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.DiscoveryBigQueryFilterB\x03\xE0A\x02\x12F\x0A\x0Aconditions\x18\x02 \x01(\x0B22.google.privacy.dlp.v2.DiscoveryBigQueryConditions\x12D\x0A\x07cadence\x18\x03 \x01(\x0B21.google.privacy.dlp.v2.DiscoveryGenerationCadenceH\x00\x123\x0A\x08disabled\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledH\x00B\x0B\x0A\x09frequency\"\xA0\x02\x0A\x17DiscoveryBigQueryFilter\x12@\x0A\x06tables\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.BigQueryTableCollectionH\x00\x12]\x0A\x0Cother_tables\x18\x02 \x01(\x0B2E.google.privacy.dlp.v2.DiscoveryBigQueryFilter.AllOtherBigQueryTablesH\x00\x12@\x0A\x0Ftable_reference\x18\x03 \x01(\x0B2%.google.privacy.dlp.v2.TableReferenceH\x00\x1A\x18\x0A\x16AllOtherBigQueryTablesB\x08\x0A\x06filter\"g\x0A\x17BigQueryTableCollection\x12A\x0A\x0Finclude_regexes\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.BigQueryRegexesH\x00B\x09\x0A\x07pattern\"\x98\x03\x0A\x1BDiscoveryBigQueryConditions\x121\x0A\x0Dcreated_after\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12:\x0A\x05types\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.BigQueryTableTypesH\x00\x12M\x0A\x0Ftype_collection\x18\x03 \x01(\x0E22.google.privacy.dlp.v2.BigQueryTableTypeCollectionH\x00\x12V\x0A\x0Dor_conditions\x18\x04 \x01(\x0B2?.google.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions\x1AQ\x0A\x0COrConditions\x12\x15\x0A\x0Dmin_row_count\x18\x01 \x01(\x05\x12*\x0A\x07min_age\x18\x02 \x01(\x0B2\x19.google.protobuf.DurationB\x10\x0A\x0Eincluded_types\"\x83\x03\x0A\x1ADiscoveryGenerationCadence\x12V\x0A\x17schema_modified_cadence\x18\x01 \x01(\x0B25.google.privacy.dlp.v2.DiscoverySchemaModifiedCadence\x12T\x0A\x16table_modified_cadence\x18\x02 \x01(\x0B24.google.privacy.dlp.v2.DiscoveryTableModifiedCadence\x12i\x0A!inspect_template_modified_cadence\x18\x03 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\x12L\x0A\x11refresh_frequency\x18\x04 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"\xA6\x01\x0A\x1DDiscoveryTableModifiedCadence\x12?\x0A\x05types\x18\x01 \x03(\x0E20.google.privacy.dlp.v2.BigQueryTableModification\x12D\x0A\x09frequency\x18\x02 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"\xA8\x01\x0A\x1EDiscoverySchemaModifiedCadence\x12@\x0A\x05types\x18\x01 \x03(\x0E21.google.privacy.dlp.v2.BigQuerySchemaModification\x12D\x0A\x09frequency\x18\x02 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"o\x0A'DiscoveryInspectTemplateModifiedCadence\x12D\x0A\x09frequency\x18\x01 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"\xBF\x02\x0A\x17CloudSqlDiscoveryTarget\x12C\x0A\x06filter\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.DiscoveryCloudSqlFilterB\x03\xE0A\x02\x12F\x0A\x0Aconditions\x18\x02 \x01(\x0B22.google.privacy.dlp.v2.DiscoveryCloudSqlConditions\x12W\x0A\x12generation_cadence\x18\x03 \x01(\x0B29.google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadenceH\x00\x123\x0A\x08disabled\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledH\x00B\x09\x0A\x07cadence\"\x89\x02\x0A\x17DiscoveryCloudSqlFilter\x12G\x0A\x0Acollection\x18\x01 \x01(\x0B21.google.privacy.dlp.v2.DatabaseResourceCollectionH\x00\x12B\x0A\x06others\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.AllOtherDatabaseResourcesH\x00\x12W\x0A\x1Bdatabase_resource_reference\x18\x03 \x01(\x0B20.google.privacy.dlp.v2.DatabaseResourceReferenceH\x00B\x08\x0A\x06filter\"r\x0A\x1ADatabaseResourceCollection\x12I\x0A\x0Finclude_regexes\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.DatabaseResourceRegexesH\x00B\x09\x0A\x07pattern\"Y\x0A\x17DatabaseResourceRegexes\x12>\x0A\x08patterns\x18\x01 \x03(\x0B2,.google.privacy.dlp.v2.DatabaseResourceRegex\"\x87\x01\x0A\x15DatabaseResourceRegex\x12\x18\x0A\x10project_id_regex\x18\x01 \x01(\x09\x12\x16\x0A\x0Einstance_regex\x18\x02 \x01(\x09\x12\x16\x0A\x0Edatabase_regex\x18\x03 \x01(\x09\x12\$\x0A\x1Cdatabase_resource_name_regex\x18\x04 \x01(\x09\"\x1B\x0A\x19AllOtherDatabaseResources\"\x82\x01\x0A\x19DatabaseResourceReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08instance\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08database\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11database_resource\x18\x04 \x01(\x09B\x03\xE0A\x02\"\xDA\x03\x0A\x1BDiscoveryCloudSqlConditions\x12`\x0A\x10database_engines\x18\x01 \x03(\x0E2A.google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngineB\x03\xE0A\x01\x12V\x0A\x05types\x18\x03 \x03(\x0E2G.google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType\"n\x0A\x0EDatabaseEngine\x12\x1F\x0A\x1BDATABASE_ENGINE_UNSPECIFIED\x10\x00\x12\"\x0A\x1EALL_SUPPORTED_DATABASE_ENGINES\x10\x01\x12\x09\x0A\x05MYSQL\x10\x02\x12\x0C\x0A\x08POSTGRES\x10\x03\"\x90\x01\x0A\x14DatabaseResourceType\x12&\x0A\"DATABASE_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12.\x0A*DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES\x10\x01\x12 \x0A\x1CDATABASE_RESOURCE_TYPE_TABLE\x10\x02\"\x97\x05\x0A\"DiscoveryCloudSqlGenerationCadence\x12p\x0A\x17schema_modified_cadence\x18\x01 \x01(\x0B2O.google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence\x12L\x0A\x11refresh_frequency\x18\x02 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\x12i\x0A!inspect_template_modified_cadence\x18\x03 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\x1A\xC5\x02\x0A\x15SchemaModifiedCadence\x12y\x0A\x05types\x18\x01 \x03(\x0E2j.google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.CloudSqlSchemaModification\x12D\x0A\x09frequency\x18\x02 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"k\x0A\x1ACloudSqlSchemaModification\x12'\x0A#SQL_SCHEMA_MODIFICATION_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BNEW_COLUMNS\x10\x01\x12\x13\x0A\x0FREMOVED_COLUMNS\x10\x02\"\x18\x0A\x16SecretsDiscoveryTarget\"\xDB\x02\x0A\x1BCloudStorageDiscoveryTarget\x12G\x0A\x06filter\x18\x01 \x01(\x0B22.google.privacy.dlp.v2.DiscoveryCloudStorageFilterB\x03\xE0A\x02\x12L\x0A\x0Aconditions\x18\x04 \x01(\x0B23.google.privacy.dlp.v2.DiscoveryFileStoreConditionsB\x03\xE0A\x01\x12`\x0A\x12generation_cadence\x18\x02 \x01(\x0B2=.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadenceB\x03\xE0A\x01H\x00\x128\x0A\x08disabled\x18\x03 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledB\x03\xE0A\x01H\x00B\x09\x0A\x07cadence\"\x96\x02\x0A\x1BDiscoveryCloudStorageFilter\x12E\x0A\x0Acollection\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.FileStoreCollectionB\x03\xE0A\x01H\x00\x12e\x0A cloud_storage_resource_reference\x18\x02 \x01(\x0B24.google.privacy.dlp.v2.CloudStorageResourceReferenceB\x03\xE0A\x01H\x00\x12?\x0A\x06others\x18d \x01(\x0B2(.google.privacy.dlp.v2.AllOtherResourcesB\x03\xE0A\x01H\x00B\x08\x0A\x06filter\"\xA7\x01\x0A\x13FileStoreCollection\x12G\x0A\x0Finclude_regexes\x18\x01 \x01(\x0B2'.google.privacy.dlp.v2.FileStoreRegexesB\x03\xE0A\x01H\x00\x12<\x0A\x0Cinclude_tags\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.TagFiltersB\x03\xE0A\x01B\x09\x0A\x07pattern\"P\x0A\x10FileStoreRegexes\x12<\x0A\x08patterns\x18\x01 \x03(\x0B2%.google.privacy.dlp.v2.FileStoreRegexB\x03\xE0A\x02\"p\x0A\x0EFileStoreRegex\x12L\x0A\x13cloud_storage_regex\x18\x01 \x01(\x0B2(.google.privacy.dlp.v2.CloudStorageRegexB\x03\xE0A\x01H\x00B\x10\x0A\x0Eresource_regex\"R\x0A\x11CloudStorageRegex\x12\x1D\x0A\x10project_id_regex\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11bucket_name_regex\x18\x02 \x01(\x09B\x03\xE0A\x01\"R\x0A\x1DCloudStorageResourceReference\x12\x18\x0A\x0Bbucket_name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Aproject_id\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xEB\x01\x0A&DiscoveryCloudStorageGenerationCadence\x12Q\x0A\x11refresh_frequency\x18\x01 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequencyB\x03\xE0A\x01\x12n\x0A!inspect_template_modified_cadence\x18\x02 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceB\x03\xE0A\x01\"\x9B\x05\x0A\x1FDiscoveryCloudStorageConditions\x12{\x0A\x1Aincluded_object_attributes\x18\x01 \x03(\x0E2R.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttributeB\x03\xE0A\x02\x12{\x0A\x1Aincluded_bucket_attributes\x18\x02 \x03(\x0E2R.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttributeB\x03\xE0A\x02\"\xE3\x01\x0A\x1BCloudStorageObjectAttribute\x12.\x0A*CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ALL_SUPPORTED_OBJECTS\x10\x01\x12\x0C\x0A\x08STANDARD\x10\x02\x12\x0C\x0A\x08NEARLINE\x10\x03\x12\x0C\x0A\x08COLDLINE\x10\x04\x12\x0B\x0A\x07ARCHIVE\x10\x05\x12\x0C\x0A\x08REGIONAL\x10\x06\x12\x12\x0A\x0EMULTI_REGIONAL\x10\x07\x12 \x0A\x1CDURABLE_REDUCED_AVAILABILITY\x10\x08\"\x97\x01\x0A\x1BCloudStorageBucketAttribute\x12.\x0A*CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ALL_SUPPORTED_BUCKETS\x10\x01\x12\x16\x0A\x12AUTOCLASS_DISABLED\x10\x02\x12\x15\x0A\x11AUTOCLASS_ENABLED\x10\x03\"\xF6\x01\x0A\x1CDiscoveryFileStoreConditions\x126\x0A\x0Dcreated_after\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12/\x0A\x07min_age\x18\x02 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01\x12_\x0A\x18cloud_storage_conditions\x18\x03 \x01(\x0B26.google.privacy.dlp.v2.DiscoveryCloudStorageConditionsB\x03\xE0A\x01H\x00B\x0C\x0A\x0Aconditions\"\x92\x03\x0A\x19OtherCloudDiscoveryTarget\x12D\x0A\x10data_source_type\x18\x01 \x01(\x0B2%.google.privacy.dlp.v2.DataSourceTypeB\x03\xE0A\x02\x12E\x0A\x06filter\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.DiscoveryOtherCloudFilterB\x03\xE0A\x02\x12M\x0A\x0Aconditions\x18\x03 \x01(\x0B24.google.privacy.dlp.v2.DiscoveryOtherCloudConditionsB\x03\xE0A\x01\x12Y\x0A\x12generation_cadence\x18\x04 \x01(\x0B2;.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadenceH\x00\x123\x0A\x08disabled\x18\x05 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledH\x00B\x09\x0A\x07cadence\"\x86\x02\x0A\x19DiscoveryOtherCloudFilter\x12I\x0A\x0Acollection\x18\x01 \x01(\x0B23.google.privacy.dlp.v2.OtherCloudResourceCollectionH\x00\x12S\x0A\x0Fsingle_resource\x18\x02 \x01(\x0B28.google.privacy.dlp.v2.OtherCloudSingleResourceReferenceH\x00\x12?\x0A\x06others\x18d \x01(\x0B2(.google.privacy.dlp.v2.AllOtherResourcesB\x03\xE0A\x01H\x00B\x08\x0A\x06filter\"v\x0A\x1COtherCloudResourceCollection\x12K\x0A\x0Finclude_regexes\x18\x01 \x01(\x0B20.google.privacy.dlp.v2.OtherCloudResourceRegexesH\x00B\x09\x0A\x07pattern\"]\x0A\x19OtherCloudResourceRegexes\x12@\x0A\x08patterns\x18\x01 \x03(\x0B2..google.privacy.dlp.v2.OtherCloudResourceRegex\"y\x0A\x17OtherCloudResourceRegex\x12L\x0A\x16amazon_s3_bucket_regex\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.AmazonS3BucketRegexH\x00B\x10\x0A\x0Eresource_regex\"0\x0A\x0FAwsAccountRegex\x12\x1D\x0A\x10account_id_regex\x18\x01 \x01(\x09B\x03\xE0A\x01\"x\x0A\x13AmazonS3BucketRegex\x12A\x0A\x11aws_account_regex\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.AwsAccountRegex\x12\x1E\x0A\x11bucket_name_regex\x18\x02 \x01(\x09B\x03\xE0A\x01\"r\x0A!OtherCloudSingleResourceReference\x12A\x0A\x10amazon_s3_bucket\x18\x01 \x01(\x0B2%.google.privacy.dlp.v2.AmazonS3BucketH\x00B\x0A\x0A\x08resource\"%\x0A\x0AAwsAccount\x12\x17\x0A\x0Aaccount_id\x18\x01 \x01(\x09B\x03\xE0A\x02\"b\x0A\x0EAmazonS3Bucket\x126\x0A\x0Baws_account\x18\x01 \x01(\x0B2!.google.privacy.dlp.v2.AwsAccount\x12\x18\x0A\x0Bbucket_name\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xB1\x01\x0A\x1DDiscoveryOtherCloudConditions\x12*\x0A\x07min_age\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\x12V\x0A\x1Bamazon_s3_bucket_conditions\x18\x02 \x01(\x0B2/.google.privacy.dlp.v2.AmazonS3BucketConditionsH\x00B\x0C\x0A\x0Aconditions\"\xD9\x03\x0A\x18AmazonS3BucketConditions\x12U\x0A\x0Cbucket_types\x18\x01 \x03(\x0E2:.google.privacy.dlp.v2.AmazonS3BucketConditions.BucketTypeB\x03\xE0A\x01\x12g\x0A\x16object_storage_classes\x18\x02 \x03(\x0E2B.google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClassB\x03\xE0A\x01\"T\x0A\x0ABucketType\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x16\x0A\x12TYPE_ALL_SUPPORTED\x10\x01\x12\x18\x0A\x14TYPE_GENERAL_PURPOSE\x10\x02\"\xA6\x01\x0A\x12ObjectStorageClass\x12\x0F\x0A\x0BUNSPECIFIED\x10\x00\x12\x19\x0A\x15ALL_SUPPORTED_CLASSES\x10\x01\x12\x0C\x0A\x08STANDARD\x10\x02\x12\x1E\x0A\x1ASTANDARD_INFREQUENT_ACCESS\x10\x04\x12\x1D\x0A\x19GLACIER_INSTANT_RETRIEVAL\x10\x06\x12\x17\x0A\x13INTELLIGENT_TIERING\x10\x07\"\xE9\x01\x0A\$DiscoveryOtherCloudGenerationCadence\x12Q\x0A\x11refresh_frequency\x18\x01 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequencyB\x03\xE0A\x01\x12n\x0A!inspect_template_modified_cadence\x18\x02 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceB\x03\xE0A\x01\"W\x0A\x19DiscoveryStartingLocation\x12\x19\x0A\x0Forganization_id\x18\x01 \x01(\x03H\x00\x12\x13\x0A\x09folder_id\x18\x02 \x01(\x03H\x00B\x0A\x0A\x08location\"\x87\x02\x0A#OtherCloudDiscoveryStartingLocation\x12o\x0A\x0Caws_location\x18\x01 \x01(\x0B2W.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation.AwsDiscoveryStartingLocationH\x00\x1Ac\x0A\x1CAwsDiscoveryStartingLocation\x12\x14\x0A\x0Aaccount_id\x18\x02 \x01(\x09H\x00\x12\$\x0A\x1Aall_asset_inventory_assets\x18\x03 \x01(\x08H\x00B\x07\x0A\x05scopeB\x0A\x0A\x08location\"\x13\x0A\x11AllOtherResources\"\xD3\x02\x0A\x1CVertexDatasetDiscoveryTarget\x12H\x0A\x06filter\x18\x01 \x01(\x0B23.google.privacy.dlp.v2.DiscoveryVertexDatasetFilterB\x03\xE0A\x02\x12K\x0A\x0Aconditions\x18\x02 \x01(\x0B27.google.privacy.dlp.v2.DiscoveryVertexDatasetConditions\x12\\\x0A\x12generation_cadence\x18\x03 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryVertexDatasetGenerationCadenceH\x00\x123\x0A\x08disabled\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledH\x00B\x09\x0A\x07cadence\"\x8E\x02\x0A\x1CDiscoveryVertexDatasetFilter\x12D\x0A\x0Acollection\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.VertexDatasetCollectionH\x00\x12b\x0A!vertex_dataset_resource_reference\x18\x02 \x01(\x0B25.google.privacy.dlp.v2.VertexDatasetResourceReferenceH\x00\x12:\x0A\x06others\x18d \x01(\x0B2(.google.privacy.dlp.v2.AllOtherResourcesH\x00B\x08\x0A\x06filter\"s\x0A\x17VertexDatasetCollection\x12M\x0A\x16vertex_dataset_regexes\x18\x01 \x01(\x0B2+.google.privacy.dlp.v2.VertexDatasetRegexesH\x00B\x09\x0A\x07pattern\"X\x0A\x14VertexDatasetRegexes\x12@\x0A\x08patterns\x18\x01 \x03(\x0B2).google.privacy.dlp.v2.VertexDatasetRegexB\x03\xE0A\x02\".\x0A\x12VertexDatasetRegex\x12\x18\x0A\x10project_id_regex\x18\x01 \x01(\x09\"D\x0A\x1EVertexDatasetResourceReference\x12\"\x0A\x15dataset_resource_name\x18\x01 \x01(\x09B\x03\xE0A\x02\"\x81\x01\x0A DiscoveryVertexDatasetConditions\x121\x0A\x0Dcreated_after\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12*\x0A\x07min_age\x18\x02 \x01(\x0B2\x19.google.protobuf.Duration\"\xE2\x01\x0A'DiscoveryVertexDatasetGenerationCadence\x12L\x0A\x11refresh_frequency\x18\x01 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\x12i\x0A!inspect_template_modified_cadence\x18\x02 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\"\xDC\x06\x0A\x06DlpJob\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12/\x0A\x04type\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.DlpJobType\x125\x0A\x05state\x18\x03 \x01(\x0E2&.google.privacy.dlp.v2.DlpJob.JobState\x12K\x0A\x0Crisk_details\x18\x04 \x01(\x0B23.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetailsH\x00\x12J\x0A\x0Finspect_details\x18\x05 \x01(\x0B2/.google.privacy.dlp.v2.InspectDataSourceDetailsH\x00\x12/\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12.\x0A\x0Astart_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\x121\x0A\x0Dlast_modified\x18\x0F \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x18\x0A\x10job_trigger_name\x18\x0A \x01(\x09\x12,\x0A\x06errors\x18\x0B \x03(\x0B2\x1C.google.privacy.dlp.v2.Error\x12<\x0A\x0Eaction_details\x18\x0C \x03(\x0B2\$.google.privacy.dlp.v2.ActionDetails\"o\x0A\x08JobState\x12\x19\x0A\x15JOB_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PENDING\x10\x01\x12\x0B\x0A\x07RUNNING\x10\x02\x12\x08\x0A\x04DONE\x10\x03\x12\x0C\x0A\x08CANCELED\x10\x04\x12\x0A\x0A\x06FAILED\x10\x05\x12\x0A\x0A\x06ACTIVE\x10\x06:\x7F\xEAA|\x0A\x19dlp.googleapis.com/DlpJob\x12\$projects/{project}/dlpJobs/{dlp_job}\x129projects/{project}/locations/{location}/dlpJobs/{dlp_job}B\x09\x0A\x07details\"C\x0A\x10GetDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\"\xD6\x01\x0A\x12ListDlpJobsRequest\x121\x0A\x06parent\x18\x04 \x01(\x09B!\xE0A\x02\xFAA\x1B\x12\x19dlp.googleapis.com/DlpJob\x12\x0E\x0A\x06filter\x18\x01 \x01(\x09\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12/\x0A\x04type\x18\x05 \x01(\x0E2!.google.privacy.dlp.v2.DlpJobType\x12\x10\x0A\x08order_by\x18\x06 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x07 \x01(\x09\"[\x0A\x13ListDlpJobsResponse\x12+\x0A\x04jobs\x18\x01 \x03(\x0B2\x1D.google.privacy.dlp.v2.DlpJob\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"F\x0A\x13CancelDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\"F\x0A\x13FinishDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\"F\x0A\x13DeleteDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\"\xD7\x01\x0A\x1FCreateDeidentifyTemplateRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%dlp.googleapis.com/DeidentifyTemplate\x12K\x0A\x13deidentify_template\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplateB\x03\xE0A\x02\x12\x13\x0A\x0Btemplate_id\x18\x03 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\"\xD7\x01\x0A\x1FUpdateDeidentifyTemplateRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/DeidentifyTemplate\x12F\x0A\x13deidentify_template\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"[\x0A\x1CGetDeidentifyTemplateRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/DeidentifyTemplate\"\xAD\x01\x0A\x1EListDeidentifyTemplatesRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%dlp.googleapis.com/DeidentifyTemplate\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09\"\x83\x01\x0A\x1FListDeidentifyTemplatesResponse\x12G\x0A\x14deidentify_templates\x18\x01 \x03(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"^\x0A\x1FDeleteDeidentifyTemplateRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/DeidentifyTemplate\"\xF4\x01\x0A\x1BLargeCustomDictionaryConfig\x12<\x0A\x0Boutput_path\x18\x01 \x01(\x0B2'.google.privacy.dlp.v2.CloudStoragePath\x12L\x0A\x16cloud_storage_file_set\x18\x02 \x01(\x0B2*.google.privacy.dlp.v2.CloudStorageFileSetH\x00\x12?\x0A\x0Fbig_query_field\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryFieldH\x00B\x08\x0A\x06source\"8\x0A\x1ALargeCustomDictionaryStats\x12\x1A\x0A\x12approx_num_phrases\x18\x01 \x01(\x03\"\xA6\x02\x0A\x14StoredInfoTypeConfig\x12\x14\x0A\x0Cdisplay_name\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12U\x0A\x17large_custom_dictionary\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.LargeCustomDictionaryConfigH\x00\x12F\x0A\x0Adictionary\x18\x04 \x01(\x0B20.google.privacy.dlp.v2.CustomInfoType.DictionaryH\x00\x12<\x0A\x05regex\x18\x05 \x01(\x0B2+.google.privacy.dlp.v2.CustomInfoType.RegexH\x00B\x06\x0A\x04type\"s\x0A\x13StoredInfoTypeStats\x12T\x0A\x17large_custom_dictionary\x18\x01 \x01(\x0B21.google.privacy.dlp.v2.LargeCustomDictionaryStatsH\x00B\x06\x0A\x04type\"\xA9\x02\x0A\x15StoredInfoTypeVersion\x12;\x0A\x06config\x18\x01 \x01(\x0B2+.google.privacy.dlp.v2.StoredInfoTypeConfig\x12/\x0A\x0Bcreate_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x129\x0A\x05state\x18\x03 \x01(\x0E2*.google.privacy.dlp.v2.StoredInfoTypeState\x12,\x0A\x06errors\x18\x04 \x03(\x0B2\x1C.google.privacy.dlp.v2.Error\x129\x0A\x05stats\x18\x05 \x01(\x0B2*.google.privacy.dlp.v2.StoredInfoTypeStats\"\xF1\x03\x0A\x0EStoredInfoType\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12E\x0A\x0Fcurrent_version\x18\x02 \x01(\x0B2,.google.privacy.dlp.v2.StoredInfoTypeVersion\x12F\x0A\x10pending_versions\x18\x03 \x03(\x0B2,.google.privacy.dlp.v2.StoredInfoTypeVersion:\xC1\x02\xEAA\xBD\x02\x0A!dlp.googleapis.com/StoredInfoType\x12?organizations/{organization}/storedInfoTypes/{stored_info_type}\x125projects/{project}/storedInfoTypes/{stored_info_type}\x12Torganizations/{organization}/locations/{location}/storedInfoTypes/{stored_info_type}\x12Jprojects/{project}/locations/{location}/storedInfoTypes/{stored_info_type}\"\xCC\x01\x0A\x1BCreateStoredInfoTypeRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x12!dlp.googleapis.com/StoredInfoType\x12@\x0A\x06config\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.StoredInfoTypeConfigB\x03\xE0A\x02\x12\x1B\x0A\x13stored_info_type_id\x18\x03 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\"\xC4\x01\x0A\x1BUpdateStoredInfoTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dlp.googleapis.com/StoredInfoType\x12;\x0A\x06config\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.StoredInfoTypeConfig\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"S\x0A\x18GetStoredInfoTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dlp.googleapis.com/StoredInfoType\"\xA5\x01\x0A\x1AListStoredInfoTypesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x12!dlp.googleapis.com/StoredInfoType\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09\"x\x0A\x1BListStoredInfoTypesResponse\x12@\x0A\x11stored_info_types\x18\x01 \x03(\x0B2%.google.privacy.dlp.v2.StoredInfoType\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"V\x0A\x1BDeleteStoredInfoTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dlp.googleapis.com/StoredInfoType\"\x94\x01\x0A\x1EHybridInspectJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\x12=\x0A\x0Bhybrid_item\x18\x03 \x01(\x0B2(.google.privacy.dlp.v2.HybridContentItem\"\x8C\x01\x0A\x1AHybridInspectDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\x12=\x0A\x0Bhybrid_item\x18\x03 \x01(\x0B2(.google.privacy.dlp.v2.HybridContentItem\"\x8B\x01\x0A\x11HybridContentItem\x120\x0A\x04item\x18\x01 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12D\x0A\x0Ffinding_details\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.HybridFindingDetails\"\xB0\x02\x0A\x14HybridFindingDetails\x12;\x0A\x11container_details\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.Container\x12\x13\x0A\x0Bfile_offset\x18\x02 \x01(\x03\x12\x12\x0A\x0Arow_offset\x18\x03 \x01(\x03\x12:\x0A\x0Dtable_options\x18\x04 \x01(\x0B2#.google.privacy.dlp.v2.TableOptions\x12G\x0A\x06labels\x18\x05 \x03(\x0B27.google.privacy.dlp.v2.HybridFindingDetails.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x17\x0A\x15HybridInspectResponse\"\xC3\x01\x0A\x14ImageContainmentType\x123\x0A\x08encloses\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.EnclosesH\x00\x12:\x0A\x0Cfully_inside\x18\x02 \x01(\x0B2\".google.privacy.dlp.v2.FullyInsideH\x00\x122\x0A\x08overlaps\x18\x03 \x01(\x0B2\x1E.google.privacy.dlp.v2.OverlapH\x00B\x06\x0A\x04type\"\x09\x0A\x07Overlap\"\x0A\x0A\x08Encloses\"\x0D\x0A\x0BFullyInside\"\xA8\x01\x0A\x1EListProjectDataProfilesRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%dlp.googleapis.com/ProjectDataProfile\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\"\x84\x01\x0A\x1FListProjectDataProfilesResponse\x12H\x0A\x15project_data_profiles\x18\x01 \x03(\x0B2).google.privacy.dlp.v2.ProjectDataProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA4\x01\x0A\x1CListTableDataProfilesRequest\x12;\x0A\x06parent\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x12#dlp.googleapis.com/TableDataProfile\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\"~\x0A\x1DListTableDataProfilesResponse\x12D\x0A\x13table_data_profiles\x18\x01 \x03(\x0B2'.google.privacy.dlp.v2.TableDataProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA6\x01\x0A\x1DListColumnDataProfilesRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$dlp.googleapis.com/ColumnDataProfile\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\"\x81\x01\x0A\x1EListColumnDataProfilesResponse\x12F\x0A\x14column_data_profiles\x18\x01 \x03(\x0B2(.google.privacy.dlp.v2.ColumnDataProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xCB\x01\x0A\x0DDataRiskLevel\x12F\x0A\x05score\x18\x01 \x01(\x0E27.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore\"r\x0A\x12DataRiskLevelScore\x12\x1A\x0A\x16RISK_SCORE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08RISK_LOW\x10\x0A\x12\x10\x0A\x0CRISK_UNKNOWN\x10\x0C\x12\x11\x0A\x0DRISK_MODERATE\x10\x14\x12\x0D\x0A\x09RISK_HIGH\x10\x1E\"\xDC\x04\x0A\x12ProjectDataProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x12\x0A\x0Aproject_id\x18\x02 \x01(\x09\x12:\x0A\x16profile_last_generated\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12B\x0A\x11sensitivity_score\x18\x04 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x05 \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12<\x0A\x0Eprofile_status\x18\x07 \x01(\x0B2\$.google.privacy.dlp.v2.ProfileStatus\x12 \x0A\x18table_data_profile_count\x18\x09 \x01(\x03\x12%\x0A\x1Dfile_store_data_profile_count\x18\x0A \x01(\x03:\xDD\x01\xEAA\xD9\x01\x0A%dlp.googleapis.com/ProjectDataProfile\x12\\organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}\x12Rprojects/{project}/locations/{location}/projectDataProfiles/{project_data_profile}\"\xC9\x02\x0A\x19DataProfileConfigSnapshot\x12<\x0A\x0Einspect_config\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x12I\x0A\x10data_profile_job\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.DataProfileJobConfigB\x02\x18\x01\x12@\x0A\x10discovery_config\x18\x04 \x01(\x0B2&.google.privacy.dlp.v2.DiscoveryConfig\x12\x1D\x0A\x15inspect_template_name\x18\x05 \x01(\x09\x12B\x0A\x1Einspect_template_modified_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\x93\x0E\x0A\x10TableDataProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12?\x0A\x10data_source_type\x18\$ \x01(\x0B2%.google.privacy.dlp.v2.DataSourceType\x12\x1C\x0A\x14project_data_profile\x18\x02 \x01(\x09\x12\x1A\x0A\x12dataset_project_id\x18\x18 \x01(\x09\x12\x18\x0A\x10dataset_location\x18\x1D \x01(\x09\x12\x12\x0A\x0Adataset_id\x18\x19 \x01(\x09\x12\x10\x0A\x08table_id\x18\x1A \x01(\x09\x12\x15\x0A\x0Dfull_resource\x18\x03 \x01(\x09\x12<\x0A\x0Eprofile_status\x18\x15 \x01(\x0B2\$.google.privacy.dlp.v2.ProfileStatus\x12<\x0A\x05state\x18\x16 \x01(\x0E2-.google.privacy.dlp.v2.TableDataProfile.State\x12B\x0A\x11sensitivity_score\x18\x05 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x06 \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12D\x0A\x14predicted_info_types\x18\x1B \x03(\x0B2&.google.privacy.dlp.v2.InfoTypeSummary\x12E\x0A\x10other_info_types\x18\x1C \x03(\x0B2+.google.privacy.dlp.v2.OtherInfoTypeSummary\x12I\x0A\x0Fconfig_snapshot\x18\x07 \x01(\x0B20.google.privacy.dlp.v2.DataProfileConfigSnapshot\x126\x0A\x12last_modified_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\x123\x0A\x0Fexpiration_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x1C\x0A\x14scanned_column_count\x18\x0A \x01(\x03\x12\x1B\x0A\x13failed_column_count\x18\x0B \x01(\x03\x12\x18\x0A\x10table_size_bytes\x18\x0C \x01(\x03\x12\x11\x0A\x09row_count\x18\x0D \x01(\x03\x12B\x0A\x11encryption_status\x18\x0E \x01(\x0E2'.google.privacy.dlp.v2.EncryptionStatus\x12F\x0A\x13resource_visibility\x18\x0F \x01(\x0E2).google.privacy.dlp.v2.ResourceVisibility\x12:\x0A\x16profile_last_generated\x18\x10 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12T\x0A\x0Fresource_labels\x18\x11 \x03(\x0B2;.google.privacy.dlp.v2.TableDataProfile.ResourceLabelsEntry\x12/\x0A\x0Bcreate_time\x18\x17 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12C\x0A\x15sample_findings_table\x18% \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12(\x0A\x04tags\x18' \x03(\x0B2\x1A.google.privacy.dlp.v2.Tag\x12A\x0A\x11related_resources\x18) \x03(\x0B2&.google.privacy.dlp.v2.RelatedResource\x12.\x0A\x07domains\x18/ \x03(\x0B2\x1D.google.privacy.dlp.v2.Domain\x1A5\x0A\x13ResourceLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"5\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x08\x0A\x04DONE\x10\x02:\xD3\x01\xEAA\xCF\x01\x0A#dlp.googleapis.com/TableDataProfile\x12Xorganizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}\x12Nprojects/{project}/locations/{location}/tableDataProfiles/{table_data_profile}\"b\x0A\x0DProfileStatus\x12\"\x0A\x06status\x18\x01 \x01(\x0B2\x12.google.rpc.Status\x12-\x0A\x09timestamp\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"g\x0A\x0FInfoTypeSummary\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12 \x0A\x14estimated_prevalence\x18\x02 \x01(\x05B\x02\x18\x01\"\x88\x01\x0A\x14OtherInfoTypeSummary\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12\x1C\x0A\x14estimated_prevalence\x18\x02 \x01(\x05\x12\x1E\x0A\x16excluded_from_analysis\x18\x03 \x01(\x08\"\xC9\x0D\x0A\x11ColumnDataProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12<\x0A\x0Eprofile_status\x18\x11 \x01(\x0B2\$.google.privacy.dlp.v2.ProfileStatus\x12=\x0A\x05state\x18\x12 \x01(\x0E2..google.privacy.dlp.v2.ColumnDataProfile.State\x12:\x0A\x16profile_last_generated\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x1A\x0A\x12table_data_profile\x18\x04 \x01(\x09\x12\x1B\x0A\x13table_full_resource\x18\x05 \x01(\x09\x12\x1A\x0A\x12dataset_project_id\x18\x13 \x01(\x09\x12\x18\x0A\x10dataset_location\x18\x14 \x01(\x09\x12\x12\x0A\x0Adataset_id\x18\x15 \x01(\x09\x12\x10\x0A\x08table_id\x18\x16 \x01(\x09\x12\x0E\x0A\x06column\x18\x06 \x01(\x09\x12B\x0A\x11sensitivity_score\x18\x07 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x08 \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12@\x0A\x10column_info_type\x18\x09 \x01(\x0B2&.google.privacy.dlp.v2.InfoTypeSummary\x12B\x0A\x0Dother_matches\x18\x0A \x03(\x0B2+.google.privacy.dlp.v2.OtherInfoTypeSummary\x12M\x0A\x19estimated_null_percentage\x18\x17 \x01(\x0E2*.google.privacy.dlp.v2.NullPercentageLevel\x12O\x0A\x1Aestimated_uniqueness_score\x18\x18 \x01(\x0E2+.google.privacy.dlp.v2.UniquenessScoreLevel\x12\x17\x0A\x0Ffree_text_score\x18\x0D \x01(\x01\x12L\x0A\x0Bcolumn_type\x18\x0E \x01(\x0E27.google.privacy.dlp.v2.ColumnDataProfile.ColumnDataType\x12P\x0A\x0Cpolicy_state\x18\x0F \x01(\x0E2:.google.privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState\"5\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x08\x0A\x04DONE\x10\x02\"\xFF\x02\x0A\x0EColumnDataType\x12 \x0A\x1CCOLUMN_DATA_TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0ATYPE_INT64\x10\x01\x12\x0D\x0A\x09TYPE_BOOL\x10\x02\x12\x10\x0A\x0CTYPE_FLOAT64\x10\x03\x12\x0F\x0A\x0BTYPE_STRING\x10\x04\x12\x0E\x0A\x0ATYPE_BYTES\x10\x05\x12\x12\x0A\x0ETYPE_TIMESTAMP\x10\x06\x12\x0D\x0A\x09TYPE_DATE\x10\x07\x12\x0D\x0A\x09TYPE_TIME\x10\x08\x12\x11\x0A\x0DTYPE_DATETIME\x10\x09\x12\x12\x0A\x0ETYPE_GEOGRAPHY\x10\x0A\x12\x10\x0A\x0CTYPE_NUMERIC\x10\x0B\x12\x0F\x0A\x0BTYPE_RECORD\x10\x0C\x12\x13\x0A\x0FTYPE_BIGNUMERIC\x10\x0D\x12\x0D\x0A\x09TYPE_JSON\x10\x0E\x12\x11\x0A\x0DTYPE_INTERVAL\x10\x0F\x12\x13\x0A\x0FTYPE_RANGE_DATE\x10\x10\x12\x17\x0A\x13TYPE_RANGE_DATETIME\x10\x11\x12\x18\x0A\x14TYPE_RANGE_TIMESTAMP\x10\x12\"R\x0A\x11ColumnPolicyState\x12#\x0A\x1FCOLUMN_POLICY_STATE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14COLUMN_POLICY_TAGGED\x10\x01:\xD8\x01\xEAA\xD4\x01\x0A\$dlp.googleapis.com/ColumnDataProfile\x12Zorganizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}\x12Pprojects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}\"\xE8\x0E\x0A\x14FileStoreDataProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12?\x0A\x10data_source_type\x18\x02 \x01(\x0B2%.google.privacy.dlp.v2.DataSourceType\x12\x1C\x0A\x14project_data_profile\x18\x03 \x01(\x09\x12\x12\x0A\x0Aproject_id\x18\x04 \x01(\x09\x12\x1B\x0A\x13file_store_location\x18\x05 \x01(\x09\x12\x1E\x0A\x16data_storage_locations\x18\x13 \x03(\x09\x12\x15\x0A\x0Dlocation_type\x18\x14 \x01(\x09\x12\x17\x0A\x0Ffile_store_path\x18\x06 \x01(\x09\x12\x15\x0A\x0Dfull_resource\x18\x18 \x01(\x09\x12I\x0A\x0Fconfig_snapshot\x18\x07 \x01(\x0B20.google.privacy.dlp.v2.DataProfileConfigSnapshot\x12<\x0A\x0Eprofile_status\x18\x08 \x01(\x0B2\$.google.privacy.dlp.v2.ProfileStatus\x12@\x0A\x05state\x18\x09 \x01(\x0E21.google.privacy.dlp.v2.FileStoreDataProfile.State\x12:\x0A\x16profile_last_generated\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\x12F\x0A\x13resource_visibility\x18\x0B \x01(\x0E2).google.privacy.dlp.v2.ResourceVisibility\x12B\x0A\x11sensitivity_score\x18\x0C \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x0D \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12/\x0A\x0Bcreate_time\x18\x0E \x01(\x0B2\x1A.google.protobuf.Timestamp\x126\x0A\x12last_modified_time\x18\x0F \x01(\x0B2\x1A.google.protobuf.Timestamp\x12I\x0A\x16file_cluster_summaries\x18\x10 \x03(\x0B2).google.privacy.dlp.v2.FileClusterSummary\x12`\x0A\x13resource_attributes\x18\x11 \x03(\x0B2C.google.privacy.dlp.v2.FileStoreDataProfile.ResourceAttributesEntry\x12X\x0A\x0Fresource_labels\x18\x12 \x03(\x0B2?.google.privacy.dlp.v2.FileStoreDataProfile.ResourceLabelsEntry\x12W\x0A\x1Efile_store_info_type_summaries\x18\x15 \x03(\x0B2/.google.privacy.dlp.v2.FileStoreInfoTypeSummary\x12C\x0A\x15sample_findings_table\x18\x16 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12\x1B\x0A\x13file_store_is_empty\x18\x17 \x01(\x08\x12(\x0A\x04tags\x18\x19 \x03(\x0B2\x1A.google.privacy.dlp.v2.Tag\x12A\x0A\x11related_resources\x18\x1A \x03(\x0B2&.google.privacy.dlp.v2.RelatedResource\x12.\x0A\x07domains\x18\x1B \x03(\x0B2\x1D.google.privacy.dlp.v2.Domain\x1AW\x0A\x17ResourceAttributesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12+\x0A\x05value\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value:\x028\x01\x1A5\x0A\x13ResourceLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"5\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x08\x0A\x04DONE\x10\x02:\xE9\x01\xEAA\xE5\x01\x0A'dlp.googleapis.com/FileStoreDataProfile\x12aorganizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}\x12Wprojects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}\"?\x0A\x03Tag\x12\x1C\x0A\x14namespaced_tag_value\x18\x01 \x01(\x09\x12\x0B\x0A\x03key\x18\x02 \x01(\x09\x12\x0D\x0A\x05value\x18\x03 \x01(\x09\"H\x0A\x0ATagFilters\x12:\x0A\x0Btag_filters\x18\x01 \x03(\x0B2 .google.privacy.dlp.v2.TagFilterB\x03\xE0A\x02\"S\x0A\x09TagFilter\x12\x1E\x0A\x14namespaced_tag_value\x18\x01 \x01(\x09H\x00\x12\x1C\x0A\x12namespaced_tag_key\x18\x02 \x01(\x09H\x00B\x08\x0A\x06format\"(\x0A\x0FRelatedResource\x12\x15\x0A\x0Dfull_resource\x18\x01 \x01(\x09\"N\x0A\x18FileStoreInfoTypeSummary\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\"+\x0A\x11FileExtensionInfo\x12\x16\x0A\x0Efile_extension\x18\x01 \x01(\x09\"\x8C\x04\x0A\x12FileClusterSummary\x12A\x0A\x11file_cluster_type\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.FileClusterType\x12W\x0A\x1Efile_store_info_type_summaries\x18\x02 \x03(\x0B2/.google.privacy.dlp.v2.FileStoreInfoTypeSummary\x12B\x0A\x11sensitivity_score\x18\x03 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x04 \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12,\x0A\x06errors\x18\x06 \x03(\x0B2\x1C.google.privacy.dlp.v2.Error\x12I\x0A\x17file_extensions_scanned\x18\x07 \x03(\x0B2(.google.privacy.dlp.v2.FileExtensionInfo\x12F\x0A\x14file_extensions_seen\x18\x08 \x03(\x0B2(.google.privacy.dlp.v2.FileExtensionInfo\x12\x16\x0A\x0Eno_files_exist\x18\x09 \x01(\x08\"[\x0A\x1CGetProjectDataProfileRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/ProjectDataProfile\"]\x0A\x1EGetFileStoreDataProfileRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/ProjectDataProfile\"\xC0\x01\x0A ListFileStoreDataProfilesRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'dlp.googleapis.com/FileStoreDataProfile\x12\x17\x0A\x0Apage_token\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x8B\x01\x0A!ListFileStoreDataProfilesResponse\x12M\x0A\x18file_store_data_profiles\x18\x01 \x03(\x0B2+.google.privacy.dlp.v2.FileStoreDataProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"b\x0A!DeleteFileStoreDataProfileRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'dlp.googleapis.com/FileStoreDataProfile\"W\x0A\x1AGetTableDataProfileRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dlp.googleapis.com/TableDataProfile\"Y\x0A\x1BGetColumnDataProfileRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dlp.googleapis.com/ColumnDataProfile\"\xEA\x05\x0A\x1ADataProfilePubSubCondition\x12X\x0A\x0Bexpressions\x18\x01 \x01(\x0B2C.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions\x1A\xE9\x01\x0A\x0FPubSubCondition\x12b\x0A\x12minimum_risk_score\x18\x01 \x01(\x0E2D.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucketH\x00\x12i\x0A\x19minimum_sensitivity_score\x18\x02 \x01(\x0E2D.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucketH\x00B\x07\x0A\x05value\x1A\xAB\x02\x0A\x11PubSubExpressions\x12s\x0A\x10logical_operator\x18\x01 \x01(\x0E2Y.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator\x12U\x0A\x0Aconditions\x18\x02 \x03(\x0B2A.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition\"J\x0A\x15PubSubLogicalOperator\x12 \x0A\x1CLOGICAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x06\x0A\x02OR\x10\x01\x12\x07\x0A\x03AND\x10\x02\"X\x0A\x12ProfileScoreBucket\x12\$\x0A PROFILE_SCORE_BUCKET_UNSPECIFIED\x10\x00\x12\x08\x0A\x04HIGH\x10\x01\x12\x12\x0A\x0EMEDIUM_OR_HIGH\x10\x02\"\xE0\x01\x0A\x18DataProfilePubSubMessage\x128\x0A\x07profile\x18\x01 \x01(\x0B2'.google.privacy.dlp.v2.TableDataProfile\x12G\x0A\x12file_store_profile\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.FileStoreDataProfile\x12A\x0A\x05event\x18\x02 \x01(\x0E22.google.privacy.dlp.v2.DataProfileAction.EventType\"\x8C\x01\x0A\x17CreateConnectionRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/Connection\x12:\x0A\x0Aconnection\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.ConnectionB\x03\xE0A\x02\"K\x0A\x14GetConnectionRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/Connection\"\x95\x01\x0A\x16ListConnectionsRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/Connection\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x97\x01\x0A\x18SearchConnectionsRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/Connection\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"j\x0A\x17ListConnectionsResponse\x126\x0A\x0Bconnections\x18\x01 \x03(\x0B2!.google.privacy.dlp.v2.Connection\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"l\x0A\x19SearchConnectionsResponse\x126\x0A\x0Bconnections\x18\x01 \x03(\x0B2!.google.privacy.dlp.v2.Connection\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xC0\x01\x0A\x17UpdateConnectionRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/Connection\x12:\x0A\x0Aconnection\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.ConnectionB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"N\x0A\x17DeleteConnectionRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/Connection\"\x90\x03\x0A\x0AConnection\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12:\x0A\x05state\x18\x02 \x01(\x0E2&.google.privacy.dlp.v2.ConnectionStateB\x03\xE0A\x02\x121\x0A\x06errors\x18\x03 \x03(\x0B2\x1C.google.privacy.dlp.v2.ErrorB\x03\xE0A\x03\x12>\x0A\x09cloud_sql\x18\x04 \x01(\x0B2).google.privacy.dlp.v2.CloudSqlPropertiesH\x00:\xB1\x01\xEAA\xAD\x01\x0A\x1Ddlp.googleapis.com/Connection\x12@projects/{project}/locations/{location}/connections/{connection}\x12Jorganizations/{organization}/locations/{location}/connections/{connection}B\x0C\x0A\x0Aproperties\"[\x0A\x17SecretManagerCredential\x12\x15\x0A\x08username\x18\x01 \x01(\x09B\x03\xE0A\x02\x12)\x0A\x1Cpassword_secret_version_name\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x17\x0A\x15CloudSqlIamCredential\"\xB5\x03\x0A\x12CloudSqlProperties\x12\x1F\x0A\x0Fconnection_name\x18\x01 \x01(\x09B\x06\xE0A\x05\xE0A\x01\x12K\x0A\x11username_password\x18\x02 \x01(\x0B2..google.privacy.dlp.v2.SecretManagerCredentialH\x00\x12E\x0A\x0Dcloud_sql_iam\x18\x03 \x01(\x0B2,.google.privacy.dlp.v2.CloudSqlIamCredentialH\x00\x12\x1C\x0A\x0Fmax_connections\x18\x04 \x01(\x05B\x03\xE0A\x02\x12V\x0A\x0Fdatabase_engine\x18\x07 \x01(\x0E28.google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngineB\x03\xE0A\x02\"f\x0A\x0EDatabaseEngine\x12\x1B\x0A\x17DATABASE_ENGINE_UNKNOWN\x10\x00\x12\x19\x0A\x15DATABASE_ENGINE_MYSQL\x10\x01\x12\x1C\x0A\x18DATABASE_ENGINE_POSTGRES\x10\x02B\x0C\x0A\x0Acredential\"Z\x0A\x1DDeleteTableDataProfileRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dlp.googleapis.com/TableDataProfile\"%\x0A\x0EDataSourceType\x12\x13\x0A\x0Bdata_source\x18\x01 \x01(\x09\"\xF4\x02\x0A\x0FFileClusterType\x12A\x0A\x07cluster\x18\x01 \x01(\x0E2..google.privacy.dlp.v2.FileClusterType.ClusterH\x00\"\x88\x02\x0A\x07Cluster\x12\x17\x0A\x13CLUSTER_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FCLUSTER_UNKNOWN\x10\x01\x12\x10\x0A\x0CCLUSTER_TEXT\x10\x02\x12\x1B\x0A\x17CLUSTER_STRUCTURED_DATA\x10\x03\x12\x17\x0A\x13CLUSTER_SOURCE_CODE\x10\x04\x12\x19\x0A\x15CLUSTER_RICH_DOCUMENT\x10\x05\x12\x11\x0A\x0DCLUSTER_IMAGE\x10\x06\x12\x13\x0A\x0FCLUSTER_ARCHIVE\x10\x07\x12\x16\x0A\x12CLUSTER_MULTIMEDIA\x10\x08\x12\x16\x0A\x12CLUSTER_EXECUTABLE\x10\x09\x12\x14\x0A\x10CLUSTER_AI_MODEL\x10\x0AB\x13\x0A\x11file_cluster_type\"\xB6\x05\x0A\x12ProcessingLocation\x12`\x0A\x17image_fallback_location\x18\x01 \x01(\x0B2?.google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation\x12f\x0A\x1Adocument_fallback_location\x18\x02 \x01(\x0B2B.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation\x1A\x17\x0A\x15MultiRegionProcessing\x1A\x12\x0A\x10GlobalProcessing\x1A\xD1\x01\x0A\x15ImageFallbackLocation\x12`\x0A\x17multi_region_processing\x18d \x01(\x0B2?.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing\x12V\x0A\x11global_processing\x18\xC8\x01 \x01(\x0B2:.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing\x1A\xD4\x01\x0A\x18DocumentFallbackLocation\x12`\x0A\x17multi_region_processing\x18d \x01(\x0B2?.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing\x12V\x0A\x11global_processing\x18\xC8\x01 \x01(\x0B2:.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing\"K\x0A\x17SaveToGcsFindingsOutput\x120\x0A\x08findings\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.Finding\"\xC6\x02\x0A\x06Domain\x128\x0A\x08category\x18\x01 \x01(\x0E2&.google.privacy.dlp.v2.Domain.Category\x125\x0A\x07signals\x18\x02 \x03(\x0E2\$.google.privacy.dlp.v2.Domain.Signal\"6\x0A\x08Category\x12\x18\x0A\x14CATEGORY_UNSPECIFIED\x10\x00\x12\x06\x0A\x02AI\x10\x01\x12\x08\x0A\x04CODE\x10\x02\"\x92\x01\x0A\x06Signal\x12\x16\x0A\x12SIGNAL_UNSPECIFIED\x10\x00\x12\x09\x0A\x05MODEL\x10\x01\x12\x12\x0A\x0ETEXT_EMBEDDING\x10\x02\x12\x0D\x0A\x09EMBEDDING\x10\x07\x12\x11\x0A\x0DVERTEX_PLUGIN\x10\x03\x12\x11\x0A\x0DVECTOR_PLUGIN\x10\x04\x12\x0F\x0A\x0BSOURCE_CODE\x10\x05\x12\x0B\x0A\x07SERVICE\x10\x06*\xA0\x01\x0A\x1ETransformationResultStatusType\x12\x1A\x0A\x16STATE_TYPE_UNSPECIFIED\x10\x00\x12\x15\x0A\x11INVALID_TRANSFORM\x10\x01\x12\"\x0A\x1EBIGQUERY_MAX_ROW_SIZE_EXCEEDED\x10\x02\x12\x1A\x0A\x16METADATA_UNRETRIEVABLE\x10\x03\x12\x0B\x0A\x07SUCCESS\x10\x04*\x7F\x0A\x1BTransformationContainerType\x12\x1F\x0A\x1BTRANSFORM_UNKNOWN_CONTAINER\x10\x00\x12\x12\x0A\x0ETRANSFORM_BODY\x10\x01\x12\x16\x0A\x12TRANSFORM_METADATA\x10\x02\x12\x13\x0A\x0FTRANSFORM_TABLE\x10\x03*\xE0\x02\x0A\x12TransformationType\x12#\x0A\x1FTRANSFORMATION_TYPE_UNSPECIFIED\x10\x00\x12\x16\x0A\x12RECORD_SUPPRESSION\x10\x01\x12\x11\x0A\x0DREPLACE_VALUE\x10\x02\x12\x16\x0A\x12REPLACE_DICTIONARY\x10\x0F\x12\x0A\x0A\x06REDACT\x10\x03\x12\x12\x0A\x0ECHARACTER_MASK\x10\x04\x12\x1A\x0A\x16CRYPTO_REPLACE_FFX_FPE\x10\x05\x12\x18\x0A\x14FIXED_SIZE_BUCKETING\x10\x06\x12\x0D\x0A\x09BUCKETING\x10\x07\x12\x1A\x0A\x16REPLACE_WITH_INFO_TYPE\x10\x08\x12\x0D\x0A\x09TIME_PART\x10\x09\x12\x0F\x0A\x0BCRYPTO_HASH\x10\x0A\x12\x0E\x0A\x0ADATE_SHIFT\x10\x0C\x12\x1F\x0A\x1BCRYPTO_DETERMINISTIC_CONFIG\x10\x0D\x12\x10\x0A\x0CREDACT_IMAGE\x10\x0E*r\x0A\x11ProfileGeneration\x12\"\x0A\x1EPROFILE_GENERATION_UNSPECIFIED\x10\x00\x12\x1A\x0A\x16PROFILE_GENERATION_NEW\x10\x01\x12\x1D\x0A\x19PROFILE_GENERATION_UPDATE\x10\x02*\x96\x01\x0A\x1BBigQueryTableTypeCollection\x12\$\x0A BIG_QUERY_COLLECTION_UNSPECIFIED\x10\x00\x12\"\x0A\x1EBIG_QUERY_COLLECTION_ALL_TYPES\x10\x01\x12-\x0A)BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES\x10\x02*\xA8\x01\x0A\x11BigQueryTableType\x12\$\x0A BIG_QUERY_TABLE_TYPE_UNSPECIFIED\x10\x00\x12\x1E\x0A\x1ABIG_QUERY_TABLE_TYPE_TABLE\x10\x01\x12*\x0A&BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE\x10\x02\x12!\x0A\x1DBIG_QUERY_TABLE_TYPE_SNAPSHOT\x10\x03*\x94\x01\x0A\x1ADataProfileUpdateFrequency\x12 \x0A\x1CUPDATE_FREQUENCY_UNSPECIFIED\x10\x00\x12\x1A\x0A\x16UPDATE_FREQUENCY_NEVER\x10\x01\x12\x1A\x0A\x16UPDATE_FREQUENCY_DAILY\x10\x02\x12\x1C\x0A\x18UPDATE_FREQUENCY_MONTHLY\x10\x04*]\x0A\x19BigQueryTableModification\x12\"\x0A\x1ETABLE_MODIFICATION_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18TABLE_MODIFIED_TIMESTAMP\x10\x01*u\x0A\x1ABigQuerySchemaModification\x12#\x0A\x1FSCHEMA_MODIFICATION_UNSPECIFIED\x10\x00\x12\x16\x0A\x12SCHEMA_NEW_COLUMNS\x10\x01\x12\x1A\x0A\x16SCHEMA_REMOVED_COLUMNS\x10\x02*\xBB\x01\x0A\x12RelationalOperator\x12#\x0A\x1FRELATIONAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08EQUAL_TO\x10\x01\x12\x10\x0A\x0CNOT_EQUAL_TO\x10\x02\x12\x10\x0A\x0CGREATER_THAN\x10\x03\x12\x0D\x0A\x09LESS_THAN\x10\x04\x12\x1A\x0A\x16GREATER_THAN_OR_EQUALS\x10\x05\x12\x17\x0A\x13LESS_THAN_OR_EQUALS\x10\x06\x12\x0A\x0A\x06EXISTS\x10\x07*\xAE\x01\x0A\x0CMatchingType\x12\x1D\x0A\x19MATCHING_TYPE_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18MATCHING_TYPE_FULL_MATCH\x10\x01\x12\x1F\x0A\x1BMATCHING_TYPE_PARTIAL_MATCH\x10\x02\x12\x1F\x0A\x1BMATCHING_TYPE_INVERSE_MATCH\x10\x03\x12\x1F\x0A\x1BMATCHING_TYPE_RULE_SPECIFIC\x10\x04*M\x0A\x0DContentOption\x12\x17\x0A\x13CONTENT_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CCONTENT_TEXT\x10\x01\x12\x11\x0A\x0DCONTENT_IMAGE\x10\x02*X\x0A\x0CMetadataType\x12\x1C\x0A\x18METADATATYPE_UNSPECIFIED\x10\x00\x12\x14\x0A\x10STORAGE_METADATA\x10\x02\x12\x14\x0A\x10CONTENT_METADATA\x10\x03*P\x0A\x13InfoTypeSupportedBy\x12\x19\x0A\x15ENUM_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07INSPECT\x10\x01\x12\x11\x0A\x0DRISK_ANALYSIS\x10\x02*R\x0A\x0ADlpJobType\x12\x1C\x0A\x18DLP_JOB_TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINSPECT_JOB\x10\x01\x12\x15\x0A\x11RISK_ANALYSIS_JOB\x10\x02*n\x0A\x13StoredInfoTypeState\x12&\x0A\"STORED_INFO_TYPE_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PENDING\x10\x01\x12\x09\x0A\x05READY\x10\x02\x12\x0A\x0A\x06FAILED\x10\x03\x12\x0B\x0A\x07INVALID\x10\x04*\xA3\x01\x0A\x12ResourceVisibility\x12#\x0A\x1FRESOURCE_VISIBILITY_UNSPECIFIED\x10\x00\x12\x1E\x0A\x1ARESOURCE_VISIBILITY_PUBLIC\x10\x0A\x12\$\x0A RESOURCE_VISIBILITY_INCONCLUSIVE\x10\x0F\x12\"\x0A\x1ERESOURCE_VISIBILITY_RESTRICTED\x10\x14*u\x0A\x10EncryptionStatus\x12!\x0A\x1DENCRYPTION_STATUS_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19ENCRYPTION_GOOGLE_MANAGED\x10\x01\x12\x1F\x0A\x1BENCRYPTION_CUSTOMER_MANAGED\x10\x02*\xA9\x01\x0A\x13NullPercentageLevel\x12%\x0A!NULL_PERCENTAGE_LEVEL_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18NULL_PERCENTAGE_VERY_LOW\x10\x01\x12\x17\x0A\x13NULL_PERCENTAGE_LOW\x10\x02\x12\x1A\x0A\x16NULL_PERCENTAGE_MEDIUM\x10\x03\x12\x18\x0A\x14NULL_PERCENTAGE_HIGH\x10\x04*\x90\x01\x0A\x14UniquenessScoreLevel\x12&\x0A\"UNIQUENESS_SCORE_LEVEL_UNSPECIFIED\x10\x00\x12\x18\x0A\x14UNIQUENESS_SCORE_LOW\x10\x01\x12\x1B\x0A\x17UNIQUENESS_SCORE_MEDIUM\x10\x02\x12\x19\x0A\x15UNIQUENESS_SCORE_HIGH\x10\x03*f\x0A\x0FConnectionState\x12 \x0A\x1CCONNECTION_STATE_UNSPECIFIED\x10\x00\x12\x17\x0A\x13MISSING_CREDENTIALS\x10\x01\x12\x0D\x0A\x09AVAILABLE\x10\x02\x12\x09\x0A\x05ERROR\x10\x032\xDDv\x0A\x0ADlpService\x12\xDB\x01\x0A\x0EInspectContent\x12,.google.privacy.dlp.v2.InspectContentRequest\x1A-.google.privacy.dlp.v2.InspectContentResponse\"l\x82\xD3\xE4\x93\x02f\"'/v2/{parent=projects/*}/content:inspect:\x01*Z8\"3/v2/{parent=projects/*/locations/*}/content:inspect:\x01*\x12\xCC\x01\x0A\x0BRedactImage\x12).google.privacy.dlp.v2.RedactImageRequest\x1A*.google.privacy.dlp.v2.RedactImageResponse\"f\x82\xD3\xE4\x93\x02`\"\$/v2/{parent=projects/*}/image:redact:\x01*Z5\"0/v2/{parent=projects/*/locations/*}/image:redact:\x01*\x12\xEA\x01\x0A\x11DeidentifyContent\x12/.google.privacy.dlp.v2.DeidentifyContentRequest\x1A0.google.privacy.dlp.v2.DeidentifyContentResponse\"r\x82\xD3\xE4\x93\x02l\"*/v2/{parent=projects/*}/content:deidentify:\x01*Z;\"6/v2/{parent=projects/*/locations/*}/content:deidentify:\x01*\x12\xEA\x01\x0A\x11ReidentifyContent\x12/.google.privacy.dlp.v2.ReidentifyContentRequest\x1A0.google.privacy.dlp.v2.ReidentifyContentResponse\"r\x82\xD3\xE4\x93\x02l\"*/v2/{parent=projects/*}/content:reidentify:\x01*Z;\"6/v2/{parent=projects/*/locations/*}/content:reidentify:\x01*\x12\x99\x02\x0A\x0DListInfoTypes\x12+.google.privacy.dlp.v2.ListInfoTypesRequest\x1A,.google.privacy.dlp.v2.ListInfoTypesResponse\"\xAC\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\x9C\x01\x12\x0D/v2/infoTypesZ\$\x12\"/v2/{parent=locations/*}/infoTypesZ/\x12-/v2/{parent=projects/*/locations/*}/infoTypesZ4\x122/v2/{parent=organizations/*/locations/*}/infoTypes\x12\xF4\x02\x0A\x15CreateInspectTemplate\x123.google.privacy.dlp.v2.CreateInspectTemplateRequest\x1A&.google.privacy.dlp.v2.InspectTemplate\"\xFD\x01\xDAA\x17parent,inspect_template\x82\xD3\xE4\x93\x02\xDC\x01\"4/v2/{parent=projects/*/locations/*}/inspectTemplates:\x01*Z>\"9/v2/{parent=organizations/*/locations/*}/inspectTemplates:\x01*Z-\"(/v2/{parent=projects/*}/inspectTemplates:\x01*Z2\"-/v2/{parent=organizations/*}/inspectTemplates:\x01*\x12\xFE\x02\x0A\x15UpdateInspectTemplate\x123.google.privacy.dlp.v2.UpdateInspectTemplateRequest\x1A&.google.privacy.dlp.v2.InspectTemplate\"\x87\x02\xDAA!name,inspect_template,update_mask\x82\xD3\xE4\x93\x02\xDC\x0124/v2/{name=projects/*/locations/*/inspectTemplates/*}:\x01*Z>29/v2/{name=organizations/*/locations/*/inspectTemplates/*}:\x01*Z-2(/v2/{name=projects/*/inspectTemplates/*}:\x01*Z22-/v2/{name=organizations/*/inspectTemplates/*}:\x01*\x12\xCF\x02\x0A\x12GetInspectTemplate\x120.google.privacy.dlp.v2.GetInspectTemplateRequest\x1A&.google.privacy.dlp.v2.InspectTemplate\"\xDE\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xD0\x01\x124/v2/{name=projects/*/locations/*/inspectTemplates/*}Z;\x129/v2/{name=organizations/*/locations/*/inspectTemplates/*}Z*\x12(/v2/{name=projects/*/inspectTemplates/*}Z/\x12-/v2/{name=organizations/*/inspectTemplates/*}\x12\xE2\x02\x0A\x14ListInspectTemplates\x122.google.privacy.dlp.v2.ListInspectTemplatesRequest\x1A3.google.privacy.dlp.v2.ListInspectTemplatesResponse\"\xE0\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xD0\x01\x124/v2/{parent=projects/*/locations/*}/inspectTemplatesZ;\x129/v2/{parent=organizations/*/locations/*}/inspectTemplatesZ*\x12(/v2/{parent=projects/*}/inspectTemplatesZ/\x12-/v2/{parent=organizations/*}/inspectTemplates\x12\xC5\x02\x0A\x15DeleteInspectTemplate\x123.google.privacy.dlp.v2.DeleteInspectTemplateRequest\x1A\x16.google.protobuf.Empty\"\xDE\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xD0\x01*4/v2/{name=projects/*/locations/*/inspectTemplates/*}Z;*9/v2/{name=organizations/*/locations/*/inspectTemplates/*}Z**(/v2/{name=projects/*/inspectTemplates/*}Z/*-/v2/{name=organizations/*/inspectTemplates/*}\x12\x8C\x03\x0A\x18CreateDeidentifyTemplate\x126.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest\x1A).google.privacy.dlp.v2.DeidentifyTemplate\"\x8C\x02\xDAA\x1Aparent,deidentify_template\x82\xD3\xE4\x93\x02\xE8\x01\"0/v2/{parent=organizations/*}/deidentifyTemplates:\x01*ZA\"\x12\x12*\"9/v2/{parent=organizations/*/locations/*}/discoveryConfigs:\x01*\x12\x9A\x02\x0A\x15UpdateDiscoveryConfig\x123.google.privacy.dlp.v2.UpdateDiscoveryConfigRequest\x1A&.google.privacy.dlp.v2.DiscoveryConfig\"\xA3\x01\xDAA!name,discovery_config,update_mask\x82\xD3\xE4\x93\x02y24/v2/{name=projects/*/locations/*/discoveryConfigs/*}:\x01*Z>29/v2/{name=organizations/*/locations/*/discoveryConfigs/*}:\x01*\x12\xF1\x01\x0A\x12GetDiscoveryConfig\x120.google.privacy.dlp.v2.GetDiscoveryConfigRequest\x1A&.google.privacy.dlp.v2.DiscoveryConfig\"\x80\x01\xDAA\x04name\x82\xD3\xE4\x93\x02s\x124/v2/{name=projects/*/locations/*/discoveryConfigs/*}Z;\x129/v2/{name=organizations/*/locations/*/discoveryConfigs/*}\x12\x84\x02\x0A\x14ListDiscoveryConfigs\x122.google.privacy.dlp.v2.ListDiscoveryConfigsRequest\x1A3.google.privacy.dlp.v2.ListDiscoveryConfigsResponse\"\x82\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02s\x124/v2/{parent=projects/*/locations/*}/discoveryConfigsZ;\x129/v2/{parent=organizations/*/locations/*}/discoveryConfigs\x12\xE7\x01\x0A\x15DeleteDiscoveryConfig\x123.google.privacy.dlp.v2.DeleteDiscoveryConfigRequest\x1A\x16.google.protobuf.Empty\"\x80\x01\xDAA\x04name\x82\xD3\xE4\x93\x02s*4/v2/{name=projects/*/locations/*/discoveryConfigs/*}Z;*9/v2/{name=organizations/*/locations/*/discoveryConfigs/*}\x12\xDF\x01\x0A\x0CCreateDlpJob\x12*.google.privacy.dlp.v2.CreateDlpJobRequest\x1A\x1D.google.privacy.dlp.v2.DlpJob\"\x83\x01\xDAA\x12parent,inspect_job\xDAA\x0Fparent,risk_job\x82\xD3\xE4\x93\x02V\"\x1F/v2/{parent=projects/*}/dlpJobs:\x01*Z0\"+/v2/{parent=projects/*/locations/*}/dlpJobs:\x01*\x12\xFB\x01\x0A\x0BListDlpJobs\x12).google.privacy.dlp.v2.ListDlpJobsRequest\x1A*.google.privacy.dlp.v2.ListDlpJobsResponse\"\x94\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\x84\x01\x12\x1F/v2/{parent=projects/*}/dlpJobsZ-\x12+/v2/{parent=projects/*/locations/*}/dlpJobsZ2\x120/v2/{parent=organizations/*/locations/*}/dlpJobs\x12\xB2\x01\x0A\x09GetDlpJob\x12'.google.privacy.dlp.v2.GetDlpJobRequest\x1A\x1D.google.privacy.dlp.v2.DlpJob\"]\xDAA\x04name\x82\xD3\xE4\x93\x02P\x12\x1F/v2/{name=projects/*/dlpJobs/*}Z-\x12+/v2/{name=projects/*/locations/*/dlpJobs/*}\x12\xB1\x01\x0A\x0CDeleteDlpJob\x12*.google.privacy.dlp.v2.DeleteDlpJobRequest\x1A\x16.google.protobuf.Empty\"]\xDAA\x04name\x82\xD3\xE4\x93\x02P*\x1F/v2/{name=projects/*/dlpJobs/*}Z-*+/v2/{name=projects/*/locations/*/dlpJobs/*}\x12\xBE\x01\x0A\x0CCancelDlpJob\x12*.google.privacy.dlp.v2.CancelDlpJobRequest\x1A\x16.google.protobuf.Empty\"j\x82\xD3\xE4\x93\x02d\"&/v2/{name=projects/*/dlpJobs/*}:cancel:\x01*Z7\"2/v2/{name=projects/*/locations/*/dlpJobs/*}:cancel:\x01*\x12\xE3\x02\x0A\x14CreateStoredInfoType\x122.google.privacy.dlp.v2.CreateStoredInfoTypeRequest\x1A%.google.privacy.dlp.v2.StoredInfoType\"\xEF\x01\xDAA\x0Dparent,config\x82\xD3\xE4\x93\x02\xD8\x01\",/v2/{parent=organizations/*}/storedInfoTypes:\x01*Z=\"8/v2/{parent=organizations/*/locations/*}/storedInfoTypes:\x01*Z,\"'/v2/{parent=projects/*}/storedInfoTypes:\x01*Z8\"3/v2/{parent=projects/*/locations/*}/storedInfoTypes:\x01*\x12\xED\x02\x0A\x14UpdateStoredInfoType\x122.google.privacy.dlp.v2.UpdateStoredInfoTypeRequest\x1A%.google.privacy.dlp.v2.StoredInfoType\"\xF9\x01\xDAA\x17name,config,update_mask\x82\xD3\xE4\x93\x02\xD8\x012,/v2/{name=organizations/*/storedInfoTypes/*}:\x01*Z=28/v2/{name=organizations/*/locations/*/storedInfoTypes/*}:\x01*Z,2'/v2/{name=projects/*/storedInfoTypes/*}:\x01*Z823/v2/{name=projects/*/locations/*/storedInfoTypes/*}:\x01*\x12\xC8\x02\x0A\x11GetStoredInfoType\x12/.google.privacy.dlp.v2.GetStoredInfoTypeRequest\x1A%.google.privacy.dlp.v2.StoredInfoType\"\xDA\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xCC\x01\x12,/v2/{name=organizations/*/storedInfoTypes/*}Z:\x128/v2/{name=organizations/*/locations/*/storedInfoTypes/*}Z)\x12'/v2/{name=projects/*/storedInfoTypes/*}Z5\x123/v2/{name=projects/*/locations/*/storedInfoTypes/*}\x12\xDB\x02\x0A\x13ListStoredInfoTypes\x121.google.privacy.dlp.v2.ListStoredInfoTypesRequest\x1A2.google.privacy.dlp.v2.ListStoredInfoTypesResponse\"\xDC\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xCC\x01\x12,/v2/{parent=organizations/*}/storedInfoTypesZ:\x128/v2/{parent=organizations/*/locations/*}/storedInfoTypesZ)\x12'/v2/{parent=projects/*}/storedInfoTypesZ5\x123/v2/{parent=projects/*/locations/*}/storedInfoTypes\x12\xBF\x02\x0A\x14DeleteStoredInfoType\x122.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest\x1A\x16.google.protobuf.Empty\"\xDA\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xCC\x01*,/v2/{name=organizations/*/storedInfoTypes/*}Z:*8/v2/{name=organizations/*/locations/*/storedInfoTypes/*}Z)*'/v2/{name=projects/*/storedInfoTypes/*}Z5*3/v2/{name=projects/*/locations/*/storedInfoTypes/*}\x12\x93\x02\x0A\x17ListProjectDataProfiles\x125.google.privacy.dlp.v2.ListProjectDataProfilesRequest\x1A6.google.privacy.dlp.v2.ListProjectDataProfilesResponse\"\x88\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02y\x12/v2/{parent=organizations/*/locations/*}/fileStoreDataProfilesZ;\x129/v2/{parent=projects/*/locations/*}/fileStoreDataProfiles\x12\x8A\x02\x0A\x17GetFileStoreDataProfile\x125.google.privacy.dlp.v2.GetFileStoreDataProfileRequest\x1A+.google.privacy.dlp.v2.FileStoreDataProfile\"\x8A\x01\xDAA\x04name\x82\xD3\xE4\x93\x02}\x12>/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}Z;\x129/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}\x12\xFB\x01\x0A\x1ADeleteFileStoreDataProfile\x128.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest\x1A\x16.google.protobuf.Empty\"\x8A\x01\xDAA\x04name\x82\xD3\xE4\x93\x02}*>/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}Z;*9/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}\x12\xF6\x01\x0A\x13GetTableDataProfile\x121.google.privacy.dlp.v2.GetTableDataProfileRequest\x1A'.google.privacy.dlp.v2.TableDataProfile\"\x82\x01\xDAA\x04name\x82\xD3\xE4\x93\x02u\x12:/v2/{name=organizations/*/locations/*/tableDataProfiles/*}Z7\x125/v2/{name=projects/*/locations/*/tableDataProfiles/*}\x12\xFB\x01\x0A\x14GetColumnDataProfile\x122.google.privacy.dlp.v2.GetColumnDataProfileRequest\x1A(.google.privacy.dlp.v2.ColumnDataProfile\"\x84\x01\xDAA\x04name\x82\xD3\xE4\x93\x02w\x12;/v2/{name=organizations/*/locations/*/columnDataProfiles/*}Z8\x126/v2/{name=projects/*/locations/*/columnDataProfiles/*}\x12\xEB\x01\x0A\x16DeleteTableDataProfile\x124.google.privacy.dlp.v2.DeleteTableDataProfileRequest\x1A\x16.google.protobuf.Empty\"\x82\x01\xDAA\x04name\x82\xD3\xE4\x93\x02u*:/v2/{name=organizations/*/locations/*/tableDataProfiles/*}Z7*5/v2/{name=projects/*/locations/*/tableDataProfiles/*}\x12\xC3\x01\x0A\x13HybridInspectDlpJob\x121.google.privacy.dlp.v2.HybridInspectDlpJobRequest\x1A,.google.privacy.dlp.v2.HybridInspectResponse\"K\xDAA\x04name\x82\xD3\xE4\x93\x02>\"9/v2/{name=projects/*/locations/*/dlpJobs/*}:hybridInspect:\x01*\x12\x91\x01\x0A\x0CFinishDlpJob\x12*.google.privacy.dlp.v2.FinishDlpJobRequest\x1A\x16.google.protobuf.Empty\"=\x82\xD3\xE4\x93\x027\"2/v2/{name=projects/*/locations/*/dlpJobs/*}:finish:\x01*\x12\xF2\x01\x0A\x10CreateConnection\x12..google.privacy.dlp.v2.CreateConnectionRequest\x1A!.google.privacy.dlp.v2.Connection\"\x8A\x01\xDAA\x12parent, connection\x82\xD3\xE4\x93\x02o\"//v2/{parent=projects/*/locations/*}/connections:\x01*Z9\"4/v2/{parent=organizations/*/locations/*}/connections:\x01*\x12\xD7\x01\x0A\x0DGetConnection\x12+.google.privacy.dlp.v2.GetConnectionRequest\x1A!.google.privacy.dlp.v2.Connection\"v\xDAA\x04name\x82\xD3\xE4\x93\x02i\x12//v2/{name=projects/*/locations/*/connections/*}Z6\x124/v2/{name=organizations/*/locations/*/connections/*}\x12\xEA\x01\x0A\x0FListConnections\x12-.google.privacy.dlp.v2.ListConnectionsRequest\x1A..google.privacy.dlp.v2.ListConnectionsResponse\"x\xDAA\x06parent\x82\xD3\xE4\x93\x02i\x12//v2/{parent=projects/*/locations/*}/connectionsZ6\x124/v2/{parent=organizations/*/locations/*}/connections\x12\xFF\x01\x0A\x11SearchConnections\x12/.google.privacy.dlp.v2.SearchConnectionsRequest\x1A0.google.privacy.dlp.v2.SearchConnectionsResponse\"\x86\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02w\x126/v2/{parent=projects/*/locations/*}/connections:searchZ=\x12;/v2/{parent=organizations/*/locations/*}/connections:search\x12\xD2\x01\x0A\x10DeleteConnection\x12..google.privacy.dlp.v2.DeleteConnectionRequest\x1A\x16.google.protobuf.Empty\"v\xDAA\x04name\x82\xD3\xE4\x93\x02i*//v2/{name=projects/*/locations/*/connections/*}Z6*4/v2/{name=organizations/*/locations/*/connections/*}\x12\xE3\x01\x0A\x10UpdateConnection\x12..google.privacy.dlp.v2.UpdateConnectionRequest\x1A!.google.privacy.dlp.v2.Connection\"|\xDAA\x04name\x82\xD3\xE4\x93\x02o2//v2/{name=projects/*/locations/*/connections/*}:\x01*Z924/v2/{name=organizations/*/locations/*/connections/*}:\x01*\x1AF\xCAA\x12dlp.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xEB\x02\x0A\x19com.google.privacy.dlp.v2B\x08DlpProtoP\x01Z)cloud.google.com/go/dlp/apiv2/dlppb;dlppb\xAA\x02\x13Google.Cloud.Dlp.V2\xCA\x02\x13Google\\Cloud\\Dlp\\V2\xEA\x02\x16Google::Cloud::Dlp::V2\xEAAr\x0A\x1Ddlp.googleapis.com/DlpContent\x12\x1Dprojects/{project}/dlpContent\x122projects/{project}/locations/{location}/dlpContent\xEAA\\\x0A'dlp.googleapis.com/OrganizationLocation\x121organizations/{organization}/locations/{location}b\x06proto3" + "\x0A\xCC\xBC\x05\x0A\x1Fgoogle/privacy/dlp/v2/dlp.proto\x12\x15google.privacy.dlp.v2\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A#google/privacy/dlp/v2/storage.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\x1A\x16google/type/date.proto\x1A\x1Bgoogle/type/dayofweek.proto\x1A\x1Bgoogle/type/timeofday.proto\"G\x0A\x10ExcludeInfoTypes\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\"\xA8\x01\x0A\x10ExcludeByHotword\x12B\x0A\x0Dhotword_regex\x18\x01 \x01(\x0B2+.google.privacy.dlp.v2.CustomInfoType.Regex\x12P\x0A\x09proximity\x18\x02 \x01(\x0B2=.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity\"\x9A\x01\x0A\x16ExcludeByImageFindings\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12K\x0A\x16image_containment_type\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.ImageContainmentType\"\xBB\x03\x0A\x0DExclusionRule\x12F\x0A\x0Adictionary\x18\x01 \x01(\x0B20.google.privacy.dlp.v2.CustomInfoType.DictionaryH\x00\x12<\x0A\x05regex\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.CustomInfoType.RegexH\x00\x12E\x0A\x12exclude_info_types\x18\x03 \x01(\x0B2'.google.privacy.dlp.v2.ExcludeInfoTypesH\x00\x12E\x0A\x12exclude_by_hotword\x18\x05 \x01(\x0B2'.google.privacy.dlp.v2.ExcludeByHotwordH\x00\x12R\x0A\x19exclude_by_image_findings\x18\x06 \x01(\x0B2-.google.privacy.dlp.v2.ExcludeByImageFindingsH\x00\x12:\x0A\x0Dmatching_type\x18\x04 \x01(\x0E2#.google.privacy.dlp.v2.MatchingTypeB\x06\x0A\x04type\"\xC7\x01\x0A\x19AdjustByMatchingInfoTypes\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x129\x0A\x0Emin_likelihood\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x12:\x0A\x0Dmatching_type\x18\x03 \x01(\x0E2#.google.privacy.dlp.v2.MatchingType\"\xD4\x01\x0A\x15AdjustByImageFindings\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x129\x0A\x0Emin_likelihood\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x12K\x0A\x16image_containment_type\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.ImageContainmentType\"\xB4\x02\x0A\x0EAdjustmentRule\x12Y\x0A\x1Dadjust_by_matching_info_types\x18\x01 \x01(\x0B20.google.privacy.dlp.v2.AdjustByMatchingInfoTypesH\x00\x12P\x0A\x18adjust_by_image_findings\x18\x03 \x01(\x0B2,.google.privacy.dlp.v2.AdjustByImageFindingsH\x00\x12g\x0A\x15likelihood_adjustment\x18\x02 \x01(\x0B2H.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustmentB\x0C\x0A\x0Aconditions\"\xF3\x01\x0A\x0EInspectionRule\x12W\x0A\x0Chotword_rule\x18\x01 \x01(\x0B2?.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRuleH\x00\x12>\x0A\x0Eexclusion_rule\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.ExclusionRuleH\x00\x12@\x0A\x0Fadjustment_rule\x18\x03 \x01(\x0B2%.google.privacy.dlp.v2.AdjustmentRuleH\x00B\x06\x0A\x04type\"~\x0A\x11InspectionRuleSet\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x124\x0A\x05rules\x18\x02 \x03(\x0B2%.google.privacy.dlp.v2.InspectionRule\"\xAC\x07\x0A\x0DInspectConfig\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x129\x0A\x0Emin_likelihood\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x12]\x0A\x1Cmin_likelihood_per_info_type\x18\x0B \x03(\x0B27.google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood\x12B\x0A\x06limits\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.InspectConfig.FindingLimits\x12\x15\x0A\x0Dinclude_quote\x18\x04 \x01(\x08\x12\x1A\x0A\x12exclude_info_types\x18\x05 \x01(\x08\x12@\x0A\x11custom_info_types\x18\x06 \x03(\x0B2%.google.privacy.dlp.v2.CustomInfoType\x12=\x0A\x0Fcontent_options\x18\x08 \x03(\x0E2\$.google.privacy.dlp.v2.ContentOption\x12:\x0A\x08rule_set\x18\x0A \x03(\x0B2(.google.privacy.dlp.v2.InspectionRuleSet\x1A\x83\x01\x0A\x12InfoTypeLikelihood\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x129\x0A\x0Emin_likelihood\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x1A\x91\x02\x0A\x0DFindingLimits\x12\x1D\x0A\x15max_findings_per_item\x18\x01 \x01(\x05\x12 \x0A\x18max_findings_per_request\x18\x02 \x01(\x05\x12d\x0A\x1Amax_findings_per_info_type\x18\x03 \x03(\x0B2@.google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit\x1AY\x0A\x0DInfoTypeLimit\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12\x14\x0A\x0Cmax_findings\x18\x02 \x01(\x05\"\xF9\x02\x0A\x0FByteContentItem\x12>\x0A\x04type\x18\x01 \x01(\x0E20.google.privacy.dlp.v2.ByteContentItem.BytesType\x12\x0C\x0A\x04data\x18\x02 \x01(\x0C\"\x97\x02\x0A\x09BytesType\x12\x1A\x0A\x16BYTES_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05IMAGE\x10\x06\x12\x0E\x0A\x0AIMAGE_JPEG\x10\x01\x12\x0D\x0A\x09IMAGE_BMP\x10\x02\x12\x0D\x0A\x09IMAGE_PNG\x10\x03\x12\x0D\x0A\x09IMAGE_SVG\x10\x04\x12\x0D\x0A\x09TEXT_UTF8\x10\x05\x12\x11\x0A\x0DWORD_DOCUMENT\x10\x07\x12\x07\x0A\x03PDF\x10\x08\x12\x17\x0A\x13POWERPOINT_DOCUMENT\x10\x09\x12\x12\x0A\x0EEXCEL_DOCUMENT\x10\x0A\x12\x08\x0A\x04AVRO\x10\x0B\x12\x07\x0A\x03CSV\x10\x0C\x12\x07\x0A\x03TSV\x10\x0D\x12\x09\x0A\x05AUDIO\x10\x0F\x12\x09\x0A\x05VIDEO\x10\x10\x12\x0E\x0A\x0AEXECUTABLE\x10\x11\x12\x0C\x0A\x08AI_MODEL\x10\x12\"\xD9\x01\x0A\x0BContentItem\x12\x0F\x0A\x05value\x18\x03 \x01(\x09H\x00\x12-\x0A\x05table\x18\x04 \x01(\x0B2\x1C.google.privacy.dlp.v2.TableH\x00\x12;\x0A\x09byte_item\x18\x05 \x01(\x0B2&.google.privacy.dlp.v2.ByteContentItemH\x00\x12@\x0A\x10content_metadata\x18\x06 \x01(\x0B2&.google.privacy.dlp.v2.ContentMetadataB\x0B\x0A\x09data_item\"V\x0A\x0FContentMetadata\x12C\x0A\x0Aproperties\x18\x02 \x03(\x0B2/.google.privacy.dlp.v2.KeyValueMetadataProperty\"\x9D\x01\x0A\x05Table\x12/\x0A\x07headers\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12.\x0A\x04rows\x18\x02 \x03(\x0B2 .google.privacy.dlp.v2.Table.Row\x1A3\x0A\x03Row\x12,\x0A\x06values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\"6\x0A\x18KeyValueMetadataProperty\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09\"]\x0A\x0DInspectResult\x120\x0A\x08findings\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.Finding\x12\x1A\x0A\x12findings_truncated\x18\x02 \x01(\x08\"\xDF\x05\x0A\x07Finding\x12\x0C\x0A\x04name\x18\x0E \x01(\x09\x12\x0D\x0A\x05quote\x18\x01 \x01(\x09\x122\x0A\x09info_type\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x125\x0A\x0Alikelihood\x18\x03 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x121\x0A\x08location\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.Location\x12/\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x124\x0A\x0Aquote_info\x18\x07 \x01(\x0B2 .google.privacy.dlp.v2.QuoteInfo\x125\x0A\x0Dresource_name\x18\x08 \x01(\x09B\x1E\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\x128\x0A\x0Ctrigger_name\x18\x09 \x01(\x09B\"\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\x12:\x0A\x06labels\x18\x0A \x03(\x0B2*.google.privacy.dlp.v2.Finding.LabelsEntry\x123\x0A\x0Fjob_create_time\x18\x0B \x01(\x0B2\x1A.google.protobuf.Timestamp\x120\x0A\x08job_name\x18\x0D \x01(\x09B\x1E\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\x12\x12\x0A\x0Afinding_id\x18\x0F \x01(\x09\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:[\xEAAX\x0A\x1Adlp.googleapis.com/Finding\x12:projects/{project}/locations/{location}/findings/{finding}\"\xEB\x01\x0A\x08Location\x120\x0A\x0Abyte_range\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Range\x125\x0A\x0Fcodepoint_range\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.Range\x12A\x0A\x11content_locations\x18\x07 \x03(\x0B2&.google.privacy.dlp.v2.ContentLocation\x123\x0A\x09container\x18\x08 \x01(\x0B2 .google.privacy.dlp.v2.Container\"\x97\x03\x0A\x0FContentLocation\x12\x16\x0A\x0Econtainer_name\x18\x01 \x01(\x09\x12@\x0A\x0Frecord_location\x18\x02 \x01(\x0B2%.google.privacy.dlp.v2.RecordLocationH\x00\x12>\x0A\x0Eimage_location\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.ImageLocationH\x00\x12D\x0A\x11document_location\x18\x05 \x01(\x0B2'.google.privacy.dlp.v2.DocumentLocationH\x00\x12D\x0A\x11metadata_location\x18\x08 \x01(\x0B2'.google.privacy.dlp.v2.MetadataLocationH\x00\x127\x0A\x13container_timestamp\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x19\x0A\x11container_version\x18\x07 \x01(\x09B\x0A\x0A\x08location\"\xE6\x01\x0A\x10MetadataLocation\x121\x0A\x04type\x18\x01 \x01(\x0E2#.google.privacy.dlp.v2.MetadataType\x12D\x0A\x0Dstorage_label\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.StorageMetadataLabelH\x00\x12P\x0A\x18key_value_metadata_label\x18\x04 \x01(\x0B2,.google.privacy.dlp.v2.KeyValueMetadataLabelH\x00B\x07\x0A\x05label\"#\x0A\x14StorageMetadataLabel\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\"\$\x0A\x15KeyValueMetadataLabel\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\"'\x0A\x10DocumentLocation\x12\x13\x0A\x0Bfile_offset\x18\x01 \x01(\x03\"\xB6\x01\x0A\x0ERecordLocation\x124\x0A\x0Arecord_key\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.RecordKey\x120\x0A\x08field_id\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12<\x0A\x0Etable_location\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.TableLocation\"\"\x0A\x0DTableLocation\x12\x11\x0A\x09row_index\x18\x01 \x01(\x03\"\xAC\x01\x0A\x09Container\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x12\x0A\x0Aproject_id\x18\x02 \x01(\x09\x12\x11\x0A\x09full_path\x18\x03 \x01(\x09\x12\x11\x0A\x09root_path\x18\x04 \x01(\x09\x12\x15\x0A\x0Drelative_path\x18\x05 \x01(\x09\x12/\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0F\x0A\x07version\x18\x07 \x01(\x09\"#\x0A\x05Range\x12\x0D\x0A\x05start\x18\x01 \x01(\x03\x12\x0B\x0A\x03end\x18\x02 \x01(\x03\"K\x0A\x0DImageLocation\x12:\x0A\x0Ebounding_boxes\x18\x01 \x03(\x0B2\".google.privacy.dlp.v2.BoundingBox\"G\x0A\x0BBoundingBox\x12\x0B\x0A\x03top\x18\x01 \x01(\x05\x12\x0C\x0A\x04left\x18\x02 \x01(\x05\x12\x0D\x0A\x05width\x18\x03 \x01(\x05\x12\x0E\x0A\x06height\x18\x04 \x01(\x05\"\xB3\x04\x0A\x12RedactImageRequest\x122\x0A\x06parent\x18\x01 \x01(\x09B\"\xFAA\x1F\x12\x1Ddlp.googleapis.com/DlpContent\x12\x13\x0A\x0Blocation_id\x18\x08 \x01(\x09\x12<\x0A\x0Einspect_config\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x12_\x0A\x17image_redaction_configs\x18\x05 \x03(\x0B2>.google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig\x12\x18\x0A\x10include_findings\x18\x06 \x01(\x08\x129\x0A\x09byte_item\x18\x07 \x01(\x0B2&.google.privacy.dlp.v2.ByteContentItem\x12\x18\x0A\x10inspect_template\x18\x09 \x01(\x09\x12\x1B\x0A\x13deidentify_template\x18\x0A \x01(\x09\x1A\xA8\x01\x0A\x14ImageRedactionConfig\x124\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoTypeH\x00\x12\x19\x0A\x0Fredact_all_text\x18\x02 \x01(\x08H\x00\x125\x0A\x0Fredaction_color\x18\x03 \x01(\x0B2\x1C.google.privacy.dlp.v2.ColorB\x08\x0A\x06target\"1\x0A\x05Color\x12\x0B\x0A\x03red\x18\x01 \x01(\x02\x12\x0D\x0A\x05green\x18\x02 \x01(\x02\x12\x0C\x0A\x04blue\x18\x03 \x01(\x02\"\x83\x01\x0A\x13RedactImageResponse\x12\x16\x0A\x0Eredacted_image\x18\x01 \x01(\x0C\x12\x16\x0A\x0Eextracted_text\x18\x02 \x01(\x09\x12<\x0A\x0Einspect_result\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.InspectResult\"\xD8\x02\x0A\x18DeidentifyContentRequest\x122\x0A\x06parent\x18\x01 \x01(\x09B\"\xFAA\x1F\x12\x1Ddlp.googleapis.com/DlpContent\x12B\x0A\x11deidentify_config\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.DeidentifyConfig\x12<\x0A\x0Einspect_config\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x120\x0A\x04item\x18\x04 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12\x1D\x0A\x15inspect_template_name\x18\x05 \x01(\x09\x12 \x0A\x18deidentify_template_name\x18\x06 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x07 \x01(\x09\"\x8E\x01\x0A\x19DeidentifyContentResponse\x120\x0A\x04item\x18\x01 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12?\x0A\x08overview\x18\x02 \x01(\x0B2-.google.privacy.dlp.v2.TransformationOverview\"\xDB\x02\x0A\x18ReidentifyContentRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/DlpContent\x12B\x0A\x11reidentify_config\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.DeidentifyConfig\x12<\x0A\x0Einspect_config\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x120\x0A\x04item\x18\x04 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12\x1D\x0A\x15inspect_template_name\x18\x05 \x01(\x09\x12 \x0A\x18reidentify_template_name\x18\x06 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x07 \x01(\x09\"\x8E\x01\x0A\x19ReidentifyContentResponse\x120\x0A\x04item\x18\x01 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12?\x0A\x08overview\x18\x02 \x01(\x0B2-.google.privacy.dlp.v2.TransformationOverview\"\xEF\x01\x0A\x15InspectContentRequest\x122\x0A\x06parent\x18\x01 \x01(\x09B\"\xFAA\x1F\x12\x1Ddlp.googleapis.com/DlpContent\x12<\x0A\x0Einspect_config\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x120\x0A\x04item\x18\x03 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12\x1D\x0A\x15inspect_template_name\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09\"N\x0A\x16InspectContentResponse\x124\x0A\x06result\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.InspectResult\"\xF8\x02\x0A\x13OutputStorageConfig\x125\x0A\x05table\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTableH\x00\x12?\x0A\x0Cstorage_path\x18\x05 \x01(\x0B2'.google.privacy.dlp.v2.CloudStoragePathH\x00\x12N\x0A\x0Doutput_schema\x18\x03 \x01(\x0E27.google.privacy.dlp.v2.OutputStorageConfig.OutputSchema\"\x90\x01\x0A\x0COutputSchema\x12\x1D\x0A\x19OUTPUT_SCHEMA_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DBASIC_COLUMNS\x10\x01\x12\x0F\x0A\x0BGCS_COLUMNS\x10\x02\x12\x15\x0A\x11DATASTORE_COLUMNS\x10\x03\x12\x15\x0A\x11BIG_QUERY_COLUMNS\x10\x04\x12\x0F\x0A\x0BALL_COLUMNS\x10\x05B\x06\x0A\x04type\"R\x0A\x0DInfoTypeStats\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12\x0D\x0A\x05count\x18\x02 \x01(\x03\"\xC0\x04\x0A\x18InspectDataSourceDetails\x12[\x0A\x11requested_options\x18\x02 \x01(\x0B2@.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions\x12F\x0A\x06result\x18\x03 \x01(\x0B26.google.privacy.dlp.v2.InspectDataSourceDetails.Result\x1A\x9A\x01\x0A\x10RequestedOptions\x12I\x0A\x19snapshot_inspect_template\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.InspectTemplate\x12;\x0A\x0Ajob_config\x18\x03 \x01(\x0B2'.google.privacy.dlp.v2.InspectJobConfig\x1A\xE1\x01\x0A\x06Result\x12\x17\x0A\x0Fprocessed_bytes\x18\x01 \x01(\x03\x12\x1D\x0A\x15total_estimated_bytes\x18\x02 \x01(\x03\x12=\x0A\x0Finfo_type_stats\x18\x03 \x03(\x0B2\$.google.privacy.dlp.v2.InfoTypeStats\x12\x1A\x0A\x12num_rows_processed\x18\x05 \x01(\x03\x12D\x0A\x0Chybrid_stats\x18\x07 \x01(\x0B2..google.privacy.dlp.v2.HybridInspectStatistics\"\xFF\x01\x0A\x1CDataProfileBigQueryRowSchema\x12@\x0A\x0Dtable_profile\x18\x01 \x01(\x0B2'.google.privacy.dlp.v2.TableDataProfileH\x00\x12B\x0A\x0Ecolumn_profile\x18\x02 \x01(\x0B2(.google.privacy.dlp.v2.ColumnDataProfileH\x00\x12I\x0A\x12file_store_profile\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.FileStoreDataProfileH\x00B\x0E\x0A\x0Cdata_profile\"`\x0A\x17HybridInspectStatistics\x12\x17\x0A\x0Fprocessed_count\x18\x01 \x01(\x03\x12\x15\x0A\x0Daborted_count\x18\x02 \x01(\x03\x12\x15\x0A\x0Dpending_count\x18\x03 \x01(\x03\"l\x0A\x0DActionDetails\x12P\x0A\x12deidentify_details\x18\x01 \x01(\x0B22.google.privacy.dlp.v2.DeidentifyDataSourceDetailsH\x00B\x09\x0A\x07details\"x\x0A\x19DeidentifyDataSourceStats\x12\x19\x0A\x11transformed_bytes\x18\x01 \x01(\x03\x12\x1C\x0A\x14transformation_count\x18\x02 \x01(\x03\x12\"\x0A\x1Atransformation_error_count\x18\x03 \x01(\x03\"\xF2\x03\x0A\x1BDeidentifyDataSourceDetails\x12h\x0A\x11requested_options\x18\x01 \x01(\x0B2M.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions\x12J\x0A\x10deidentify_stats\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.DeidentifyDataSourceStats\x1A\x9C\x02\x0A\x1ARequestedDeidentifyOptions\x12O\x0A\x1Csnapshot_deidentify_template\x18\x01 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\x12Z\x0A'snapshot_structured_deidentify_template\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\x12Q\x0A\x1Esnapshot_image_redact_template\x18\x03 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\"\xDF\x01\x0A\x0FLocationSupport\x12Z\x0A\x15regionalization_scope\x18\x01 \x01(\x0E2;.google.privacy.dlp.v2.LocationSupport.RegionalizationScope\x12\x11\x0A\x09locations\x18\x02 \x03(\x09\"]\x0A\x14RegionalizationScope\x12%\x0A!REGIONALIZATION_SCOPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08REGIONAL\x10\x01\x12\x10\x0A\x0CANY_LOCATION\x10\x02\"\x9B\x05\x0A\x13InfoTypeDescription\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12@\x0A\x0Csupported_by\x18\x03 \x03(\x0E2*.google.privacy.dlp.v2.InfoTypeSupportedBy\x12\x13\x0A\x0Bdescription\x18\x04 \x01(\x09\x12@\x0A\x10location_support\x18\x06 \x01(\x0B2&.google.privacy.dlp.v2.LocationSupport\x12\x0F\x0A\x07example\x18\x08 \x01(\x09\x12;\x0A\x08versions\x18\x09 \x03(\x0B2).google.privacy.dlp.v2.VersionDescription\x12;\x0A\x0Acategories\x18\x0A \x03(\x0B2'.google.privacy.dlp.v2.InfoTypeCategory\x12B\x0A\x11sensitivity_score\x18\x0B \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12\x1B\x0A\x13specific_info_types\x18\x0C \x03(\x09\x12V\x0A\x0Dlaunch_status\x18\x0D \x01(\x0E2?.google.privacy.dlp.v2.InfoTypeDescription.InfoTypeLaunchStatus\"\x82\x01\x0A\x14InfoTypeLaunchStatus\x12'\x0A#INFO_TYPE_LAUNCH_STATUS_UNSPECIFIED\x10\x00\x12\x18\x0A\x14GENERAL_AVAILABILITY\x10\x01\x12\x12\x0A\x0EPUBLIC_PREVIEW\x10\x02\x12\x13\x0A\x0FPRIVATE_PREVIEW\x10\x03\"\x90\x0A\x0A\x10InfoTypeCategory\x12U\x0A\x11location_category\x18\x01 \x01(\x0E28.google.privacy.dlp.v2.InfoTypeCategory.LocationCategoryH\x00\x12U\x0A\x11industry_category\x18\x02 \x01(\x0E28.google.privacy.dlp.v2.InfoTypeCategory.IndustryCategoryH\x00\x12M\x0A\x0Dtype_category\x18\x03 \x01(\x0E24.google.privacy.dlp.v2.InfoTypeCategory.TypeCategoryH\x00\"\xEF\x05\x0A\x10LocationCategory\x12\x18\x0A\x14LOCATION_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GLOBAL\x10\x01\x12\x0D\x0A\x09ARGENTINA\x10\x02\x12\x0B\x0A\x07ARMENIA\x103\x12\x0D\x0A\x09AUSTRALIA\x10\x03\x12\x0B\x0A\x07AUSTRIA\x105\x12\x0E\x0A\x0AAZERBAIJAN\x100\x12\x0B\x0A\x07BELARUS\x102\x12\x0B\x0A\x07BELGIUM\x10\x04\x12\x0A\x0A\x06BRAZIL\x10\x05\x12\x0A\x0A\x06CANADA\x10\x06\x12\x09\x0A\x05CHILE\x10\x07\x12\x09\x0A\x05CHINA\x10\x08\x12\x0C\x0A\x08COLOMBIA\x10\x09\x12\x0B\x0A\x07CROATIA\x10*\x12\x0B\x0A\x07CZECHIA\x104\x12\x0B\x0A\x07DENMARK\x10\x0A\x12\x0A\x0A\x06FRANCE\x10\x0B\x12\x0B\x0A\x07FINLAND\x10\x0C\x12\x0B\x0A\x07GERMANY\x10\x0D\x12\x0D\x0A\x09HONG_KONG\x10\x0E\x12\x09\x0A\x05INDIA\x10\x0F\x12\x0D\x0A\x09INDONESIA\x10\x10\x12\x0B\x0A\x07IRELAND\x10\x11\x12\x0A\x0A\x06ISRAEL\x10\x12\x12\x09\x0A\x05ITALY\x10\x13\x12\x09\x0A\x05JAPAN\x10\x14\x12\x0E\x0A\x0AKAZAKHSTAN\x10/\x12\x09\x0A\x05KOREA\x10\x15\x12\x0A\x0A\x06MEXICO\x10\x16\x12\x13\x0A\x0FTHE_NETHERLANDS\x10\x17\x12\x0F\x0A\x0BNEW_ZEALAND\x10)\x12\x0A\x0A\x06NORWAY\x10\x18\x12\x0C\x0A\x08PARAGUAY\x10\x19\x12\x08\x0A\x04PERU\x10\x1A\x12\x0A\x0A\x06POLAND\x10\x1B\x12\x0C\x0A\x08PORTUGAL\x10\x1C\x12\x0A\x0A\x06RUSSIA\x10,\x12\x0D\x0A\x09SINGAPORE\x10\x1D\x12\x10\x0A\x0CSOUTH_AFRICA\x10\x1E\x12\x09\x0A\x05SPAIN\x10\x1F\x12\x0A\x0A\x06SWEDEN\x10 \x12\x0F\x0A\x0BSWITZERLAND\x10+\x12\x0A\x0A\x06TAIWAN\x10!\x12\x0C\x0A\x08THAILAND\x10\"\x12\x0A\x0A\x06TURKEY\x10#\x12\x0B\x0A\x07UKRAINE\x10-\x12\x12\x0A\x0EUNITED_KINGDOM\x10\$\x12\x11\x0A\x0DUNITED_STATES\x10%\x12\x0B\x0A\x07URUGUAY\x10&\x12\x0E\x0A\x0AUZBEKISTAN\x10.\x12\x0D\x0A\x09VENEZUELA\x10'\x12\x0C\x0A\x08INTERNAL\x10(\"]\x0A\x10IndustryCategory\x12\x18\x0A\x14INDUSTRY_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07FINANCE\x10\x01\x12\x0A\x0A\x06HEALTH\x10\x02\x12\x16\x0A\x12TELECOMMUNICATIONS\x10\x03\"\xA1\x01\x0A\x0CTypeCategory\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03PII\x10\x01\x12\x08\x0A\x04SPII\x10\x02\x12\x0F\x0A\x0BDEMOGRAPHIC\x10\x03\x12\x0E\x0A\x0ACREDENTIAL\x10\x04\x12\x11\x0A\x0DGOVERNMENT_ID\x10\x05\x12\x0C\x0A\x08DOCUMENT\x10\x06\x12\x1A\x0A\x16CONTEXTUAL_INFORMATION\x10\x07\x12\x0A\x0A\x06CUSTOM\x10\x08B\x0A\x0A\x08category\":\x0A\x12VersionDescription\x12\x0F\x0A\x07version\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\"b\x0A\x14ListInfoTypesRequest\x12\x0E\x0A\x06parent\x18\x04 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x01 \x01(\x09\x12\x0E\x0A\x06filter\x18\x02 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x03 \x01(\x09\"W\x0A\x15ListInfoTypesResponse\x12>\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2*.google.privacy.dlp.v2.InfoTypeDescription\"\xC1\x01\x0A\x15RiskAnalysisJobConfig\x12<\x0A\x0Eprivacy_metric\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.PrivacyMetric\x12:\x0A\x0Csource_table\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12.\x0A\x07actions\x18\x03 \x03(\x0B2\x1D.google.privacy.dlp.v2.Action\"\xBC\x01\x0A\x07QuasiId\x122\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x124\x0A\x09info_type\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoTypeH\x00\x12\x14\x0A\x0Acustom_tag\x18\x03 \x01(\x09H\x00\x12*\x0A\x08inferred\x18\x04 \x01(\x0B2\x16.google.protobuf.EmptyH\x00B\x05\x0A\x03tag\"\xBE\x02\x0A\x10StatisticalTable\x128\x0A\x05table\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTableB\x03\xE0A\x02\x12T\x0A\x09quasi_ids\x18\x01 \x03(\x0B2<.google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierFieldB\x03\xE0A\x02\x12?\x0A\x12relative_frequency\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x1AY\x0A\x14QuasiIdentifierField\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12\x12\x0A\x0Acustom_tag\x18\x02 \x01(\x09\"\x93\x0F\x0A\x0DPrivacyMetric\x12[\x0A\x16numerical_stats_config\x18\x01 \x01(\x0B29.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfigH\x00\x12_\x0A\x18categorical_stats_config\x18\x02 \x01(\x0B2;.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfigH\x00\x12S\x0A\x12k_anonymity_config\x18\x03 \x01(\x0B25.google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfigH\x00\x12S\x0A\x12l_diversity_config\x18\x04 \x01(\x0B25.google.privacy.dlp.v2.PrivacyMetric.LDiversityConfigH\x00\x12\\\x0A\x17k_map_estimation_config\x18\x05 \x01(\x0B29.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfigH\x00\x12n\x0A delta_presence_estimation_config\x18\x06 \x01(\x0B2B.google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfigH\x00\x1AE\x0A\x14NumericalStatsConfig\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x1AG\x0A\x16CategoricalStatsConfig\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x1Ay\x0A\x10KAnonymityConfig\x121\x0A\x09quasi_ids\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x122\x0A\x09entity_id\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.EntityId\x1A\x82\x01\x0A\x10LDiversityConfig\x121\x0A\x09quasi_ids\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12;\x0A\x13sensitive_attribute\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x1A\x81\x06\x0A\x14KMapEstimationConfig\x12]\x0A\x09quasi_ids\x18\x01 \x03(\x0B2E.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedFieldB\x03\xE0A\x02\x12\x13\x0A\x0Bregion_code\x18\x02 \x01(\x09\x12b\x0A\x10auxiliary_tables\x18\x03 \x03(\x0B2H.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable\x1A\xC0\x01\x0A\x0BTaggedField\x122\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x124\x0A\x09info_type\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoTypeH\x00\x12\x14\x0A\x0Acustom_tag\x18\x03 \x01(\x09H\x00\x12*\x0A\x08inferred\x18\x04 \x01(\x0B2\x16.google.protobuf.EmptyH\x00B\x05\x0A\x03tag\x1A\xCD\x02\x0A\x0EAuxiliaryTable\x128\x0A\x05table\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTableB\x03\xE0A\x02\x12m\x0A\x09quasi_ids\x18\x01 \x03(\x0B2U.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdFieldB\x03\xE0A\x02\x12?\x0A\x12relative_frequency\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x1AQ\x0A\x0CQuasiIdField\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12\x12\x0A\x0Acustom_tag\x18\x02 \x01(\x09\x1A\xAF\x01\x0A\x1DDeltaPresenceEstimationConfig\x126\x0A\x09quasi_ids\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.QuasiIdB\x03\xE0A\x02\x12\x13\x0A\x0Bregion_code\x18\x02 \x01(\x09\x12A\x0A\x10auxiliary_tables\x18\x03 \x03(\x0B2'.google.privacy.dlp.v2.StatisticalTableB\x06\x0A\x04type\"\xC1\x1F\x0A\x1CAnalyzeDataSourceRiskDetails\x12F\x0A\x18requested_privacy_metric\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.PrivacyMetric\x12D\x0A\x16requested_source_table\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12j\x0A\x16numerical_stats_result\x18\x03 \x01(\x0B2H.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResultH\x00\x12n\x0A\x18categorical_stats_result\x18\x04 \x01(\x0B2J.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResultH\x00\x12b\x0A\x12k_anonymity_result\x18\x05 \x01(\x0B2D.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResultH\x00\x12b\x0A\x12l_diversity_result\x18\x06 \x01(\x0B2D.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResultH\x00\x12k\x0A\x17k_map_estimation_result\x18\x07 \x01(\x0B2H.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResultH\x00\x12}\x0A delta_presence_estimation_result\x18\x09 \x01(\x0B2Q.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResultH\x00\x12k\x0A\x11requested_options\x18\x0A \x01(\x0B2P.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions\x1A\xAF\x01\x0A\x14NumericalStatsResult\x12/\x0A\x09min_value\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x12/\x0A\x09max_value\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x125\x0A\x0Fquantile_values\x18\x04 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x1A\x8D\x03\x0A\x16CategoricalStatsResult\x12\x95\x01\x0A!value_frequency_histogram_buckets\x18\x05 \x03(\x0B2j.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket\x1A\xDA\x01\x0A\x1FCategoricalStatsHistogramBucket\x12#\x0A\x1Bvalue_frequency_lower_bound\x18\x01 \x01(\x03\x12#\x0A\x1Bvalue_frequency_upper_bound\x18\x02 \x01(\x03\x12\x13\x0A\x0Bbucket_size\x18\x03 \x01(\x03\x12<\x0A\x0Dbucket_values\x18\x04 \x03(\x0B2%.google.privacy.dlp.v2.ValueFrequency\x12\x1A\x0A\x12bucket_value_count\x18\x05 \x01(\x03\x1A\xB5\x04\x0A\x10KAnonymityResult\x12\x8B\x01\x0A#equivalence_class_histogram_buckets\x18\x05 \x03(\x0B2^.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket\x1At\x0A\x1AKAnonymityEquivalenceClass\x126\x0A\x10quasi_ids_values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x1E\x0A\x16equivalence_class_size\x18\x02 \x01(\x03\x1A\x9C\x02\x0A\x19KAnonymityHistogramBucket\x12*\x0A\"equivalence_class_size_lower_bound\x18\x01 \x01(\x03\x12*\x0A\"equivalence_class_size_upper_bound\x18\x02 \x01(\x03\x12\x13\x0A\x0Bbucket_size\x18\x03 \x01(\x03\x12v\x0A\x0Dbucket_values\x18\x04 \x03(\x0B2_.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass\x12\x1A\x0A\x12bucket_value_count\x18\x05 \x01(\x03\x1A\xB0\x05\x0A\x10LDiversityResult\x12\x93\x01\x0A+sensitive_value_frequency_histogram_buckets\x18\x05 \x03(\x0B2^.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket\x1A\xE0\x01\x0A\x1ALDiversityEquivalenceClass\x126\x0A\x10quasi_ids_values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x1E\x0A\x16equivalence_class_size\x18\x02 \x01(\x03\x12%\x0A\x1Dnum_distinct_sensitive_values\x18\x03 \x01(\x03\x12C\x0A\x14top_sensitive_values\x18\x04 \x03(\x0B2%.google.privacy.dlp.v2.ValueFrequency\x1A\xA2\x02\x0A\x19LDiversityHistogramBucket\x12-\x0A%sensitive_value_frequency_lower_bound\x18\x01 \x01(\x03\x12-\x0A%sensitive_value_frequency_upper_bound\x18\x02 \x01(\x03\x12\x13\x0A\x0Bbucket_size\x18\x03 \x01(\x03\x12v\x0A\x0Dbucket_values\x18\x04 \x03(\x0B2_.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass\x12\x1A\x0A\x12bucket_value_count\x18\x05 \x01(\x03\x1A\x95\x04\x0A\x14KMapEstimationResult\x12\x8A\x01\x0A\x1Ak_map_estimation_histogram\x18\x01 \x03(\x0B2f.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket\x1Ar\x0A\x1BKMapEstimationQuasiIdValues\x126\x0A\x10quasi_ids_values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x1B\x0A\x13estimated_anonymity\x18\x02 \x01(\x03\x1A\xFB\x01\x0A\x1DKMapEstimationHistogramBucket\x12\x15\x0A\x0Dmin_anonymity\x18\x01 \x01(\x03\x12\x15\x0A\x0Dmax_anonymity\x18\x02 \x01(\x03\x12\x13\x0A\x0Bbucket_size\x18\x05 \x01(\x03\x12{\x0A\x0Dbucket_values\x18\x06 \x03(\x0B2d.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues\x12\x1A\x0A\x12bucket_value_count\x18\x07 \x01(\x03\x1A\xE4\x04\x0A\x1DDeltaPresenceEstimationResult\x12\xA5\x01\x0A#delta_presence_estimation_histogram\x18\x01 \x03(\x0B2x.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket\x1A}\x0A\$DeltaPresenceEstimationQuasiIdValues\x126\x0A\x10quasi_ids_values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x1D\x0A\x15estimated_probability\x18\x02 \x01(\x01\x1A\x9B\x02\x0A&DeltaPresenceEstimationHistogramBucket\x12\x17\x0A\x0Fmin_probability\x18\x01 \x01(\x01\x12\x17\x0A\x0Fmax_probability\x18\x02 \x01(\x01\x12\x13\x0A\x0Bbucket_size\x18\x05 \x01(\x03\x12\x8D\x01\x0A\x0Dbucket_values\x18\x06 \x03(\x0B2v.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues\x12\x1A\x0A\x12bucket_value_count\x18\x07 \x01(\x03\x1A`\x0A\x1CRequestedRiskAnalysisOptions\x12@\x0A\x0Ajob_config\x18\x01 \x01(\x0B2,.google.privacy.dlp.v2.RiskAnalysisJobConfigB\x08\x0A\x06result\"L\x0A\x0EValueFrequency\x12+\x0A\x05value\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x0D\x0A\x05count\x18\x02 \x01(\x03\"\xB3\x02\x0A\x05Value\x12\x17\x0A\x0Dinteger_value\x18\x01 \x01(\x03H\x00\x12\x15\x0A\x0Bfloat_value\x18\x02 \x01(\x01H\x00\x12\x16\x0A\x0Cstring_value\x18\x03 \x01(\x09H\x00\x12\x17\x0A\x0Dboolean_value\x18\x04 \x01(\x08H\x00\x125\x0A\x0Ftimestamp_value\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00\x12,\x0A\x0Atime_value\x18\x06 \x01(\x0B2\x16.google.type.TimeOfDayH\x00\x12'\x0A\x0Adate_value\x18\x07 \x01(\x0B2\x11.google.type.DateH\x00\x123\x0A\x11day_of_week_value\x18\x08 \x01(\x0E2\x16.google.type.DayOfWeekH\x00B\x06\x0A\x04type\"Q\x0A\x09QuoteInfo\x124\x0A\x09date_time\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.DateTimeH\x00B\x0E\x0A\x0Cparsed_quote\"\xDF\x01\x0A\x08DateTime\x12\x1F\x0A\x04date\x18\x01 \x01(\x0B2\x11.google.type.Date\x12+\x0A\x0Bday_of_week\x18\x02 \x01(\x0E2\x16.google.type.DayOfWeek\x12\$\x0A\x04time\x18\x03 \x01(\x0B2\x16.google.type.TimeOfDay\x12;\x0A\x09time_zone\x18\x04 \x01(\x0B2(.google.privacy.dlp.v2.DateTime.TimeZone\x1A\"\x0A\x08TimeZone\x12\x16\x0A\x0Eoffset_minutes\x18\x01 \x01(\x05\"\xF2\x02\x0A\x10DeidentifyConfig\x12S\x0A\x19info_type_transformations\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.InfoTypeTransformationsH\x00\x12N\x0A\x16record_transformations\x18\x02 \x01(\x0B2,.google.privacy.dlp.v2.RecordTransformationsH\x00\x12L\x0A\x15image_transformations\x18\x04 \x01(\x0B2+.google.privacy.dlp.v2.ImageTransformationsH\x00\x12Y\x0A\x1Dtransformation_error_handling\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.TransformationErrorHandlingB\x10\x0A\x0Etransformation\"\xE5\x04\x0A\x14ImageTransformations\x12S\x0A\x0Atransforms\x18\x02 \x03(\x0B2?.google.privacy.dlp.v2.ImageTransformations.ImageTransformation\x1A\xF7\x03\x0A\x13ImageTransformation\x12p\x0A\x13selected_info_types\x18\x04 \x01(\x0B2Q.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypesH\x00\x12f\x0A\x0Eall_info_types\x18\x05 \x01(\x0B2L.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypesH\x00\x12[\x0A\x08all_text\x18\x06 \x01(\x0B2G.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllTextH\x00\x125\x0A\x0Fredaction_color\x18\x03 \x01(\x0B2\x1C.google.privacy.dlp.v2.Color\x1AM\x0A\x11SelectedInfoTypes\x128\x0A\x0Ainfo_types\x18\x05 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoTypeB\x03\xE0A\x02\x1A\x0E\x0A\x0CAllInfoTypes\x1A\x09\x0A\x07AllTextB\x08\x0A\x06target\"\x85\x02\x0A\x1BTransformationErrorHandling\x12T\x0A\x0Bthrow_error\x18\x01 \x01(\x0B2=.google.privacy.dlp.v2.TransformationErrorHandling.ThrowErrorH\x00\x12d\x0A\x13leave_untransformed\x18\x02 \x01(\x0B2E.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformedH\x00\x1A\x0C\x0A\x0AThrowError\x1A\x14\x0A\x12LeaveUntransformedB\x06\x0A\x04mode\"\xCA\x07\x0A\x17PrimitiveTransformation\x12C\x0A\x0Ereplace_config\x18\x01 \x01(\x0B2).google.privacy.dlp.v2.ReplaceValueConfigH\x00\x12<\x0A\x0Dredact_config\x18\x02 \x01(\x0B2#.google.privacy.dlp.v2.RedactConfigH\x00\x12K\x0A\x15character_mask_config\x18\x03 \x01(\x0B2*.google.privacy.dlp.v2.CharacterMaskConfigH\x00\x12Y\x0A\x1Dcrypto_replace_ffx_fpe_config\x18\x04 \x01(\x0B20.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfigH\x00\x12V\x0A\x1Bfixed_size_bucketing_config\x18\x05 \x01(\x0B2/.google.privacy.dlp.v2.FixedSizeBucketingConfigH\x00\x12B\x0A\x10bucketing_config\x18\x06 \x01(\x0B2&.google.privacy.dlp.v2.BucketingConfigH\x00\x12Y\x0A\x1Dreplace_with_info_type_config\x18\x07 \x01(\x0B20.google.privacy.dlp.v2.ReplaceWithInfoTypeConfigH\x00\x12A\x0A\x10time_part_config\x18\x08 \x01(\x0B2%.google.privacy.dlp.v2.TimePartConfigH\x00\x12E\x0A\x12crypto_hash_config\x18\x09 \x01(\x0B2'.google.privacy.dlp.v2.CryptoHashConfigH\x00\x12C\x0A\x11date_shift_config\x18\x0B \x01(\x0B2&.google.privacy.dlp.v2.DateShiftConfigH\x00\x12W\x0A\x1Bcrypto_deterministic_config\x18\x0C \x01(\x0B20.google.privacy.dlp.v2.CryptoDeterministicConfigH\x00\x12S\x0A\x19replace_dictionary_config\x18\x0D \x01(\x0B2..google.privacy.dlp.v2.ReplaceDictionaryConfigH\x00B\x10\x0A\x0Etransformation\"\xDC\x01\x0A\x0ETimePartConfig\x12G\x0A\x0Fpart_to_extract\x18\x01 \x01(\x0E2..google.privacy.dlp.v2.TimePartConfig.TimePart\"\x80\x01\x0A\x08TimePart\x12\x19\x0A\x15TIME_PART_UNSPECIFIED\x10\x00\x12\x08\x0A\x04YEAR\x10\x01\x12\x09\x0A\x05MONTH\x10\x02\x12\x10\x0A\x0CDAY_OF_MONTH\x10\x03\x12\x0F\x0A\x0BDAY_OF_WEEK\x10\x04\x12\x10\x0A\x0CWEEK_OF_YEAR\x10\x05\x12\x0F\x0A\x0BHOUR_OF_DAY\x10\x06\"H\x0A\x10CryptoHashConfig\x124\x0A\x0Acrypto_key\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.CryptoKey\"\xC0\x01\x0A\x19CryptoDeterministicConfig\x124\x0A\x0Acrypto_key\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.CryptoKey\x12<\x0A\x13surrogate_info_type\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12/\x0A\x07context\x18\x03 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\"E\x0A\x12ReplaceValueConfig\x12/\x0A\x09new_value\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\"q\x0A\x17ReplaceDictionaryConfig\x12N\x0A\x09word_list\x18\x01 \x01(\x0B29.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordListH\x00B\x06\x0A\x04type\"\x1B\x0A\x19ReplaceWithInfoTypeConfig\"\x0E\x0A\x0CRedactConfig\"\xB6\x02\x0A\x0DCharsToIgnore\x12\x1C\x0A\x12characters_to_skip\x18\x01 \x01(\x09H\x00\x12_\x0A\x1Bcommon_characters_to_ignore\x18\x02 \x01(\x0E28.google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnoreH\x00\"\x97\x01\x0A\x13CommonCharsToIgnore\x12&\x0A\"COMMON_CHARS_TO_IGNORE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07NUMERIC\x10\x01\x12\x14\x0A\x10ALPHA_UPPER_CASE\x10\x02\x12\x14\x0A\x10ALPHA_LOWER_CASE\x10\x03\x12\x0F\x0A\x0BPUNCTUATION\x10\x04\x12\x0E\x0A\x0AWHITESPACE\x10\x05B\x0C\x0A\x0Acharacters\"\xA3\x01\x0A\x13CharacterMaskConfig\x12\x19\x0A\x11masking_character\x18\x01 \x01(\x09\x12\x16\x0A\x0Enumber_to_mask\x18\x02 \x01(\x05\x12\x15\x0A\x0Dreverse_order\x18\x03 \x01(\x08\x12B\x0A\x14characters_to_ignore\x18\x04 \x03(\x0B2\$.google.privacy.dlp.v2.CharsToIgnore\"\xA4\x01\x0A\x18FixedSizeBucketingConfig\x126\x0A\x0Blower_bound\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.ValueB\x03\xE0A\x02\x126\x0A\x0Bupper_bound\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.ValueB\x03\xE0A\x02\x12\x18\x0A\x0Bbucket_size\x18\x03 \x01(\x01B\x03\xE0A\x02\"\xF0\x01\x0A\x0FBucketingConfig\x12>\x0A\x07buckets\x18\x01 \x03(\x0B2-.google.privacy.dlp.v2.BucketingConfig.Bucket\x1A\x9C\x01\x0A\x06Bucket\x12)\x0A\x03min\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x12)\x0A\x03max\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x12<\x0A\x11replacement_value\x18\x03 \x01(\x0B2\x1C.google.privacy.dlp.v2.ValueB\x03\xE0A\x02\"\xF9\x03\x0A\x19CryptoReplaceFfxFpeConfig\x129\x0A\x0Acrypto_key\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.CryptoKeyB\x03\xE0A\x02\x12/\x0A\x07context\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12c\x0A\x0Fcommon_alphabet\x18\x04 \x01(\x0E2H.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabetH\x00\x12\x19\x0A\x0Fcustom_alphabet\x18\x05 \x01(\x09H\x00\x12\x0F\x0A\x05radix\x18\x06 \x01(\x05H\x00\x12<\x0A\x13surrogate_info_type\x18\x08 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\"\x94\x01\x0A\x17FfxCommonNativeAlphabet\x12*\x0A&FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07NUMERIC\x10\x01\x12\x0F\x0A\x0BHEXADECIMAL\x10\x02\x12\x1C\x0A\x18UPPER_CASE_ALPHA_NUMERIC\x10\x03\x12\x11\x0A\x0DALPHA_NUMERIC\x10\x04B\x0A\x0A\x08alphabet\"\xD8\x01\x0A\x09CryptoKey\x12>\x0A\x09transient\x18\x01 \x01(\x0B2).google.privacy.dlp.v2.TransientCryptoKeyH\x00\x12>\x0A\x09unwrapped\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.UnwrappedCryptoKeyH\x00\x12A\x0A\x0Bkms_wrapped\x18\x03 \x01(\x0B2*.google.privacy.dlp.v2.KmsWrappedCryptoKeyH\x00B\x08\x0A\x06source\"'\x0A\x12TransientCryptoKey\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\"&\x0A\x12UnwrappedCryptoKey\x12\x10\x0A\x03key\x18\x01 \x01(\x0CB\x03\xE0A\x02\"M\x0A\x13KmsWrappedCryptoKey\x12\x18\x0A\x0Bwrapped_key\x18\x01 \x01(\x0CB\x03\xE0A\x02\x12\x1C\x0A\x0Fcrypto_key_name\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xC2\x01\x0A\x0FDateShiftConfig\x12\x1D\x0A\x10upper_bound_days\x18\x01 \x01(\x05B\x03\xE0A\x02\x12\x1D\x0A\x10lower_bound_days\x18\x02 \x01(\x05B\x03\xE0A\x02\x12/\x0A\x07context\x18\x03 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x126\x0A\x0Acrypto_key\x18\x04 \x01(\x0B2 .google.privacy.dlp.v2.CryptoKeyH\x00B\x08\x0A\x06method\"\xA5\x02\x0A\x17InfoTypeTransformations\x12c\x0A\x0Ftransformations\x18\x01 \x03(\x0B2E.google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformationB\x03\xE0A\x02\x1A\xA4\x01\x0A\x16InfoTypeTransformation\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12U\x0A\x18primitive_transformation\x18\x02 \x01(\x0B2..google.privacy.dlp.v2.PrimitiveTransformationB\x03\xE0A\x02\"\xC0\x02\x0A\x13FieldTransformation\x123\x0A\x06fields\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x129\x0A\x09condition\x18\x03 \x01(\x0B2&.google.privacy.dlp.v2.RecordCondition\x12R\x0A\x18primitive_transformation\x18\x04 \x01(\x0B2..google.privacy.dlp.v2.PrimitiveTransformationH\x00\x12S\x0A\x19info_type_transformations\x18\x05 \x01(\x0B2..google.privacy.dlp.v2.InfoTypeTransformationsH\x00B\x10\x0A\x0Etransformation\"\xA9\x01\x0A\x15RecordTransformations\x12I\x0A\x15field_transformations\x18\x01 \x03(\x0B2*.google.privacy.dlp.v2.FieldTransformation\x12E\x0A\x13record_suppressions\x18\x02 \x03(\x0B2(.google.privacy.dlp.v2.RecordSuppression\"N\x0A\x11RecordSuppression\x129\x0A\x09condition\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.RecordCondition\"\xDC\x04\x0A\x0FRecordCondition\x12G\x0A\x0Bexpressions\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.RecordCondition.Expressions\x1A\xAE\x01\x0A\x09Condition\x122\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x12@\x0A\x08operator\x18\x03 \x01(\x0E2).google.privacy.dlp.v2.RelationalOperatorB\x03\xE0A\x02\x12+\x0A\x05value\x18\x04 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x1AR\x0A\x0AConditions\x12D\x0A\x0Aconditions\x18\x01 \x03(\x0B20.google.privacy.dlp.v2.RecordCondition.Condition\x1A\xFA\x01\x0A\x0BExpressions\x12\\\x0A\x10logical_operator\x18\x01 \x01(\x0E2B.google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator\x12G\x0A\x0Aconditions\x18\x03 \x01(\x0B21.google.privacy.dlp.v2.RecordCondition.ConditionsH\x00\"<\x0A\x0FLogicalOperator\x12 \x0A\x1CLOGICAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x07\x0A\x03AND\x10\x01B\x06\x0A\x04type\"\x83\x01\x0A\x16TransformationOverview\x12\x19\x0A\x11transformed_bytes\x18\x02 \x01(\x03\x12N\x0A\x18transformation_summaries\x18\x03 \x03(\x0B2,.google.privacy.dlp.v2.TransformationSummary\"\x9F\x05\x0A\x15TransformationSummary\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12-\x0A\x05field\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12F\x0A\x0Etransformation\x18\x03 \x01(\x0B2..google.privacy.dlp.v2.PrimitiveTransformation\x12I\x0A\x15field_transformations\x18\x05 \x03(\x0B2*.google.privacy.dlp.v2.FieldTransformation\x12A\x0A\x0Frecord_suppress\x18\x06 \x01(\x0B2(.google.privacy.dlp.v2.RecordSuppression\x12K\x0A\x07results\x18\x04 \x03(\x0B2:.google.privacy.dlp.v2.TransformationSummary.SummaryResult\x12\x19\x0A\x11transformed_bytes\x18\x07 \x01(\x03\x1A\x84\x01\x0A\x0DSummaryResult\x12\x0D\x0A\x05count\x18\x01 \x01(\x03\x12S\x0A\x04code\x18\x02 \x01(\x0E2E.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode\x12\x0F\x0A\x07details\x18\x03 \x01(\x09\"^\x0A\x18TransformationResultCode\x12*\x0A&TRANSFORMATION_RESULT_CODE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07SUCCESS\x10\x01\x12\x09\x0A\x05ERROR\x10\x02\"\xB0\x01\x0A\x19TransformationDescription\x127\x0A\x04type\x18\x01 \x01(\x0E2).google.privacy.dlp.v2.TransformationType\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x11\x0A\x09condition\x18\x03 \x01(\x09\x122\x0A\x09info_type\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\"\xC6\x02\x0A\x15TransformationDetails\x12\x15\x0A\x0Dresource_name\x18\x01 \x01(\x09\x12\x16\x0A\x0Econtainer_name\x18\x02 \x01(\x09\x12H\x0A\x0Etransformation\x18\x03 \x03(\x0B20.google.privacy.dlp.v2.TransformationDescription\x12I\x0A\x0Estatus_details\x18\x04 \x01(\x0B21.google.privacy.dlp.v2.TransformationResultStatus\x12\x19\x0A\x11transformed_bytes\x18\x05 \x01(\x03\x12N\x0A\x17transformation_location\x18\x06 \x01(\x0B2-.google.privacy.dlp.v2.TransformationLocation\"\xD9\x01\x0A\x16TransformationLocation\x12\x14\x0A\x0Afinding_id\x18\x01 \x01(\x09H\x00\x12L\x0A\x15record_transformation\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.RecordTransformationH\x00\x12J\x0A\x0Econtainer_type\x18\x03 \x01(\x0E22.google.privacy.dlp.v2.TransformationContainerTypeB\x0F\x0A\x0Dlocation_type\"\x9C\x01\x0A\x14RecordTransformation\x120\x0A\x08field_id\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x127\x0A\x13container_timestamp\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x19\x0A\x11container_version\x18\x03 \x01(\x09\"\x94\x01\x0A\x1ATransformationResultStatus\x12Q\x0A\x12result_status_type\x18\x01 \x01(\x0E25.google.privacy.dlp.v2.TransformationResultStatusType\x12#\x0A\x07details\x18\x02 \x01(\x0B2\x12.google.rpc.Status\"c\x0A\"TransformationDetailsStorageConfig\x125\x0A\x05table\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTableH\x00B\x06\x0A\x04type\"U\x0A\x08Schedule\x12?\x0A\x1Arecurrence_period_duration\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationH\x00B\x08\x0A\x06option\"\x08\x0A\x06Manual\"\xC2\x04\x0A\x0FInspectTemplate\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12<\x0A\x0Einspect_config\x18\x06 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig:\xC6\x02\xEAA\xC2\x02\x0A\"dlp.googleapis.com/InspectTemplate\x12@organizations/{organization}/inspectTemplates/{inspect_template}\x126projects/{project}/inspectTemplates/{inspect_template}\x12Uorganizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}\x12Kprojects/{project}/locations/{location}/inspectTemplates/{inspect_template}\"\xE6\x04\x0A\x12DeidentifyTemplate\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12B\x0A\x11deidentify_config\x18\x06 \x01(\x0B2'.google.privacy.dlp.v2.DeidentifyConfig:\xE1\x02\xEAA\xDD\x02\x0A%dlp.googleapis.com/DeidentifyTemplate\x12Forganizations/{organization}/deidentifyTemplates/{deidentify_template}\x12\x0A\x0Binspect_job\x18\x04 \x01(\x0B2'.google.privacy.dlp.v2.InspectJobConfigH\x00\x12;\x0A\x08triggers\x18\x05 \x03(\x0B2).google.privacy.dlp.v2.JobTrigger.Trigger\x121\x0A\x06errors\x18\x06 \x03(\x0B2\x1C.google.privacy.dlp.v2.ErrorB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x126\x0A\x0Dlast_run_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12=\x0A\x06status\x18\x0A \x01(\x0E2(.google.privacy.dlp.v2.JobTrigger.StatusB\x03\xE0A\x02\x1Az\x0A\x07Trigger\x123\x0A\x08schedule\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.ScheduleH\x00\x12/\x0A\x06manual\x18\x02 \x01(\x0B2\x1D.google.privacy.dlp.v2.ManualH\x00B\x09\x0A\x07trigger\"H\x0A\x06Status\x12\x16\x0A\x12STATUS_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07HEALTHY\x10\x01\x12\x0A\x0A\x06PAUSED\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03:\x94\x01\xEAA\x90\x01\x0A\x1Ddlp.googleapis.com/JobTrigger\x12,projects/{project}/jobTriggers/{job_trigger}\x12Aprojects/{project}/locations/{location}/jobTriggers/{job_trigger}B\x05\x0A\x03job\"\x82\x0A\x0A\x06Action\x12C\x0A\x0Dsave_findings\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.Action.SaveFindingsH\x00\x12@\x0A\x07pub_sub\x18\x02 \x01(\x0B2-.google.privacy.dlp.v2.Action.PublishToPubSubH\x00\x12U\x0A\x17publish_summary_to_cscc\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.Action.PublishSummaryToCsccH\x00\x12u\x0A&publish_findings_to_cloud_data_catalog\x18\x05 \x01(\x0B2?.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogB\x02\x18\x01H\x00\x12n\x0A\$publish_findings_to_dataplex_catalog\x18\x0A \x01(\x0B2>.google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalogH\x00\x12>\x0A\x0Adeidentify\x18\x07 \x01(\x0B2(.google.privacy.dlp.v2.Action.DeidentifyH\x00\x12V\x0A\x17job_notification_emails\x18\x08 \x01(\x0B23.google.privacy.dlp.v2.Action.JobNotificationEmailsH\x00\x12T\x0A\x16publish_to_stackdriver\x18\x09 \x01(\x0B22.google.privacy.dlp.v2.Action.PublishToStackdriverH\x00\x1AQ\x0A\x0CSaveFindings\x12A\x0A\x0Doutput_config\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.OutputStorageConfig\x1A \x0A\x0FPublishToPubSub\x12\x0D\x0A\x05topic\x18\x01 \x01(\x09\x1A\x16\x0A\x14PublishSummaryToCscc\x1A#\x0A!PublishFindingsToCloudDataCatalog\x1A\"\x0A PublishFindingsToDataplexCatalog\x1A\xB3\x02\x0A\x0ADeidentify\x12J\x0A\x15transformation_config\x18\x07 \x01(\x0B2+.google.privacy.dlp.v2.TransformationConfig\x12h\x0A%transformation_details_storage_config\x18\x03 \x01(\x0B29.google.privacy.dlp.v2.TransformationDetailsStorageConfig\x12#\x0A\x14cloud_storage_output\x18\x09 \x01(\x09B\x03\xE0A\x02H\x00\x12@\x0A\x17file_types_to_transform\x18\x08 \x03(\x0E2\x1F.google.privacy.dlp.v2.FileTypeB\x08\x0A\x06output\x1A\x17\x0A\x15JobNotificationEmails\x1A\x16\x0A\x14PublishToStackdriverB\x08\x0A\x06action\"z\x0A\x14TransformationConfig\x12\x1B\x0A\x13deidentify_template\x18\x01 \x01(\x09\x12&\x0A\x1Estructured_deidentify_template\x18\x02 \x01(\x09\x12\x1D\x0A\x15image_redact_template\x18\x04 \x01(\x09\"\xCB\x01\x0A\x1CCreateInspectTemplateRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"dlp.googleapis.com/InspectTemplate\x12E\x0A\x10inspect_template\x18\x02 \x01(\x0B2&.google.privacy.dlp.v2.InspectTemplateB\x03\xE0A\x02\x12\x13\x0A\x0Btemplate_id\x18\x03 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\"\xCB\x01\x0A\x1CUpdateInspectTemplateRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/InspectTemplate\x12@\x0A\x10inspect_template\x18\x02 \x01(\x0B2&.google.privacy.dlp.v2.InspectTemplate\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"U\x0A\x19GetInspectTemplateRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/InspectTemplate\"\xA7\x01\x0A\x1BListInspectTemplatesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"dlp.googleapis.com/InspectTemplate\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09\"z\x0A\x1CListInspectTemplatesResponse\x12A\x0A\x11inspect_templates\x18\x01 \x03(\x0B2&.google.privacy.dlp.v2.InspectTemplate\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"X\x0A\x1CDeleteInspectTemplateRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/InspectTemplate\"\xB6\x01\x0A\x17CreateJobTriggerRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/JobTrigger\x12;\x0A\x0Bjob_trigger\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.JobTriggerB\x03\xE0A\x02\x12\x12\x0A\x0Atrigger_id\x18\x03 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\"P\x0A\x19ActivateJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\"\xB7\x01\x0A\x17UpdateJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\x126\x0A\x0Bjob_trigger\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.JobTrigger\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"K\x0A\x14GetJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\"\xB4\x01\x0A\x1CCreateDiscoveryConfigRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"dlp.googleapis.com/DiscoveryConfig\x12E\x0A\x10discovery_config\x18\x02 \x01(\x0B2&.google.privacy.dlp.v2.DiscoveryConfigB\x03\xE0A\x02\x12\x11\x0A\x09config_id\x18\x03 \x01(\x09\"\xD0\x01\x0A\x1CUpdateDiscoveryConfigRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/DiscoveryConfig\x12E\x0A\x10discovery_config\x18\x02 \x01(\x0B2&.google.privacy.dlp.v2.DiscoveryConfigB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"U\x0A\x19GetDiscoveryConfigRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/DiscoveryConfig\"\x92\x01\x0A\x1BListDiscoveryConfigsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"dlp.googleapis.com/DiscoveryConfig\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\"z\x0A\x1CListDiscoveryConfigsResponse\x12A\x0A\x11discovery_configs\x18\x01 \x03(\x0B2&.google.privacy.dlp.v2.DiscoveryConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"X\x0A\x1CDeleteDiscoveryConfigRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/DiscoveryConfig\"\xF6\x01\x0A\x13CreateDlpJobRequest\x121\x0A\x06parent\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x12\x19dlp.googleapis.com/DlpJob\x12>\x0A\x0Binspect_job\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.InspectJobConfigH\x00\x12@\x0A\x08risk_job\x18\x03 \x01(\x0B2,.google.privacy.dlp.v2.RiskAnalysisJobConfigH\x00\x12\x0E\x0A\x06job_id\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09B\x05\x0A\x03job\"\xDE\x01\x0A\x16ListJobTriggersRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/JobTrigger\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\x12/\x0A\x04type\x18\x06 \x01(\x0E2!.google.privacy.dlp.v2.DlpJobType\x12\x13\x0A\x0Blocation_id\x18\x07 \x01(\x09\"k\x0A\x17ListJobTriggersResponse\x127\x0A\x0Cjob_triggers\x18\x01 \x03(\x0B2!.google.privacy.dlp.v2.JobTrigger\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"N\x0A\x17DeleteJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\"\xDD\x01\x0A\x10InspectJobConfig\x12<\x0A\x0Estorage_config\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.StorageConfig\x12<\x0A\x0Einspect_config\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x12\x1D\x0A\x15inspect_template_name\x18\x03 \x01(\x09\x12.\x0A\x07actions\x18\x04 \x03(\x0B2\x1D.google.privacy.dlp.v2.Action\"\xF2\x0D\x0A\x11DataProfileAction\x12F\x0A\x0Bexport_data\x18\x01 \x01(\x0B2/.google.privacy.dlp.v2.DataProfileAction.ExportH\x00\x12[\x0A\x14pub_sub_notification\x18\x02 \x01(\x0B2;.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationH\x00\x12[\x0A\x14publish_to_chronicle\x18\x03 \x01(\x0B2;.google.privacy.dlp.v2.DataProfileAction.PublishToChronicleH\x00\x12a\x0A\x0Epublish_to_scc\x18\x04 \x01(\x0B2G.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenterH\x00\x12N\x0A\x0Dtag_resources\x18\x08 \x01(\x0B25.google.privacy.dlp.v2.DataProfileAction.TagResourcesH\x00\x12h\x0A\x1Bpublish_to_dataplex_catalog\x18\x09 \x01(\x0B2A.google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalogH\x00\x1A\x8A\x01\x0A\x06Export\x12;\x0A\x0Dprofile_table\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12C\x0A\x15sample_findings_table\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x1A\x82\x03\x0A\x12PubSubNotification\x12\x0D\x0A\x05topic\x18\x01 \x01(\x09\x12A\x0A\x05event\x18\x02 \x01(\x0E22.google.privacy.dlp.v2.DataProfileAction.EventType\x12K\x0A\x10pubsub_condition\x18\x03 \x01(\x0B21.google.privacy.dlp.v2.DataProfilePubSubCondition\x12b\x0A\x11detail_of_message\x18\x04 \x01(\x0E2G.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel\"i\x0A\x0BDetailLevel\x12\x1C\x0A\x18DETAIL_LEVEL_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DTABLE_PROFILE\x10\x01\x12\x11\x0A\x0DRESOURCE_NAME\x10\x02\x12\x16\x0A\x12FILE_STORE_PROFILE\x10\x03\x1A\x14\x0A\x12PublishToChronicle\x1A \x0A\x1EPublishToSecurityCommandCenter\x1A:\x0A\x18PublishToDataplexCatalog\x12\x1E\x0A\x16lower_data_risk_to_low\x18\x01 \x01(\x08\x1A\xB6\x03\x0A\x0CTagResources\x12Z\x0A\x0Etag_conditions\x18\x01 \x03(\x0B2B.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition\x12L\x0A\x1Aprofile_generations_to_tag\x18\x02 \x03(\x0E2(.google.privacy.dlp.v2.ProfileGeneration\x12\x1E\x0A\x16lower_data_risk_to_low\x18\x03 \x01(\x08\x1A\xA9\x01\x0A\x0CTagCondition\x12K\x0A\x03tag\x18\x01 \x01(\x0B2>.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue\x12D\x0A\x11sensitivity_score\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScoreH\x00B\x06\x0A\x04type\x1A0\x0A\x08TagValue\x12\x1A\x0A\x10namespaced_value\x18\x01 \x01(\x09H\x00B\x08\x0A\x06format\"u\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BNEW_PROFILE\x10\x01\x12\x13\x0A\x0FCHANGED_PROFILE\x10\x02\x12\x13\x0A\x0FSCORE_INCREASED\x10\x03\x12\x11\x0A\x0DERROR_CHANGED\x10\x04B\x08\x0A\x06action\"\xDD\x03\x0A\x12DataProfileFinding\x12\x0D\x0A\x05quote\x18\x01 \x01(\x09\x121\x0A\x08infotype\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x124\x0A\x0Aquote_info\x18\x03 \x01(\x0B2 .google.privacy.dlp.v2.QuoteInfo\x12\"\x0A\x1Adata_profile_resource_name\x18\x04 \x01(\x09\x12\x12\x0A\x0Afinding_id\x18\x05 \x01(\x09\x12-\x0A\x09timestamp\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12C\x0A\x08location\x18\x07 \x01(\x0B21.google.privacy.dlp.v2.DataProfileFindingLocation\x12F\x0A\x13resource_visibility\x18\x08 \x01(\x0E2).google.privacy.dlp.v2.ResourceVisibility\x12\x1A\x0A\x12full_resource_name\x18\x09 \x01(\x09\x12?\x0A\x10data_source_type\x18\x0A \x01(\x0B2%.google.privacy.dlp.v2.DataSourceType\"\xB7\x01\x0A\x1ADataProfileFindingLocation\x12\x16\x0A\x0Econtainer_name\x18\x01 \x01(\x09\x12g\x0A\$data_profile_finding_record_location\x18\x02 \x01(\x0B27.google.privacy.dlp.v2.DataProfileFindingRecordLocationH\x00B\x18\x0A\x16location_extra_details\"Q\x0A DataProfileFindingRecordLocation\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\"\xAE\x02\x0A\x14DataProfileJobConfig\x12<\x0A\x08location\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.DataProfileLocation\x12\x12\x0A\x0Aproject_id\x18\x05 \x01(\x09\x12a\x0A\x1Dother_cloud_starting_location\x18\x08 \x01(\x0B2:.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation\x12\x19\x0A\x11inspect_templates\x18\x07 \x03(\x09\x12F\x0A\x14data_profile_actions\x18\x06 \x03(\x0B2(.google.privacy.dlp.v2.DataProfileAction\"[\x0A\x0DBigQueryRegex\x12\x18\x0A\x10project_id_regex\x18\x01 \x01(\x09\x12\x18\x0A\x10dataset_id_regex\x18\x02 \x01(\x09\x12\x16\x0A\x0Etable_id_regex\x18\x03 \x01(\x09\"I\x0A\x0FBigQueryRegexes\x126\x0A\x08patterns\x18\x01 \x03(\x0B2\$.google.privacy.dlp.v2.BigQueryRegex\"M\x0A\x12BigQueryTableTypes\x127\x0A\x05types\x18\x01 \x03(\x0E2(.google.privacy.dlp.v2.BigQueryTableType\"\x0A\x0A\x08Disabled\"Q\x0A\x13DataProfileLocation\x12\x19\x0A\x0Forganization_id\x18\x01 \x01(\x03H\x00\x12\x13\x0A\x09folder_id\x18\x02 \x01(\x03H\x00B\x0A\x0A\x08location\"\xEB\x07\x0A\x0FDiscoveryConfig\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x0B \x01(\x09\x12D\x0A\x0Aorg_config\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig\x12a\x0A\x1Dother_cloud_starting_location\x18\x0C \x01(\x0B2:.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation\x12\x19\x0A\x11inspect_templates\x18\x03 \x03(\x09\x129\x0A\x07actions\x18\x04 \x03(\x0B2(.google.privacy.dlp.v2.DataProfileAction\x127\x0A\x07targets\x18\x05 \x03(\x0B2&.google.privacy.dlp.v2.DiscoveryTarget\x121\x0A\x06errors\x18\x06 \x03(\x0B2\x1C.google.privacy.dlp.v2.ErrorB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x126\x0A\x0Dlast_run_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12B\x0A\x06status\x18\x0A \x01(\x0E2-.google.privacy.dlp.v2.DiscoveryConfig.StatusB\x03\xE0A\x02\x12K\x0A\x13processing_location\x18\x0D \x01(\x0B2).google.privacy.dlp.v2.ProcessingLocationB\x03\xE0A\x01\x1Ac\x0A\x09OrgConfig\x12B\x0A\x08location\x18\x01 \x01(\x0B20.google.privacy.dlp.v2.DiscoveryStartingLocation\x12\x12\x0A\x0Aproject_id\x18\x02 \x01(\x09\"9\x0A\x06Status\x12\x16\x0A\x12STATUS_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0A\x0A\x06PAUSED\x10\x02:t\xEAAq\x0A\"dlp.googleapis.com/DiscoveryConfig\x12Kprojects/{project}/locations/{location}/discoveryConfigs/{discovery_config}\"\xF6\x03\x0A\x0FDiscoveryTarget\x12J\x0A\x10big_query_target\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.BigQueryDiscoveryTargetH\x00\x12J\x0A\x10cloud_sql_target\x18\x02 \x01(\x0B2..google.privacy.dlp.v2.CloudSqlDiscoveryTargetH\x00\x12G\x0A\x0Esecrets_target\x18\x03 \x01(\x0B2-.google.privacy.dlp.v2.SecretsDiscoveryTargetH\x00\x12R\x0A\x14cloud_storage_target\x18\x04 \x01(\x0B22.google.privacy.dlp.v2.CloudStorageDiscoveryTargetH\x00\x12N\x0A\x12other_cloud_target\x18\x05 \x01(\x0B20.google.privacy.dlp.v2.OtherCloudDiscoveryTargetH\x00\x12T\x0A\x15vertex_dataset_target\x18\x07 \x01(\x0B23.google.privacy.dlp.v2.VertexDatasetDiscoveryTargetH\x00B\x08\x0A\x06target\"\xAE\x02\x0A\x17BigQueryDiscoveryTarget\x12C\x0A\x06filter\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.DiscoveryBigQueryFilterB\x03\xE0A\x02\x12F\x0A\x0Aconditions\x18\x02 \x01(\x0B22.google.privacy.dlp.v2.DiscoveryBigQueryConditions\x12D\x0A\x07cadence\x18\x03 \x01(\x0B21.google.privacy.dlp.v2.DiscoveryGenerationCadenceH\x00\x123\x0A\x08disabled\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledH\x00B\x0B\x0A\x09frequency\"\xA0\x02\x0A\x17DiscoveryBigQueryFilter\x12@\x0A\x06tables\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.BigQueryTableCollectionH\x00\x12]\x0A\x0Cother_tables\x18\x02 \x01(\x0B2E.google.privacy.dlp.v2.DiscoveryBigQueryFilter.AllOtherBigQueryTablesH\x00\x12@\x0A\x0Ftable_reference\x18\x03 \x01(\x0B2%.google.privacy.dlp.v2.TableReferenceH\x00\x1A\x18\x0A\x16AllOtherBigQueryTablesB\x08\x0A\x06filter\"g\x0A\x17BigQueryTableCollection\x12A\x0A\x0Finclude_regexes\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.BigQueryRegexesH\x00B\x09\x0A\x07pattern\"\x98\x03\x0A\x1BDiscoveryBigQueryConditions\x121\x0A\x0Dcreated_after\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12:\x0A\x05types\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.BigQueryTableTypesH\x00\x12M\x0A\x0Ftype_collection\x18\x03 \x01(\x0E22.google.privacy.dlp.v2.BigQueryTableTypeCollectionH\x00\x12V\x0A\x0Dor_conditions\x18\x04 \x01(\x0B2?.google.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions\x1AQ\x0A\x0COrConditions\x12\x15\x0A\x0Dmin_row_count\x18\x01 \x01(\x05\x12*\x0A\x07min_age\x18\x02 \x01(\x0B2\x19.google.protobuf.DurationB\x10\x0A\x0Eincluded_types\"\x83\x03\x0A\x1ADiscoveryGenerationCadence\x12V\x0A\x17schema_modified_cadence\x18\x01 \x01(\x0B25.google.privacy.dlp.v2.DiscoverySchemaModifiedCadence\x12T\x0A\x16table_modified_cadence\x18\x02 \x01(\x0B24.google.privacy.dlp.v2.DiscoveryTableModifiedCadence\x12i\x0A!inspect_template_modified_cadence\x18\x03 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\x12L\x0A\x11refresh_frequency\x18\x04 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"\xA6\x01\x0A\x1DDiscoveryTableModifiedCadence\x12?\x0A\x05types\x18\x01 \x03(\x0E20.google.privacy.dlp.v2.BigQueryTableModification\x12D\x0A\x09frequency\x18\x02 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"\xA8\x01\x0A\x1EDiscoverySchemaModifiedCadence\x12@\x0A\x05types\x18\x01 \x03(\x0E21.google.privacy.dlp.v2.BigQuerySchemaModification\x12D\x0A\x09frequency\x18\x02 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"o\x0A'DiscoveryInspectTemplateModifiedCadence\x12D\x0A\x09frequency\x18\x01 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"\xBF\x02\x0A\x17CloudSqlDiscoveryTarget\x12C\x0A\x06filter\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.DiscoveryCloudSqlFilterB\x03\xE0A\x02\x12F\x0A\x0Aconditions\x18\x02 \x01(\x0B22.google.privacy.dlp.v2.DiscoveryCloudSqlConditions\x12W\x0A\x12generation_cadence\x18\x03 \x01(\x0B29.google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadenceH\x00\x123\x0A\x08disabled\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledH\x00B\x09\x0A\x07cadence\"\x89\x02\x0A\x17DiscoveryCloudSqlFilter\x12G\x0A\x0Acollection\x18\x01 \x01(\x0B21.google.privacy.dlp.v2.DatabaseResourceCollectionH\x00\x12B\x0A\x06others\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.AllOtherDatabaseResourcesH\x00\x12W\x0A\x1Bdatabase_resource_reference\x18\x03 \x01(\x0B20.google.privacy.dlp.v2.DatabaseResourceReferenceH\x00B\x08\x0A\x06filter\"r\x0A\x1ADatabaseResourceCollection\x12I\x0A\x0Finclude_regexes\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.DatabaseResourceRegexesH\x00B\x09\x0A\x07pattern\"Y\x0A\x17DatabaseResourceRegexes\x12>\x0A\x08patterns\x18\x01 \x03(\x0B2,.google.privacy.dlp.v2.DatabaseResourceRegex\"\x87\x01\x0A\x15DatabaseResourceRegex\x12\x18\x0A\x10project_id_regex\x18\x01 \x01(\x09\x12\x16\x0A\x0Einstance_regex\x18\x02 \x01(\x09\x12\x16\x0A\x0Edatabase_regex\x18\x03 \x01(\x09\x12\$\x0A\x1Cdatabase_resource_name_regex\x18\x04 \x01(\x09\"\x1B\x0A\x19AllOtherDatabaseResources\"\x82\x01\x0A\x19DatabaseResourceReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08instance\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08database\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11database_resource\x18\x04 \x01(\x09B\x03\xE0A\x02\"\xDA\x03\x0A\x1BDiscoveryCloudSqlConditions\x12`\x0A\x10database_engines\x18\x01 \x03(\x0E2A.google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngineB\x03\xE0A\x01\x12V\x0A\x05types\x18\x03 \x03(\x0E2G.google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType\"n\x0A\x0EDatabaseEngine\x12\x1F\x0A\x1BDATABASE_ENGINE_UNSPECIFIED\x10\x00\x12\"\x0A\x1EALL_SUPPORTED_DATABASE_ENGINES\x10\x01\x12\x09\x0A\x05MYSQL\x10\x02\x12\x0C\x0A\x08POSTGRES\x10\x03\"\x90\x01\x0A\x14DatabaseResourceType\x12&\x0A\"DATABASE_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12.\x0A*DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES\x10\x01\x12 \x0A\x1CDATABASE_RESOURCE_TYPE_TABLE\x10\x02\"\x97\x05\x0A\"DiscoveryCloudSqlGenerationCadence\x12p\x0A\x17schema_modified_cadence\x18\x01 \x01(\x0B2O.google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence\x12L\x0A\x11refresh_frequency\x18\x02 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\x12i\x0A!inspect_template_modified_cadence\x18\x03 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\x1A\xC5\x02\x0A\x15SchemaModifiedCadence\x12y\x0A\x05types\x18\x01 \x03(\x0E2j.google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.CloudSqlSchemaModification\x12D\x0A\x09frequency\x18\x02 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"k\x0A\x1ACloudSqlSchemaModification\x12'\x0A#SQL_SCHEMA_MODIFICATION_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BNEW_COLUMNS\x10\x01\x12\x13\x0A\x0FREMOVED_COLUMNS\x10\x02\"\x18\x0A\x16SecretsDiscoveryTarget\"\xDB\x02\x0A\x1BCloudStorageDiscoveryTarget\x12G\x0A\x06filter\x18\x01 \x01(\x0B22.google.privacy.dlp.v2.DiscoveryCloudStorageFilterB\x03\xE0A\x02\x12L\x0A\x0Aconditions\x18\x04 \x01(\x0B23.google.privacy.dlp.v2.DiscoveryFileStoreConditionsB\x03\xE0A\x01\x12`\x0A\x12generation_cadence\x18\x02 \x01(\x0B2=.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadenceB\x03\xE0A\x01H\x00\x128\x0A\x08disabled\x18\x03 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledB\x03\xE0A\x01H\x00B\x09\x0A\x07cadence\"\x96\x02\x0A\x1BDiscoveryCloudStorageFilter\x12E\x0A\x0Acollection\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.FileStoreCollectionB\x03\xE0A\x01H\x00\x12e\x0A cloud_storage_resource_reference\x18\x02 \x01(\x0B24.google.privacy.dlp.v2.CloudStorageResourceReferenceB\x03\xE0A\x01H\x00\x12?\x0A\x06others\x18d \x01(\x0B2(.google.privacy.dlp.v2.AllOtherResourcesB\x03\xE0A\x01H\x00B\x08\x0A\x06filter\"\xA7\x01\x0A\x13FileStoreCollection\x12G\x0A\x0Finclude_regexes\x18\x01 \x01(\x0B2'.google.privacy.dlp.v2.FileStoreRegexesB\x03\xE0A\x01H\x00\x12<\x0A\x0Cinclude_tags\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.TagFiltersB\x03\xE0A\x01B\x09\x0A\x07pattern\"P\x0A\x10FileStoreRegexes\x12<\x0A\x08patterns\x18\x01 \x03(\x0B2%.google.privacy.dlp.v2.FileStoreRegexB\x03\xE0A\x02\"p\x0A\x0EFileStoreRegex\x12L\x0A\x13cloud_storage_regex\x18\x01 \x01(\x0B2(.google.privacy.dlp.v2.CloudStorageRegexB\x03\xE0A\x01H\x00B\x10\x0A\x0Eresource_regex\"R\x0A\x11CloudStorageRegex\x12\x1D\x0A\x10project_id_regex\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11bucket_name_regex\x18\x02 \x01(\x09B\x03\xE0A\x01\"R\x0A\x1DCloudStorageResourceReference\x12\x18\x0A\x0Bbucket_name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Aproject_id\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xEB\x01\x0A&DiscoveryCloudStorageGenerationCadence\x12Q\x0A\x11refresh_frequency\x18\x01 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequencyB\x03\xE0A\x01\x12n\x0A!inspect_template_modified_cadence\x18\x02 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceB\x03\xE0A\x01\"\x9B\x05\x0A\x1FDiscoveryCloudStorageConditions\x12{\x0A\x1Aincluded_object_attributes\x18\x01 \x03(\x0E2R.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttributeB\x03\xE0A\x02\x12{\x0A\x1Aincluded_bucket_attributes\x18\x02 \x03(\x0E2R.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttributeB\x03\xE0A\x02\"\xE3\x01\x0A\x1BCloudStorageObjectAttribute\x12.\x0A*CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ALL_SUPPORTED_OBJECTS\x10\x01\x12\x0C\x0A\x08STANDARD\x10\x02\x12\x0C\x0A\x08NEARLINE\x10\x03\x12\x0C\x0A\x08COLDLINE\x10\x04\x12\x0B\x0A\x07ARCHIVE\x10\x05\x12\x0C\x0A\x08REGIONAL\x10\x06\x12\x12\x0A\x0EMULTI_REGIONAL\x10\x07\x12 \x0A\x1CDURABLE_REDUCED_AVAILABILITY\x10\x08\"\x97\x01\x0A\x1BCloudStorageBucketAttribute\x12.\x0A*CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ALL_SUPPORTED_BUCKETS\x10\x01\x12\x16\x0A\x12AUTOCLASS_DISABLED\x10\x02\x12\x15\x0A\x11AUTOCLASS_ENABLED\x10\x03\"\xF6\x01\x0A\x1CDiscoveryFileStoreConditions\x126\x0A\x0Dcreated_after\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12/\x0A\x07min_age\x18\x02 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01\x12_\x0A\x18cloud_storage_conditions\x18\x03 \x01(\x0B26.google.privacy.dlp.v2.DiscoveryCloudStorageConditionsB\x03\xE0A\x01H\x00B\x0C\x0A\x0Aconditions\"\x92\x03\x0A\x19OtherCloudDiscoveryTarget\x12D\x0A\x10data_source_type\x18\x01 \x01(\x0B2%.google.privacy.dlp.v2.DataSourceTypeB\x03\xE0A\x02\x12E\x0A\x06filter\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.DiscoveryOtherCloudFilterB\x03\xE0A\x02\x12M\x0A\x0Aconditions\x18\x03 \x01(\x0B24.google.privacy.dlp.v2.DiscoveryOtherCloudConditionsB\x03\xE0A\x01\x12Y\x0A\x12generation_cadence\x18\x04 \x01(\x0B2;.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadenceH\x00\x123\x0A\x08disabled\x18\x05 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledH\x00B\x09\x0A\x07cadence\"\x86\x02\x0A\x19DiscoveryOtherCloudFilter\x12I\x0A\x0Acollection\x18\x01 \x01(\x0B23.google.privacy.dlp.v2.OtherCloudResourceCollectionH\x00\x12S\x0A\x0Fsingle_resource\x18\x02 \x01(\x0B28.google.privacy.dlp.v2.OtherCloudSingleResourceReferenceH\x00\x12?\x0A\x06others\x18d \x01(\x0B2(.google.privacy.dlp.v2.AllOtherResourcesB\x03\xE0A\x01H\x00B\x08\x0A\x06filter\"v\x0A\x1COtherCloudResourceCollection\x12K\x0A\x0Finclude_regexes\x18\x01 \x01(\x0B20.google.privacy.dlp.v2.OtherCloudResourceRegexesH\x00B\x09\x0A\x07pattern\"]\x0A\x19OtherCloudResourceRegexes\x12@\x0A\x08patterns\x18\x01 \x03(\x0B2..google.privacy.dlp.v2.OtherCloudResourceRegex\"y\x0A\x17OtherCloudResourceRegex\x12L\x0A\x16amazon_s3_bucket_regex\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.AmazonS3BucketRegexH\x00B\x10\x0A\x0Eresource_regex\"0\x0A\x0FAwsAccountRegex\x12\x1D\x0A\x10account_id_regex\x18\x01 \x01(\x09B\x03\xE0A\x01\"x\x0A\x13AmazonS3BucketRegex\x12A\x0A\x11aws_account_regex\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.AwsAccountRegex\x12\x1E\x0A\x11bucket_name_regex\x18\x02 \x01(\x09B\x03\xE0A\x01\"r\x0A!OtherCloudSingleResourceReference\x12A\x0A\x10amazon_s3_bucket\x18\x01 \x01(\x0B2%.google.privacy.dlp.v2.AmazonS3BucketH\x00B\x0A\x0A\x08resource\"%\x0A\x0AAwsAccount\x12\x17\x0A\x0Aaccount_id\x18\x01 \x01(\x09B\x03\xE0A\x02\"b\x0A\x0EAmazonS3Bucket\x126\x0A\x0Baws_account\x18\x01 \x01(\x0B2!.google.privacy.dlp.v2.AwsAccount\x12\x18\x0A\x0Bbucket_name\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xB1\x01\x0A\x1DDiscoveryOtherCloudConditions\x12*\x0A\x07min_age\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\x12V\x0A\x1Bamazon_s3_bucket_conditions\x18\x02 \x01(\x0B2/.google.privacy.dlp.v2.AmazonS3BucketConditionsH\x00B\x0C\x0A\x0Aconditions\"\xD9\x03\x0A\x18AmazonS3BucketConditions\x12U\x0A\x0Cbucket_types\x18\x01 \x03(\x0E2:.google.privacy.dlp.v2.AmazonS3BucketConditions.BucketTypeB\x03\xE0A\x01\x12g\x0A\x16object_storage_classes\x18\x02 \x03(\x0E2B.google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClassB\x03\xE0A\x01\"T\x0A\x0ABucketType\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x16\x0A\x12TYPE_ALL_SUPPORTED\x10\x01\x12\x18\x0A\x14TYPE_GENERAL_PURPOSE\x10\x02\"\xA6\x01\x0A\x12ObjectStorageClass\x12\x0F\x0A\x0BUNSPECIFIED\x10\x00\x12\x19\x0A\x15ALL_SUPPORTED_CLASSES\x10\x01\x12\x0C\x0A\x08STANDARD\x10\x02\x12\x1E\x0A\x1ASTANDARD_INFREQUENT_ACCESS\x10\x04\x12\x1D\x0A\x19GLACIER_INSTANT_RETRIEVAL\x10\x06\x12\x17\x0A\x13INTELLIGENT_TIERING\x10\x07\"\xE9\x01\x0A\$DiscoveryOtherCloudGenerationCadence\x12Q\x0A\x11refresh_frequency\x18\x01 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequencyB\x03\xE0A\x01\x12n\x0A!inspect_template_modified_cadence\x18\x02 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceB\x03\xE0A\x01\"W\x0A\x19DiscoveryStartingLocation\x12\x19\x0A\x0Forganization_id\x18\x01 \x01(\x03H\x00\x12\x13\x0A\x09folder_id\x18\x02 \x01(\x03H\x00B\x0A\x0A\x08location\"\x87\x02\x0A#OtherCloudDiscoveryStartingLocation\x12o\x0A\x0Caws_location\x18\x01 \x01(\x0B2W.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation.AwsDiscoveryStartingLocationH\x00\x1Ac\x0A\x1CAwsDiscoveryStartingLocation\x12\x14\x0A\x0Aaccount_id\x18\x02 \x01(\x09H\x00\x12\$\x0A\x1Aall_asset_inventory_assets\x18\x03 \x01(\x08H\x00B\x07\x0A\x05scopeB\x0A\x0A\x08location\"\x13\x0A\x11AllOtherResources\"\xD3\x02\x0A\x1CVertexDatasetDiscoveryTarget\x12H\x0A\x06filter\x18\x01 \x01(\x0B23.google.privacy.dlp.v2.DiscoveryVertexDatasetFilterB\x03\xE0A\x02\x12K\x0A\x0Aconditions\x18\x02 \x01(\x0B27.google.privacy.dlp.v2.DiscoveryVertexDatasetConditions\x12\\\x0A\x12generation_cadence\x18\x03 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryVertexDatasetGenerationCadenceH\x00\x123\x0A\x08disabled\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledH\x00B\x09\x0A\x07cadence\"\x8E\x02\x0A\x1CDiscoveryVertexDatasetFilter\x12D\x0A\x0Acollection\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.VertexDatasetCollectionH\x00\x12b\x0A!vertex_dataset_resource_reference\x18\x02 \x01(\x0B25.google.privacy.dlp.v2.VertexDatasetResourceReferenceH\x00\x12:\x0A\x06others\x18d \x01(\x0B2(.google.privacy.dlp.v2.AllOtherResourcesH\x00B\x08\x0A\x06filter\"s\x0A\x17VertexDatasetCollection\x12M\x0A\x16vertex_dataset_regexes\x18\x01 \x01(\x0B2+.google.privacy.dlp.v2.VertexDatasetRegexesH\x00B\x09\x0A\x07pattern\"X\x0A\x14VertexDatasetRegexes\x12@\x0A\x08patterns\x18\x01 \x03(\x0B2).google.privacy.dlp.v2.VertexDatasetRegexB\x03\xE0A\x02\".\x0A\x12VertexDatasetRegex\x12\x18\x0A\x10project_id_regex\x18\x01 \x01(\x09\"D\x0A\x1EVertexDatasetResourceReference\x12\"\x0A\x15dataset_resource_name\x18\x01 \x01(\x09B\x03\xE0A\x02\"\x81\x01\x0A DiscoveryVertexDatasetConditions\x121\x0A\x0Dcreated_after\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12*\x0A\x07min_age\x18\x02 \x01(\x0B2\x19.google.protobuf.Duration\"\xE2\x01\x0A'DiscoveryVertexDatasetGenerationCadence\x12L\x0A\x11refresh_frequency\x18\x01 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\x12i\x0A!inspect_template_modified_cadence\x18\x02 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\"\xDC\x06\x0A\x06DlpJob\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12/\x0A\x04type\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.DlpJobType\x125\x0A\x05state\x18\x03 \x01(\x0E2&.google.privacy.dlp.v2.DlpJob.JobState\x12K\x0A\x0Crisk_details\x18\x04 \x01(\x0B23.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetailsH\x00\x12J\x0A\x0Finspect_details\x18\x05 \x01(\x0B2/.google.privacy.dlp.v2.InspectDataSourceDetailsH\x00\x12/\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12.\x0A\x0Astart_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\x121\x0A\x0Dlast_modified\x18\x0F \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x18\x0A\x10job_trigger_name\x18\x0A \x01(\x09\x12,\x0A\x06errors\x18\x0B \x03(\x0B2\x1C.google.privacy.dlp.v2.Error\x12<\x0A\x0Eaction_details\x18\x0C \x03(\x0B2\$.google.privacy.dlp.v2.ActionDetails\"o\x0A\x08JobState\x12\x19\x0A\x15JOB_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PENDING\x10\x01\x12\x0B\x0A\x07RUNNING\x10\x02\x12\x08\x0A\x04DONE\x10\x03\x12\x0C\x0A\x08CANCELED\x10\x04\x12\x0A\x0A\x06FAILED\x10\x05\x12\x0A\x0A\x06ACTIVE\x10\x06:\x7F\xEAA|\x0A\x19dlp.googleapis.com/DlpJob\x12\$projects/{project}/dlpJobs/{dlp_job}\x129projects/{project}/locations/{location}/dlpJobs/{dlp_job}B\x09\x0A\x07details\"C\x0A\x10GetDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\"\xD6\x01\x0A\x12ListDlpJobsRequest\x121\x0A\x06parent\x18\x04 \x01(\x09B!\xE0A\x02\xFAA\x1B\x12\x19dlp.googleapis.com/DlpJob\x12\x0E\x0A\x06filter\x18\x01 \x01(\x09\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12/\x0A\x04type\x18\x05 \x01(\x0E2!.google.privacy.dlp.v2.DlpJobType\x12\x10\x0A\x08order_by\x18\x06 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x07 \x01(\x09\"[\x0A\x13ListDlpJobsResponse\x12+\x0A\x04jobs\x18\x01 \x03(\x0B2\x1D.google.privacy.dlp.v2.DlpJob\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"F\x0A\x13CancelDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\"F\x0A\x13FinishDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\"F\x0A\x13DeleteDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\"\xD7\x01\x0A\x1FCreateDeidentifyTemplateRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%dlp.googleapis.com/DeidentifyTemplate\x12K\x0A\x13deidentify_template\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplateB\x03\xE0A\x02\x12\x13\x0A\x0Btemplate_id\x18\x03 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\"\xD7\x01\x0A\x1FUpdateDeidentifyTemplateRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/DeidentifyTemplate\x12F\x0A\x13deidentify_template\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"[\x0A\x1CGetDeidentifyTemplateRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/DeidentifyTemplate\"\xAD\x01\x0A\x1EListDeidentifyTemplatesRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%dlp.googleapis.com/DeidentifyTemplate\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09\"\x83\x01\x0A\x1FListDeidentifyTemplatesResponse\x12G\x0A\x14deidentify_templates\x18\x01 \x03(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"^\x0A\x1FDeleteDeidentifyTemplateRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/DeidentifyTemplate\"\xF4\x01\x0A\x1BLargeCustomDictionaryConfig\x12<\x0A\x0Boutput_path\x18\x01 \x01(\x0B2'.google.privacy.dlp.v2.CloudStoragePath\x12L\x0A\x16cloud_storage_file_set\x18\x02 \x01(\x0B2*.google.privacy.dlp.v2.CloudStorageFileSetH\x00\x12?\x0A\x0Fbig_query_field\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryFieldH\x00B\x08\x0A\x06source\"8\x0A\x1ALargeCustomDictionaryStats\x12\x1A\x0A\x12approx_num_phrases\x18\x01 \x01(\x03\"\xA6\x02\x0A\x14StoredInfoTypeConfig\x12\x14\x0A\x0Cdisplay_name\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12U\x0A\x17large_custom_dictionary\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.LargeCustomDictionaryConfigH\x00\x12F\x0A\x0Adictionary\x18\x04 \x01(\x0B20.google.privacy.dlp.v2.CustomInfoType.DictionaryH\x00\x12<\x0A\x05regex\x18\x05 \x01(\x0B2+.google.privacy.dlp.v2.CustomInfoType.RegexH\x00B\x06\x0A\x04type\"s\x0A\x13StoredInfoTypeStats\x12T\x0A\x17large_custom_dictionary\x18\x01 \x01(\x0B21.google.privacy.dlp.v2.LargeCustomDictionaryStatsH\x00B\x06\x0A\x04type\"\xA9\x02\x0A\x15StoredInfoTypeVersion\x12;\x0A\x06config\x18\x01 \x01(\x0B2+.google.privacy.dlp.v2.StoredInfoTypeConfig\x12/\x0A\x0Bcreate_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x129\x0A\x05state\x18\x03 \x01(\x0E2*.google.privacy.dlp.v2.StoredInfoTypeState\x12,\x0A\x06errors\x18\x04 \x03(\x0B2\x1C.google.privacy.dlp.v2.Error\x129\x0A\x05stats\x18\x05 \x01(\x0B2*.google.privacy.dlp.v2.StoredInfoTypeStats\"\xF1\x03\x0A\x0EStoredInfoType\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12E\x0A\x0Fcurrent_version\x18\x02 \x01(\x0B2,.google.privacy.dlp.v2.StoredInfoTypeVersion\x12F\x0A\x10pending_versions\x18\x03 \x03(\x0B2,.google.privacy.dlp.v2.StoredInfoTypeVersion:\xC1\x02\xEAA\xBD\x02\x0A!dlp.googleapis.com/StoredInfoType\x12?organizations/{organization}/storedInfoTypes/{stored_info_type}\x125projects/{project}/storedInfoTypes/{stored_info_type}\x12Torganizations/{organization}/locations/{location}/storedInfoTypes/{stored_info_type}\x12Jprojects/{project}/locations/{location}/storedInfoTypes/{stored_info_type}\"\xCC\x01\x0A\x1BCreateStoredInfoTypeRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x12!dlp.googleapis.com/StoredInfoType\x12@\x0A\x06config\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.StoredInfoTypeConfigB\x03\xE0A\x02\x12\x1B\x0A\x13stored_info_type_id\x18\x03 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\"\xC4\x01\x0A\x1BUpdateStoredInfoTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dlp.googleapis.com/StoredInfoType\x12;\x0A\x06config\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.StoredInfoTypeConfig\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"S\x0A\x18GetStoredInfoTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dlp.googleapis.com/StoredInfoType\"\xA5\x01\x0A\x1AListStoredInfoTypesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x12!dlp.googleapis.com/StoredInfoType\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09\"x\x0A\x1BListStoredInfoTypesResponse\x12@\x0A\x11stored_info_types\x18\x01 \x03(\x0B2%.google.privacy.dlp.v2.StoredInfoType\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"V\x0A\x1BDeleteStoredInfoTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dlp.googleapis.com/StoredInfoType\"\x94\x01\x0A\x1EHybridInspectJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\x12=\x0A\x0Bhybrid_item\x18\x03 \x01(\x0B2(.google.privacy.dlp.v2.HybridContentItem\"\x8C\x01\x0A\x1AHybridInspectDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\x12=\x0A\x0Bhybrid_item\x18\x03 \x01(\x0B2(.google.privacy.dlp.v2.HybridContentItem\"\x8B\x01\x0A\x11HybridContentItem\x120\x0A\x04item\x18\x01 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12D\x0A\x0Ffinding_details\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.HybridFindingDetails\"\xB0\x02\x0A\x14HybridFindingDetails\x12;\x0A\x11container_details\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.Container\x12\x13\x0A\x0Bfile_offset\x18\x02 \x01(\x03\x12\x12\x0A\x0Arow_offset\x18\x03 \x01(\x03\x12:\x0A\x0Dtable_options\x18\x04 \x01(\x0B2#.google.privacy.dlp.v2.TableOptions\x12G\x0A\x06labels\x18\x05 \x03(\x0B27.google.privacy.dlp.v2.HybridFindingDetails.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x17\x0A\x15HybridInspectResponse\"\xC3\x01\x0A\x14ImageContainmentType\x123\x0A\x08encloses\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.EnclosesH\x00\x12:\x0A\x0Cfully_inside\x18\x02 \x01(\x0B2\".google.privacy.dlp.v2.FullyInsideH\x00\x122\x0A\x08overlaps\x18\x03 \x01(\x0B2\x1E.google.privacy.dlp.v2.OverlapH\x00B\x06\x0A\x04type\"\x09\x0A\x07Overlap\"\x0A\x0A\x08Encloses\"\x0D\x0A\x0BFullyInside\"\xA8\x01\x0A\x1EListProjectDataProfilesRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%dlp.googleapis.com/ProjectDataProfile\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\"\x84\x01\x0A\x1FListProjectDataProfilesResponse\x12H\x0A\x15project_data_profiles\x18\x01 \x03(\x0B2).google.privacy.dlp.v2.ProjectDataProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA4\x01\x0A\x1CListTableDataProfilesRequest\x12;\x0A\x06parent\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x12#dlp.googleapis.com/TableDataProfile\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\"~\x0A\x1DListTableDataProfilesResponse\x12D\x0A\x13table_data_profiles\x18\x01 \x03(\x0B2'.google.privacy.dlp.v2.TableDataProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA6\x01\x0A\x1DListColumnDataProfilesRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$dlp.googleapis.com/ColumnDataProfile\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\"\x81\x01\x0A\x1EListColumnDataProfilesResponse\x12F\x0A\x14column_data_profiles\x18\x01 \x03(\x0B2(.google.privacy.dlp.v2.ColumnDataProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xCB\x01\x0A\x0DDataRiskLevel\x12F\x0A\x05score\x18\x01 \x01(\x0E27.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore\"r\x0A\x12DataRiskLevelScore\x12\x1A\x0A\x16RISK_SCORE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08RISK_LOW\x10\x0A\x12\x10\x0A\x0CRISK_UNKNOWN\x10\x0C\x12\x11\x0A\x0DRISK_MODERATE\x10\x14\x12\x0D\x0A\x09RISK_HIGH\x10\x1E\"\xDC\x04\x0A\x12ProjectDataProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x12\x0A\x0Aproject_id\x18\x02 \x01(\x09\x12:\x0A\x16profile_last_generated\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12B\x0A\x11sensitivity_score\x18\x04 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x05 \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12<\x0A\x0Eprofile_status\x18\x07 \x01(\x0B2\$.google.privacy.dlp.v2.ProfileStatus\x12 \x0A\x18table_data_profile_count\x18\x09 \x01(\x03\x12%\x0A\x1Dfile_store_data_profile_count\x18\x0A \x01(\x03:\xDD\x01\xEAA\xD9\x01\x0A%dlp.googleapis.com/ProjectDataProfile\x12\\organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}\x12Rprojects/{project}/locations/{location}/projectDataProfiles/{project_data_profile}\"\xC9\x02\x0A\x19DataProfileConfigSnapshot\x12<\x0A\x0Einspect_config\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x12I\x0A\x10data_profile_job\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.DataProfileJobConfigB\x02\x18\x01\x12@\x0A\x10discovery_config\x18\x04 \x01(\x0B2&.google.privacy.dlp.v2.DiscoveryConfig\x12\x1D\x0A\x15inspect_template_name\x18\x05 \x01(\x09\x12B\x0A\x1Einspect_template_modified_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\x93\x0E\x0A\x10TableDataProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12?\x0A\x10data_source_type\x18\$ \x01(\x0B2%.google.privacy.dlp.v2.DataSourceType\x12\x1C\x0A\x14project_data_profile\x18\x02 \x01(\x09\x12\x1A\x0A\x12dataset_project_id\x18\x18 \x01(\x09\x12\x18\x0A\x10dataset_location\x18\x1D \x01(\x09\x12\x12\x0A\x0Adataset_id\x18\x19 \x01(\x09\x12\x10\x0A\x08table_id\x18\x1A \x01(\x09\x12\x15\x0A\x0Dfull_resource\x18\x03 \x01(\x09\x12<\x0A\x0Eprofile_status\x18\x15 \x01(\x0B2\$.google.privacy.dlp.v2.ProfileStatus\x12<\x0A\x05state\x18\x16 \x01(\x0E2-.google.privacy.dlp.v2.TableDataProfile.State\x12B\x0A\x11sensitivity_score\x18\x05 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x06 \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12D\x0A\x14predicted_info_types\x18\x1B \x03(\x0B2&.google.privacy.dlp.v2.InfoTypeSummary\x12E\x0A\x10other_info_types\x18\x1C \x03(\x0B2+.google.privacy.dlp.v2.OtherInfoTypeSummary\x12I\x0A\x0Fconfig_snapshot\x18\x07 \x01(\x0B20.google.privacy.dlp.v2.DataProfileConfigSnapshot\x126\x0A\x12last_modified_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\x123\x0A\x0Fexpiration_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x1C\x0A\x14scanned_column_count\x18\x0A \x01(\x03\x12\x1B\x0A\x13failed_column_count\x18\x0B \x01(\x03\x12\x18\x0A\x10table_size_bytes\x18\x0C \x01(\x03\x12\x11\x0A\x09row_count\x18\x0D \x01(\x03\x12B\x0A\x11encryption_status\x18\x0E \x01(\x0E2'.google.privacy.dlp.v2.EncryptionStatus\x12F\x0A\x13resource_visibility\x18\x0F \x01(\x0E2).google.privacy.dlp.v2.ResourceVisibility\x12:\x0A\x16profile_last_generated\x18\x10 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12T\x0A\x0Fresource_labels\x18\x11 \x03(\x0B2;.google.privacy.dlp.v2.TableDataProfile.ResourceLabelsEntry\x12/\x0A\x0Bcreate_time\x18\x17 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12C\x0A\x15sample_findings_table\x18% \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12(\x0A\x04tags\x18' \x03(\x0B2\x1A.google.privacy.dlp.v2.Tag\x12A\x0A\x11related_resources\x18) \x03(\x0B2&.google.privacy.dlp.v2.RelatedResource\x12.\x0A\x07domains\x18/ \x03(\x0B2\x1D.google.privacy.dlp.v2.Domain\x1A5\x0A\x13ResourceLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"5\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x08\x0A\x04DONE\x10\x02:\xD3\x01\xEAA\xCF\x01\x0A#dlp.googleapis.com/TableDataProfile\x12Xorganizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}\x12Nprojects/{project}/locations/{location}/tableDataProfiles/{table_data_profile}\"b\x0A\x0DProfileStatus\x12\"\x0A\x06status\x18\x01 \x01(\x0B2\x12.google.rpc.Status\x12-\x0A\x09timestamp\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"g\x0A\x0FInfoTypeSummary\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12 \x0A\x14estimated_prevalence\x18\x02 \x01(\x05B\x02\x18\x01\"\x88\x01\x0A\x14OtherInfoTypeSummary\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12\x1C\x0A\x14estimated_prevalence\x18\x02 \x01(\x05\x12\x1E\x0A\x16excluded_from_analysis\x18\x03 \x01(\x08\"\xC9\x0D\x0A\x11ColumnDataProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12<\x0A\x0Eprofile_status\x18\x11 \x01(\x0B2\$.google.privacy.dlp.v2.ProfileStatus\x12=\x0A\x05state\x18\x12 \x01(\x0E2..google.privacy.dlp.v2.ColumnDataProfile.State\x12:\x0A\x16profile_last_generated\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x1A\x0A\x12table_data_profile\x18\x04 \x01(\x09\x12\x1B\x0A\x13table_full_resource\x18\x05 \x01(\x09\x12\x1A\x0A\x12dataset_project_id\x18\x13 \x01(\x09\x12\x18\x0A\x10dataset_location\x18\x14 \x01(\x09\x12\x12\x0A\x0Adataset_id\x18\x15 \x01(\x09\x12\x10\x0A\x08table_id\x18\x16 \x01(\x09\x12\x0E\x0A\x06column\x18\x06 \x01(\x09\x12B\x0A\x11sensitivity_score\x18\x07 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x08 \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12@\x0A\x10column_info_type\x18\x09 \x01(\x0B2&.google.privacy.dlp.v2.InfoTypeSummary\x12B\x0A\x0Dother_matches\x18\x0A \x03(\x0B2+.google.privacy.dlp.v2.OtherInfoTypeSummary\x12M\x0A\x19estimated_null_percentage\x18\x17 \x01(\x0E2*.google.privacy.dlp.v2.NullPercentageLevel\x12O\x0A\x1Aestimated_uniqueness_score\x18\x18 \x01(\x0E2+.google.privacy.dlp.v2.UniquenessScoreLevel\x12\x17\x0A\x0Ffree_text_score\x18\x0D \x01(\x01\x12L\x0A\x0Bcolumn_type\x18\x0E \x01(\x0E27.google.privacy.dlp.v2.ColumnDataProfile.ColumnDataType\x12P\x0A\x0Cpolicy_state\x18\x0F \x01(\x0E2:.google.privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState\"5\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x08\x0A\x04DONE\x10\x02\"\xFF\x02\x0A\x0EColumnDataType\x12 \x0A\x1CCOLUMN_DATA_TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0ATYPE_INT64\x10\x01\x12\x0D\x0A\x09TYPE_BOOL\x10\x02\x12\x10\x0A\x0CTYPE_FLOAT64\x10\x03\x12\x0F\x0A\x0BTYPE_STRING\x10\x04\x12\x0E\x0A\x0ATYPE_BYTES\x10\x05\x12\x12\x0A\x0ETYPE_TIMESTAMP\x10\x06\x12\x0D\x0A\x09TYPE_DATE\x10\x07\x12\x0D\x0A\x09TYPE_TIME\x10\x08\x12\x11\x0A\x0DTYPE_DATETIME\x10\x09\x12\x12\x0A\x0ETYPE_GEOGRAPHY\x10\x0A\x12\x10\x0A\x0CTYPE_NUMERIC\x10\x0B\x12\x0F\x0A\x0BTYPE_RECORD\x10\x0C\x12\x13\x0A\x0FTYPE_BIGNUMERIC\x10\x0D\x12\x0D\x0A\x09TYPE_JSON\x10\x0E\x12\x11\x0A\x0DTYPE_INTERVAL\x10\x0F\x12\x13\x0A\x0FTYPE_RANGE_DATE\x10\x10\x12\x17\x0A\x13TYPE_RANGE_DATETIME\x10\x11\x12\x18\x0A\x14TYPE_RANGE_TIMESTAMP\x10\x12\"R\x0A\x11ColumnPolicyState\x12#\x0A\x1FCOLUMN_POLICY_STATE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14COLUMN_POLICY_TAGGED\x10\x01:\xD8\x01\xEAA\xD4\x01\x0A\$dlp.googleapis.com/ColumnDataProfile\x12Zorganizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}\x12Pprojects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}\"\xE8\x0E\x0A\x14FileStoreDataProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12?\x0A\x10data_source_type\x18\x02 \x01(\x0B2%.google.privacy.dlp.v2.DataSourceType\x12\x1C\x0A\x14project_data_profile\x18\x03 \x01(\x09\x12\x12\x0A\x0Aproject_id\x18\x04 \x01(\x09\x12\x1B\x0A\x13file_store_location\x18\x05 \x01(\x09\x12\x1E\x0A\x16data_storage_locations\x18\x13 \x03(\x09\x12\x15\x0A\x0Dlocation_type\x18\x14 \x01(\x09\x12\x17\x0A\x0Ffile_store_path\x18\x06 \x01(\x09\x12\x15\x0A\x0Dfull_resource\x18\x18 \x01(\x09\x12I\x0A\x0Fconfig_snapshot\x18\x07 \x01(\x0B20.google.privacy.dlp.v2.DataProfileConfigSnapshot\x12<\x0A\x0Eprofile_status\x18\x08 \x01(\x0B2\$.google.privacy.dlp.v2.ProfileStatus\x12@\x0A\x05state\x18\x09 \x01(\x0E21.google.privacy.dlp.v2.FileStoreDataProfile.State\x12:\x0A\x16profile_last_generated\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\x12F\x0A\x13resource_visibility\x18\x0B \x01(\x0E2).google.privacy.dlp.v2.ResourceVisibility\x12B\x0A\x11sensitivity_score\x18\x0C \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x0D \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12/\x0A\x0Bcreate_time\x18\x0E \x01(\x0B2\x1A.google.protobuf.Timestamp\x126\x0A\x12last_modified_time\x18\x0F \x01(\x0B2\x1A.google.protobuf.Timestamp\x12I\x0A\x16file_cluster_summaries\x18\x10 \x03(\x0B2).google.privacy.dlp.v2.FileClusterSummary\x12`\x0A\x13resource_attributes\x18\x11 \x03(\x0B2C.google.privacy.dlp.v2.FileStoreDataProfile.ResourceAttributesEntry\x12X\x0A\x0Fresource_labels\x18\x12 \x03(\x0B2?.google.privacy.dlp.v2.FileStoreDataProfile.ResourceLabelsEntry\x12W\x0A\x1Efile_store_info_type_summaries\x18\x15 \x03(\x0B2/.google.privacy.dlp.v2.FileStoreInfoTypeSummary\x12C\x0A\x15sample_findings_table\x18\x16 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12\x1B\x0A\x13file_store_is_empty\x18\x17 \x01(\x08\x12(\x0A\x04tags\x18\x19 \x03(\x0B2\x1A.google.privacy.dlp.v2.Tag\x12A\x0A\x11related_resources\x18\x1A \x03(\x0B2&.google.privacy.dlp.v2.RelatedResource\x12.\x0A\x07domains\x18\x1B \x03(\x0B2\x1D.google.privacy.dlp.v2.Domain\x1AW\x0A\x17ResourceAttributesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12+\x0A\x05value\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value:\x028\x01\x1A5\x0A\x13ResourceLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"5\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x08\x0A\x04DONE\x10\x02:\xE9\x01\xEAA\xE5\x01\x0A'dlp.googleapis.com/FileStoreDataProfile\x12aorganizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}\x12Wprojects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}\"?\x0A\x03Tag\x12\x1C\x0A\x14namespaced_tag_value\x18\x01 \x01(\x09\x12\x0B\x0A\x03key\x18\x02 \x01(\x09\x12\x0D\x0A\x05value\x18\x03 \x01(\x09\"H\x0A\x0ATagFilters\x12:\x0A\x0Btag_filters\x18\x01 \x03(\x0B2 .google.privacy.dlp.v2.TagFilterB\x03\xE0A\x02\"S\x0A\x09TagFilter\x12\x1E\x0A\x14namespaced_tag_value\x18\x01 \x01(\x09H\x00\x12\x1C\x0A\x12namespaced_tag_key\x18\x02 \x01(\x09H\x00B\x08\x0A\x06format\"(\x0A\x0FRelatedResource\x12\x15\x0A\x0Dfull_resource\x18\x01 \x01(\x09\"N\x0A\x18FileStoreInfoTypeSummary\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\"+\x0A\x11FileExtensionInfo\x12\x16\x0A\x0Efile_extension\x18\x01 \x01(\x09\"\x8C\x04\x0A\x12FileClusterSummary\x12A\x0A\x11file_cluster_type\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.FileClusterType\x12W\x0A\x1Efile_store_info_type_summaries\x18\x02 \x03(\x0B2/.google.privacy.dlp.v2.FileStoreInfoTypeSummary\x12B\x0A\x11sensitivity_score\x18\x03 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x04 \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12,\x0A\x06errors\x18\x06 \x03(\x0B2\x1C.google.privacy.dlp.v2.Error\x12I\x0A\x17file_extensions_scanned\x18\x07 \x03(\x0B2(.google.privacy.dlp.v2.FileExtensionInfo\x12F\x0A\x14file_extensions_seen\x18\x08 \x03(\x0B2(.google.privacy.dlp.v2.FileExtensionInfo\x12\x16\x0A\x0Eno_files_exist\x18\x09 \x01(\x08\"[\x0A\x1CGetProjectDataProfileRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/ProjectDataProfile\"]\x0A\x1EGetFileStoreDataProfileRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/ProjectDataProfile\"\xC0\x01\x0A ListFileStoreDataProfilesRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'dlp.googleapis.com/FileStoreDataProfile\x12\x17\x0A\x0Apage_token\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x8B\x01\x0A!ListFileStoreDataProfilesResponse\x12M\x0A\x18file_store_data_profiles\x18\x01 \x03(\x0B2+.google.privacy.dlp.v2.FileStoreDataProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"b\x0A!DeleteFileStoreDataProfileRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'dlp.googleapis.com/FileStoreDataProfile\"W\x0A\x1AGetTableDataProfileRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dlp.googleapis.com/TableDataProfile\"Y\x0A\x1BGetColumnDataProfileRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dlp.googleapis.com/ColumnDataProfile\"\xEA\x05\x0A\x1ADataProfilePubSubCondition\x12X\x0A\x0Bexpressions\x18\x01 \x01(\x0B2C.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions\x1A\xE9\x01\x0A\x0FPubSubCondition\x12b\x0A\x12minimum_risk_score\x18\x01 \x01(\x0E2D.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucketH\x00\x12i\x0A\x19minimum_sensitivity_score\x18\x02 \x01(\x0E2D.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucketH\x00B\x07\x0A\x05value\x1A\xAB\x02\x0A\x11PubSubExpressions\x12s\x0A\x10logical_operator\x18\x01 \x01(\x0E2Y.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator\x12U\x0A\x0Aconditions\x18\x02 \x03(\x0B2A.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition\"J\x0A\x15PubSubLogicalOperator\x12 \x0A\x1CLOGICAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x06\x0A\x02OR\x10\x01\x12\x07\x0A\x03AND\x10\x02\"X\x0A\x12ProfileScoreBucket\x12\$\x0A PROFILE_SCORE_BUCKET_UNSPECIFIED\x10\x00\x12\x08\x0A\x04HIGH\x10\x01\x12\x12\x0A\x0EMEDIUM_OR_HIGH\x10\x02\"\xE0\x01\x0A\x18DataProfilePubSubMessage\x128\x0A\x07profile\x18\x01 \x01(\x0B2'.google.privacy.dlp.v2.TableDataProfile\x12G\x0A\x12file_store_profile\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.FileStoreDataProfile\x12A\x0A\x05event\x18\x02 \x01(\x0E22.google.privacy.dlp.v2.DataProfileAction.EventType\"\x8C\x01\x0A\x17CreateConnectionRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/Connection\x12:\x0A\x0Aconnection\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.ConnectionB\x03\xE0A\x02\"K\x0A\x14GetConnectionRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/Connection\"\x95\x01\x0A\x16ListConnectionsRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/Connection\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x97\x01\x0A\x18SearchConnectionsRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/Connection\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"j\x0A\x17ListConnectionsResponse\x126\x0A\x0Bconnections\x18\x01 \x03(\x0B2!.google.privacy.dlp.v2.Connection\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"l\x0A\x19SearchConnectionsResponse\x126\x0A\x0Bconnections\x18\x01 \x03(\x0B2!.google.privacy.dlp.v2.Connection\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xC0\x01\x0A\x17UpdateConnectionRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/Connection\x12:\x0A\x0Aconnection\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.ConnectionB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"N\x0A\x17DeleteConnectionRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/Connection\"\x90\x03\x0A\x0AConnection\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12:\x0A\x05state\x18\x02 \x01(\x0E2&.google.privacy.dlp.v2.ConnectionStateB\x03\xE0A\x02\x121\x0A\x06errors\x18\x03 \x03(\x0B2\x1C.google.privacy.dlp.v2.ErrorB\x03\xE0A\x03\x12>\x0A\x09cloud_sql\x18\x04 \x01(\x0B2).google.privacy.dlp.v2.CloudSqlPropertiesH\x00:\xB1\x01\xEAA\xAD\x01\x0A\x1Ddlp.googleapis.com/Connection\x12@projects/{project}/locations/{location}/connections/{connection}\x12Jorganizations/{organization}/locations/{location}/connections/{connection}B\x0C\x0A\x0Aproperties\"[\x0A\x17SecretManagerCredential\x12\x15\x0A\x08username\x18\x01 \x01(\x09B\x03\xE0A\x02\x12)\x0A\x1Cpassword_secret_version_name\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x17\x0A\x15CloudSqlIamCredential\"\xB5\x03\x0A\x12CloudSqlProperties\x12\x1F\x0A\x0Fconnection_name\x18\x01 \x01(\x09B\x06\xE0A\x05\xE0A\x01\x12K\x0A\x11username_password\x18\x02 \x01(\x0B2..google.privacy.dlp.v2.SecretManagerCredentialH\x00\x12E\x0A\x0Dcloud_sql_iam\x18\x03 \x01(\x0B2,.google.privacy.dlp.v2.CloudSqlIamCredentialH\x00\x12\x1C\x0A\x0Fmax_connections\x18\x04 \x01(\x05B\x03\xE0A\x02\x12V\x0A\x0Fdatabase_engine\x18\x07 \x01(\x0E28.google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngineB\x03\xE0A\x02\"f\x0A\x0EDatabaseEngine\x12\x1B\x0A\x17DATABASE_ENGINE_UNKNOWN\x10\x00\x12\x19\x0A\x15DATABASE_ENGINE_MYSQL\x10\x01\x12\x1C\x0A\x18DATABASE_ENGINE_POSTGRES\x10\x02B\x0C\x0A\x0Acredential\"Z\x0A\x1DDeleteTableDataProfileRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dlp.googleapis.com/TableDataProfile\"%\x0A\x0EDataSourceType\x12\x13\x0A\x0Bdata_source\x18\x01 \x01(\x09\"\xF4\x02\x0A\x0FFileClusterType\x12A\x0A\x07cluster\x18\x01 \x01(\x0E2..google.privacy.dlp.v2.FileClusterType.ClusterH\x00\"\x88\x02\x0A\x07Cluster\x12\x17\x0A\x13CLUSTER_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FCLUSTER_UNKNOWN\x10\x01\x12\x10\x0A\x0CCLUSTER_TEXT\x10\x02\x12\x1B\x0A\x17CLUSTER_STRUCTURED_DATA\x10\x03\x12\x17\x0A\x13CLUSTER_SOURCE_CODE\x10\x04\x12\x19\x0A\x15CLUSTER_RICH_DOCUMENT\x10\x05\x12\x11\x0A\x0DCLUSTER_IMAGE\x10\x06\x12\x13\x0A\x0FCLUSTER_ARCHIVE\x10\x07\x12\x16\x0A\x12CLUSTER_MULTIMEDIA\x10\x08\x12\x16\x0A\x12CLUSTER_EXECUTABLE\x10\x09\x12\x14\x0A\x10CLUSTER_AI_MODEL\x10\x0AB\x13\x0A\x11file_cluster_type\"\xB6\x05\x0A\x12ProcessingLocation\x12`\x0A\x17image_fallback_location\x18\x01 \x01(\x0B2?.google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation\x12f\x0A\x1Adocument_fallback_location\x18\x02 \x01(\x0B2B.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation\x1A\x17\x0A\x15MultiRegionProcessing\x1A\x12\x0A\x10GlobalProcessing\x1A\xD1\x01\x0A\x15ImageFallbackLocation\x12`\x0A\x17multi_region_processing\x18d \x01(\x0B2?.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing\x12V\x0A\x11global_processing\x18\xC8\x01 \x01(\x0B2:.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing\x1A\xD4\x01\x0A\x18DocumentFallbackLocation\x12`\x0A\x17multi_region_processing\x18d \x01(\x0B2?.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing\x12V\x0A\x11global_processing\x18\xC8\x01 \x01(\x0B2:.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing\"K\x0A\x17SaveToGcsFindingsOutput\x120\x0A\x08findings\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.Finding\"\xC6\x02\x0A\x06Domain\x128\x0A\x08category\x18\x01 \x01(\x0E2&.google.privacy.dlp.v2.Domain.Category\x125\x0A\x07signals\x18\x02 \x03(\x0E2\$.google.privacy.dlp.v2.Domain.Signal\"6\x0A\x08Category\x12\x18\x0A\x14CATEGORY_UNSPECIFIED\x10\x00\x12\x06\x0A\x02AI\x10\x01\x12\x08\x0A\x04CODE\x10\x02\"\x92\x01\x0A\x06Signal\x12\x16\x0A\x12SIGNAL_UNSPECIFIED\x10\x00\x12\x09\x0A\x05MODEL\x10\x01\x12\x12\x0A\x0ETEXT_EMBEDDING\x10\x02\x12\x0D\x0A\x09EMBEDDING\x10\x07\x12\x11\x0A\x0DVERTEX_PLUGIN\x10\x03\x12\x11\x0A\x0DVECTOR_PLUGIN\x10\x04\x12\x0F\x0A\x0BSOURCE_CODE\x10\x05\x12\x0B\x0A\x07SERVICE\x10\x06*\xA0\x01\x0A\x1ETransformationResultStatusType\x12\x1A\x0A\x16STATE_TYPE_UNSPECIFIED\x10\x00\x12\x15\x0A\x11INVALID_TRANSFORM\x10\x01\x12\"\x0A\x1EBIGQUERY_MAX_ROW_SIZE_EXCEEDED\x10\x02\x12\x1A\x0A\x16METADATA_UNRETRIEVABLE\x10\x03\x12\x0B\x0A\x07SUCCESS\x10\x04*\x7F\x0A\x1BTransformationContainerType\x12\x1F\x0A\x1BTRANSFORM_UNKNOWN_CONTAINER\x10\x00\x12\x12\x0A\x0ETRANSFORM_BODY\x10\x01\x12\x16\x0A\x12TRANSFORM_METADATA\x10\x02\x12\x13\x0A\x0FTRANSFORM_TABLE\x10\x03*\xE0\x02\x0A\x12TransformationType\x12#\x0A\x1FTRANSFORMATION_TYPE_UNSPECIFIED\x10\x00\x12\x16\x0A\x12RECORD_SUPPRESSION\x10\x01\x12\x11\x0A\x0DREPLACE_VALUE\x10\x02\x12\x16\x0A\x12REPLACE_DICTIONARY\x10\x0F\x12\x0A\x0A\x06REDACT\x10\x03\x12\x12\x0A\x0ECHARACTER_MASK\x10\x04\x12\x1A\x0A\x16CRYPTO_REPLACE_FFX_FPE\x10\x05\x12\x18\x0A\x14FIXED_SIZE_BUCKETING\x10\x06\x12\x0D\x0A\x09BUCKETING\x10\x07\x12\x1A\x0A\x16REPLACE_WITH_INFO_TYPE\x10\x08\x12\x0D\x0A\x09TIME_PART\x10\x09\x12\x0F\x0A\x0BCRYPTO_HASH\x10\x0A\x12\x0E\x0A\x0ADATE_SHIFT\x10\x0C\x12\x1F\x0A\x1BCRYPTO_DETERMINISTIC_CONFIG\x10\x0D\x12\x10\x0A\x0CREDACT_IMAGE\x10\x0E*r\x0A\x11ProfileGeneration\x12\"\x0A\x1EPROFILE_GENERATION_UNSPECIFIED\x10\x00\x12\x1A\x0A\x16PROFILE_GENERATION_NEW\x10\x01\x12\x1D\x0A\x19PROFILE_GENERATION_UPDATE\x10\x02*\x96\x01\x0A\x1BBigQueryTableTypeCollection\x12\$\x0A BIG_QUERY_COLLECTION_UNSPECIFIED\x10\x00\x12\"\x0A\x1EBIG_QUERY_COLLECTION_ALL_TYPES\x10\x01\x12-\x0A)BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES\x10\x02*\xA8\x01\x0A\x11BigQueryTableType\x12\$\x0A BIG_QUERY_TABLE_TYPE_UNSPECIFIED\x10\x00\x12\x1E\x0A\x1ABIG_QUERY_TABLE_TYPE_TABLE\x10\x01\x12*\x0A&BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE\x10\x02\x12!\x0A\x1DBIG_QUERY_TABLE_TYPE_SNAPSHOT\x10\x03*\x94\x01\x0A\x1ADataProfileUpdateFrequency\x12 \x0A\x1CUPDATE_FREQUENCY_UNSPECIFIED\x10\x00\x12\x1A\x0A\x16UPDATE_FREQUENCY_NEVER\x10\x01\x12\x1A\x0A\x16UPDATE_FREQUENCY_DAILY\x10\x02\x12\x1C\x0A\x18UPDATE_FREQUENCY_MONTHLY\x10\x04*]\x0A\x19BigQueryTableModification\x12\"\x0A\x1ETABLE_MODIFICATION_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18TABLE_MODIFIED_TIMESTAMP\x10\x01*u\x0A\x1ABigQuerySchemaModification\x12#\x0A\x1FSCHEMA_MODIFICATION_UNSPECIFIED\x10\x00\x12\x16\x0A\x12SCHEMA_NEW_COLUMNS\x10\x01\x12\x1A\x0A\x16SCHEMA_REMOVED_COLUMNS\x10\x02*\xBB\x01\x0A\x12RelationalOperator\x12#\x0A\x1FRELATIONAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08EQUAL_TO\x10\x01\x12\x10\x0A\x0CNOT_EQUAL_TO\x10\x02\x12\x10\x0A\x0CGREATER_THAN\x10\x03\x12\x0D\x0A\x09LESS_THAN\x10\x04\x12\x1A\x0A\x16GREATER_THAN_OR_EQUALS\x10\x05\x12\x17\x0A\x13LESS_THAN_OR_EQUALS\x10\x06\x12\x0A\x0A\x06EXISTS\x10\x07*\xAE\x01\x0A\x0CMatchingType\x12\x1D\x0A\x19MATCHING_TYPE_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18MATCHING_TYPE_FULL_MATCH\x10\x01\x12\x1F\x0A\x1BMATCHING_TYPE_PARTIAL_MATCH\x10\x02\x12\x1F\x0A\x1BMATCHING_TYPE_INVERSE_MATCH\x10\x03\x12\x1F\x0A\x1BMATCHING_TYPE_RULE_SPECIFIC\x10\x04*M\x0A\x0DContentOption\x12\x17\x0A\x13CONTENT_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CCONTENT_TEXT\x10\x01\x12\x11\x0A\x0DCONTENT_IMAGE\x10\x02*v\x0A\x0CMetadataType\x12\x1C\x0A\x18METADATATYPE_UNSPECIFIED\x10\x00\x12\x14\x0A\x10STORAGE_METADATA\x10\x02\x12\x14\x0A\x10CONTENT_METADATA\x10\x03\x12\x1C\x0A\x18CLIENT_PROVIDED_METADATA\x10\x04*P\x0A\x13InfoTypeSupportedBy\x12\x19\x0A\x15ENUM_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07INSPECT\x10\x01\x12\x11\x0A\x0DRISK_ANALYSIS\x10\x02*R\x0A\x0ADlpJobType\x12\x1C\x0A\x18DLP_JOB_TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINSPECT_JOB\x10\x01\x12\x15\x0A\x11RISK_ANALYSIS_JOB\x10\x02*n\x0A\x13StoredInfoTypeState\x12&\x0A\"STORED_INFO_TYPE_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PENDING\x10\x01\x12\x09\x0A\x05READY\x10\x02\x12\x0A\x0A\x06FAILED\x10\x03\x12\x0B\x0A\x07INVALID\x10\x04*\xA3\x01\x0A\x12ResourceVisibility\x12#\x0A\x1FRESOURCE_VISIBILITY_UNSPECIFIED\x10\x00\x12\x1E\x0A\x1ARESOURCE_VISIBILITY_PUBLIC\x10\x0A\x12\$\x0A RESOURCE_VISIBILITY_INCONCLUSIVE\x10\x0F\x12\"\x0A\x1ERESOURCE_VISIBILITY_RESTRICTED\x10\x14*u\x0A\x10EncryptionStatus\x12!\x0A\x1DENCRYPTION_STATUS_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19ENCRYPTION_GOOGLE_MANAGED\x10\x01\x12\x1F\x0A\x1BENCRYPTION_CUSTOMER_MANAGED\x10\x02*\xA9\x01\x0A\x13NullPercentageLevel\x12%\x0A!NULL_PERCENTAGE_LEVEL_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18NULL_PERCENTAGE_VERY_LOW\x10\x01\x12\x17\x0A\x13NULL_PERCENTAGE_LOW\x10\x02\x12\x1A\x0A\x16NULL_PERCENTAGE_MEDIUM\x10\x03\x12\x18\x0A\x14NULL_PERCENTAGE_HIGH\x10\x04*\x90\x01\x0A\x14UniquenessScoreLevel\x12&\x0A\"UNIQUENESS_SCORE_LEVEL_UNSPECIFIED\x10\x00\x12\x18\x0A\x14UNIQUENESS_SCORE_LOW\x10\x01\x12\x1B\x0A\x17UNIQUENESS_SCORE_MEDIUM\x10\x02\x12\x19\x0A\x15UNIQUENESS_SCORE_HIGH\x10\x03*f\x0A\x0FConnectionState\x12 \x0A\x1CCONNECTION_STATE_UNSPECIFIED\x10\x00\x12\x17\x0A\x13MISSING_CREDENTIALS\x10\x01\x12\x0D\x0A\x09AVAILABLE\x10\x02\x12\x09\x0A\x05ERROR\x10\x032\xDDv\x0A\x0ADlpService\x12\xDB\x01\x0A\x0EInspectContent\x12,.google.privacy.dlp.v2.InspectContentRequest\x1A-.google.privacy.dlp.v2.InspectContentResponse\"l\x82\xD3\xE4\x93\x02f\"'/v2/{parent=projects/*}/content:inspect:\x01*Z8\"3/v2/{parent=projects/*/locations/*}/content:inspect:\x01*\x12\xCC\x01\x0A\x0BRedactImage\x12).google.privacy.dlp.v2.RedactImageRequest\x1A*.google.privacy.dlp.v2.RedactImageResponse\"f\x82\xD3\xE4\x93\x02`\"\$/v2/{parent=projects/*}/image:redact:\x01*Z5\"0/v2/{parent=projects/*/locations/*}/image:redact:\x01*\x12\xEA\x01\x0A\x11DeidentifyContent\x12/.google.privacy.dlp.v2.DeidentifyContentRequest\x1A0.google.privacy.dlp.v2.DeidentifyContentResponse\"r\x82\xD3\xE4\x93\x02l\"*/v2/{parent=projects/*}/content:deidentify:\x01*Z;\"6/v2/{parent=projects/*/locations/*}/content:deidentify:\x01*\x12\xEA\x01\x0A\x11ReidentifyContent\x12/.google.privacy.dlp.v2.ReidentifyContentRequest\x1A0.google.privacy.dlp.v2.ReidentifyContentResponse\"r\x82\xD3\xE4\x93\x02l\"*/v2/{parent=projects/*}/content:reidentify:\x01*Z;\"6/v2/{parent=projects/*/locations/*}/content:reidentify:\x01*\x12\x99\x02\x0A\x0DListInfoTypes\x12+.google.privacy.dlp.v2.ListInfoTypesRequest\x1A,.google.privacy.dlp.v2.ListInfoTypesResponse\"\xAC\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\x9C\x01\x12\x0D/v2/infoTypesZ\$\x12\"/v2/{parent=locations/*}/infoTypesZ/\x12-/v2/{parent=projects/*/locations/*}/infoTypesZ4\x122/v2/{parent=organizations/*/locations/*}/infoTypes\x12\xF4\x02\x0A\x15CreateInspectTemplate\x123.google.privacy.dlp.v2.CreateInspectTemplateRequest\x1A&.google.privacy.dlp.v2.InspectTemplate\"\xFD\x01\xDAA\x17parent,inspect_template\x82\xD3\xE4\x93\x02\xDC\x01\"4/v2/{parent=projects/*/locations/*}/inspectTemplates:\x01*Z>\"9/v2/{parent=organizations/*/locations/*}/inspectTemplates:\x01*Z-\"(/v2/{parent=projects/*}/inspectTemplates:\x01*Z2\"-/v2/{parent=organizations/*}/inspectTemplates:\x01*\x12\xFE\x02\x0A\x15UpdateInspectTemplate\x123.google.privacy.dlp.v2.UpdateInspectTemplateRequest\x1A&.google.privacy.dlp.v2.InspectTemplate\"\x87\x02\xDAA!name,inspect_template,update_mask\x82\xD3\xE4\x93\x02\xDC\x0124/v2/{name=projects/*/locations/*/inspectTemplates/*}:\x01*Z>29/v2/{name=organizations/*/locations/*/inspectTemplates/*}:\x01*Z-2(/v2/{name=projects/*/inspectTemplates/*}:\x01*Z22-/v2/{name=organizations/*/inspectTemplates/*}:\x01*\x12\xCF\x02\x0A\x12GetInspectTemplate\x120.google.privacy.dlp.v2.GetInspectTemplateRequest\x1A&.google.privacy.dlp.v2.InspectTemplate\"\xDE\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xD0\x01\x124/v2/{name=projects/*/locations/*/inspectTemplates/*}Z;\x129/v2/{name=organizations/*/locations/*/inspectTemplates/*}Z*\x12(/v2/{name=projects/*/inspectTemplates/*}Z/\x12-/v2/{name=organizations/*/inspectTemplates/*}\x12\xE2\x02\x0A\x14ListInspectTemplates\x122.google.privacy.dlp.v2.ListInspectTemplatesRequest\x1A3.google.privacy.dlp.v2.ListInspectTemplatesResponse\"\xE0\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xD0\x01\x124/v2/{parent=projects/*/locations/*}/inspectTemplatesZ;\x129/v2/{parent=organizations/*/locations/*}/inspectTemplatesZ*\x12(/v2/{parent=projects/*}/inspectTemplatesZ/\x12-/v2/{parent=organizations/*}/inspectTemplates\x12\xC5\x02\x0A\x15DeleteInspectTemplate\x123.google.privacy.dlp.v2.DeleteInspectTemplateRequest\x1A\x16.google.protobuf.Empty\"\xDE\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xD0\x01*4/v2/{name=projects/*/locations/*/inspectTemplates/*}Z;*9/v2/{name=organizations/*/locations/*/inspectTemplates/*}Z**(/v2/{name=projects/*/inspectTemplates/*}Z/*-/v2/{name=organizations/*/inspectTemplates/*}\x12\x8C\x03\x0A\x18CreateDeidentifyTemplate\x126.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest\x1A).google.privacy.dlp.v2.DeidentifyTemplate\"\x8C\x02\xDAA\x1Aparent,deidentify_template\x82\xD3\xE4\x93\x02\xE8\x01\"0/v2/{parent=organizations/*}/deidentifyTemplates:\x01*ZA\"\x12\x12*\"9/v2/{parent=organizations/*/locations/*}/discoveryConfigs:\x01*\x12\x9A\x02\x0A\x15UpdateDiscoveryConfig\x123.google.privacy.dlp.v2.UpdateDiscoveryConfigRequest\x1A&.google.privacy.dlp.v2.DiscoveryConfig\"\xA3\x01\xDAA!name,discovery_config,update_mask\x82\xD3\xE4\x93\x02y24/v2/{name=projects/*/locations/*/discoveryConfigs/*}:\x01*Z>29/v2/{name=organizations/*/locations/*/discoveryConfigs/*}:\x01*\x12\xF1\x01\x0A\x12GetDiscoveryConfig\x120.google.privacy.dlp.v2.GetDiscoveryConfigRequest\x1A&.google.privacy.dlp.v2.DiscoveryConfig\"\x80\x01\xDAA\x04name\x82\xD3\xE4\x93\x02s\x124/v2/{name=projects/*/locations/*/discoveryConfigs/*}Z;\x129/v2/{name=organizations/*/locations/*/discoveryConfigs/*}\x12\x84\x02\x0A\x14ListDiscoveryConfigs\x122.google.privacy.dlp.v2.ListDiscoveryConfigsRequest\x1A3.google.privacy.dlp.v2.ListDiscoveryConfigsResponse\"\x82\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02s\x124/v2/{parent=projects/*/locations/*}/discoveryConfigsZ;\x129/v2/{parent=organizations/*/locations/*}/discoveryConfigs\x12\xE7\x01\x0A\x15DeleteDiscoveryConfig\x123.google.privacy.dlp.v2.DeleteDiscoveryConfigRequest\x1A\x16.google.protobuf.Empty\"\x80\x01\xDAA\x04name\x82\xD3\xE4\x93\x02s*4/v2/{name=projects/*/locations/*/discoveryConfigs/*}Z;*9/v2/{name=organizations/*/locations/*/discoveryConfigs/*}\x12\xDF\x01\x0A\x0CCreateDlpJob\x12*.google.privacy.dlp.v2.CreateDlpJobRequest\x1A\x1D.google.privacy.dlp.v2.DlpJob\"\x83\x01\xDAA\x12parent,inspect_job\xDAA\x0Fparent,risk_job\x82\xD3\xE4\x93\x02V\"\x1F/v2/{parent=projects/*}/dlpJobs:\x01*Z0\"+/v2/{parent=projects/*/locations/*}/dlpJobs:\x01*\x12\xFB\x01\x0A\x0BListDlpJobs\x12).google.privacy.dlp.v2.ListDlpJobsRequest\x1A*.google.privacy.dlp.v2.ListDlpJobsResponse\"\x94\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\x84\x01\x12\x1F/v2/{parent=projects/*}/dlpJobsZ-\x12+/v2/{parent=projects/*/locations/*}/dlpJobsZ2\x120/v2/{parent=organizations/*/locations/*}/dlpJobs\x12\xB2\x01\x0A\x09GetDlpJob\x12'.google.privacy.dlp.v2.GetDlpJobRequest\x1A\x1D.google.privacy.dlp.v2.DlpJob\"]\xDAA\x04name\x82\xD3\xE4\x93\x02P\x12\x1F/v2/{name=projects/*/dlpJobs/*}Z-\x12+/v2/{name=projects/*/locations/*/dlpJobs/*}\x12\xB1\x01\x0A\x0CDeleteDlpJob\x12*.google.privacy.dlp.v2.DeleteDlpJobRequest\x1A\x16.google.protobuf.Empty\"]\xDAA\x04name\x82\xD3\xE4\x93\x02P*\x1F/v2/{name=projects/*/dlpJobs/*}Z-*+/v2/{name=projects/*/locations/*/dlpJobs/*}\x12\xBE\x01\x0A\x0CCancelDlpJob\x12*.google.privacy.dlp.v2.CancelDlpJobRequest\x1A\x16.google.protobuf.Empty\"j\x82\xD3\xE4\x93\x02d\"&/v2/{name=projects/*/dlpJobs/*}:cancel:\x01*Z7\"2/v2/{name=projects/*/locations/*/dlpJobs/*}:cancel:\x01*\x12\xE3\x02\x0A\x14CreateStoredInfoType\x122.google.privacy.dlp.v2.CreateStoredInfoTypeRequest\x1A%.google.privacy.dlp.v2.StoredInfoType\"\xEF\x01\xDAA\x0Dparent,config\x82\xD3\xE4\x93\x02\xD8\x01\",/v2/{parent=organizations/*}/storedInfoTypes:\x01*Z=\"8/v2/{parent=organizations/*/locations/*}/storedInfoTypes:\x01*Z,\"'/v2/{parent=projects/*}/storedInfoTypes:\x01*Z8\"3/v2/{parent=projects/*/locations/*}/storedInfoTypes:\x01*\x12\xED\x02\x0A\x14UpdateStoredInfoType\x122.google.privacy.dlp.v2.UpdateStoredInfoTypeRequest\x1A%.google.privacy.dlp.v2.StoredInfoType\"\xF9\x01\xDAA\x17name,config,update_mask\x82\xD3\xE4\x93\x02\xD8\x012,/v2/{name=organizations/*/storedInfoTypes/*}:\x01*Z=28/v2/{name=organizations/*/locations/*/storedInfoTypes/*}:\x01*Z,2'/v2/{name=projects/*/storedInfoTypes/*}:\x01*Z823/v2/{name=projects/*/locations/*/storedInfoTypes/*}:\x01*\x12\xC8\x02\x0A\x11GetStoredInfoType\x12/.google.privacy.dlp.v2.GetStoredInfoTypeRequest\x1A%.google.privacy.dlp.v2.StoredInfoType\"\xDA\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xCC\x01\x12,/v2/{name=organizations/*/storedInfoTypes/*}Z:\x128/v2/{name=organizations/*/locations/*/storedInfoTypes/*}Z)\x12'/v2/{name=projects/*/storedInfoTypes/*}Z5\x123/v2/{name=projects/*/locations/*/storedInfoTypes/*}\x12\xDB\x02\x0A\x13ListStoredInfoTypes\x121.google.privacy.dlp.v2.ListStoredInfoTypesRequest\x1A2.google.privacy.dlp.v2.ListStoredInfoTypesResponse\"\xDC\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xCC\x01\x12,/v2/{parent=organizations/*}/storedInfoTypesZ:\x128/v2/{parent=organizations/*/locations/*}/storedInfoTypesZ)\x12'/v2/{parent=projects/*}/storedInfoTypesZ5\x123/v2/{parent=projects/*/locations/*}/storedInfoTypes\x12\xBF\x02\x0A\x14DeleteStoredInfoType\x122.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest\x1A\x16.google.protobuf.Empty\"\xDA\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xCC\x01*,/v2/{name=organizations/*/storedInfoTypes/*}Z:*8/v2/{name=organizations/*/locations/*/storedInfoTypes/*}Z)*'/v2/{name=projects/*/storedInfoTypes/*}Z5*3/v2/{name=projects/*/locations/*/storedInfoTypes/*}\x12\x93\x02\x0A\x17ListProjectDataProfiles\x125.google.privacy.dlp.v2.ListProjectDataProfilesRequest\x1A6.google.privacy.dlp.v2.ListProjectDataProfilesResponse\"\x88\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02y\x12/v2/{parent=organizations/*/locations/*}/fileStoreDataProfilesZ;\x129/v2/{parent=projects/*/locations/*}/fileStoreDataProfiles\x12\x8A\x02\x0A\x17GetFileStoreDataProfile\x125.google.privacy.dlp.v2.GetFileStoreDataProfileRequest\x1A+.google.privacy.dlp.v2.FileStoreDataProfile\"\x8A\x01\xDAA\x04name\x82\xD3\xE4\x93\x02}\x12>/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}Z;\x129/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}\x12\xFB\x01\x0A\x1ADeleteFileStoreDataProfile\x128.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest\x1A\x16.google.protobuf.Empty\"\x8A\x01\xDAA\x04name\x82\xD3\xE4\x93\x02}*>/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}Z;*9/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}\x12\xF6\x01\x0A\x13GetTableDataProfile\x121.google.privacy.dlp.v2.GetTableDataProfileRequest\x1A'.google.privacy.dlp.v2.TableDataProfile\"\x82\x01\xDAA\x04name\x82\xD3\xE4\x93\x02u\x12:/v2/{name=organizations/*/locations/*/tableDataProfiles/*}Z7\x125/v2/{name=projects/*/locations/*/tableDataProfiles/*}\x12\xFB\x01\x0A\x14GetColumnDataProfile\x122.google.privacy.dlp.v2.GetColumnDataProfileRequest\x1A(.google.privacy.dlp.v2.ColumnDataProfile\"\x84\x01\xDAA\x04name\x82\xD3\xE4\x93\x02w\x12;/v2/{name=organizations/*/locations/*/columnDataProfiles/*}Z8\x126/v2/{name=projects/*/locations/*/columnDataProfiles/*}\x12\xEB\x01\x0A\x16DeleteTableDataProfile\x124.google.privacy.dlp.v2.DeleteTableDataProfileRequest\x1A\x16.google.protobuf.Empty\"\x82\x01\xDAA\x04name\x82\xD3\xE4\x93\x02u*:/v2/{name=organizations/*/locations/*/tableDataProfiles/*}Z7*5/v2/{name=projects/*/locations/*/tableDataProfiles/*}\x12\xC3\x01\x0A\x13HybridInspectDlpJob\x121.google.privacy.dlp.v2.HybridInspectDlpJobRequest\x1A,.google.privacy.dlp.v2.HybridInspectResponse\"K\xDAA\x04name\x82\xD3\xE4\x93\x02>\"9/v2/{name=projects/*/locations/*/dlpJobs/*}:hybridInspect:\x01*\x12\x91\x01\x0A\x0CFinishDlpJob\x12*.google.privacy.dlp.v2.FinishDlpJobRequest\x1A\x16.google.protobuf.Empty\"=\x82\xD3\xE4\x93\x027\"2/v2/{name=projects/*/locations/*/dlpJobs/*}:finish:\x01*\x12\xF2\x01\x0A\x10CreateConnection\x12..google.privacy.dlp.v2.CreateConnectionRequest\x1A!.google.privacy.dlp.v2.Connection\"\x8A\x01\xDAA\x12parent, connection\x82\xD3\xE4\x93\x02o\"//v2/{parent=projects/*/locations/*}/connections:\x01*Z9\"4/v2/{parent=organizations/*/locations/*}/connections:\x01*\x12\xD7\x01\x0A\x0DGetConnection\x12+.google.privacy.dlp.v2.GetConnectionRequest\x1A!.google.privacy.dlp.v2.Connection\"v\xDAA\x04name\x82\xD3\xE4\x93\x02i\x12//v2/{name=projects/*/locations/*/connections/*}Z6\x124/v2/{name=organizations/*/locations/*/connections/*}\x12\xEA\x01\x0A\x0FListConnections\x12-.google.privacy.dlp.v2.ListConnectionsRequest\x1A..google.privacy.dlp.v2.ListConnectionsResponse\"x\xDAA\x06parent\x82\xD3\xE4\x93\x02i\x12//v2/{parent=projects/*/locations/*}/connectionsZ6\x124/v2/{parent=organizations/*/locations/*}/connections\x12\xFF\x01\x0A\x11SearchConnections\x12/.google.privacy.dlp.v2.SearchConnectionsRequest\x1A0.google.privacy.dlp.v2.SearchConnectionsResponse\"\x86\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02w\x126/v2/{parent=projects/*/locations/*}/connections:searchZ=\x12;/v2/{parent=organizations/*/locations/*}/connections:search\x12\xD2\x01\x0A\x10DeleteConnection\x12..google.privacy.dlp.v2.DeleteConnectionRequest\x1A\x16.google.protobuf.Empty\"v\xDAA\x04name\x82\xD3\xE4\x93\x02i*//v2/{name=projects/*/locations/*/connections/*}Z6*4/v2/{name=organizations/*/locations/*/connections/*}\x12\xE3\x01\x0A\x10UpdateConnection\x12..google.privacy.dlp.v2.UpdateConnectionRequest\x1A!.google.privacy.dlp.v2.Connection\"|\xDAA\x04name\x82\xD3\xE4\x93\x02o2//v2/{name=projects/*/locations/*/connections/*}:\x01*Z924/v2/{name=organizations/*/locations/*/connections/*}:\x01*\x1AF\xCAA\x12dlp.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xEB\x02\x0A\x19com.google.privacy.dlp.v2B\x08DlpProtoP\x01Z)cloud.google.com/go/dlp/apiv2/dlppb;dlppb\xAA\x02\x13Google.Cloud.Dlp.V2\xCA\x02\x13Google\\Cloud\\Dlp\\V2\xEA\x02\x16Google::Cloud::Dlp::V2\xEAAr\x0A\x1Ddlp.googleapis.com/DlpContent\x12\x1Dprojects/{project}/dlpContent\x122projects/{project}/locations/{location}/dlpContent\xEAA\\\x0A'dlp.googleapis.com/OrganizationLocation\x121organizations/{organization}/locations/{location}b\x06proto3" , true); static::$is_initialized = true; diff --git a/Dlp/src/V2/ContentItem.php b/Dlp/src/V2/ContentItem.php index f75a15b6efcc..fc1b431347ee 100644 --- a/Dlp/src/V2/ContentItem.php +++ b/Dlp/src/V2/ContentItem.php @@ -15,6 +15,12 @@ */ class ContentItem extends \Google\Protobuf\Internal\Message { + /** + * User provided metadata for the content. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentMetadata content_metadata = 6; + */ + protected $content_metadata = null; protected $data_item; /** @@ -31,6 +37,8 @@ class ContentItem extends \Google\Protobuf\Internal\Message * to learn more. * @type \Google\Cloud\Dlp\V2\ByteContentItem $byte_item * Content data to inspect or redact. Replaces `type` and `data`. + * @type \Google\Cloud\Dlp\V2\ContentMetadata $content_metadata + * User provided metadata for the content. * } */ public function __construct($data = NULL) { @@ -135,6 +143,42 @@ public function setByteItem($var) return $this; } + /** + * User provided metadata for the content. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentMetadata content_metadata = 6; + * @return \Google\Cloud\Dlp\V2\ContentMetadata|null + */ + public function getContentMetadata() + { + return $this->content_metadata; + } + + public function hasContentMetadata() + { + return isset($this->content_metadata); + } + + public function clearContentMetadata() + { + unset($this->content_metadata); + } + + /** + * User provided metadata for the content. + * + * Generated from protobuf field .google.privacy.dlp.v2.ContentMetadata content_metadata = 6; + * @param \Google\Cloud\Dlp\V2\ContentMetadata $var + * @return $this + */ + public function setContentMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentMetadata::class); + $this->content_metadata = $var; + + return $this; + } + /** * @return string */ diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentMetadata.php b/Dlp/src/V2/ContentMetadata.php similarity index 100% rename from owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentMetadata.php rename to Dlp/src/V2/ContentMetadata.php diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KeyValueMetadataProperty.php b/Dlp/src/V2/KeyValueMetadataProperty.php similarity index 100% rename from owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KeyValueMetadataProperty.php rename to Dlp/src/V2/KeyValueMetadataProperty.php diff --git a/Dlp/src/V2/MetadataType.php b/Dlp/src/V2/MetadataType.php index f69c8c037970..c734f4da48df 100644 --- a/Dlp/src/V2/MetadataType.php +++ b/Dlp/src/V2/MetadataType.php @@ -31,11 +31,18 @@ class MetadataType * Generated from protobuf enum CONTENT_METADATA = 3; */ const CONTENT_METADATA = 3; + /** + * Metadata provided by the client. + * + * Generated from protobuf enum CLIENT_PROVIDED_METADATA = 4; + */ + const CLIENT_PROVIDED_METADATA = 4; private static $valueToName = [ self::METADATATYPE_UNSPECIFIED => 'METADATATYPE_UNSPECIFIED', self::STORAGE_METADATA => 'STORAGE_METADATA', self::CONTENT_METADATA => 'CONTENT_METADATA', + self::CLIENT_PROVIDED_METADATA => 'CLIENT_PROVIDED_METADATA', ]; public static function name($value) diff --git a/owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Dlp.php b/owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Dlp.php deleted file mode 100644 index 12a2f070d63c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Dlp.php +++ /dev/null @@ -1,37 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xCC\xBC\x05\x0A\x1Fgoogle/privacy/dlp/v2/dlp.proto\x12\x15google.privacy.dlp.v2\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A#google/privacy/dlp/v2/storage.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\x1A\x16google/type/date.proto\x1A\x1Bgoogle/type/dayofweek.proto\x1A\x1Bgoogle/type/timeofday.proto\"G\x0A\x10ExcludeInfoTypes\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\"\xA8\x01\x0A\x10ExcludeByHotword\x12B\x0A\x0Dhotword_regex\x18\x01 \x01(\x0B2+.google.privacy.dlp.v2.CustomInfoType.Regex\x12P\x0A\x09proximity\x18\x02 \x01(\x0B2=.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity\"\x9A\x01\x0A\x16ExcludeByImageFindings\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12K\x0A\x16image_containment_type\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.ImageContainmentType\"\xBB\x03\x0A\x0DExclusionRule\x12F\x0A\x0Adictionary\x18\x01 \x01(\x0B20.google.privacy.dlp.v2.CustomInfoType.DictionaryH\x00\x12<\x0A\x05regex\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.CustomInfoType.RegexH\x00\x12E\x0A\x12exclude_info_types\x18\x03 \x01(\x0B2'.google.privacy.dlp.v2.ExcludeInfoTypesH\x00\x12E\x0A\x12exclude_by_hotword\x18\x05 \x01(\x0B2'.google.privacy.dlp.v2.ExcludeByHotwordH\x00\x12R\x0A\x19exclude_by_image_findings\x18\x06 \x01(\x0B2-.google.privacy.dlp.v2.ExcludeByImageFindingsH\x00\x12:\x0A\x0Dmatching_type\x18\x04 \x01(\x0E2#.google.privacy.dlp.v2.MatchingTypeB\x06\x0A\x04type\"\xC7\x01\x0A\x19AdjustByMatchingInfoTypes\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x129\x0A\x0Emin_likelihood\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x12:\x0A\x0Dmatching_type\x18\x03 \x01(\x0E2#.google.privacy.dlp.v2.MatchingType\"\xD4\x01\x0A\x15AdjustByImageFindings\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x129\x0A\x0Emin_likelihood\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x12K\x0A\x16image_containment_type\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.ImageContainmentType\"\xB4\x02\x0A\x0EAdjustmentRule\x12Y\x0A\x1Dadjust_by_matching_info_types\x18\x01 \x01(\x0B20.google.privacy.dlp.v2.AdjustByMatchingInfoTypesH\x00\x12P\x0A\x18adjust_by_image_findings\x18\x03 \x01(\x0B2,.google.privacy.dlp.v2.AdjustByImageFindingsH\x00\x12g\x0A\x15likelihood_adjustment\x18\x02 \x01(\x0B2H.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustmentB\x0C\x0A\x0Aconditions\"\xF3\x01\x0A\x0EInspectionRule\x12W\x0A\x0Chotword_rule\x18\x01 \x01(\x0B2?.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRuleH\x00\x12>\x0A\x0Eexclusion_rule\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.ExclusionRuleH\x00\x12@\x0A\x0Fadjustment_rule\x18\x03 \x01(\x0B2%.google.privacy.dlp.v2.AdjustmentRuleH\x00B\x06\x0A\x04type\"~\x0A\x11InspectionRuleSet\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x124\x0A\x05rules\x18\x02 \x03(\x0B2%.google.privacy.dlp.v2.InspectionRule\"\xAC\x07\x0A\x0DInspectConfig\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x129\x0A\x0Emin_likelihood\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x12]\x0A\x1Cmin_likelihood_per_info_type\x18\x0B \x03(\x0B27.google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood\x12B\x0A\x06limits\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.InspectConfig.FindingLimits\x12\x15\x0A\x0Dinclude_quote\x18\x04 \x01(\x08\x12\x1A\x0A\x12exclude_info_types\x18\x05 \x01(\x08\x12@\x0A\x11custom_info_types\x18\x06 \x03(\x0B2%.google.privacy.dlp.v2.CustomInfoType\x12=\x0A\x0Fcontent_options\x18\x08 \x03(\x0E2\$.google.privacy.dlp.v2.ContentOption\x12:\x0A\x08rule_set\x18\x0A \x03(\x0B2(.google.privacy.dlp.v2.InspectionRuleSet\x1A\x83\x01\x0A\x12InfoTypeLikelihood\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x129\x0A\x0Emin_likelihood\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x1A\x91\x02\x0A\x0DFindingLimits\x12\x1D\x0A\x15max_findings_per_item\x18\x01 \x01(\x05\x12 \x0A\x18max_findings_per_request\x18\x02 \x01(\x05\x12d\x0A\x1Amax_findings_per_info_type\x18\x03 \x03(\x0B2@.google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit\x1AY\x0A\x0DInfoTypeLimit\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12\x14\x0A\x0Cmax_findings\x18\x02 \x01(\x05\"\xF9\x02\x0A\x0FByteContentItem\x12>\x0A\x04type\x18\x01 \x01(\x0E20.google.privacy.dlp.v2.ByteContentItem.BytesType\x12\x0C\x0A\x04data\x18\x02 \x01(\x0C\"\x97\x02\x0A\x09BytesType\x12\x1A\x0A\x16BYTES_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05IMAGE\x10\x06\x12\x0E\x0A\x0AIMAGE_JPEG\x10\x01\x12\x0D\x0A\x09IMAGE_BMP\x10\x02\x12\x0D\x0A\x09IMAGE_PNG\x10\x03\x12\x0D\x0A\x09IMAGE_SVG\x10\x04\x12\x0D\x0A\x09TEXT_UTF8\x10\x05\x12\x11\x0A\x0DWORD_DOCUMENT\x10\x07\x12\x07\x0A\x03PDF\x10\x08\x12\x17\x0A\x13POWERPOINT_DOCUMENT\x10\x09\x12\x12\x0A\x0EEXCEL_DOCUMENT\x10\x0A\x12\x08\x0A\x04AVRO\x10\x0B\x12\x07\x0A\x03CSV\x10\x0C\x12\x07\x0A\x03TSV\x10\x0D\x12\x09\x0A\x05AUDIO\x10\x0F\x12\x09\x0A\x05VIDEO\x10\x10\x12\x0E\x0A\x0AEXECUTABLE\x10\x11\x12\x0C\x0A\x08AI_MODEL\x10\x12\"\xD9\x01\x0A\x0BContentItem\x12\x0F\x0A\x05value\x18\x03 \x01(\x09H\x00\x12-\x0A\x05table\x18\x04 \x01(\x0B2\x1C.google.privacy.dlp.v2.TableH\x00\x12;\x0A\x09byte_item\x18\x05 \x01(\x0B2&.google.privacy.dlp.v2.ByteContentItemH\x00\x12@\x0A\x10content_metadata\x18\x06 \x01(\x0B2&.google.privacy.dlp.v2.ContentMetadataB\x0B\x0A\x09data_item\"V\x0A\x0FContentMetadata\x12C\x0A\x0Aproperties\x18\x02 \x03(\x0B2/.google.privacy.dlp.v2.KeyValueMetadataProperty\"\x9D\x01\x0A\x05Table\x12/\x0A\x07headers\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12.\x0A\x04rows\x18\x02 \x03(\x0B2 .google.privacy.dlp.v2.Table.Row\x1A3\x0A\x03Row\x12,\x0A\x06values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\"6\x0A\x18KeyValueMetadataProperty\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09\"]\x0A\x0DInspectResult\x120\x0A\x08findings\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.Finding\x12\x1A\x0A\x12findings_truncated\x18\x02 \x01(\x08\"\xDF\x05\x0A\x07Finding\x12\x0C\x0A\x04name\x18\x0E \x01(\x09\x12\x0D\x0A\x05quote\x18\x01 \x01(\x09\x122\x0A\x09info_type\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x125\x0A\x0Alikelihood\x18\x03 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x121\x0A\x08location\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.Location\x12/\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x124\x0A\x0Aquote_info\x18\x07 \x01(\x0B2 .google.privacy.dlp.v2.QuoteInfo\x125\x0A\x0Dresource_name\x18\x08 \x01(\x09B\x1E\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\x128\x0A\x0Ctrigger_name\x18\x09 \x01(\x09B\"\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\x12:\x0A\x06labels\x18\x0A \x03(\x0B2*.google.privacy.dlp.v2.Finding.LabelsEntry\x123\x0A\x0Fjob_create_time\x18\x0B \x01(\x0B2\x1A.google.protobuf.Timestamp\x120\x0A\x08job_name\x18\x0D \x01(\x09B\x1E\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\x12\x12\x0A\x0Afinding_id\x18\x0F \x01(\x09\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:[\xEAAX\x0A\x1Adlp.googleapis.com/Finding\x12:projects/{project}/locations/{location}/findings/{finding}\"\xEB\x01\x0A\x08Location\x120\x0A\x0Abyte_range\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Range\x125\x0A\x0Fcodepoint_range\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.Range\x12A\x0A\x11content_locations\x18\x07 \x03(\x0B2&.google.privacy.dlp.v2.ContentLocation\x123\x0A\x09container\x18\x08 \x01(\x0B2 .google.privacy.dlp.v2.Container\"\x97\x03\x0A\x0FContentLocation\x12\x16\x0A\x0Econtainer_name\x18\x01 \x01(\x09\x12@\x0A\x0Frecord_location\x18\x02 \x01(\x0B2%.google.privacy.dlp.v2.RecordLocationH\x00\x12>\x0A\x0Eimage_location\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.ImageLocationH\x00\x12D\x0A\x11document_location\x18\x05 \x01(\x0B2'.google.privacy.dlp.v2.DocumentLocationH\x00\x12D\x0A\x11metadata_location\x18\x08 \x01(\x0B2'.google.privacy.dlp.v2.MetadataLocationH\x00\x127\x0A\x13container_timestamp\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x19\x0A\x11container_version\x18\x07 \x01(\x09B\x0A\x0A\x08location\"\xE6\x01\x0A\x10MetadataLocation\x121\x0A\x04type\x18\x01 \x01(\x0E2#.google.privacy.dlp.v2.MetadataType\x12D\x0A\x0Dstorage_label\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.StorageMetadataLabelH\x00\x12P\x0A\x18key_value_metadata_label\x18\x04 \x01(\x0B2,.google.privacy.dlp.v2.KeyValueMetadataLabelH\x00B\x07\x0A\x05label\"#\x0A\x14StorageMetadataLabel\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\"\$\x0A\x15KeyValueMetadataLabel\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\"'\x0A\x10DocumentLocation\x12\x13\x0A\x0Bfile_offset\x18\x01 \x01(\x03\"\xB6\x01\x0A\x0ERecordLocation\x124\x0A\x0Arecord_key\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.RecordKey\x120\x0A\x08field_id\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12<\x0A\x0Etable_location\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.TableLocation\"\"\x0A\x0DTableLocation\x12\x11\x0A\x09row_index\x18\x01 \x01(\x03\"\xAC\x01\x0A\x09Container\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x12\x0A\x0Aproject_id\x18\x02 \x01(\x09\x12\x11\x0A\x09full_path\x18\x03 \x01(\x09\x12\x11\x0A\x09root_path\x18\x04 \x01(\x09\x12\x15\x0A\x0Drelative_path\x18\x05 \x01(\x09\x12/\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0F\x0A\x07version\x18\x07 \x01(\x09\"#\x0A\x05Range\x12\x0D\x0A\x05start\x18\x01 \x01(\x03\x12\x0B\x0A\x03end\x18\x02 \x01(\x03\"K\x0A\x0DImageLocation\x12:\x0A\x0Ebounding_boxes\x18\x01 \x03(\x0B2\".google.privacy.dlp.v2.BoundingBox\"G\x0A\x0BBoundingBox\x12\x0B\x0A\x03top\x18\x01 \x01(\x05\x12\x0C\x0A\x04left\x18\x02 \x01(\x05\x12\x0D\x0A\x05width\x18\x03 \x01(\x05\x12\x0E\x0A\x06height\x18\x04 \x01(\x05\"\xB3\x04\x0A\x12RedactImageRequest\x122\x0A\x06parent\x18\x01 \x01(\x09B\"\xFAA\x1F\x12\x1Ddlp.googleapis.com/DlpContent\x12\x13\x0A\x0Blocation_id\x18\x08 \x01(\x09\x12<\x0A\x0Einspect_config\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x12_\x0A\x17image_redaction_configs\x18\x05 \x03(\x0B2>.google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig\x12\x18\x0A\x10include_findings\x18\x06 \x01(\x08\x129\x0A\x09byte_item\x18\x07 \x01(\x0B2&.google.privacy.dlp.v2.ByteContentItem\x12\x18\x0A\x10inspect_template\x18\x09 \x01(\x09\x12\x1B\x0A\x13deidentify_template\x18\x0A \x01(\x09\x1A\xA8\x01\x0A\x14ImageRedactionConfig\x124\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoTypeH\x00\x12\x19\x0A\x0Fredact_all_text\x18\x02 \x01(\x08H\x00\x125\x0A\x0Fredaction_color\x18\x03 \x01(\x0B2\x1C.google.privacy.dlp.v2.ColorB\x08\x0A\x06target\"1\x0A\x05Color\x12\x0B\x0A\x03red\x18\x01 \x01(\x02\x12\x0D\x0A\x05green\x18\x02 \x01(\x02\x12\x0C\x0A\x04blue\x18\x03 \x01(\x02\"\x83\x01\x0A\x13RedactImageResponse\x12\x16\x0A\x0Eredacted_image\x18\x01 \x01(\x0C\x12\x16\x0A\x0Eextracted_text\x18\x02 \x01(\x09\x12<\x0A\x0Einspect_result\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.InspectResult\"\xD8\x02\x0A\x18DeidentifyContentRequest\x122\x0A\x06parent\x18\x01 \x01(\x09B\"\xFAA\x1F\x12\x1Ddlp.googleapis.com/DlpContent\x12B\x0A\x11deidentify_config\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.DeidentifyConfig\x12<\x0A\x0Einspect_config\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x120\x0A\x04item\x18\x04 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12\x1D\x0A\x15inspect_template_name\x18\x05 \x01(\x09\x12 \x0A\x18deidentify_template_name\x18\x06 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x07 \x01(\x09\"\x8E\x01\x0A\x19DeidentifyContentResponse\x120\x0A\x04item\x18\x01 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12?\x0A\x08overview\x18\x02 \x01(\x0B2-.google.privacy.dlp.v2.TransformationOverview\"\xDB\x02\x0A\x18ReidentifyContentRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/DlpContent\x12B\x0A\x11reidentify_config\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.DeidentifyConfig\x12<\x0A\x0Einspect_config\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x120\x0A\x04item\x18\x04 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12\x1D\x0A\x15inspect_template_name\x18\x05 \x01(\x09\x12 \x0A\x18reidentify_template_name\x18\x06 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x07 \x01(\x09\"\x8E\x01\x0A\x19ReidentifyContentResponse\x120\x0A\x04item\x18\x01 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12?\x0A\x08overview\x18\x02 \x01(\x0B2-.google.privacy.dlp.v2.TransformationOverview\"\xEF\x01\x0A\x15InspectContentRequest\x122\x0A\x06parent\x18\x01 \x01(\x09B\"\xFAA\x1F\x12\x1Ddlp.googleapis.com/DlpContent\x12<\x0A\x0Einspect_config\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x120\x0A\x04item\x18\x03 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12\x1D\x0A\x15inspect_template_name\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09\"N\x0A\x16InspectContentResponse\x124\x0A\x06result\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.InspectResult\"\xF8\x02\x0A\x13OutputStorageConfig\x125\x0A\x05table\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTableH\x00\x12?\x0A\x0Cstorage_path\x18\x05 \x01(\x0B2'.google.privacy.dlp.v2.CloudStoragePathH\x00\x12N\x0A\x0Doutput_schema\x18\x03 \x01(\x0E27.google.privacy.dlp.v2.OutputStorageConfig.OutputSchema\"\x90\x01\x0A\x0COutputSchema\x12\x1D\x0A\x19OUTPUT_SCHEMA_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DBASIC_COLUMNS\x10\x01\x12\x0F\x0A\x0BGCS_COLUMNS\x10\x02\x12\x15\x0A\x11DATASTORE_COLUMNS\x10\x03\x12\x15\x0A\x11BIG_QUERY_COLUMNS\x10\x04\x12\x0F\x0A\x0BALL_COLUMNS\x10\x05B\x06\x0A\x04type\"R\x0A\x0DInfoTypeStats\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12\x0D\x0A\x05count\x18\x02 \x01(\x03\"\xC0\x04\x0A\x18InspectDataSourceDetails\x12[\x0A\x11requested_options\x18\x02 \x01(\x0B2@.google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions\x12F\x0A\x06result\x18\x03 \x01(\x0B26.google.privacy.dlp.v2.InspectDataSourceDetails.Result\x1A\x9A\x01\x0A\x10RequestedOptions\x12I\x0A\x19snapshot_inspect_template\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.InspectTemplate\x12;\x0A\x0Ajob_config\x18\x03 \x01(\x0B2'.google.privacy.dlp.v2.InspectJobConfig\x1A\xE1\x01\x0A\x06Result\x12\x17\x0A\x0Fprocessed_bytes\x18\x01 \x01(\x03\x12\x1D\x0A\x15total_estimated_bytes\x18\x02 \x01(\x03\x12=\x0A\x0Finfo_type_stats\x18\x03 \x03(\x0B2\$.google.privacy.dlp.v2.InfoTypeStats\x12\x1A\x0A\x12num_rows_processed\x18\x05 \x01(\x03\x12D\x0A\x0Chybrid_stats\x18\x07 \x01(\x0B2..google.privacy.dlp.v2.HybridInspectStatistics\"\xFF\x01\x0A\x1CDataProfileBigQueryRowSchema\x12@\x0A\x0Dtable_profile\x18\x01 \x01(\x0B2'.google.privacy.dlp.v2.TableDataProfileH\x00\x12B\x0A\x0Ecolumn_profile\x18\x02 \x01(\x0B2(.google.privacy.dlp.v2.ColumnDataProfileH\x00\x12I\x0A\x12file_store_profile\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.FileStoreDataProfileH\x00B\x0E\x0A\x0Cdata_profile\"`\x0A\x17HybridInspectStatistics\x12\x17\x0A\x0Fprocessed_count\x18\x01 \x01(\x03\x12\x15\x0A\x0Daborted_count\x18\x02 \x01(\x03\x12\x15\x0A\x0Dpending_count\x18\x03 \x01(\x03\"l\x0A\x0DActionDetails\x12P\x0A\x12deidentify_details\x18\x01 \x01(\x0B22.google.privacy.dlp.v2.DeidentifyDataSourceDetailsH\x00B\x09\x0A\x07details\"x\x0A\x19DeidentifyDataSourceStats\x12\x19\x0A\x11transformed_bytes\x18\x01 \x01(\x03\x12\x1C\x0A\x14transformation_count\x18\x02 \x01(\x03\x12\"\x0A\x1Atransformation_error_count\x18\x03 \x01(\x03\"\xF2\x03\x0A\x1BDeidentifyDataSourceDetails\x12h\x0A\x11requested_options\x18\x01 \x01(\x0B2M.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions\x12J\x0A\x10deidentify_stats\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.DeidentifyDataSourceStats\x1A\x9C\x02\x0A\x1ARequestedDeidentifyOptions\x12O\x0A\x1Csnapshot_deidentify_template\x18\x01 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\x12Z\x0A'snapshot_structured_deidentify_template\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\x12Q\x0A\x1Esnapshot_image_redact_template\x18\x03 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\"\xDF\x01\x0A\x0FLocationSupport\x12Z\x0A\x15regionalization_scope\x18\x01 \x01(\x0E2;.google.privacy.dlp.v2.LocationSupport.RegionalizationScope\x12\x11\x0A\x09locations\x18\x02 \x03(\x09\"]\x0A\x14RegionalizationScope\x12%\x0A!REGIONALIZATION_SCOPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08REGIONAL\x10\x01\x12\x10\x0A\x0CANY_LOCATION\x10\x02\"\x9B\x05\x0A\x13InfoTypeDescription\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12@\x0A\x0Csupported_by\x18\x03 \x03(\x0E2*.google.privacy.dlp.v2.InfoTypeSupportedBy\x12\x13\x0A\x0Bdescription\x18\x04 \x01(\x09\x12@\x0A\x10location_support\x18\x06 \x01(\x0B2&.google.privacy.dlp.v2.LocationSupport\x12\x0F\x0A\x07example\x18\x08 \x01(\x09\x12;\x0A\x08versions\x18\x09 \x03(\x0B2).google.privacy.dlp.v2.VersionDescription\x12;\x0A\x0Acategories\x18\x0A \x03(\x0B2'.google.privacy.dlp.v2.InfoTypeCategory\x12B\x0A\x11sensitivity_score\x18\x0B \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12\x1B\x0A\x13specific_info_types\x18\x0C \x03(\x09\x12V\x0A\x0Dlaunch_status\x18\x0D \x01(\x0E2?.google.privacy.dlp.v2.InfoTypeDescription.InfoTypeLaunchStatus\"\x82\x01\x0A\x14InfoTypeLaunchStatus\x12'\x0A#INFO_TYPE_LAUNCH_STATUS_UNSPECIFIED\x10\x00\x12\x18\x0A\x14GENERAL_AVAILABILITY\x10\x01\x12\x12\x0A\x0EPUBLIC_PREVIEW\x10\x02\x12\x13\x0A\x0FPRIVATE_PREVIEW\x10\x03\"\x90\x0A\x0A\x10InfoTypeCategory\x12U\x0A\x11location_category\x18\x01 \x01(\x0E28.google.privacy.dlp.v2.InfoTypeCategory.LocationCategoryH\x00\x12U\x0A\x11industry_category\x18\x02 \x01(\x0E28.google.privacy.dlp.v2.InfoTypeCategory.IndustryCategoryH\x00\x12M\x0A\x0Dtype_category\x18\x03 \x01(\x0E24.google.privacy.dlp.v2.InfoTypeCategory.TypeCategoryH\x00\"\xEF\x05\x0A\x10LocationCategory\x12\x18\x0A\x14LOCATION_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GLOBAL\x10\x01\x12\x0D\x0A\x09ARGENTINA\x10\x02\x12\x0B\x0A\x07ARMENIA\x103\x12\x0D\x0A\x09AUSTRALIA\x10\x03\x12\x0B\x0A\x07AUSTRIA\x105\x12\x0E\x0A\x0AAZERBAIJAN\x100\x12\x0B\x0A\x07BELARUS\x102\x12\x0B\x0A\x07BELGIUM\x10\x04\x12\x0A\x0A\x06BRAZIL\x10\x05\x12\x0A\x0A\x06CANADA\x10\x06\x12\x09\x0A\x05CHILE\x10\x07\x12\x09\x0A\x05CHINA\x10\x08\x12\x0C\x0A\x08COLOMBIA\x10\x09\x12\x0B\x0A\x07CROATIA\x10*\x12\x0B\x0A\x07CZECHIA\x104\x12\x0B\x0A\x07DENMARK\x10\x0A\x12\x0A\x0A\x06FRANCE\x10\x0B\x12\x0B\x0A\x07FINLAND\x10\x0C\x12\x0B\x0A\x07GERMANY\x10\x0D\x12\x0D\x0A\x09HONG_KONG\x10\x0E\x12\x09\x0A\x05INDIA\x10\x0F\x12\x0D\x0A\x09INDONESIA\x10\x10\x12\x0B\x0A\x07IRELAND\x10\x11\x12\x0A\x0A\x06ISRAEL\x10\x12\x12\x09\x0A\x05ITALY\x10\x13\x12\x09\x0A\x05JAPAN\x10\x14\x12\x0E\x0A\x0AKAZAKHSTAN\x10/\x12\x09\x0A\x05KOREA\x10\x15\x12\x0A\x0A\x06MEXICO\x10\x16\x12\x13\x0A\x0FTHE_NETHERLANDS\x10\x17\x12\x0F\x0A\x0BNEW_ZEALAND\x10)\x12\x0A\x0A\x06NORWAY\x10\x18\x12\x0C\x0A\x08PARAGUAY\x10\x19\x12\x08\x0A\x04PERU\x10\x1A\x12\x0A\x0A\x06POLAND\x10\x1B\x12\x0C\x0A\x08PORTUGAL\x10\x1C\x12\x0A\x0A\x06RUSSIA\x10,\x12\x0D\x0A\x09SINGAPORE\x10\x1D\x12\x10\x0A\x0CSOUTH_AFRICA\x10\x1E\x12\x09\x0A\x05SPAIN\x10\x1F\x12\x0A\x0A\x06SWEDEN\x10 \x12\x0F\x0A\x0BSWITZERLAND\x10+\x12\x0A\x0A\x06TAIWAN\x10!\x12\x0C\x0A\x08THAILAND\x10\"\x12\x0A\x0A\x06TURKEY\x10#\x12\x0B\x0A\x07UKRAINE\x10-\x12\x12\x0A\x0EUNITED_KINGDOM\x10\$\x12\x11\x0A\x0DUNITED_STATES\x10%\x12\x0B\x0A\x07URUGUAY\x10&\x12\x0E\x0A\x0AUZBEKISTAN\x10.\x12\x0D\x0A\x09VENEZUELA\x10'\x12\x0C\x0A\x08INTERNAL\x10(\"]\x0A\x10IndustryCategory\x12\x18\x0A\x14INDUSTRY_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07FINANCE\x10\x01\x12\x0A\x0A\x06HEALTH\x10\x02\x12\x16\x0A\x12TELECOMMUNICATIONS\x10\x03\"\xA1\x01\x0A\x0CTypeCategory\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03PII\x10\x01\x12\x08\x0A\x04SPII\x10\x02\x12\x0F\x0A\x0BDEMOGRAPHIC\x10\x03\x12\x0E\x0A\x0ACREDENTIAL\x10\x04\x12\x11\x0A\x0DGOVERNMENT_ID\x10\x05\x12\x0C\x0A\x08DOCUMENT\x10\x06\x12\x1A\x0A\x16CONTEXTUAL_INFORMATION\x10\x07\x12\x0A\x0A\x06CUSTOM\x10\x08B\x0A\x0A\x08category\":\x0A\x12VersionDescription\x12\x0F\x0A\x07version\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\"b\x0A\x14ListInfoTypesRequest\x12\x0E\x0A\x06parent\x18\x04 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x01 \x01(\x09\x12\x0E\x0A\x06filter\x18\x02 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x03 \x01(\x09\"W\x0A\x15ListInfoTypesResponse\x12>\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2*.google.privacy.dlp.v2.InfoTypeDescription\"\xC1\x01\x0A\x15RiskAnalysisJobConfig\x12<\x0A\x0Eprivacy_metric\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.PrivacyMetric\x12:\x0A\x0Csource_table\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12.\x0A\x07actions\x18\x03 \x03(\x0B2\x1D.google.privacy.dlp.v2.Action\"\xBC\x01\x0A\x07QuasiId\x122\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x124\x0A\x09info_type\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoTypeH\x00\x12\x14\x0A\x0Acustom_tag\x18\x03 \x01(\x09H\x00\x12*\x0A\x08inferred\x18\x04 \x01(\x0B2\x16.google.protobuf.EmptyH\x00B\x05\x0A\x03tag\"\xBE\x02\x0A\x10StatisticalTable\x128\x0A\x05table\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTableB\x03\xE0A\x02\x12T\x0A\x09quasi_ids\x18\x01 \x03(\x0B2<.google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierFieldB\x03\xE0A\x02\x12?\x0A\x12relative_frequency\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x1AY\x0A\x14QuasiIdentifierField\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12\x12\x0A\x0Acustom_tag\x18\x02 \x01(\x09\"\x93\x0F\x0A\x0DPrivacyMetric\x12[\x0A\x16numerical_stats_config\x18\x01 \x01(\x0B29.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfigH\x00\x12_\x0A\x18categorical_stats_config\x18\x02 \x01(\x0B2;.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfigH\x00\x12S\x0A\x12k_anonymity_config\x18\x03 \x01(\x0B25.google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfigH\x00\x12S\x0A\x12l_diversity_config\x18\x04 \x01(\x0B25.google.privacy.dlp.v2.PrivacyMetric.LDiversityConfigH\x00\x12\\\x0A\x17k_map_estimation_config\x18\x05 \x01(\x0B29.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfigH\x00\x12n\x0A delta_presence_estimation_config\x18\x06 \x01(\x0B2B.google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfigH\x00\x1AE\x0A\x14NumericalStatsConfig\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x1AG\x0A\x16CategoricalStatsConfig\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x1Ay\x0A\x10KAnonymityConfig\x121\x0A\x09quasi_ids\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x122\x0A\x09entity_id\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.EntityId\x1A\x82\x01\x0A\x10LDiversityConfig\x121\x0A\x09quasi_ids\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12;\x0A\x13sensitive_attribute\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x1A\x81\x06\x0A\x14KMapEstimationConfig\x12]\x0A\x09quasi_ids\x18\x01 \x03(\x0B2E.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedFieldB\x03\xE0A\x02\x12\x13\x0A\x0Bregion_code\x18\x02 \x01(\x09\x12b\x0A\x10auxiliary_tables\x18\x03 \x03(\x0B2H.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable\x1A\xC0\x01\x0A\x0BTaggedField\x122\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x124\x0A\x09info_type\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoTypeH\x00\x12\x14\x0A\x0Acustom_tag\x18\x03 \x01(\x09H\x00\x12*\x0A\x08inferred\x18\x04 \x01(\x0B2\x16.google.protobuf.EmptyH\x00B\x05\x0A\x03tag\x1A\xCD\x02\x0A\x0EAuxiliaryTable\x128\x0A\x05table\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTableB\x03\xE0A\x02\x12m\x0A\x09quasi_ids\x18\x01 \x03(\x0B2U.google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdFieldB\x03\xE0A\x02\x12?\x0A\x12relative_frequency\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x1AQ\x0A\x0CQuasiIdField\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12\x12\x0A\x0Acustom_tag\x18\x02 \x01(\x09\x1A\xAF\x01\x0A\x1DDeltaPresenceEstimationConfig\x126\x0A\x09quasi_ids\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.QuasiIdB\x03\xE0A\x02\x12\x13\x0A\x0Bregion_code\x18\x02 \x01(\x09\x12A\x0A\x10auxiliary_tables\x18\x03 \x03(\x0B2'.google.privacy.dlp.v2.StatisticalTableB\x06\x0A\x04type\"\xC1\x1F\x0A\x1CAnalyzeDataSourceRiskDetails\x12F\x0A\x18requested_privacy_metric\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.PrivacyMetric\x12D\x0A\x16requested_source_table\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12j\x0A\x16numerical_stats_result\x18\x03 \x01(\x0B2H.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResultH\x00\x12n\x0A\x18categorical_stats_result\x18\x04 \x01(\x0B2J.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResultH\x00\x12b\x0A\x12k_anonymity_result\x18\x05 \x01(\x0B2D.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResultH\x00\x12b\x0A\x12l_diversity_result\x18\x06 \x01(\x0B2D.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResultH\x00\x12k\x0A\x17k_map_estimation_result\x18\x07 \x01(\x0B2H.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResultH\x00\x12}\x0A delta_presence_estimation_result\x18\x09 \x01(\x0B2Q.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResultH\x00\x12k\x0A\x11requested_options\x18\x0A \x01(\x0B2P.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions\x1A\xAF\x01\x0A\x14NumericalStatsResult\x12/\x0A\x09min_value\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x12/\x0A\x09max_value\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x125\x0A\x0Fquantile_values\x18\x04 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x1A\x8D\x03\x0A\x16CategoricalStatsResult\x12\x95\x01\x0A!value_frequency_histogram_buckets\x18\x05 \x03(\x0B2j.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket\x1A\xDA\x01\x0A\x1FCategoricalStatsHistogramBucket\x12#\x0A\x1Bvalue_frequency_lower_bound\x18\x01 \x01(\x03\x12#\x0A\x1Bvalue_frequency_upper_bound\x18\x02 \x01(\x03\x12\x13\x0A\x0Bbucket_size\x18\x03 \x01(\x03\x12<\x0A\x0Dbucket_values\x18\x04 \x03(\x0B2%.google.privacy.dlp.v2.ValueFrequency\x12\x1A\x0A\x12bucket_value_count\x18\x05 \x01(\x03\x1A\xB5\x04\x0A\x10KAnonymityResult\x12\x8B\x01\x0A#equivalence_class_histogram_buckets\x18\x05 \x03(\x0B2^.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket\x1At\x0A\x1AKAnonymityEquivalenceClass\x126\x0A\x10quasi_ids_values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x1E\x0A\x16equivalence_class_size\x18\x02 \x01(\x03\x1A\x9C\x02\x0A\x19KAnonymityHistogramBucket\x12*\x0A\"equivalence_class_size_lower_bound\x18\x01 \x01(\x03\x12*\x0A\"equivalence_class_size_upper_bound\x18\x02 \x01(\x03\x12\x13\x0A\x0Bbucket_size\x18\x03 \x01(\x03\x12v\x0A\x0Dbucket_values\x18\x04 \x03(\x0B2_.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass\x12\x1A\x0A\x12bucket_value_count\x18\x05 \x01(\x03\x1A\xB0\x05\x0A\x10LDiversityResult\x12\x93\x01\x0A+sensitive_value_frequency_histogram_buckets\x18\x05 \x03(\x0B2^.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket\x1A\xE0\x01\x0A\x1ALDiversityEquivalenceClass\x126\x0A\x10quasi_ids_values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x1E\x0A\x16equivalence_class_size\x18\x02 \x01(\x03\x12%\x0A\x1Dnum_distinct_sensitive_values\x18\x03 \x01(\x03\x12C\x0A\x14top_sensitive_values\x18\x04 \x03(\x0B2%.google.privacy.dlp.v2.ValueFrequency\x1A\xA2\x02\x0A\x19LDiversityHistogramBucket\x12-\x0A%sensitive_value_frequency_lower_bound\x18\x01 \x01(\x03\x12-\x0A%sensitive_value_frequency_upper_bound\x18\x02 \x01(\x03\x12\x13\x0A\x0Bbucket_size\x18\x03 \x01(\x03\x12v\x0A\x0Dbucket_values\x18\x04 \x03(\x0B2_.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass\x12\x1A\x0A\x12bucket_value_count\x18\x05 \x01(\x03\x1A\x95\x04\x0A\x14KMapEstimationResult\x12\x8A\x01\x0A\x1Ak_map_estimation_histogram\x18\x01 \x03(\x0B2f.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket\x1Ar\x0A\x1BKMapEstimationQuasiIdValues\x126\x0A\x10quasi_ids_values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x1B\x0A\x13estimated_anonymity\x18\x02 \x01(\x03\x1A\xFB\x01\x0A\x1DKMapEstimationHistogramBucket\x12\x15\x0A\x0Dmin_anonymity\x18\x01 \x01(\x03\x12\x15\x0A\x0Dmax_anonymity\x18\x02 \x01(\x03\x12\x13\x0A\x0Bbucket_size\x18\x05 \x01(\x03\x12{\x0A\x0Dbucket_values\x18\x06 \x03(\x0B2d.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues\x12\x1A\x0A\x12bucket_value_count\x18\x07 \x01(\x03\x1A\xE4\x04\x0A\x1DDeltaPresenceEstimationResult\x12\xA5\x01\x0A#delta_presence_estimation_histogram\x18\x01 \x03(\x0B2x.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket\x1A}\x0A\$DeltaPresenceEstimationQuasiIdValues\x126\x0A\x10quasi_ids_values\x18\x01 \x03(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x1D\x0A\x15estimated_probability\x18\x02 \x01(\x01\x1A\x9B\x02\x0A&DeltaPresenceEstimationHistogramBucket\x12\x17\x0A\x0Fmin_probability\x18\x01 \x01(\x01\x12\x17\x0A\x0Fmax_probability\x18\x02 \x01(\x01\x12\x13\x0A\x0Bbucket_size\x18\x05 \x01(\x03\x12\x8D\x01\x0A\x0Dbucket_values\x18\x06 \x03(\x0B2v.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues\x12\x1A\x0A\x12bucket_value_count\x18\x07 \x01(\x03\x1A`\x0A\x1CRequestedRiskAnalysisOptions\x12@\x0A\x0Ajob_config\x18\x01 \x01(\x0B2,.google.privacy.dlp.v2.RiskAnalysisJobConfigB\x08\x0A\x06result\"L\x0A\x0EValueFrequency\x12+\x0A\x05value\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x12\x0D\x0A\x05count\x18\x02 \x01(\x03\"\xB3\x02\x0A\x05Value\x12\x17\x0A\x0Dinteger_value\x18\x01 \x01(\x03H\x00\x12\x15\x0A\x0Bfloat_value\x18\x02 \x01(\x01H\x00\x12\x16\x0A\x0Cstring_value\x18\x03 \x01(\x09H\x00\x12\x17\x0A\x0Dboolean_value\x18\x04 \x01(\x08H\x00\x125\x0A\x0Ftimestamp_value\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00\x12,\x0A\x0Atime_value\x18\x06 \x01(\x0B2\x16.google.type.TimeOfDayH\x00\x12'\x0A\x0Adate_value\x18\x07 \x01(\x0B2\x11.google.type.DateH\x00\x123\x0A\x11day_of_week_value\x18\x08 \x01(\x0E2\x16.google.type.DayOfWeekH\x00B\x06\x0A\x04type\"Q\x0A\x09QuoteInfo\x124\x0A\x09date_time\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.DateTimeH\x00B\x0E\x0A\x0Cparsed_quote\"\xDF\x01\x0A\x08DateTime\x12\x1F\x0A\x04date\x18\x01 \x01(\x0B2\x11.google.type.Date\x12+\x0A\x0Bday_of_week\x18\x02 \x01(\x0E2\x16.google.type.DayOfWeek\x12\$\x0A\x04time\x18\x03 \x01(\x0B2\x16.google.type.TimeOfDay\x12;\x0A\x09time_zone\x18\x04 \x01(\x0B2(.google.privacy.dlp.v2.DateTime.TimeZone\x1A\"\x0A\x08TimeZone\x12\x16\x0A\x0Eoffset_minutes\x18\x01 \x01(\x05\"\xF2\x02\x0A\x10DeidentifyConfig\x12S\x0A\x19info_type_transformations\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.InfoTypeTransformationsH\x00\x12N\x0A\x16record_transformations\x18\x02 \x01(\x0B2,.google.privacy.dlp.v2.RecordTransformationsH\x00\x12L\x0A\x15image_transformations\x18\x04 \x01(\x0B2+.google.privacy.dlp.v2.ImageTransformationsH\x00\x12Y\x0A\x1Dtransformation_error_handling\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.TransformationErrorHandlingB\x10\x0A\x0Etransformation\"\xE5\x04\x0A\x14ImageTransformations\x12S\x0A\x0Atransforms\x18\x02 \x03(\x0B2?.google.privacy.dlp.v2.ImageTransformations.ImageTransformation\x1A\xF7\x03\x0A\x13ImageTransformation\x12p\x0A\x13selected_info_types\x18\x04 \x01(\x0B2Q.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypesH\x00\x12f\x0A\x0Eall_info_types\x18\x05 \x01(\x0B2L.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypesH\x00\x12[\x0A\x08all_text\x18\x06 \x01(\x0B2G.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllTextH\x00\x125\x0A\x0Fredaction_color\x18\x03 \x01(\x0B2\x1C.google.privacy.dlp.v2.Color\x1AM\x0A\x11SelectedInfoTypes\x128\x0A\x0Ainfo_types\x18\x05 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoTypeB\x03\xE0A\x02\x1A\x0E\x0A\x0CAllInfoTypes\x1A\x09\x0A\x07AllTextB\x08\x0A\x06target\"\x85\x02\x0A\x1BTransformationErrorHandling\x12T\x0A\x0Bthrow_error\x18\x01 \x01(\x0B2=.google.privacy.dlp.v2.TransformationErrorHandling.ThrowErrorH\x00\x12d\x0A\x13leave_untransformed\x18\x02 \x01(\x0B2E.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformedH\x00\x1A\x0C\x0A\x0AThrowError\x1A\x14\x0A\x12LeaveUntransformedB\x06\x0A\x04mode\"\xCA\x07\x0A\x17PrimitiveTransformation\x12C\x0A\x0Ereplace_config\x18\x01 \x01(\x0B2).google.privacy.dlp.v2.ReplaceValueConfigH\x00\x12<\x0A\x0Dredact_config\x18\x02 \x01(\x0B2#.google.privacy.dlp.v2.RedactConfigH\x00\x12K\x0A\x15character_mask_config\x18\x03 \x01(\x0B2*.google.privacy.dlp.v2.CharacterMaskConfigH\x00\x12Y\x0A\x1Dcrypto_replace_ffx_fpe_config\x18\x04 \x01(\x0B20.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfigH\x00\x12V\x0A\x1Bfixed_size_bucketing_config\x18\x05 \x01(\x0B2/.google.privacy.dlp.v2.FixedSizeBucketingConfigH\x00\x12B\x0A\x10bucketing_config\x18\x06 \x01(\x0B2&.google.privacy.dlp.v2.BucketingConfigH\x00\x12Y\x0A\x1Dreplace_with_info_type_config\x18\x07 \x01(\x0B20.google.privacy.dlp.v2.ReplaceWithInfoTypeConfigH\x00\x12A\x0A\x10time_part_config\x18\x08 \x01(\x0B2%.google.privacy.dlp.v2.TimePartConfigH\x00\x12E\x0A\x12crypto_hash_config\x18\x09 \x01(\x0B2'.google.privacy.dlp.v2.CryptoHashConfigH\x00\x12C\x0A\x11date_shift_config\x18\x0B \x01(\x0B2&.google.privacy.dlp.v2.DateShiftConfigH\x00\x12W\x0A\x1Bcrypto_deterministic_config\x18\x0C \x01(\x0B20.google.privacy.dlp.v2.CryptoDeterministicConfigH\x00\x12S\x0A\x19replace_dictionary_config\x18\x0D \x01(\x0B2..google.privacy.dlp.v2.ReplaceDictionaryConfigH\x00B\x10\x0A\x0Etransformation\"\xDC\x01\x0A\x0ETimePartConfig\x12G\x0A\x0Fpart_to_extract\x18\x01 \x01(\x0E2..google.privacy.dlp.v2.TimePartConfig.TimePart\"\x80\x01\x0A\x08TimePart\x12\x19\x0A\x15TIME_PART_UNSPECIFIED\x10\x00\x12\x08\x0A\x04YEAR\x10\x01\x12\x09\x0A\x05MONTH\x10\x02\x12\x10\x0A\x0CDAY_OF_MONTH\x10\x03\x12\x0F\x0A\x0BDAY_OF_WEEK\x10\x04\x12\x10\x0A\x0CWEEK_OF_YEAR\x10\x05\x12\x0F\x0A\x0BHOUR_OF_DAY\x10\x06\"H\x0A\x10CryptoHashConfig\x124\x0A\x0Acrypto_key\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.CryptoKey\"\xC0\x01\x0A\x19CryptoDeterministicConfig\x124\x0A\x0Acrypto_key\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.CryptoKey\x12<\x0A\x13surrogate_info_type\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12/\x0A\x07context\x18\x03 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\"E\x0A\x12ReplaceValueConfig\x12/\x0A\x09new_value\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\"q\x0A\x17ReplaceDictionaryConfig\x12N\x0A\x09word_list\x18\x01 \x01(\x0B29.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordListH\x00B\x06\x0A\x04type\"\x1B\x0A\x19ReplaceWithInfoTypeConfig\"\x0E\x0A\x0CRedactConfig\"\xB6\x02\x0A\x0DCharsToIgnore\x12\x1C\x0A\x12characters_to_skip\x18\x01 \x01(\x09H\x00\x12_\x0A\x1Bcommon_characters_to_ignore\x18\x02 \x01(\x0E28.google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnoreH\x00\"\x97\x01\x0A\x13CommonCharsToIgnore\x12&\x0A\"COMMON_CHARS_TO_IGNORE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07NUMERIC\x10\x01\x12\x14\x0A\x10ALPHA_UPPER_CASE\x10\x02\x12\x14\x0A\x10ALPHA_LOWER_CASE\x10\x03\x12\x0F\x0A\x0BPUNCTUATION\x10\x04\x12\x0E\x0A\x0AWHITESPACE\x10\x05B\x0C\x0A\x0Acharacters\"\xA3\x01\x0A\x13CharacterMaskConfig\x12\x19\x0A\x11masking_character\x18\x01 \x01(\x09\x12\x16\x0A\x0Enumber_to_mask\x18\x02 \x01(\x05\x12\x15\x0A\x0Dreverse_order\x18\x03 \x01(\x08\x12B\x0A\x14characters_to_ignore\x18\x04 \x03(\x0B2\$.google.privacy.dlp.v2.CharsToIgnore\"\xA4\x01\x0A\x18FixedSizeBucketingConfig\x126\x0A\x0Blower_bound\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.ValueB\x03\xE0A\x02\x126\x0A\x0Bupper_bound\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.ValueB\x03\xE0A\x02\x12\x18\x0A\x0Bbucket_size\x18\x03 \x01(\x01B\x03\xE0A\x02\"\xF0\x01\x0A\x0FBucketingConfig\x12>\x0A\x07buckets\x18\x01 \x03(\x0B2-.google.privacy.dlp.v2.BucketingConfig.Bucket\x1A\x9C\x01\x0A\x06Bucket\x12)\x0A\x03min\x18\x01 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x12)\x0A\x03max\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x12<\x0A\x11replacement_value\x18\x03 \x01(\x0B2\x1C.google.privacy.dlp.v2.ValueB\x03\xE0A\x02\"\xF9\x03\x0A\x19CryptoReplaceFfxFpeConfig\x129\x0A\x0Acrypto_key\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.CryptoKeyB\x03\xE0A\x02\x12/\x0A\x07context\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12c\x0A\x0Fcommon_alphabet\x18\x04 \x01(\x0E2H.google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabetH\x00\x12\x19\x0A\x0Fcustom_alphabet\x18\x05 \x01(\x09H\x00\x12\x0F\x0A\x05radix\x18\x06 \x01(\x05H\x00\x12<\x0A\x13surrogate_info_type\x18\x08 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\"\x94\x01\x0A\x17FfxCommonNativeAlphabet\x12*\x0A&FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07NUMERIC\x10\x01\x12\x0F\x0A\x0BHEXADECIMAL\x10\x02\x12\x1C\x0A\x18UPPER_CASE_ALPHA_NUMERIC\x10\x03\x12\x11\x0A\x0DALPHA_NUMERIC\x10\x04B\x0A\x0A\x08alphabet\"\xD8\x01\x0A\x09CryptoKey\x12>\x0A\x09transient\x18\x01 \x01(\x0B2).google.privacy.dlp.v2.TransientCryptoKeyH\x00\x12>\x0A\x09unwrapped\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.UnwrappedCryptoKeyH\x00\x12A\x0A\x0Bkms_wrapped\x18\x03 \x01(\x0B2*.google.privacy.dlp.v2.KmsWrappedCryptoKeyH\x00B\x08\x0A\x06source\"'\x0A\x12TransientCryptoKey\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\"&\x0A\x12UnwrappedCryptoKey\x12\x10\x0A\x03key\x18\x01 \x01(\x0CB\x03\xE0A\x02\"M\x0A\x13KmsWrappedCryptoKey\x12\x18\x0A\x0Bwrapped_key\x18\x01 \x01(\x0CB\x03\xE0A\x02\x12\x1C\x0A\x0Fcrypto_key_name\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xC2\x01\x0A\x0FDateShiftConfig\x12\x1D\x0A\x10upper_bound_days\x18\x01 \x01(\x05B\x03\xE0A\x02\x12\x1D\x0A\x10lower_bound_days\x18\x02 \x01(\x05B\x03\xE0A\x02\x12/\x0A\x07context\x18\x03 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x126\x0A\x0Acrypto_key\x18\x04 \x01(\x0B2 .google.privacy.dlp.v2.CryptoKeyH\x00B\x08\x0A\x06method\"\xA5\x02\x0A\x17InfoTypeTransformations\x12c\x0A\x0Ftransformations\x18\x01 \x03(\x0B2E.google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformationB\x03\xE0A\x02\x1A\xA4\x01\x0A\x16InfoTypeTransformation\x123\x0A\x0Ainfo_types\x18\x01 \x03(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12U\x0A\x18primitive_transformation\x18\x02 \x01(\x0B2..google.privacy.dlp.v2.PrimitiveTransformationB\x03\xE0A\x02\"\xC0\x02\x0A\x13FieldTransformation\x123\x0A\x06fields\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x129\x0A\x09condition\x18\x03 \x01(\x0B2&.google.privacy.dlp.v2.RecordCondition\x12R\x0A\x18primitive_transformation\x18\x04 \x01(\x0B2..google.privacy.dlp.v2.PrimitiveTransformationH\x00\x12S\x0A\x19info_type_transformations\x18\x05 \x01(\x0B2..google.privacy.dlp.v2.InfoTypeTransformationsH\x00B\x10\x0A\x0Etransformation\"\xA9\x01\x0A\x15RecordTransformations\x12I\x0A\x15field_transformations\x18\x01 \x03(\x0B2*.google.privacy.dlp.v2.FieldTransformation\x12E\x0A\x13record_suppressions\x18\x02 \x03(\x0B2(.google.privacy.dlp.v2.RecordSuppression\"N\x0A\x11RecordSuppression\x129\x0A\x09condition\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.RecordCondition\"\xDC\x04\x0A\x0FRecordCondition\x12G\x0A\x0Bexpressions\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.RecordCondition.Expressions\x1A\xAE\x01\x0A\x09Condition\x122\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldIdB\x03\xE0A\x02\x12@\x0A\x08operator\x18\x03 \x01(\x0E2).google.privacy.dlp.v2.RelationalOperatorB\x03\xE0A\x02\x12+\x0A\x05value\x18\x04 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value\x1AR\x0A\x0AConditions\x12D\x0A\x0Aconditions\x18\x01 \x03(\x0B20.google.privacy.dlp.v2.RecordCondition.Condition\x1A\xFA\x01\x0A\x0BExpressions\x12\\\x0A\x10logical_operator\x18\x01 \x01(\x0E2B.google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator\x12G\x0A\x0Aconditions\x18\x03 \x01(\x0B21.google.privacy.dlp.v2.RecordCondition.ConditionsH\x00\"<\x0A\x0FLogicalOperator\x12 \x0A\x1CLOGICAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x07\x0A\x03AND\x10\x01B\x06\x0A\x04type\"\x83\x01\x0A\x16TransformationOverview\x12\x19\x0A\x11transformed_bytes\x18\x02 \x01(\x03\x12N\x0A\x18transformation_summaries\x18\x03 \x03(\x0B2,.google.privacy.dlp.v2.TransformationSummary\"\x9F\x05\x0A\x15TransformationSummary\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12-\x0A\x05field\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12F\x0A\x0Etransformation\x18\x03 \x01(\x0B2..google.privacy.dlp.v2.PrimitiveTransformation\x12I\x0A\x15field_transformations\x18\x05 \x03(\x0B2*.google.privacy.dlp.v2.FieldTransformation\x12A\x0A\x0Frecord_suppress\x18\x06 \x01(\x0B2(.google.privacy.dlp.v2.RecordSuppression\x12K\x0A\x07results\x18\x04 \x03(\x0B2:.google.privacy.dlp.v2.TransformationSummary.SummaryResult\x12\x19\x0A\x11transformed_bytes\x18\x07 \x01(\x03\x1A\x84\x01\x0A\x0DSummaryResult\x12\x0D\x0A\x05count\x18\x01 \x01(\x03\x12S\x0A\x04code\x18\x02 \x01(\x0E2E.google.privacy.dlp.v2.TransformationSummary.TransformationResultCode\x12\x0F\x0A\x07details\x18\x03 \x01(\x09\"^\x0A\x18TransformationResultCode\x12*\x0A&TRANSFORMATION_RESULT_CODE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07SUCCESS\x10\x01\x12\x09\x0A\x05ERROR\x10\x02\"\xB0\x01\x0A\x19TransformationDescription\x127\x0A\x04type\x18\x01 \x01(\x0E2).google.privacy.dlp.v2.TransformationType\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x11\x0A\x09condition\x18\x03 \x01(\x09\x122\x0A\x09info_type\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\"\xC6\x02\x0A\x15TransformationDetails\x12\x15\x0A\x0Dresource_name\x18\x01 \x01(\x09\x12\x16\x0A\x0Econtainer_name\x18\x02 \x01(\x09\x12H\x0A\x0Etransformation\x18\x03 \x03(\x0B20.google.privacy.dlp.v2.TransformationDescription\x12I\x0A\x0Estatus_details\x18\x04 \x01(\x0B21.google.privacy.dlp.v2.TransformationResultStatus\x12\x19\x0A\x11transformed_bytes\x18\x05 \x01(\x03\x12N\x0A\x17transformation_location\x18\x06 \x01(\x0B2-.google.privacy.dlp.v2.TransformationLocation\"\xD9\x01\x0A\x16TransformationLocation\x12\x14\x0A\x0Afinding_id\x18\x01 \x01(\x09H\x00\x12L\x0A\x15record_transformation\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.RecordTransformationH\x00\x12J\x0A\x0Econtainer_type\x18\x03 \x01(\x0E22.google.privacy.dlp.v2.TransformationContainerTypeB\x0F\x0A\x0Dlocation_type\"\x9C\x01\x0A\x14RecordTransformation\x120\x0A\x08field_id\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x127\x0A\x13container_timestamp\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x19\x0A\x11container_version\x18\x03 \x01(\x09\"\x94\x01\x0A\x1ATransformationResultStatus\x12Q\x0A\x12result_status_type\x18\x01 \x01(\x0E25.google.privacy.dlp.v2.TransformationResultStatusType\x12#\x0A\x07details\x18\x02 \x01(\x0B2\x12.google.rpc.Status\"c\x0A\"TransformationDetailsStorageConfig\x125\x0A\x05table\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTableH\x00B\x06\x0A\x04type\"U\x0A\x08Schedule\x12?\x0A\x1Arecurrence_period_duration\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationH\x00B\x08\x0A\x06option\"\x08\x0A\x06Manual\"\xC2\x04\x0A\x0FInspectTemplate\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12<\x0A\x0Einspect_config\x18\x06 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig:\xC6\x02\xEAA\xC2\x02\x0A\"dlp.googleapis.com/InspectTemplate\x12@organizations/{organization}/inspectTemplates/{inspect_template}\x126projects/{project}/inspectTemplates/{inspect_template}\x12Uorganizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}\x12Kprojects/{project}/locations/{location}/inspectTemplates/{inspect_template}\"\xE6\x04\x0A\x12DeidentifyTemplate\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x14\x0A\x0Cdisplay_name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12B\x0A\x11deidentify_config\x18\x06 \x01(\x0B2'.google.privacy.dlp.v2.DeidentifyConfig:\xE1\x02\xEAA\xDD\x02\x0A%dlp.googleapis.com/DeidentifyTemplate\x12Forganizations/{organization}/deidentifyTemplates/{deidentify_template}\x12\x0A\x0Binspect_job\x18\x04 \x01(\x0B2'.google.privacy.dlp.v2.InspectJobConfigH\x00\x12;\x0A\x08triggers\x18\x05 \x03(\x0B2).google.privacy.dlp.v2.JobTrigger.Trigger\x121\x0A\x06errors\x18\x06 \x03(\x0B2\x1C.google.privacy.dlp.v2.ErrorB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x126\x0A\x0Dlast_run_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12=\x0A\x06status\x18\x0A \x01(\x0E2(.google.privacy.dlp.v2.JobTrigger.StatusB\x03\xE0A\x02\x1Az\x0A\x07Trigger\x123\x0A\x08schedule\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.ScheduleH\x00\x12/\x0A\x06manual\x18\x02 \x01(\x0B2\x1D.google.privacy.dlp.v2.ManualH\x00B\x09\x0A\x07trigger\"H\x0A\x06Status\x12\x16\x0A\x12STATUS_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07HEALTHY\x10\x01\x12\x0A\x0A\x06PAUSED\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03:\x94\x01\xEAA\x90\x01\x0A\x1Ddlp.googleapis.com/JobTrigger\x12,projects/{project}/jobTriggers/{job_trigger}\x12Aprojects/{project}/locations/{location}/jobTriggers/{job_trigger}B\x05\x0A\x03job\"\x82\x0A\x0A\x06Action\x12C\x0A\x0Dsave_findings\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.Action.SaveFindingsH\x00\x12@\x0A\x07pub_sub\x18\x02 \x01(\x0B2-.google.privacy.dlp.v2.Action.PublishToPubSubH\x00\x12U\x0A\x17publish_summary_to_cscc\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.Action.PublishSummaryToCsccH\x00\x12u\x0A&publish_findings_to_cloud_data_catalog\x18\x05 \x01(\x0B2?.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogB\x02\x18\x01H\x00\x12n\x0A\$publish_findings_to_dataplex_catalog\x18\x0A \x01(\x0B2>.google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalogH\x00\x12>\x0A\x0Adeidentify\x18\x07 \x01(\x0B2(.google.privacy.dlp.v2.Action.DeidentifyH\x00\x12V\x0A\x17job_notification_emails\x18\x08 \x01(\x0B23.google.privacy.dlp.v2.Action.JobNotificationEmailsH\x00\x12T\x0A\x16publish_to_stackdriver\x18\x09 \x01(\x0B22.google.privacy.dlp.v2.Action.PublishToStackdriverH\x00\x1AQ\x0A\x0CSaveFindings\x12A\x0A\x0Doutput_config\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.OutputStorageConfig\x1A \x0A\x0FPublishToPubSub\x12\x0D\x0A\x05topic\x18\x01 \x01(\x09\x1A\x16\x0A\x14PublishSummaryToCscc\x1A#\x0A!PublishFindingsToCloudDataCatalog\x1A\"\x0A PublishFindingsToDataplexCatalog\x1A\xB3\x02\x0A\x0ADeidentify\x12J\x0A\x15transformation_config\x18\x07 \x01(\x0B2+.google.privacy.dlp.v2.TransformationConfig\x12h\x0A%transformation_details_storage_config\x18\x03 \x01(\x0B29.google.privacy.dlp.v2.TransformationDetailsStorageConfig\x12#\x0A\x14cloud_storage_output\x18\x09 \x01(\x09B\x03\xE0A\x02H\x00\x12@\x0A\x17file_types_to_transform\x18\x08 \x03(\x0E2\x1F.google.privacy.dlp.v2.FileTypeB\x08\x0A\x06output\x1A\x17\x0A\x15JobNotificationEmails\x1A\x16\x0A\x14PublishToStackdriverB\x08\x0A\x06action\"z\x0A\x14TransformationConfig\x12\x1B\x0A\x13deidentify_template\x18\x01 \x01(\x09\x12&\x0A\x1Estructured_deidentify_template\x18\x02 \x01(\x09\x12\x1D\x0A\x15image_redact_template\x18\x04 \x01(\x09\"\xCB\x01\x0A\x1CCreateInspectTemplateRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"dlp.googleapis.com/InspectTemplate\x12E\x0A\x10inspect_template\x18\x02 \x01(\x0B2&.google.privacy.dlp.v2.InspectTemplateB\x03\xE0A\x02\x12\x13\x0A\x0Btemplate_id\x18\x03 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\"\xCB\x01\x0A\x1CUpdateInspectTemplateRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/InspectTemplate\x12@\x0A\x10inspect_template\x18\x02 \x01(\x0B2&.google.privacy.dlp.v2.InspectTemplate\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"U\x0A\x19GetInspectTemplateRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/InspectTemplate\"\xA7\x01\x0A\x1BListInspectTemplatesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"dlp.googleapis.com/InspectTemplate\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09\"z\x0A\x1CListInspectTemplatesResponse\x12A\x0A\x11inspect_templates\x18\x01 \x03(\x0B2&.google.privacy.dlp.v2.InspectTemplate\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"X\x0A\x1CDeleteInspectTemplateRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/InspectTemplate\"\xB6\x01\x0A\x17CreateJobTriggerRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/JobTrigger\x12;\x0A\x0Bjob_trigger\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.JobTriggerB\x03\xE0A\x02\x12\x12\x0A\x0Atrigger_id\x18\x03 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\"P\x0A\x19ActivateJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\"\xB7\x01\x0A\x17UpdateJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\x126\x0A\x0Bjob_trigger\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.JobTrigger\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"K\x0A\x14GetJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\"\xB4\x01\x0A\x1CCreateDiscoveryConfigRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"dlp.googleapis.com/DiscoveryConfig\x12E\x0A\x10discovery_config\x18\x02 \x01(\x0B2&.google.privacy.dlp.v2.DiscoveryConfigB\x03\xE0A\x02\x12\x11\x0A\x09config_id\x18\x03 \x01(\x09\"\xD0\x01\x0A\x1CUpdateDiscoveryConfigRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/DiscoveryConfig\x12E\x0A\x10discovery_config\x18\x02 \x01(\x0B2&.google.privacy.dlp.v2.DiscoveryConfigB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"U\x0A\x19GetDiscoveryConfigRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/DiscoveryConfig\"\x92\x01\x0A\x1BListDiscoveryConfigsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x12\"dlp.googleapis.com/DiscoveryConfig\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\"z\x0A\x1CListDiscoveryConfigsResponse\x12A\x0A\x11discovery_configs\x18\x01 \x03(\x0B2&.google.privacy.dlp.v2.DiscoveryConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"X\x0A\x1CDeleteDiscoveryConfigRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dlp.googleapis.com/DiscoveryConfig\"\xF6\x01\x0A\x13CreateDlpJobRequest\x121\x0A\x06parent\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x12\x19dlp.googleapis.com/DlpJob\x12>\x0A\x0Binspect_job\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.InspectJobConfigH\x00\x12@\x0A\x08risk_job\x18\x03 \x01(\x0B2,.google.privacy.dlp.v2.RiskAnalysisJobConfigH\x00\x12\x0E\x0A\x06job_id\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09B\x05\x0A\x03job\"\xDE\x01\x0A\x16ListJobTriggersRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/JobTrigger\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\x12/\x0A\x04type\x18\x06 \x01(\x0E2!.google.privacy.dlp.v2.DlpJobType\x12\x13\x0A\x0Blocation_id\x18\x07 \x01(\x09\"k\x0A\x17ListJobTriggersResponse\x127\x0A\x0Cjob_triggers\x18\x01 \x03(\x0B2!.google.privacy.dlp.v2.JobTrigger\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"N\x0A\x17DeleteJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\"\xDD\x01\x0A\x10InspectJobConfig\x12<\x0A\x0Estorage_config\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.StorageConfig\x12<\x0A\x0Einspect_config\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x12\x1D\x0A\x15inspect_template_name\x18\x03 \x01(\x09\x12.\x0A\x07actions\x18\x04 \x03(\x0B2\x1D.google.privacy.dlp.v2.Action\"\xF2\x0D\x0A\x11DataProfileAction\x12F\x0A\x0Bexport_data\x18\x01 \x01(\x0B2/.google.privacy.dlp.v2.DataProfileAction.ExportH\x00\x12[\x0A\x14pub_sub_notification\x18\x02 \x01(\x0B2;.google.privacy.dlp.v2.DataProfileAction.PubSubNotificationH\x00\x12[\x0A\x14publish_to_chronicle\x18\x03 \x01(\x0B2;.google.privacy.dlp.v2.DataProfileAction.PublishToChronicleH\x00\x12a\x0A\x0Epublish_to_scc\x18\x04 \x01(\x0B2G.google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenterH\x00\x12N\x0A\x0Dtag_resources\x18\x08 \x01(\x0B25.google.privacy.dlp.v2.DataProfileAction.TagResourcesH\x00\x12h\x0A\x1Bpublish_to_dataplex_catalog\x18\x09 \x01(\x0B2A.google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalogH\x00\x1A\x8A\x01\x0A\x06Export\x12;\x0A\x0Dprofile_table\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12C\x0A\x15sample_findings_table\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x1A\x82\x03\x0A\x12PubSubNotification\x12\x0D\x0A\x05topic\x18\x01 \x01(\x09\x12A\x0A\x05event\x18\x02 \x01(\x0E22.google.privacy.dlp.v2.DataProfileAction.EventType\x12K\x0A\x10pubsub_condition\x18\x03 \x01(\x0B21.google.privacy.dlp.v2.DataProfilePubSubCondition\x12b\x0A\x11detail_of_message\x18\x04 \x01(\x0E2G.google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel\"i\x0A\x0BDetailLevel\x12\x1C\x0A\x18DETAIL_LEVEL_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DTABLE_PROFILE\x10\x01\x12\x11\x0A\x0DRESOURCE_NAME\x10\x02\x12\x16\x0A\x12FILE_STORE_PROFILE\x10\x03\x1A\x14\x0A\x12PublishToChronicle\x1A \x0A\x1EPublishToSecurityCommandCenter\x1A:\x0A\x18PublishToDataplexCatalog\x12\x1E\x0A\x16lower_data_risk_to_low\x18\x01 \x01(\x08\x1A\xB6\x03\x0A\x0CTagResources\x12Z\x0A\x0Etag_conditions\x18\x01 \x03(\x0B2B.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition\x12L\x0A\x1Aprofile_generations_to_tag\x18\x02 \x03(\x0E2(.google.privacy.dlp.v2.ProfileGeneration\x12\x1E\x0A\x16lower_data_risk_to_low\x18\x03 \x01(\x08\x1A\xA9\x01\x0A\x0CTagCondition\x12K\x0A\x03tag\x18\x01 \x01(\x0B2>.google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue\x12D\x0A\x11sensitivity_score\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScoreH\x00B\x06\x0A\x04type\x1A0\x0A\x08TagValue\x12\x1A\x0A\x10namespaced_value\x18\x01 \x01(\x09H\x00B\x08\x0A\x06format\"u\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BNEW_PROFILE\x10\x01\x12\x13\x0A\x0FCHANGED_PROFILE\x10\x02\x12\x13\x0A\x0FSCORE_INCREASED\x10\x03\x12\x11\x0A\x0DERROR_CHANGED\x10\x04B\x08\x0A\x06action\"\xDD\x03\x0A\x12DataProfileFinding\x12\x0D\x0A\x05quote\x18\x01 \x01(\x09\x121\x0A\x08infotype\x18\x02 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x124\x0A\x0Aquote_info\x18\x03 \x01(\x0B2 .google.privacy.dlp.v2.QuoteInfo\x12\"\x0A\x1Adata_profile_resource_name\x18\x04 \x01(\x09\x12\x12\x0A\x0Afinding_id\x18\x05 \x01(\x09\x12-\x0A\x09timestamp\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12C\x0A\x08location\x18\x07 \x01(\x0B21.google.privacy.dlp.v2.DataProfileFindingLocation\x12F\x0A\x13resource_visibility\x18\x08 \x01(\x0E2).google.privacy.dlp.v2.ResourceVisibility\x12\x1A\x0A\x12full_resource_name\x18\x09 \x01(\x09\x12?\x0A\x10data_source_type\x18\x0A \x01(\x0B2%.google.privacy.dlp.v2.DataSourceType\"\xB7\x01\x0A\x1ADataProfileFindingLocation\x12\x16\x0A\x0Econtainer_name\x18\x01 \x01(\x09\x12g\x0A\$data_profile_finding_record_location\x18\x02 \x01(\x0B27.google.privacy.dlp.v2.DataProfileFindingRecordLocationH\x00B\x18\x0A\x16location_extra_details\"Q\x0A DataProfileFindingRecordLocation\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\"\xAE\x02\x0A\x14DataProfileJobConfig\x12<\x0A\x08location\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.DataProfileLocation\x12\x12\x0A\x0Aproject_id\x18\x05 \x01(\x09\x12a\x0A\x1Dother_cloud_starting_location\x18\x08 \x01(\x0B2:.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation\x12\x19\x0A\x11inspect_templates\x18\x07 \x03(\x09\x12F\x0A\x14data_profile_actions\x18\x06 \x03(\x0B2(.google.privacy.dlp.v2.DataProfileAction\"[\x0A\x0DBigQueryRegex\x12\x18\x0A\x10project_id_regex\x18\x01 \x01(\x09\x12\x18\x0A\x10dataset_id_regex\x18\x02 \x01(\x09\x12\x16\x0A\x0Etable_id_regex\x18\x03 \x01(\x09\"I\x0A\x0FBigQueryRegexes\x126\x0A\x08patterns\x18\x01 \x03(\x0B2\$.google.privacy.dlp.v2.BigQueryRegex\"M\x0A\x12BigQueryTableTypes\x127\x0A\x05types\x18\x01 \x03(\x0E2(.google.privacy.dlp.v2.BigQueryTableType\"\x0A\x0A\x08Disabled\"Q\x0A\x13DataProfileLocation\x12\x19\x0A\x0Forganization_id\x18\x01 \x01(\x03H\x00\x12\x13\x0A\x09folder_id\x18\x02 \x01(\x03H\x00B\x0A\x0A\x08location\"\xEB\x07\x0A\x0FDiscoveryConfig\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x0B \x01(\x09\x12D\x0A\x0Aorg_config\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.DiscoveryConfig.OrgConfig\x12a\x0A\x1Dother_cloud_starting_location\x18\x0C \x01(\x0B2:.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation\x12\x19\x0A\x11inspect_templates\x18\x03 \x03(\x09\x129\x0A\x07actions\x18\x04 \x03(\x0B2(.google.privacy.dlp.v2.DataProfileAction\x127\x0A\x07targets\x18\x05 \x03(\x0B2&.google.privacy.dlp.v2.DiscoveryTarget\x121\x0A\x06errors\x18\x06 \x03(\x0B2\x1C.google.privacy.dlp.v2.ErrorB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x126\x0A\x0Dlast_run_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12B\x0A\x06status\x18\x0A \x01(\x0E2-.google.privacy.dlp.v2.DiscoveryConfig.StatusB\x03\xE0A\x02\x12K\x0A\x13processing_location\x18\x0D \x01(\x0B2).google.privacy.dlp.v2.ProcessingLocationB\x03\xE0A\x01\x1Ac\x0A\x09OrgConfig\x12B\x0A\x08location\x18\x01 \x01(\x0B20.google.privacy.dlp.v2.DiscoveryStartingLocation\x12\x12\x0A\x0Aproject_id\x18\x02 \x01(\x09\"9\x0A\x06Status\x12\x16\x0A\x12STATUS_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0A\x0A\x06PAUSED\x10\x02:t\xEAAq\x0A\"dlp.googleapis.com/DiscoveryConfig\x12Kprojects/{project}/locations/{location}/discoveryConfigs/{discovery_config}\"\xF6\x03\x0A\x0FDiscoveryTarget\x12J\x0A\x10big_query_target\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.BigQueryDiscoveryTargetH\x00\x12J\x0A\x10cloud_sql_target\x18\x02 \x01(\x0B2..google.privacy.dlp.v2.CloudSqlDiscoveryTargetH\x00\x12G\x0A\x0Esecrets_target\x18\x03 \x01(\x0B2-.google.privacy.dlp.v2.SecretsDiscoveryTargetH\x00\x12R\x0A\x14cloud_storage_target\x18\x04 \x01(\x0B22.google.privacy.dlp.v2.CloudStorageDiscoveryTargetH\x00\x12N\x0A\x12other_cloud_target\x18\x05 \x01(\x0B20.google.privacy.dlp.v2.OtherCloudDiscoveryTargetH\x00\x12T\x0A\x15vertex_dataset_target\x18\x07 \x01(\x0B23.google.privacy.dlp.v2.VertexDatasetDiscoveryTargetH\x00B\x08\x0A\x06target\"\xAE\x02\x0A\x17BigQueryDiscoveryTarget\x12C\x0A\x06filter\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.DiscoveryBigQueryFilterB\x03\xE0A\x02\x12F\x0A\x0Aconditions\x18\x02 \x01(\x0B22.google.privacy.dlp.v2.DiscoveryBigQueryConditions\x12D\x0A\x07cadence\x18\x03 \x01(\x0B21.google.privacy.dlp.v2.DiscoveryGenerationCadenceH\x00\x123\x0A\x08disabled\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledH\x00B\x0B\x0A\x09frequency\"\xA0\x02\x0A\x17DiscoveryBigQueryFilter\x12@\x0A\x06tables\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.BigQueryTableCollectionH\x00\x12]\x0A\x0Cother_tables\x18\x02 \x01(\x0B2E.google.privacy.dlp.v2.DiscoveryBigQueryFilter.AllOtherBigQueryTablesH\x00\x12@\x0A\x0Ftable_reference\x18\x03 \x01(\x0B2%.google.privacy.dlp.v2.TableReferenceH\x00\x1A\x18\x0A\x16AllOtherBigQueryTablesB\x08\x0A\x06filter\"g\x0A\x17BigQueryTableCollection\x12A\x0A\x0Finclude_regexes\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.BigQueryRegexesH\x00B\x09\x0A\x07pattern\"\x98\x03\x0A\x1BDiscoveryBigQueryConditions\x121\x0A\x0Dcreated_after\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12:\x0A\x05types\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.BigQueryTableTypesH\x00\x12M\x0A\x0Ftype_collection\x18\x03 \x01(\x0E22.google.privacy.dlp.v2.BigQueryTableTypeCollectionH\x00\x12V\x0A\x0Dor_conditions\x18\x04 \x01(\x0B2?.google.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions\x1AQ\x0A\x0COrConditions\x12\x15\x0A\x0Dmin_row_count\x18\x01 \x01(\x05\x12*\x0A\x07min_age\x18\x02 \x01(\x0B2\x19.google.protobuf.DurationB\x10\x0A\x0Eincluded_types\"\x83\x03\x0A\x1ADiscoveryGenerationCadence\x12V\x0A\x17schema_modified_cadence\x18\x01 \x01(\x0B25.google.privacy.dlp.v2.DiscoverySchemaModifiedCadence\x12T\x0A\x16table_modified_cadence\x18\x02 \x01(\x0B24.google.privacy.dlp.v2.DiscoveryTableModifiedCadence\x12i\x0A!inspect_template_modified_cadence\x18\x03 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\x12L\x0A\x11refresh_frequency\x18\x04 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"\xA6\x01\x0A\x1DDiscoveryTableModifiedCadence\x12?\x0A\x05types\x18\x01 \x03(\x0E20.google.privacy.dlp.v2.BigQueryTableModification\x12D\x0A\x09frequency\x18\x02 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"\xA8\x01\x0A\x1EDiscoverySchemaModifiedCadence\x12@\x0A\x05types\x18\x01 \x03(\x0E21.google.privacy.dlp.v2.BigQuerySchemaModification\x12D\x0A\x09frequency\x18\x02 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"o\x0A'DiscoveryInspectTemplateModifiedCadence\x12D\x0A\x09frequency\x18\x01 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"\xBF\x02\x0A\x17CloudSqlDiscoveryTarget\x12C\x0A\x06filter\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.DiscoveryCloudSqlFilterB\x03\xE0A\x02\x12F\x0A\x0Aconditions\x18\x02 \x01(\x0B22.google.privacy.dlp.v2.DiscoveryCloudSqlConditions\x12W\x0A\x12generation_cadence\x18\x03 \x01(\x0B29.google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadenceH\x00\x123\x0A\x08disabled\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledH\x00B\x09\x0A\x07cadence\"\x89\x02\x0A\x17DiscoveryCloudSqlFilter\x12G\x0A\x0Acollection\x18\x01 \x01(\x0B21.google.privacy.dlp.v2.DatabaseResourceCollectionH\x00\x12B\x0A\x06others\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.AllOtherDatabaseResourcesH\x00\x12W\x0A\x1Bdatabase_resource_reference\x18\x03 \x01(\x0B20.google.privacy.dlp.v2.DatabaseResourceReferenceH\x00B\x08\x0A\x06filter\"r\x0A\x1ADatabaseResourceCollection\x12I\x0A\x0Finclude_regexes\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.DatabaseResourceRegexesH\x00B\x09\x0A\x07pattern\"Y\x0A\x17DatabaseResourceRegexes\x12>\x0A\x08patterns\x18\x01 \x03(\x0B2,.google.privacy.dlp.v2.DatabaseResourceRegex\"\x87\x01\x0A\x15DatabaseResourceRegex\x12\x18\x0A\x10project_id_regex\x18\x01 \x01(\x09\x12\x16\x0A\x0Einstance_regex\x18\x02 \x01(\x09\x12\x16\x0A\x0Edatabase_regex\x18\x03 \x01(\x09\x12\$\x0A\x1Cdatabase_resource_name_regex\x18\x04 \x01(\x09\"\x1B\x0A\x19AllOtherDatabaseResources\"\x82\x01\x0A\x19DatabaseResourceReference\x12\x17\x0A\x0Aproject_id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08instance\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08database\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11database_resource\x18\x04 \x01(\x09B\x03\xE0A\x02\"\xDA\x03\x0A\x1BDiscoveryCloudSqlConditions\x12`\x0A\x10database_engines\x18\x01 \x03(\x0E2A.google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngineB\x03\xE0A\x01\x12V\x0A\x05types\x18\x03 \x03(\x0E2G.google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType\"n\x0A\x0EDatabaseEngine\x12\x1F\x0A\x1BDATABASE_ENGINE_UNSPECIFIED\x10\x00\x12\"\x0A\x1EALL_SUPPORTED_DATABASE_ENGINES\x10\x01\x12\x09\x0A\x05MYSQL\x10\x02\x12\x0C\x0A\x08POSTGRES\x10\x03\"\x90\x01\x0A\x14DatabaseResourceType\x12&\x0A\"DATABASE_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12.\x0A*DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES\x10\x01\x12 \x0A\x1CDATABASE_RESOURCE_TYPE_TABLE\x10\x02\"\x97\x05\x0A\"DiscoveryCloudSqlGenerationCadence\x12p\x0A\x17schema_modified_cadence\x18\x01 \x01(\x0B2O.google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence\x12L\x0A\x11refresh_frequency\x18\x02 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\x12i\x0A!inspect_template_modified_cadence\x18\x03 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\x1A\xC5\x02\x0A\x15SchemaModifiedCadence\x12y\x0A\x05types\x18\x01 \x03(\x0E2j.google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.CloudSqlSchemaModification\x12D\x0A\x09frequency\x18\x02 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\"k\x0A\x1ACloudSqlSchemaModification\x12'\x0A#SQL_SCHEMA_MODIFICATION_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BNEW_COLUMNS\x10\x01\x12\x13\x0A\x0FREMOVED_COLUMNS\x10\x02\"\x18\x0A\x16SecretsDiscoveryTarget\"\xDB\x02\x0A\x1BCloudStorageDiscoveryTarget\x12G\x0A\x06filter\x18\x01 \x01(\x0B22.google.privacy.dlp.v2.DiscoveryCloudStorageFilterB\x03\xE0A\x02\x12L\x0A\x0Aconditions\x18\x04 \x01(\x0B23.google.privacy.dlp.v2.DiscoveryFileStoreConditionsB\x03\xE0A\x01\x12`\x0A\x12generation_cadence\x18\x02 \x01(\x0B2=.google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadenceB\x03\xE0A\x01H\x00\x128\x0A\x08disabled\x18\x03 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledB\x03\xE0A\x01H\x00B\x09\x0A\x07cadence\"\x96\x02\x0A\x1BDiscoveryCloudStorageFilter\x12E\x0A\x0Acollection\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.FileStoreCollectionB\x03\xE0A\x01H\x00\x12e\x0A cloud_storage_resource_reference\x18\x02 \x01(\x0B24.google.privacy.dlp.v2.CloudStorageResourceReferenceB\x03\xE0A\x01H\x00\x12?\x0A\x06others\x18d \x01(\x0B2(.google.privacy.dlp.v2.AllOtherResourcesB\x03\xE0A\x01H\x00B\x08\x0A\x06filter\"\xA7\x01\x0A\x13FileStoreCollection\x12G\x0A\x0Finclude_regexes\x18\x01 \x01(\x0B2'.google.privacy.dlp.v2.FileStoreRegexesB\x03\xE0A\x01H\x00\x12<\x0A\x0Cinclude_tags\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.TagFiltersB\x03\xE0A\x01B\x09\x0A\x07pattern\"P\x0A\x10FileStoreRegexes\x12<\x0A\x08patterns\x18\x01 \x03(\x0B2%.google.privacy.dlp.v2.FileStoreRegexB\x03\xE0A\x02\"p\x0A\x0EFileStoreRegex\x12L\x0A\x13cloud_storage_regex\x18\x01 \x01(\x0B2(.google.privacy.dlp.v2.CloudStorageRegexB\x03\xE0A\x01H\x00B\x10\x0A\x0Eresource_regex\"R\x0A\x11CloudStorageRegex\x12\x1D\x0A\x10project_id_regex\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1E\x0A\x11bucket_name_regex\x18\x02 \x01(\x09B\x03\xE0A\x01\"R\x0A\x1DCloudStorageResourceReference\x12\x18\x0A\x0Bbucket_name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Aproject_id\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xEB\x01\x0A&DiscoveryCloudStorageGenerationCadence\x12Q\x0A\x11refresh_frequency\x18\x01 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequencyB\x03\xE0A\x01\x12n\x0A!inspect_template_modified_cadence\x18\x02 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceB\x03\xE0A\x01\"\x9B\x05\x0A\x1FDiscoveryCloudStorageConditions\x12{\x0A\x1Aincluded_object_attributes\x18\x01 \x03(\x0E2R.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttributeB\x03\xE0A\x02\x12{\x0A\x1Aincluded_bucket_attributes\x18\x02 \x03(\x0E2R.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttributeB\x03\xE0A\x02\"\xE3\x01\x0A\x1BCloudStorageObjectAttribute\x12.\x0A*CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ALL_SUPPORTED_OBJECTS\x10\x01\x12\x0C\x0A\x08STANDARD\x10\x02\x12\x0C\x0A\x08NEARLINE\x10\x03\x12\x0C\x0A\x08COLDLINE\x10\x04\x12\x0B\x0A\x07ARCHIVE\x10\x05\x12\x0C\x0A\x08REGIONAL\x10\x06\x12\x12\x0A\x0EMULTI_REGIONAL\x10\x07\x12 \x0A\x1CDURABLE_REDUCED_AVAILABILITY\x10\x08\"\x97\x01\x0A\x1BCloudStorageBucketAttribute\x12.\x0A*CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ALL_SUPPORTED_BUCKETS\x10\x01\x12\x16\x0A\x12AUTOCLASS_DISABLED\x10\x02\x12\x15\x0A\x11AUTOCLASS_ENABLED\x10\x03\"\xF6\x01\x0A\x1CDiscoveryFileStoreConditions\x126\x0A\x0Dcreated_after\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12/\x0A\x07min_age\x18\x02 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01\x12_\x0A\x18cloud_storage_conditions\x18\x03 \x01(\x0B26.google.privacy.dlp.v2.DiscoveryCloudStorageConditionsB\x03\xE0A\x01H\x00B\x0C\x0A\x0Aconditions\"\x92\x03\x0A\x19OtherCloudDiscoveryTarget\x12D\x0A\x10data_source_type\x18\x01 \x01(\x0B2%.google.privacy.dlp.v2.DataSourceTypeB\x03\xE0A\x02\x12E\x0A\x06filter\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.DiscoveryOtherCloudFilterB\x03\xE0A\x02\x12M\x0A\x0Aconditions\x18\x03 \x01(\x0B24.google.privacy.dlp.v2.DiscoveryOtherCloudConditionsB\x03\xE0A\x01\x12Y\x0A\x12generation_cadence\x18\x04 \x01(\x0B2;.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadenceH\x00\x123\x0A\x08disabled\x18\x05 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledH\x00B\x09\x0A\x07cadence\"\x86\x02\x0A\x19DiscoveryOtherCloudFilter\x12I\x0A\x0Acollection\x18\x01 \x01(\x0B23.google.privacy.dlp.v2.OtherCloudResourceCollectionH\x00\x12S\x0A\x0Fsingle_resource\x18\x02 \x01(\x0B28.google.privacy.dlp.v2.OtherCloudSingleResourceReferenceH\x00\x12?\x0A\x06others\x18d \x01(\x0B2(.google.privacy.dlp.v2.AllOtherResourcesB\x03\xE0A\x01H\x00B\x08\x0A\x06filter\"v\x0A\x1COtherCloudResourceCollection\x12K\x0A\x0Finclude_regexes\x18\x01 \x01(\x0B20.google.privacy.dlp.v2.OtherCloudResourceRegexesH\x00B\x09\x0A\x07pattern\"]\x0A\x19OtherCloudResourceRegexes\x12@\x0A\x08patterns\x18\x01 \x03(\x0B2..google.privacy.dlp.v2.OtherCloudResourceRegex\"y\x0A\x17OtherCloudResourceRegex\x12L\x0A\x16amazon_s3_bucket_regex\x18\x01 \x01(\x0B2*.google.privacy.dlp.v2.AmazonS3BucketRegexH\x00B\x10\x0A\x0Eresource_regex\"0\x0A\x0FAwsAccountRegex\x12\x1D\x0A\x10account_id_regex\x18\x01 \x01(\x09B\x03\xE0A\x01\"x\x0A\x13AmazonS3BucketRegex\x12A\x0A\x11aws_account_regex\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.AwsAccountRegex\x12\x1E\x0A\x11bucket_name_regex\x18\x02 \x01(\x09B\x03\xE0A\x01\"r\x0A!OtherCloudSingleResourceReference\x12A\x0A\x10amazon_s3_bucket\x18\x01 \x01(\x0B2%.google.privacy.dlp.v2.AmazonS3BucketH\x00B\x0A\x0A\x08resource\"%\x0A\x0AAwsAccount\x12\x17\x0A\x0Aaccount_id\x18\x01 \x01(\x09B\x03\xE0A\x02\"b\x0A\x0EAmazonS3Bucket\x126\x0A\x0Baws_account\x18\x01 \x01(\x0B2!.google.privacy.dlp.v2.AwsAccount\x12\x18\x0A\x0Bbucket_name\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xB1\x01\x0A\x1DDiscoveryOtherCloudConditions\x12*\x0A\x07min_age\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\x12V\x0A\x1Bamazon_s3_bucket_conditions\x18\x02 \x01(\x0B2/.google.privacy.dlp.v2.AmazonS3BucketConditionsH\x00B\x0C\x0A\x0Aconditions\"\xD9\x03\x0A\x18AmazonS3BucketConditions\x12U\x0A\x0Cbucket_types\x18\x01 \x03(\x0E2:.google.privacy.dlp.v2.AmazonS3BucketConditions.BucketTypeB\x03\xE0A\x01\x12g\x0A\x16object_storage_classes\x18\x02 \x03(\x0E2B.google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClassB\x03\xE0A\x01\"T\x0A\x0ABucketType\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x16\x0A\x12TYPE_ALL_SUPPORTED\x10\x01\x12\x18\x0A\x14TYPE_GENERAL_PURPOSE\x10\x02\"\xA6\x01\x0A\x12ObjectStorageClass\x12\x0F\x0A\x0BUNSPECIFIED\x10\x00\x12\x19\x0A\x15ALL_SUPPORTED_CLASSES\x10\x01\x12\x0C\x0A\x08STANDARD\x10\x02\x12\x1E\x0A\x1ASTANDARD_INFREQUENT_ACCESS\x10\x04\x12\x1D\x0A\x19GLACIER_INSTANT_RETRIEVAL\x10\x06\x12\x17\x0A\x13INTELLIGENT_TIERING\x10\x07\"\xE9\x01\x0A\$DiscoveryOtherCloudGenerationCadence\x12Q\x0A\x11refresh_frequency\x18\x01 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequencyB\x03\xE0A\x01\x12n\x0A!inspect_template_modified_cadence\x18\x02 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceB\x03\xE0A\x01\"W\x0A\x19DiscoveryStartingLocation\x12\x19\x0A\x0Forganization_id\x18\x01 \x01(\x03H\x00\x12\x13\x0A\x09folder_id\x18\x02 \x01(\x03H\x00B\x0A\x0A\x08location\"\x87\x02\x0A#OtherCloudDiscoveryStartingLocation\x12o\x0A\x0Caws_location\x18\x01 \x01(\x0B2W.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation.AwsDiscoveryStartingLocationH\x00\x1Ac\x0A\x1CAwsDiscoveryStartingLocation\x12\x14\x0A\x0Aaccount_id\x18\x02 \x01(\x09H\x00\x12\$\x0A\x1Aall_asset_inventory_assets\x18\x03 \x01(\x08H\x00B\x07\x0A\x05scopeB\x0A\x0A\x08location\"\x13\x0A\x11AllOtherResources\"\xD3\x02\x0A\x1CVertexDatasetDiscoveryTarget\x12H\x0A\x06filter\x18\x01 \x01(\x0B23.google.privacy.dlp.v2.DiscoveryVertexDatasetFilterB\x03\xE0A\x02\x12K\x0A\x0Aconditions\x18\x02 \x01(\x0B27.google.privacy.dlp.v2.DiscoveryVertexDatasetConditions\x12\\\x0A\x12generation_cadence\x18\x03 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryVertexDatasetGenerationCadenceH\x00\x123\x0A\x08disabled\x18\x04 \x01(\x0B2\x1F.google.privacy.dlp.v2.DisabledH\x00B\x09\x0A\x07cadence\"\x8E\x02\x0A\x1CDiscoveryVertexDatasetFilter\x12D\x0A\x0Acollection\x18\x01 \x01(\x0B2..google.privacy.dlp.v2.VertexDatasetCollectionH\x00\x12b\x0A!vertex_dataset_resource_reference\x18\x02 \x01(\x0B25.google.privacy.dlp.v2.VertexDatasetResourceReferenceH\x00\x12:\x0A\x06others\x18d \x01(\x0B2(.google.privacy.dlp.v2.AllOtherResourcesH\x00B\x08\x0A\x06filter\"s\x0A\x17VertexDatasetCollection\x12M\x0A\x16vertex_dataset_regexes\x18\x01 \x01(\x0B2+.google.privacy.dlp.v2.VertexDatasetRegexesH\x00B\x09\x0A\x07pattern\"X\x0A\x14VertexDatasetRegexes\x12@\x0A\x08patterns\x18\x01 \x03(\x0B2).google.privacy.dlp.v2.VertexDatasetRegexB\x03\xE0A\x02\".\x0A\x12VertexDatasetRegex\x12\x18\x0A\x10project_id_regex\x18\x01 \x01(\x09\"D\x0A\x1EVertexDatasetResourceReference\x12\"\x0A\x15dataset_resource_name\x18\x01 \x01(\x09B\x03\xE0A\x02\"\x81\x01\x0A DiscoveryVertexDatasetConditions\x121\x0A\x0Dcreated_after\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12*\x0A\x07min_age\x18\x02 \x01(\x0B2\x19.google.protobuf.Duration\"\xE2\x01\x0A'DiscoveryVertexDatasetGenerationCadence\x12L\x0A\x11refresh_frequency\x18\x01 \x01(\x0E21.google.privacy.dlp.v2.DataProfileUpdateFrequency\x12i\x0A!inspect_template_modified_cadence\x18\x02 \x01(\x0B2>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\"\xDC\x06\x0A\x06DlpJob\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12/\x0A\x04type\x18\x02 \x01(\x0E2!.google.privacy.dlp.v2.DlpJobType\x125\x0A\x05state\x18\x03 \x01(\x0E2&.google.privacy.dlp.v2.DlpJob.JobState\x12K\x0A\x0Crisk_details\x18\x04 \x01(\x0B23.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetailsH\x00\x12J\x0A\x0Finspect_details\x18\x05 \x01(\x0B2/.google.privacy.dlp.v2.InspectDataSourceDetailsH\x00\x12/\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12.\x0A\x0Astart_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\x121\x0A\x0Dlast_modified\x18\x0F \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x18\x0A\x10job_trigger_name\x18\x0A \x01(\x09\x12,\x0A\x06errors\x18\x0B \x03(\x0B2\x1C.google.privacy.dlp.v2.Error\x12<\x0A\x0Eaction_details\x18\x0C \x03(\x0B2\$.google.privacy.dlp.v2.ActionDetails\"o\x0A\x08JobState\x12\x19\x0A\x15JOB_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PENDING\x10\x01\x12\x0B\x0A\x07RUNNING\x10\x02\x12\x08\x0A\x04DONE\x10\x03\x12\x0C\x0A\x08CANCELED\x10\x04\x12\x0A\x0A\x06FAILED\x10\x05\x12\x0A\x0A\x06ACTIVE\x10\x06:\x7F\xEAA|\x0A\x19dlp.googleapis.com/DlpJob\x12\$projects/{project}/dlpJobs/{dlp_job}\x129projects/{project}/locations/{location}/dlpJobs/{dlp_job}B\x09\x0A\x07details\"C\x0A\x10GetDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\"\xD6\x01\x0A\x12ListDlpJobsRequest\x121\x0A\x06parent\x18\x04 \x01(\x09B!\xE0A\x02\xFAA\x1B\x12\x19dlp.googleapis.com/DlpJob\x12\x0E\x0A\x06filter\x18\x01 \x01(\x09\x12\x11\x0A\x09page_size\x18\x02 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x03 \x01(\x09\x12/\x0A\x04type\x18\x05 \x01(\x0E2!.google.privacy.dlp.v2.DlpJobType\x12\x10\x0A\x08order_by\x18\x06 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x07 \x01(\x09\"[\x0A\x13ListDlpJobsResponse\x12+\x0A\x04jobs\x18\x01 \x03(\x0B2\x1D.google.privacy.dlp.v2.DlpJob\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"F\x0A\x13CancelDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\"F\x0A\x13FinishDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\"F\x0A\x13DeleteDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\"\xD7\x01\x0A\x1FCreateDeidentifyTemplateRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%dlp.googleapis.com/DeidentifyTemplate\x12K\x0A\x13deidentify_template\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplateB\x03\xE0A\x02\x12\x13\x0A\x0Btemplate_id\x18\x03 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\"\xD7\x01\x0A\x1FUpdateDeidentifyTemplateRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/DeidentifyTemplate\x12F\x0A\x13deidentify_template\x18\x02 \x01(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"[\x0A\x1CGetDeidentifyTemplateRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/DeidentifyTemplate\"\xAD\x01\x0A\x1EListDeidentifyTemplatesRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%dlp.googleapis.com/DeidentifyTemplate\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09\"\x83\x01\x0A\x1FListDeidentifyTemplatesResponse\x12G\x0A\x14deidentify_templates\x18\x01 \x03(\x0B2).google.privacy.dlp.v2.DeidentifyTemplate\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"^\x0A\x1FDeleteDeidentifyTemplateRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/DeidentifyTemplate\"\xF4\x01\x0A\x1BLargeCustomDictionaryConfig\x12<\x0A\x0Boutput_path\x18\x01 \x01(\x0B2'.google.privacy.dlp.v2.CloudStoragePath\x12L\x0A\x16cloud_storage_file_set\x18\x02 \x01(\x0B2*.google.privacy.dlp.v2.CloudStorageFileSetH\x00\x12?\x0A\x0Fbig_query_field\x18\x03 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryFieldH\x00B\x08\x0A\x06source\"8\x0A\x1ALargeCustomDictionaryStats\x12\x1A\x0A\x12approx_num_phrases\x18\x01 \x01(\x03\"\xA6\x02\x0A\x14StoredInfoTypeConfig\x12\x14\x0A\x0Cdisplay_name\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12U\x0A\x17large_custom_dictionary\x18\x03 \x01(\x0B22.google.privacy.dlp.v2.LargeCustomDictionaryConfigH\x00\x12F\x0A\x0Adictionary\x18\x04 \x01(\x0B20.google.privacy.dlp.v2.CustomInfoType.DictionaryH\x00\x12<\x0A\x05regex\x18\x05 \x01(\x0B2+.google.privacy.dlp.v2.CustomInfoType.RegexH\x00B\x06\x0A\x04type\"s\x0A\x13StoredInfoTypeStats\x12T\x0A\x17large_custom_dictionary\x18\x01 \x01(\x0B21.google.privacy.dlp.v2.LargeCustomDictionaryStatsH\x00B\x06\x0A\x04type\"\xA9\x02\x0A\x15StoredInfoTypeVersion\x12;\x0A\x06config\x18\x01 \x01(\x0B2+.google.privacy.dlp.v2.StoredInfoTypeConfig\x12/\x0A\x0Bcreate_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x129\x0A\x05state\x18\x03 \x01(\x0E2*.google.privacy.dlp.v2.StoredInfoTypeState\x12,\x0A\x06errors\x18\x04 \x03(\x0B2\x1C.google.privacy.dlp.v2.Error\x129\x0A\x05stats\x18\x05 \x01(\x0B2*.google.privacy.dlp.v2.StoredInfoTypeStats\"\xF1\x03\x0A\x0EStoredInfoType\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12E\x0A\x0Fcurrent_version\x18\x02 \x01(\x0B2,.google.privacy.dlp.v2.StoredInfoTypeVersion\x12F\x0A\x10pending_versions\x18\x03 \x03(\x0B2,.google.privacy.dlp.v2.StoredInfoTypeVersion:\xC1\x02\xEAA\xBD\x02\x0A!dlp.googleapis.com/StoredInfoType\x12?organizations/{organization}/storedInfoTypes/{stored_info_type}\x125projects/{project}/storedInfoTypes/{stored_info_type}\x12Torganizations/{organization}/locations/{location}/storedInfoTypes/{stored_info_type}\x12Jprojects/{project}/locations/{location}/storedInfoTypes/{stored_info_type}\"\xCC\x01\x0A\x1BCreateStoredInfoTypeRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x12!dlp.googleapis.com/StoredInfoType\x12@\x0A\x06config\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.StoredInfoTypeConfigB\x03\xE0A\x02\x12\x1B\x0A\x13stored_info_type_id\x18\x03 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x04 \x01(\x09\"\xC4\x01\x0A\x1BUpdateStoredInfoTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dlp.googleapis.com/StoredInfoType\x12;\x0A\x06config\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.StoredInfoTypeConfig\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"S\x0A\x18GetStoredInfoTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dlp.googleapis.com/StoredInfoType\"\xA5\x01\x0A\x1AListStoredInfoTypesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x12!dlp.googleapis.com/StoredInfoType\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x13\x0A\x0Blocation_id\x18\x05 \x01(\x09\"x\x0A\x1BListStoredInfoTypesResponse\x12@\x0A\x11stored_info_types\x18\x01 \x03(\x0B2%.google.privacy.dlp.v2.StoredInfoType\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"V\x0A\x1BDeleteStoredInfoTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dlp.googleapis.com/StoredInfoType\"\x94\x01\x0A\x1EHybridInspectJobTriggerRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/JobTrigger\x12=\x0A\x0Bhybrid_item\x18\x03 \x01(\x0B2(.google.privacy.dlp.v2.HybridContentItem\"\x8C\x01\x0A\x1AHybridInspectDlpJobRequest\x12/\x0A\x04name\x18\x01 \x01(\x09B!\xE0A\x02\xFAA\x1B\x0A\x19dlp.googleapis.com/DlpJob\x12=\x0A\x0Bhybrid_item\x18\x03 \x01(\x0B2(.google.privacy.dlp.v2.HybridContentItem\"\x8B\x01\x0A\x11HybridContentItem\x120\x0A\x04item\x18\x01 \x01(\x0B2\".google.privacy.dlp.v2.ContentItem\x12D\x0A\x0Ffinding_details\x18\x02 \x01(\x0B2+.google.privacy.dlp.v2.HybridFindingDetails\"\xB0\x02\x0A\x14HybridFindingDetails\x12;\x0A\x11container_details\x18\x01 \x01(\x0B2 .google.privacy.dlp.v2.Container\x12\x13\x0A\x0Bfile_offset\x18\x02 \x01(\x03\x12\x12\x0A\x0Arow_offset\x18\x03 \x01(\x03\x12:\x0A\x0Dtable_options\x18\x04 \x01(\x0B2#.google.privacy.dlp.v2.TableOptions\x12G\x0A\x06labels\x18\x05 \x03(\x0B27.google.privacy.dlp.v2.HybridFindingDetails.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x17\x0A\x15HybridInspectResponse\"\xC3\x01\x0A\x14ImageContainmentType\x123\x0A\x08encloses\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.EnclosesH\x00\x12:\x0A\x0Cfully_inside\x18\x02 \x01(\x0B2\".google.privacy.dlp.v2.FullyInsideH\x00\x122\x0A\x08overlaps\x18\x03 \x01(\x0B2\x1E.google.privacy.dlp.v2.OverlapH\x00B\x06\x0A\x04type\"\x09\x0A\x07Overlap\"\x0A\x0A\x08Encloses\"\x0D\x0A\x0BFullyInside\"\xA8\x01\x0A\x1EListProjectDataProfilesRequest\x12=\x0A\x06parent\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x12%dlp.googleapis.com/ProjectDataProfile\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\"\x84\x01\x0A\x1FListProjectDataProfilesResponse\x12H\x0A\x15project_data_profiles\x18\x01 \x03(\x0B2).google.privacy.dlp.v2.ProjectDataProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA4\x01\x0A\x1CListTableDataProfilesRequest\x12;\x0A\x06parent\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x12#dlp.googleapis.com/TableDataProfile\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\"~\x0A\x1DListTableDataProfilesResponse\x12D\x0A\x13table_data_profiles\x18\x01 \x03(\x0B2'.google.privacy.dlp.v2.TableDataProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA6\x01\x0A\x1DListColumnDataProfilesRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x12\$dlp.googleapis.com/ColumnDataProfile\x12\x12\x0A\x0Apage_token\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x10\x0A\x08order_by\x18\x04 \x01(\x09\x12\x0E\x0A\x06filter\x18\x05 \x01(\x09\"\x81\x01\x0A\x1EListColumnDataProfilesResponse\x12F\x0A\x14column_data_profiles\x18\x01 \x03(\x0B2(.google.privacy.dlp.v2.ColumnDataProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xCB\x01\x0A\x0DDataRiskLevel\x12F\x0A\x05score\x18\x01 \x01(\x0E27.google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore\"r\x0A\x12DataRiskLevelScore\x12\x1A\x0A\x16RISK_SCORE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08RISK_LOW\x10\x0A\x12\x10\x0A\x0CRISK_UNKNOWN\x10\x0C\x12\x11\x0A\x0DRISK_MODERATE\x10\x14\x12\x0D\x0A\x09RISK_HIGH\x10\x1E\"\xDC\x04\x0A\x12ProjectDataProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x12\x0A\x0Aproject_id\x18\x02 \x01(\x09\x12:\x0A\x16profile_last_generated\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12B\x0A\x11sensitivity_score\x18\x04 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x05 \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12<\x0A\x0Eprofile_status\x18\x07 \x01(\x0B2\$.google.privacy.dlp.v2.ProfileStatus\x12 \x0A\x18table_data_profile_count\x18\x09 \x01(\x03\x12%\x0A\x1Dfile_store_data_profile_count\x18\x0A \x01(\x03:\xDD\x01\xEAA\xD9\x01\x0A%dlp.googleapis.com/ProjectDataProfile\x12\\organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}\x12Rprojects/{project}/locations/{location}/projectDataProfiles/{project_data_profile}\"\xC9\x02\x0A\x19DataProfileConfigSnapshot\x12<\x0A\x0Einspect_config\x18\x02 \x01(\x0B2\$.google.privacy.dlp.v2.InspectConfig\x12I\x0A\x10data_profile_job\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.DataProfileJobConfigB\x02\x18\x01\x12@\x0A\x10discovery_config\x18\x04 \x01(\x0B2&.google.privacy.dlp.v2.DiscoveryConfig\x12\x1D\x0A\x15inspect_template_name\x18\x05 \x01(\x09\x12B\x0A\x1Einspect_template_modified_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\x93\x0E\x0A\x10TableDataProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12?\x0A\x10data_source_type\x18\$ \x01(\x0B2%.google.privacy.dlp.v2.DataSourceType\x12\x1C\x0A\x14project_data_profile\x18\x02 \x01(\x09\x12\x1A\x0A\x12dataset_project_id\x18\x18 \x01(\x09\x12\x18\x0A\x10dataset_location\x18\x1D \x01(\x09\x12\x12\x0A\x0Adataset_id\x18\x19 \x01(\x09\x12\x10\x0A\x08table_id\x18\x1A \x01(\x09\x12\x15\x0A\x0Dfull_resource\x18\x03 \x01(\x09\x12<\x0A\x0Eprofile_status\x18\x15 \x01(\x0B2\$.google.privacy.dlp.v2.ProfileStatus\x12<\x0A\x05state\x18\x16 \x01(\x0E2-.google.privacy.dlp.v2.TableDataProfile.State\x12B\x0A\x11sensitivity_score\x18\x05 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x06 \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12D\x0A\x14predicted_info_types\x18\x1B \x03(\x0B2&.google.privacy.dlp.v2.InfoTypeSummary\x12E\x0A\x10other_info_types\x18\x1C \x03(\x0B2+.google.privacy.dlp.v2.OtherInfoTypeSummary\x12I\x0A\x0Fconfig_snapshot\x18\x07 \x01(\x0B20.google.privacy.dlp.v2.DataProfileConfigSnapshot\x126\x0A\x12last_modified_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\x123\x0A\x0Fexpiration_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x1C\x0A\x14scanned_column_count\x18\x0A \x01(\x03\x12\x1B\x0A\x13failed_column_count\x18\x0B \x01(\x03\x12\x18\x0A\x10table_size_bytes\x18\x0C \x01(\x03\x12\x11\x0A\x09row_count\x18\x0D \x01(\x03\x12B\x0A\x11encryption_status\x18\x0E \x01(\x0E2'.google.privacy.dlp.v2.EncryptionStatus\x12F\x0A\x13resource_visibility\x18\x0F \x01(\x0E2).google.privacy.dlp.v2.ResourceVisibility\x12:\x0A\x16profile_last_generated\x18\x10 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12T\x0A\x0Fresource_labels\x18\x11 \x03(\x0B2;.google.privacy.dlp.v2.TableDataProfile.ResourceLabelsEntry\x12/\x0A\x0Bcreate_time\x18\x17 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12C\x0A\x15sample_findings_table\x18% \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12(\x0A\x04tags\x18' \x03(\x0B2\x1A.google.privacy.dlp.v2.Tag\x12A\x0A\x11related_resources\x18) \x03(\x0B2&.google.privacy.dlp.v2.RelatedResource\x12.\x0A\x07domains\x18/ \x03(\x0B2\x1D.google.privacy.dlp.v2.Domain\x1A5\x0A\x13ResourceLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"5\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x08\x0A\x04DONE\x10\x02:\xD3\x01\xEAA\xCF\x01\x0A#dlp.googleapis.com/TableDataProfile\x12Xorganizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}\x12Nprojects/{project}/locations/{location}/tableDataProfiles/{table_data_profile}\"b\x0A\x0DProfileStatus\x12\"\x0A\x06status\x18\x01 \x01(\x0B2\x12.google.rpc.Status\x12-\x0A\x09timestamp\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"g\x0A\x0FInfoTypeSummary\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12 \x0A\x14estimated_prevalence\x18\x02 \x01(\x05B\x02\x18\x01\"\x88\x01\x0A\x14OtherInfoTypeSummary\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x12\x1C\x0A\x14estimated_prevalence\x18\x02 \x01(\x05\x12\x1E\x0A\x16excluded_from_analysis\x18\x03 \x01(\x08\"\xC9\x0D\x0A\x11ColumnDataProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12<\x0A\x0Eprofile_status\x18\x11 \x01(\x0B2\$.google.privacy.dlp.v2.ProfileStatus\x12=\x0A\x05state\x18\x12 \x01(\x0E2..google.privacy.dlp.v2.ColumnDataProfile.State\x12:\x0A\x16profile_last_generated\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x1A\x0A\x12table_data_profile\x18\x04 \x01(\x09\x12\x1B\x0A\x13table_full_resource\x18\x05 \x01(\x09\x12\x1A\x0A\x12dataset_project_id\x18\x13 \x01(\x09\x12\x18\x0A\x10dataset_location\x18\x14 \x01(\x09\x12\x12\x0A\x0Adataset_id\x18\x15 \x01(\x09\x12\x10\x0A\x08table_id\x18\x16 \x01(\x09\x12\x0E\x0A\x06column\x18\x06 \x01(\x09\x12B\x0A\x11sensitivity_score\x18\x07 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x08 \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12@\x0A\x10column_info_type\x18\x09 \x01(\x0B2&.google.privacy.dlp.v2.InfoTypeSummary\x12B\x0A\x0Dother_matches\x18\x0A \x03(\x0B2+.google.privacy.dlp.v2.OtherInfoTypeSummary\x12M\x0A\x19estimated_null_percentage\x18\x17 \x01(\x0E2*.google.privacy.dlp.v2.NullPercentageLevel\x12O\x0A\x1Aestimated_uniqueness_score\x18\x18 \x01(\x0E2+.google.privacy.dlp.v2.UniquenessScoreLevel\x12\x17\x0A\x0Ffree_text_score\x18\x0D \x01(\x01\x12L\x0A\x0Bcolumn_type\x18\x0E \x01(\x0E27.google.privacy.dlp.v2.ColumnDataProfile.ColumnDataType\x12P\x0A\x0Cpolicy_state\x18\x0F \x01(\x0E2:.google.privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState\"5\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x08\x0A\x04DONE\x10\x02\"\xFF\x02\x0A\x0EColumnDataType\x12 \x0A\x1CCOLUMN_DATA_TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0ATYPE_INT64\x10\x01\x12\x0D\x0A\x09TYPE_BOOL\x10\x02\x12\x10\x0A\x0CTYPE_FLOAT64\x10\x03\x12\x0F\x0A\x0BTYPE_STRING\x10\x04\x12\x0E\x0A\x0ATYPE_BYTES\x10\x05\x12\x12\x0A\x0ETYPE_TIMESTAMP\x10\x06\x12\x0D\x0A\x09TYPE_DATE\x10\x07\x12\x0D\x0A\x09TYPE_TIME\x10\x08\x12\x11\x0A\x0DTYPE_DATETIME\x10\x09\x12\x12\x0A\x0ETYPE_GEOGRAPHY\x10\x0A\x12\x10\x0A\x0CTYPE_NUMERIC\x10\x0B\x12\x0F\x0A\x0BTYPE_RECORD\x10\x0C\x12\x13\x0A\x0FTYPE_BIGNUMERIC\x10\x0D\x12\x0D\x0A\x09TYPE_JSON\x10\x0E\x12\x11\x0A\x0DTYPE_INTERVAL\x10\x0F\x12\x13\x0A\x0FTYPE_RANGE_DATE\x10\x10\x12\x17\x0A\x13TYPE_RANGE_DATETIME\x10\x11\x12\x18\x0A\x14TYPE_RANGE_TIMESTAMP\x10\x12\"R\x0A\x11ColumnPolicyState\x12#\x0A\x1FCOLUMN_POLICY_STATE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14COLUMN_POLICY_TAGGED\x10\x01:\xD8\x01\xEAA\xD4\x01\x0A\$dlp.googleapis.com/ColumnDataProfile\x12Zorganizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}\x12Pprojects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}\"\xE8\x0E\x0A\x14FileStoreDataProfile\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12?\x0A\x10data_source_type\x18\x02 \x01(\x0B2%.google.privacy.dlp.v2.DataSourceType\x12\x1C\x0A\x14project_data_profile\x18\x03 \x01(\x09\x12\x12\x0A\x0Aproject_id\x18\x04 \x01(\x09\x12\x1B\x0A\x13file_store_location\x18\x05 \x01(\x09\x12\x1E\x0A\x16data_storage_locations\x18\x13 \x03(\x09\x12\x15\x0A\x0Dlocation_type\x18\x14 \x01(\x09\x12\x17\x0A\x0Ffile_store_path\x18\x06 \x01(\x09\x12\x15\x0A\x0Dfull_resource\x18\x18 \x01(\x09\x12I\x0A\x0Fconfig_snapshot\x18\x07 \x01(\x0B20.google.privacy.dlp.v2.DataProfileConfigSnapshot\x12<\x0A\x0Eprofile_status\x18\x08 \x01(\x0B2\$.google.privacy.dlp.v2.ProfileStatus\x12@\x0A\x05state\x18\x09 \x01(\x0E21.google.privacy.dlp.v2.FileStoreDataProfile.State\x12:\x0A\x16profile_last_generated\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\x12F\x0A\x13resource_visibility\x18\x0B \x01(\x0E2).google.privacy.dlp.v2.ResourceVisibility\x12B\x0A\x11sensitivity_score\x18\x0C \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x0D \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12/\x0A\x0Bcreate_time\x18\x0E \x01(\x0B2\x1A.google.protobuf.Timestamp\x126\x0A\x12last_modified_time\x18\x0F \x01(\x0B2\x1A.google.protobuf.Timestamp\x12I\x0A\x16file_cluster_summaries\x18\x10 \x03(\x0B2).google.privacy.dlp.v2.FileClusterSummary\x12`\x0A\x13resource_attributes\x18\x11 \x03(\x0B2C.google.privacy.dlp.v2.FileStoreDataProfile.ResourceAttributesEntry\x12X\x0A\x0Fresource_labels\x18\x12 \x03(\x0B2?.google.privacy.dlp.v2.FileStoreDataProfile.ResourceLabelsEntry\x12W\x0A\x1Efile_store_info_type_summaries\x18\x15 \x03(\x0B2/.google.privacy.dlp.v2.FileStoreInfoTypeSummary\x12C\x0A\x15sample_findings_table\x18\x16 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12\x1B\x0A\x13file_store_is_empty\x18\x17 \x01(\x08\x12(\x0A\x04tags\x18\x19 \x03(\x0B2\x1A.google.privacy.dlp.v2.Tag\x12A\x0A\x11related_resources\x18\x1A \x03(\x0B2&.google.privacy.dlp.v2.RelatedResource\x12.\x0A\x07domains\x18\x1B \x03(\x0B2\x1D.google.privacy.dlp.v2.Domain\x1AW\x0A\x17ResourceAttributesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12+\x0A\x05value\x18\x02 \x01(\x0B2\x1C.google.privacy.dlp.v2.Value:\x028\x01\x1A5\x0A\x13ResourceLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"5\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x08\x0A\x04DONE\x10\x02:\xE9\x01\xEAA\xE5\x01\x0A'dlp.googleapis.com/FileStoreDataProfile\x12aorganizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}\x12Wprojects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}\"?\x0A\x03Tag\x12\x1C\x0A\x14namespaced_tag_value\x18\x01 \x01(\x09\x12\x0B\x0A\x03key\x18\x02 \x01(\x09\x12\x0D\x0A\x05value\x18\x03 \x01(\x09\"H\x0A\x0ATagFilters\x12:\x0A\x0Btag_filters\x18\x01 \x03(\x0B2 .google.privacy.dlp.v2.TagFilterB\x03\xE0A\x02\"S\x0A\x09TagFilter\x12\x1E\x0A\x14namespaced_tag_value\x18\x01 \x01(\x09H\x00\x12\x1C\x0A\x12namespaced_tag_key\x18\x02 \x01(\x09H\x00B\x08\x0A\x06format\"(\x0A\x0FRelatedResource\x12\x15\x0A\x0Dfull_resource\x18\x01 \x01(\x09\"N\x0A\x18FileStoreInfoTypeSummary\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\"+\x0A\x11FileExtensionInfo\x12\x16\x0A\x0Efile_extension\x18\x01 \x01(\x09\"\x8C\x04\x0A\x12FileClusterSummary\x12A\x0A\x11file_cluster_type\x18\x01 \x01(\x0B2&.google.privacy.dlp.v2.FileClusterType\x12W\x0A\x1Efile_store_info_type_summaries\x18\x02 \x03(\x0B2/.google.privacy.dlp.v2.FileStoreInfoTypeSummary\x12B\x0A\x11sensitivity_score\x18\x03 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x12=\x0A\x0Fdata_risk_level\x18\x04 \x01(\x0B2\$.google.privacy.dlp.v2.DataRiskLevel\x12,\x0A\x06errors\x18\x06 \x03(\x0B2\x1C.google.privacy.dlp.v2.Error\x12I\x0A\x17file_extensions_scanned\x18\x07 \x03(\x0B2(.google.privacy.dlp.v2.FileExtensionInfo\x12F\x0A\x14file_extensions_seen\x18\x08 \x03(\x0B2(.google.privacy.dlp.v2.FileExtensionInfo\x12\x16\x0A\x0Eno_files_exist\x18\x09 \x01(\x08\"[\x0A\x1CGetProjectDataProfileRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/ProjectDataProfile\"]\x0A\x1EGetFileStoreDataProfileRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dlp.googleapis.com/ProjectDataProfile\"\xC0\x01\x0A ListFileStoreDataProfilesRequest\x12?\x0A\x06parent\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x12'dlp.googleapis.com/FileStoreDataProfile\x12\x17\x0A\x0Apage_token\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x8B\x01\x0A!ListFileStoreDataProfilesResponse\x12M\x0A\x18file_store_data_profiles\x18\x01 \x03(\x0B2+.google.privacy.dlp.v2.FileStoreDataProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"b\x0A!DeleteFileStoreDataProfileRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'dlp.googleapis.com/FileStoreDataProfile\"W\x0A\x1AGetTableDataProfileRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dlp.googleapis.com/TableDataProfile\"Y\x0A\x1BGetColumnDataProfileRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dlp.googleapis.com/ColumnDataProfile\"\xEA\x05\x0A\x1ADataProfilePubSubCondition\x12X\x0A\x0Bexpressions\x18\x01 \x01(\x0B2C.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions\x1A\xE9\x01\x0A\x0FPubSubCondition\x12b\x0A\x12minimum_risk_score\x18\x01 \x01(\x0E2D.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucketH\x00\x12i\x0A\x19minimum_sensitivity_score\x18\x02 \x01(\x0E2D.google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucketH\x00B\x07\x0A\x05value\x1A\xAB\x02\x0A\x11PubSubExpressions\x12s\x0A\x10logical_operator\x18\x01 \x01(\x0E2Y.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator\x12U\x0A\x0Aconditions\x18\x02 \x03(\x0B2A.google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition\"J\x0A\x15PubSubLogicalOperator\x12 \x0A\x1CLOGICAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x06\x0A\x02OR\x10\x01\x12\x07\x0A\x03AND\x10\x02\"X\x0A\x12ProfileScoreBucket\x12\$\x0A PROFILE_SCORE_BUCKET_UNSPECIFIED\x10\x00\x12\x08\x0A\x04HIGH\x10\x01\x12\x12\x0A\x0EMEDIUM_OR_HIGH\x10\x02\"\xE0\x01\x0A\x18DataProfilePubSubMessage\x128\x0A\x07profile\x18\x01 \x01(\x0B2'.google.privacy.dlp.v2.TableDataProfile\x12G\x0A\x12file_store_profile\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.FileStoreDataProfile\x12A\x0A\x05event\x18\x02 \x01(\x0E22.google.privacy.dlp.v2.DataProfileAction.EventType\"\x8C\x01\x0A\x17CreateConnectionRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/Connection\x12:\x0A\x0Aconnection\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.ConnectionB\x03\xE0A\x02\"K\x0A\x14GetConnectionRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/Connection\"\x95\x01\x0A\x16ListConnectionsRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/Connection\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x97\x01\x0A\x18SearchConnectionsRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x12\x1Ddlp.googleapis.com/Connection\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"j\x0A\x17ListConnectionsResponse\x126\x0A\x0Bconnections\x18\x01 \x03(\x0B2!.google.privacy.dlp.v2.Connection\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"l\x0A\x19SearchConnectionsResponse\x126\x0A\x0Bconnections\x18\x01 \x03(\x0B2!.google.privacy.dlp.v2.Connection\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xC0\x01\x0A\x17UpdateConnectionRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/Connection\x12:\x0A\x0Aconnection\x18\x02 \x01(\x0B2!.google.privacy.dlp.v2.ConnectionB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"N\x0A\x17DeleteConnectionRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddlp.googleapis.com/Connection\"\x90\x03\x0A\x0AConnection\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12:\x0A\x05state\x18\x02 \x01(\x0E2&.google.privacy.dlp.v2.ConnectionStateB\x03\xE0A\x02\x121\x0A\x06errors\x18\x03 \x03(\x0B2\x1C.google.privacy.dlp.v2.ErrorB\x03\xE0A\x03\x12>\x0A\x09cloud_sql\x18\x04 \x01(\x0B2).google.privacy.dlp.v2.CloudSqlPropertiesH\x00:\xB1\x01\xEAA\xAD\x01\x0A\x1Ddlp.googleapis.com/Connection\x12@projects/{project}/locations/{location}/connections/{connection}\x12Jorganizations/{organization}/locations/{location}/connections/{connection}B\x0C\x0A\x0Aproperties\"[\x0A\x17SecretManagerCredential\x12\x15\x0A\x08username\x18\x01 \x01(\x09B\x03\xE0A\x02\x12)\x0A\x1Cpassword_secret_version_name\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x17\x0A\x15CloudSqlIamCredential\"\xB5\x03\x0A\x12CloudSqlProperties\x12\x1F\x0A\x0Fconnection_name\x18\x01 \x01(\x09B\x06\xE0A\x05\xE0A\x01\x12K\x0A\x11username_password\x18\x02 \x01(\x0B2..google.privacy.dlp.v2.SecretManagerCredentialH\x00\x12E\x0A\x0Dcloud_sql_iam\x18\x03 \x01(\x0B2,.google.privacy.dlp.v2.CloudSqlIamCredentialH\x00\x12\x1C\x0A\x0Fmax_connections\x18\x04 \x01(\x05B\x03\xE0A\x02\x12V\x0A\x0Fdatabase_engine\x18\x07 \x01(\x0E28.google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngineB\x03\xE0A\x02\"f\x0A\x0EDatabaseEngine\x12\x1B\x0A\x17DATABASE_ENGINE_UNKNOWN\x10\x00\x12\x19\x0A\x15DATABASE_ENGINE_MYSQL\x10\x01\x12\x1C\x0A\x18DATABASE_ENGINE_POSTGRES\x10\x02B\x0C\x0A\x0Acredential\"Z\x0A\x1DDeleteTableDataProfileRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dlp.googleapis.com/TableDataProfile\"%\x0A\x0EDataSourceType\x12\x13\x0A\x0Bdata_source\x18\x01 \x01(\x09\"\xF4\x02\x0A\x0FFileClusterType\x12A\x0A\x07cluster\x18\x01 \x01(\x0E2..google.privacy.dlp.v2.FileClusterType.ClusterH\x00\"\x88\x02\x0A\x07Cluster\x12\x17\x0A\x13CLUSTER_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FCLUSTER_UNKNOWN\x10\x01\x12\x10\x0A\x0CCLUSTER_TEXT\x10\x02\x12\x1B\x0A\x17CLUSTER_STRUCTURED_DATA\x10\x03\x12\x17\x0A\x13CLUSTER_SOURCE_CODE\x10\x04\x12\x19\x0A\x15CLUSTER_RICH_DOCUMENT\x10\x05\x12\x11\x0A\x0DCLUSTER_IMAGE\x10\x06\x12\x13\x0A\x0FCLUSTER_ARCHIVE\x10\x07\x12\x16\x0A\x12CLUSTER_MULTIMEDIA\x10\x08\x12\x16\x0A\x12CLUSTER_EXECUTABLE\x10\x09\x12\x14\x0A\x10CLUSTER_AI_MODEL\x10\x0AB\x13\x0A\x11file_cluster_type\"\xB6\x05\x0A\x12ProcessingLocation\x12`\x0A\x17image_fallback_location\x18\x01 \x01(\x0B2?.google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation\x12f\x0A\x1Adocument_fallback_location\x18\x02 \x01(\x0B2B.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation\x1A\x17\x0A\x15MultiRegionProcessing\x1A\x12\x0A\x10GlobalProcessing\x1A\xD1\x01\x0A\x15ImageFallbackLocation\x12`\x0A\x17multi_region_processing\x18d \x01(\x0B2?.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing\x12V\x0A\x11global_processing\x18\xC8\x01 \x01(\x0B2:.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing\x1A\xD4\x01\x0A\x18DocumentFallbackLocation\x12`\x0A\x17multi_region_processing\x18d \x01(\x0B2?.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing\x12V\x0A\x11global_processing\x18\xC8\x01 \x01(\x0B2:.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing\"K\x0A\x17SaveToGcsFindingsOutput\x120\x0A\x08findings\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.Finding\"\xC6\x02\x0A\x06Domain\x128\x0A\x08category\x18\x01 \x01(\x0E2&.google.privacy.dlp.v2.Domain.Category\x125\x0A\x07signals\x18\x02 \x03(\x0E2\$.google.privacy.dlp.v2.Domain.Signal\"6\x0A\x08Category\x12\x18\x0A\x14CATEGORY_UNSPECIFIED\x10\x00\x12\x06\x0A\x02AI\x10\x01\x12\x08\x0A\x04CODE\x10\x02\"\x92\x01\x0A\x06Signal\x12\x16\x0A\x12SIGNAL_UNSPECIFIED\x10\x00\x12\x09\x0A\x05MODEL\x10\x01\x12\x12\x0A\x0ETEXT_EMBEDDING\x10\x02\x12\x0D\x0A\x09EMBEDDING\x10\x07\x12\x11\x0A\x0DVERTEX_PLUGIN\x10\x03\x12\x11\x0A\x0DVECTOR_PLUGIN\x10\x04\x12\x0F\x0A\x0BSOURCE_CODE\x10\x05\x12\x0B\x0A\x07SERVICE\x10\x06*\xA0\x01\x0A\x1ETransformationResultStatusType\x12\x1A\x0A\x16STATE_TYPE_UNSPECIFIED\x10\x00\x12\x15\x0A\x11INVALID_TRANSFORM\x10\x01\x12\"\x0A\x1EBIGQUERY_MAX_ROW_SIZE_EXCEEDED\x10\x02\x12\x1A\x0A\x16METADATA_UNRETRIEVABLE\x10\x03\x12\x0B\x0A\x07SUCCESS\x10\x04*\x7F\x0A\x1BTransformationContainerType\x12\x1F\x0A\x1BTRANSFORM_UNKNOWN_CONTAINER\x10\x00\x12\x12\x0A\x0ETRANSFORM_BODY\x10\x01\x12\x16\x0A\x12TRANSFORM_METADATA\x10\x02\x12\x13\x0A\x0FTRANSFORM_TABLE\x10\x03*\xE0\x02\x0A\x12TransformationType\x12#\x0A\x1FTRANSFORMATION_TYPE_UNSPECIFIED\x10\x00\x12\x16\x0A\x12RECORD_SUPPRESSION\x10\x01\x12\x11\x0A\x0DREPLACE_VALUE\x10\x02\x12\x16\x0A\x12REPLACE_DICTIONARY\x10\x0F\x12\x0A\x0A\x06REDACT\x10\x03\x12\x12\x0A\x0ECHARACTER_MASK\x10\x04\x12\x1A\x0A\x16CRYPTO_REPLACE_FFX_FPE\x10\x05\x12\x18\x0A\x14FIXED_SIZE_BUCKETING\x10\x06\x12\x0D\x0A\x09BUCKETING\x10\x07\x12\x1A\x0A\x16REPLACE_WITH_INFO_TYPE\x10\x08\x12\x0D\x0A\x09TIME_PART\x10\x09\x12\x0F\x0A\x0BCRYPTO_HASH\x10\x0A\x12\x0E\x0A\x0ADATE_SHIFT\x10\x0C\x12\x1F\x0A\x1BCRYPTO_DETERMINISTIC_CONFIG\x10\x0D\x12\x10\x0A\x0CREDACT_IMAGE\x10\x0E*r\x0A\x11ProfileGeneration\x12\"\x0A\x1EPROFILE_GENERATION_UNSPECIFIED\x10\x00\x12\x1A\x0A\x16PROFILE_GENERATION_NEW\x10\x01\x12\x1D\x0A\x19PROFILE_GENERATION_UPDATE\x10\x02*\x96\x01\x0A\x1BBigQueryTableTypeCollection\x12\$\x0A BIG_QUERY_COLLECTION_UNSPECIFIED\x10\x00\x12\"\x0A\x1EBIG_QUERY_COLLECTION_ALL_TYPES\x10\x01\x12-\x0A)BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES\x10\x02*\xA8\x01\x0A\x11BigQueryTableType\x12\$\x0A BIG_QUERY_TABLE_TYPE_UNSPECIFIED\x10\x00\x12\x1E\x0A\x1ABIG_QUERY_TABLE_TYPE_TABLE\x10\x01\x12*\x0A&BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE\x10\x02\x12!\x0A\x1DBIG_QUERY_TABLE_TYPE_SNAPSHOT\x10\x03*\x94\x01\x0A\x1ADataProfileUpdateFrequency\x12 \x0A\x1CUPDATE_FREQUENCY_UNSPECIFIED\x10\x00\x12\x1A\x0A\x16UPDATE_FREQUENCY_NEVER\x10\x01\x12\x1A\x0A\x16UPDATE_FREQUENCY_DAILY\x10\x02\x12\x1C\x0A\x18UPDATE_FREQUENCY_MONTHLY\x10\x04*]\x0A\x19BigQueryTableModification\x12\"\x0A\x1ETABLE_MODIFICATION_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18TABLE_MODIFIED_TIMESTAMP\x10\x01*u\x0A\x1ABigQuerySchemaModification\x12#\x0A\x1FSCHEMA_MODIFICATION_UNSPECIFIED\x10\x00\x12\x16\x0A\x12SCHEMA_NEW_COLUMNS\x10\x01\x12\x1A\x0A\x16SCHEMA_REMOVED_COLUMNS\x10\x02*\xBB\x01\x0A\x12RelationalOperator\x12#\x0A\x1FRELATIONAL_OPERATOR_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08EQUAL_TO\x10\x01\x12\x10\x0A\x0CNOT_EQUAL_TO\x10\x02\x12\x10\x0A\x0CGREATER_THAN\x10\x03\x12\x0D\x0A\x09LESS_THAN\x10\x04\x12\x1A\x0A\x16GREATER_THAN_OR_EQUALS\x10\x05\x12\x17\x0A\x13LESS_THAN_OR_EQUALS\x10\x06\x12\x0A\x0A\x06EXISTS\x10\x07*\xAE\x01\x0A\x0CMatchingType\x12\x1D\x0A\x19MATCHING_TYPE_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18MATCHING_TYPE_FULL_MATCH\x10\x01\x12\x1F\x0A\x1BMATCHING_TYPE_PARTIAL_MATCH\x10\x02\x12\x1F\x0A\x1BMATCHING_TYPE_INVERSE_MATCH\x10\x03\x12\x1F\x0A\x1BMATCHING_TYPE_RULE_SPECIFIC\x10\x04*M\x0A\x0DContentOption\x12\x17\x0A\x13CONTENT_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CCONTENT_TEXT\x10\x01\x12\x11\x0A\x0DCONTENT_IMAGE\x10\x02*v\x0A\x0CMetadataType\x12\x1C\x0A\x18METADATATYPE_UNSPECIFIED\x10\x00\x12\x14\x0A\x10STORAGE_METADATA\x10\x02\x12\x14\x0A\x10CONTENT_METADATA\x10\x03\x12\x1C\x0A\x18CLIENT_PROVIDED_METADATA\x10\x04*P\x0A\x13InfoTypeSupportedBy\x12\x19\x0A\x15ENUM_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07INSPECT\x10\x01\x12\x11\x0A\x0DRISK_ANALYSIS\x10\x02*R\x0A\x0ADlpJobType\x12\x1C\x0A\x18DLP_JOB_TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINSPECT_JOB\x10\x01\x12\x15\x0A\x11RISK_ANALYSIS_JOB\x10\x02*n\x0A\x13StoredInfoTypeState\x12&\x0A\"STORED_INFO_TYPE_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PENDING\x10\x01\x12\x09\x0A\x05READY\x10\x02\x12\x0A\x0A\x06FAILED\x10\x03\x12\x0B\x0A\x07INVALID\x10\x04*\xA3\x01\x0A\x12ResourceVisibility\x12#\x0A\x1FRESOURCE_VISIBILITY_UNSPECIFIED\x10\x00\x12\x1E\x0A\x1ARESOURCE_VISIBILITY_PUBLIC\x10\x0A\x12\$\x0A RESOURCE_VISIBILITY_INCONCLUSIVE\x10\x0F\x12\"\x0A\x1ERESOURCE_VISIBILITY_RESTRICTED\x10\x14*u\x0A\x10EncryptionStatus\x12!\x0A\x1DENCRYPTION_STATUS_UNSPECIFIED\x10\x00\x12\x1D\x0A\x19ENCRYPTION_GOOGLE_MANAGED\x10\x01\x12\x1F\x0A\x1BENCRYPTION_CUSTOMER_MANAGED\x10\x02*\xA9\x01\x0A\x13NullPercentageLevel\x12%\x0A!NULL_PERCENTAGE_LEVEL_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18NULL_PERCENTAGE_VERY_LOW\x10\x01\x12\x17\x0A\x13NULL_PERCENTAGE_LOW\x10\x02\x12\x1A\x0A\x16NULL_PERCENTAGE_MEDIUM\x10\x03\x12\x18\x0A\x14NULL_PERCENTAGE_HIGH\x10\x04*\x90\x01\x0A\x14UniquenessScoreLevel\x12&\x0A\"UNIQUENESS_SCORE_LEVEL_UNSPECIFIED\x10\x00\x12\x18\x0A\x14UNIQUENESS_SCORE_LOW\x10\x01\x12\x1B\x0A\x17UNIQUENESS_SCORE_MEDIUM\x10\x02\x12\x19\x0A\x15UNIQUENESS_SCORE_HIGH\x10\x03*f\x0A\x0FConnectionState\x12 \x0A\x1CCONNECTION_STATE_UNSPECIFIED\x10\x00\x12\x17\x0A\x13MISSING_CREDENTIALS\x10\x01\x12\x0D\x0A\x09AVAILABLE\x10\x02\x12\x09\x0A\x05ERROR\x10\x032\xDDv\x0A\x0ADlpService\x12\xDB\x01\x0A\x0EInspectContent\x12,.google.privacy.dlp.v2.InspectContentRequest\x1A-.google.privacy.dlp.v2.InspectContentResponse\"l\x82\xD3\xE4\x93\x02f\"'/v2/{parent=projects/*}/content:inspect:\x01*Z8\"3/v2/{parent=projects/*/locations/*}/content:inspect:\x01*\x12\xCC\x01\x0A\x0BRedactImage\x12).google.privacy.dlp.v2.RedactImageRequest\x1A*.google.privacy.dlp.v2.RedactImageResponse\"f\x82\xD3\xE4\x93\x02`\"\$/v2/{parent=projects/*}/image:redact:\x01*Z5\"0/v2/{parent=projects/*/locations/*}/image:redact:\x01*\x12\xEA\x01\x0A\x11DeidentifyContent\x12/.google.privacy.dlp.v2.DeidentifyContentRequest\x1A0.google.privacy.dlp.v2.DeidentifyContentResponse\"r\x82\xD3\xE4\x93\x02l\"*/v2/{parent=projects/*}/content:deidentify:\x01*Z;\"6/v2/{parent=projects/*/locations/*}/content:deidentify:\x01*\x12\xEA\x01\x0A\x11ReidentifyContent\x12/.google.privacy.dlp.v2.ReidentifyContentRequest\x1A0.google.privacy.dlp.v2.ReidentifyContentResponse\"r\x82\xD3\xE4\x93\x02l\"*/v2/{parent=projects/*}/content:reidentify:\x01*Z;\"6/v2/{parent=projects/*/locations/*}/content:reidentify:\x01*\x12\x99\x02\x0A\x0DListInfoTypes\x12+.google.privacy.dlp.v2.ListInfoTypesRequest\x1A,.google.privacy.dlp.v2.ListInfoTypesResponse\"\xAC\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\x9C\x01\x12\x0D/v2/infoTypesZ\$\x12\"/v2/{parent=locations/*}/infoTypesZ/\x12-/v2/{parent=projects/*/locations/*}/infoTypesZ4\x122/v2/{parent=organizations/*/locations/*}/infoTypes\x12\xF4\x02\x0A\x15CreateInspectTemplate\x123.google.privacy.dlp.v2.CreateInspectTemplateRequest\x1A&.google.privacy.dlp.v2.InspectTemplate\"\xFD\x01\xDAA\x17parent,inspect_template\x82\xD3\xE4\x93\x02\xDC\x01\"4/v2/{parent=projects/*/locations/*}/inspectTemplates:\x01*Z>\"9/v2/{parent=organizations/*/locations/*}/inspectTemplates:\x01*Z-\"(/v2/{parent=projects/*}/inspectTemplates:\x01*Z2\"-/v2/{parent=organizations/*}/inspectTemplates:\x01*\x12\xFE\x02\x0A\x15UpdateInspectTemplate\x123.google.privacy.dlp.v2.UpdateInspectTemplateRequest\x1A&.google.privacy.dlp.v2.InspectTemplate\"\x87\x02\xDAA!name,inspect_template,update_mask\x82\xD3\xE4\x93\x02\xDC\x0124/v2/{name=projects/*/locations/*/inspectTemplates/*}:\x01*Z>29/v2/{name=organizations/*/locations/*/inspectTemplates/*}:\x01*Z-2(/v2/{name=projects/*/inspectTemplates/*}:\x01*Z22-/v2/{name=organizations/*/inspectTemplates/*}:\x01*\x12\xCF\x02\x0A\x12GetInspectTemplate\x120.google.privacy.dlp.v2.GetInspectTemplateRequest\x1A&.google.privacy.dlp.v2.InspectTemplate\"\xDE\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xD0\x01\x124/v2/{name=projects/*/locations/*/inspectTemplates/*}Z;\x129/v2/{name=organizations/*/locations/*/inspectTemplates/*}Z*\x12(/v2/{name=projects/*/inspectTemplates/*}Z/\x12-/v2/{name=organizations/*/inspectTemplates/*}\x12\xE2\x02\x0A\x14ListInspectTemplates\x122.google.privacy.dlp.v2.ListInspectTemplatesRequest\x1A3.google.privacy.dlp.v2.ListInspectTemplatesResponse\"\xE0\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xD0\x01\x124/v2/{parent=projects/*/locations/*}/inspectTemplatesZ;\x129/v2/{parent=organizations/*/locations/*}/inspectTemplatesZ*\x12(/v2/{parent=projects/*}/inspectTemplatesZ/\x12-/v2/{parent=organizations/*}/inspectTemplates\x12\xC5\x02\x0A\x15DeleteInspectTemplate\x123.google.privacy.dlp.v2.DeleteInspectTemplateRequest\x1A\x16.google.protobuf.Empty\"\xDE\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xD0\x01*4/v2/{name=projects/*/locations/*/inspectTemplates/*}Z;*9/v2/{name=organizations/*/locations/*/inspectTemplates/*}Z**(/v2/{name=projects/*/inspectTemplates/*}Z/*-/v2/{name=organizations/*/inspectTemplates/*}\x12\x8C\x03\x0A\x18CreateDeidentifyTemplate\x126.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest\x1A).google.privacy.dlp.v2.DeidentifyTemplate\"\x8C\x02\xDAA\x1Aparent,deidentify_template\x82\xD3\xE4\x93\x02\xE8\x01\"0/v2/{parent=organizations/*}/deidentifyTemplates:\x01*ZA\"\x12\x12*\"9/v2/{parent=organizations/*/locations/*}/discoveryConfigs:\x01*\x12\x9A\x02\x0A\x15UpdateDiscoveryConfig\x123.google.privacy.dlp.v2.UpdateDiscoveryConfigRequest\x1A&.google.privacy.dlp.v2.DiscoveryConfig\"\xA3\x01\xDAA!name,discovery_config,update_mask\x82\xD3\xE4\x93\x02y24/v2/{name=projects/*/locations/*/discoveryConfigs/*}:\x01*Z>29/v2/{name=organizations/*/locations/*/discoveryConfigs/*}:\x01*\x12\xF1\x01\x0A\x12GetDiscoveryConfig\x120.google.privacy.dlp.v2.GetDiscoveryConfigRequest\x1A&.google.privacy.dlp.v2.DiscoveryConfig\"\x80\x01\xDAA\x04name\x82\xD3\xE4\x93\x02s\x124/v2/{name=projects/*/locations/*/discoveryConfigs/*}Z;\x129/v2/{name=organizations/*/locations/*/discoveryConfigs/*}\x12\x84\x02\x0A\x14ListDiscoveryConfigs\x122.google.privacy.dlp.v2.ListDiscoveryConfigsRequest\x1A3.google.privacy.dlp.v2.ListDiscoveryConfigsResponse\"\x82\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02s\x124/v2/{parent=projects/*/locations/*}/discoveryConfigsZ;\x129/v2/{parent=organizations/*/locations/*}/discoveryConfigs\x12\xE7\x01\x0A\x15DeleteDiscoveryConfig\x123.google.privacy.dlp.v2.DeleteDiscoveryConfigRequest\x1A\x16.google.protobuf.Empty\"\x80\x01\xDAA\x04name\x82\xD3\xE4\x93\x02s*4/v2/{name=projects/*/locations/*/discoveryConfigs/*}Z;*9/v2/{name=organizations/*/locations/*/discoveryConfigs/*}\x12\xDF\x01\x0A\x0CCreateDlpJob\x12*.google.privacy.dlp.v2.CreateDlpJobRequest\x1A\x1D.google.privacy.dlp.v2.DlpJob\"\x83\x01\xDAA\x12parent,inspect_job\xDAA\x0Fparent,risk_job\x82\xD3\xE4\x93\x02V\"\x1F/v2/{parent=projects/*}/dlpJobs:\x01*Z0\"+/v2/{parent=projects/*/locations/*}/dlpJobs:\x01*\x12\xFB\x01\x0A\x0BListDlpJobs\x12).google.privacy.dlp.v2.ListDlpJobsRequest\x1A*.google.privacy.dlp.v2.ListDlpJobsResponse\"\x94\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\x84\x01\x12\x1F/v2/{parent=projects/*}/dlpJobsZ-\x12+/v2/{parent=projects/*/locations/*}/dlpJobsZ2\x120/v2/{parent=organizations/*/locations/*}/dlpJobs\x12\xB2\x01\x0A\x09GetDlpJob\x12'.google.privacy.dlp.v2.GetDlpJobRequest\x1A\x1D.google.privacy.dlp.v2.DlpJob\"]\xDAA\x04name\x82\xD3\xE4\x93\x02P\x12\x1F/v2/{name=projects/*/dlpJobs/*}Z-\x12+/v2/{name=projects/*/locations/*/dlpJobs/*}\x12\xB1\x01\x0A\x0CDeleteDlpJob\x12*.google.privacy.dlp.v2.DeleteDlpJobRequest\x1A\x16.google.protobuf.Empty\"]\xDAA\x04name\x82\xD3\xE4\x93\x02P*\x1F/v2/{name=projects/*/dlpJobs/*}Z-*+/v2/{name=projects/*/locations/*/dlpJobs/*}\x12\xBE\x01\x0A\x0CCancelDlpJob\x12*.google.privacy.dlp.v2.CancelDlpJobRequest\x1A\x16.google.protobuf.Empty\"j\x82\xD3\xE4\x93\x02d\"&/v2/{name=projects/*/dlpJobs/*}:cancel:\x01*Z7\"2/v2/{name=projects/*/locations/*/dlpJobs/*}:cancel:\x01*\x12\xE3\x02\x0A\x14CreateStoredInfoType\x122.google.privacy.dlp.v2.CreateStoredInfoTypeRequest\x1A%.google.privacy.dlp.v2.StoredInfoType\"\xEF\x01\xDAA\x0Dparent,config\x82\xD3\xE4\x93\x02\xD8\x01\",/v2/{parent=organizations/*}/storedInfoTypes:\x01*Z=\"8/v2/{parent=organizations/*/locations/*}/storedInfoTypes:\x01*Z,\"'/v2/{parent=projects/*}/storedInfoTypes:\x01*Z8\"3/v2/{parent=projects/*/locations/*}/storedInfoTypes:\x01*\x12\xED\x02\x0A\x14UpdateStoredInfoType\x122.google.privacy.dlp.v2.UpdateStoredInfoTypeRequest\x1A%.google.privacy.dlp.v2.StoredInfoType\"\xF9\x01\xDAA\x17name,config,update_mask\x82\xD3\xE4\x93\x02\xD8\x012,/v2/{name=organizations/*/storedInfoTypes/*}:\x01*Z=28/v2/{name=organizations/*/locations/*/storedInfoTypes/*}:\x01*Z,2'/v2/{name=projects/*/storedInfoTypes/*}:\x01*Z823/v2/{name=projects/*/locations/*/storedInfoTypes/*}:\x01*\x12\xC8\x02\x0A\x11GetStoredInfoType\x12/.google.privacy.dlp.v2.GetStoredInfoTypeRequest\x1A%.google.privacy.dlp.v2.StoredInfoType\"\xDA\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xCC\x01\x12,/v2/{name=organizations/*/storedInfoTypes/*}Z:\x128/v2/{name=organizations/*/locations/*/storedInfoTypes/*}Z)\x12'/v2/{name=projects/*/storedInfoTypes/*}Z5\x123/v2/{name=projects/*/locations/*/storedInfoTypes/*}\x12\xDB\x02\x0A\x13ListStoredInfoTypes\x121.google.privacy.dlp.v2.ListStoredInfoTypesRequest\x1A2.google.privacy.dlp.v2.ListStoredInfoTypesResponse\"\xDC\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02\xCC\x01\x12,/v2/{parent=organizations/*}/storedInfoTypesZ:\x128/v2/{parent=organizations/*/locations/*}/storedInfoTypesZ)\x12'/v2/{parent=projects/*}/storedInfoTypesZ5\x123/v2/{parent=projects/*/locations/*}/storedInfoTypes\x12\xBF\x02\x0A\x14DeleteStoredInfoType\x122.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest\x1A\x16.google.protobuf.Empty\"\xDA\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\xCC\x01*,/v2/{name=organizations/*/storedInfoTypes/*}Z:*8/v2/{name=organizations/*/locations/*/storedInfoTypes/*}Z)*'/v2/{name=projects/*/storedInfoTypes/*}Z5*3/v2/{name=projects/*/locations/*/storedInfoTypes/*}\x12\x93\x02\x0A\x17ListProjectDataProfiles\x125.google.privacy.dlp.v2.ListProjectDataProfilesRequest\x1A6.google.privacy.dlp.v2.ListProjectDataProfilesResponse\"\x88\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02y\x12/v2/{parent=organizations/*/locations/*}/fileStoreDataProfilesZ;\x129/v2/{parent=projects/*/locations/*}/fileStoreDataProfiles\x12\x8A\x02\x0A\x17GetFileStoreDataProfile\x125.google.privacy.dlp.v2.GetFileStoreDataProfileRequest\x1A+.google.privacy.dlp.v2.FileStoreDataProfile\"\x8A\x01\xDAA\x04name\x82\xD3\xE4\x93\x02}\x12>/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}Z;\x129/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}\x12\xFB\x01\x0A\x1ADeleteFileStoreDataProfile\x128.google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest\x1A\x16.google.protobuf.Empty\"\x8A\x01\xDAA\x04name\x82\xD3\xE4\x93\x02}*>/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}Z;*9/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}\x12\xF6\x01\x0A\x13GetTableDataProfile\x121.google.privacy.dlp.v2.GetTableDataProfileRequest\x1A'.google.privacy.dlp.v2.TableDataProfile\"\x82\x01\xDAA\x04name\x82\xD3\xE4\x93\x02u\x12:/v2/{name=organizations/*/locations/*/tableDataProfiles/*}Z7\x125/v2/{name=projects/*/locations/*/tableDataProfiles/*}\x12\xFB\x01\x0A\x14GetColumnDataProfile\x122.google.privacy.dlp.v2.GetColumnDataProfileRequest\x1A(.google.privacy.dlp.v2.ColumnDataProfile\"\x84\x01\xDAA\x04name\x82\xD3\xE4\x93\x02w\x12;/v2/{name=organizations/*/locations/*/columnDataProfiles/*}Z8\x126/v2/{name=projects/*/locations/*/columnDataProfiles/*}\x12\xEB\x01\x0A\x16DeleteTableDataProfile\x124.google.privacy.dlp.v2.DeleteTableDataProfileRequest\x1A\x16.google.protobuf.Empty\"\x82\x01\xDAA\x04name\x82\xD3\xE4\x93\x02u*:/v2/{name=organizations/*/locations/*/tableDataProfiles/*}Z7*5/v2/{name=projects/*/locations/*/tableDataProfiles/*}\x12\xC3\x01\x0A\x13HybridInspectDlpJob\x121.google.privacy.dlp.v2.HybridInspectDlpJobRequest\x1A,.google.privacy.dlp.v2.HybridInspectResponse\"K\xDAA\x04name\x82\xD3\xE4\x93\x02>\"9/v2/{name=projects/*/locations/*/dlpJobs/*}:hybridInspect:\x01*\x12\x91\x01\x0A\x0CFinishDlpJob\x12*.google.privacy.dlp.v2.FinishDlpJobRequest\x1A\x16.google.protobuf.Empty\"=\x82\xD3\xE4\x93\x027\"2/v2/{name=projects/*/locations/*/dlpJobs/*}:finish:\x01*\x12\xF2\x01\x0A\x10CreateConnection\x12..google.privacy.dlp.v2.CreateConnectionRequest\x1A!.google.privacy.dlp.v2.Connection\"\x8A\x01\xDAA\x12parent, connection\x82\xD3\xE4\x93\x02o\"//v2/{parent=projects/*/locations/*}/connections:\x01*Z9\"4/v2/{parent=organizations/*/locations/*}/connections:\x01*\x12\xD7\x01\x0A\x0DGetConnection\x12+.google.privacy.dlp.v2.GetConnectionRequest\x1A!.google.privacy.dlp.v2.Connection\"v\xDAA\x04name\x82\xD3\xE4\x93\x02i\x12//v2/{name=projects/*/locations/*/connections/*}Z6\x124/v2/{name=organizations/*/locations/*/connections/*}\x12\xEA\x01\x0A\x0FListConnections\x12-.google.privacy.dlp.v2.ListConnectionsRequest\x1A..google.privacy.dlp.v2.ListConnectionsResponse\"x\xDAA\x06parent\x82\xD3\xE4\x93\x02i\x12//v2/{parent=projects/*/locations/*}/connectionsZ6\x124/v2/{parent=organizations/*/locations/*}/connections\x12\xFF\x01\x0A\x11SearchConnections\x12/.google.privacy.dlp.v2.SearchConnectionsRequest\x1A0.google.privacy.dlp.v2.SearchConnectionsResponse\"\x86\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02w\x126/v2/{parent=projects/*/locations/*}/connections:searchZ=\x12;/v2/{parent=organizations/*/locations/*}/connections:search\x12\xD2\x01\x0A\x10DeleteConnection\x12..google.privacy.dlp.v2.DeleteConnectionRequest\x1A\x16.google.protobuf.Empty\"v\xDAA\x04name\x82\xD3\xE4\x93\x02i*//v2/{name=projects/*/locations/*/connections/*}Z6*4/v2/{name=organizations/*/locations/*/connections/*}\x12\xE3\x01\x0A\x10UpdateConnection\x12..google.privacy.dlp.v2.UpdateConnectionRequest\x1A!.google.privacy.dlp.v2.Connection\"|\xDAA\x04name\x82\xD3\xE4\x93\x02o2//v2/{name=projects/*/locations/*/connections/*}:\x01*Z924/v2/{name=organizations/*/locations/*/connections/*}:\x01*\x1AF\xCAA\x12dlp.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xEB\x02\x0A\x19com.google.privacy.dlp.v2B\x08DlpProtoP\x01Z)cloud.google.com/go/dlp/apiv2/dlppb;dlppb\xAA\x02\x13Google.Cloud.Dlp.V2\xCA\x02\x13Google\\Cloud\\Dlp\\V2\xEA\x02\x16Google::Cloud::Dlp::V2\xEAAr\x0A\x1Ddlp.googleapis.com/DlpContent\x12\x1Dprojects/{project}/dlpContent\x122projects/{project}/locations/{location}/dlpContent\xEAA\\\x0A'dlp.googleapis.com/OrganizationLocation\x121organizations/{organization}/locations/{location}b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Storage.php b/owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Storage.php deleted file mode 100644 index 1c4a7581467b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Storage.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xCC-\x0A#google/privacy/dlp/v2/storage.proto\x12\x15google.privacy.dlp.v2\x1A\x1Fgoogle/protobuf/timestamp.proto\"m\x0A\x08InfoType\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0F\x0A\x07version\x18\x02 \x01(\x09\x12B\x0A\x11sensitivity_score\x18\x03 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\"\xFB\x01\x0A\x10SensitivityScore\x12L\x0A\x05score\x18\x01 \x01(\x0E2=.google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel\"\x98\x01\x0A\x15SensitivityScoreLevel\x12!\x0A\x1DSENSITIVITY_SCORE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FSENSITIVITY_LOW\x10\x0A\x12\x17\x0A\x13SENSITIVITY_UNKNOWN\x10\x0C\x12\x18\x0A\x14SENSITIVITY_MODERATE\x10\x14\x12\x14\x0A\x10SENSITIVITY_HIGH\x10\x1E\"K\x0A\x0AStoredType\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xBD\x0D\x0A\x0ECustomInfoType\x122\x0A\x09info_type\x18\x01 \x01(\x0B2\x1F.google.privacy.dlp.v2.InfoType\x125\x0A\x0Alikelihood\x18\x06 \x01(\x0E2!.google.privacy.dlp.v2.Likelihood\x12F\x0A\x0Adictionary\x18\x02 \x01(\x0B20.google.privacy.dlp.v2.CustomInfoType.DictionaryH\x00\x12<\x0A\x05regex\x18\x03 \x01(\x0B2+.google.privacy.dlp.v2.CustomInfoType.RegexH\x00\x12M\x0A\x0Esurrogate_type\x18\x04 \x01(\x0B23.google.privacy.dlp.v2.CustomInfoType.SurrogateTypeH\x00\x128\x0A\x0Bstored_type\x18\x05 \x01(\x0B2!.google.privacy.dlp.v2.StoredTypeH\x00\x12i\x0A\x1Dmetadata_key_value_expression\x18\x0A \x01(\x0B2@.google.privacy.dlp.v2.CustomInfoType.MetadataKeyValueExpressionH\x00\x12L\x0A\x0Fdetection_rules\x18\x07 \x03(\x0B23.google.privacy.dlp.v2.CustomInfoType.DetectionRule\x12K\x0A\x0Eexclusion_type\x18\x08 \x01(\x0E23.google.privacy.dlp.v2.CustomInfoType.ExclusionType\x12B\x0A\x11sensitivity_score\x18\x09 \x01(\x0B2'.google.privacy.dlp.v2.SensitivityScore\x1A\xC8\x01\x0A\x0ADictionary\x12N\x0A\x09word_list\x18\x01 \x01(\x0B29.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordListH\x00\x12E\x0A\x12cloud_storage_path\x18\x03 \x01(\x0B2'.google.privacy.dlp.v2.CloudStoragePathH\x00\x1A\x19\x0A\x08WordList\x12\x0D\x0A\x05words\x18\x01 \x03(\x09B\x08\x0A\x06source\x1A/\x0A\x05Regex\x12\x0F\x0A\x07pattern\x18\x01 \x01(\x09\x12\x15\x0A\x0Dgroup_indexes\x18\x02 \x03(\x05\x1A\x0F\x0A\x0DSurrogateType\x1AD\x0A\x1AMetadataKeyValueExpression\x12\x11\x0A\x09key_regex\x18\x01 \x01(\x09\x12\x13\x0A\x0Bvalue_regex\x18\x02 \x01(\x09\x1A\xBE\x04\x0A\x0DDetectionRule\x12W\x0A\x0Chotword_rule\x18\x01 \x01(\x0B2?.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRuleH\x00\x1A8\x0A\x09Proximity\x12\x15\x0A\x0Dwindow_before\x18\x01 \x01(\x05\x12\x14\x0A\x0Cwindow_after\x18\x02 \x01(\x05\x1A\x82\x01\x0A\x14LikelihoodAdjustment\x12=\x0A\x10fixed_likelihood\x18\x01 \x01(\x0E2!.google.privacy.dlp.v2.LikelihoodH\x00\x12\x1D\x0A\x13relative_likelihood\x18\x02 \x01(\x05H\x00B\x0C\x0A\x0Aadjustment\x1A\x8C\x02\x0A\x0BHotwordRule\x12B\x0A\x0Dhotword_regex\x18\x01 \x01(\x0B2+.google.privacy.dlp.v2.CustomInfoType.Regex\x12P\x0A\x09proximity\x18\x02 \x01(\x0B2=.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity\x12g\x0A\x15likelihood_adjustment\x18\x03 \x01(\x0B2H.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustmentB\x06\x0A\x04type\"K\x0A\x0DExclusionType\x12\x1E\x0A\x1AEXCLUSION_TYPE_UNSPECIFIED\x10\x00\x12\x1A\x0A\x16EXCLUSION_TYPE_EXCLUDE\x10\x01B\x06\x0A\x04type\"\x17\x0A\x07FieldId\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\"7\x0A\x0BPartitionId\x12\x12\x0A\x0Aproject_id\x18\x02 \x01(\x09\x12\x14\x0A\x0Cnamespace_id\x18\x04 \x01(\x09\"\x1E\x0A\x0EKindExpression\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\"\x81\x01\x0A\x10DatastoreOptions\x128\x0A\x0Cpartition_id\x18\x01 \x01(\x0B2\".google.privacy.dlp.v2.PartitionId\x123\x0A\x04kind\x18\x02 \x01(\x0B2%.google.privacy.dlp.v2.KindExpression\"]\x0A\x18CloudStorageRegexFileSet\x12\x13\x0A\x0Bbucket_name\x18\x01 \x01(\x09\x12\x15\x0A\x0Dinclude_regex\x18\x02 \x03(\x09\x12\x15\x0A\x0Dexclude_regex\x18\x03 \x03(\x09\"\xEC\x03\x0A\x13CloudStorageOptions\x12D\x0A\x08file_set\x18\x01 \x01(\x0B22.google.privacy.dlp.v2.CloudStorageOptions.FileSet\x12\x1C\x0A\x14bytes_limit_per_file\x18\x04 \x01(\x03\x12\$\x0A\x1Cbytes_limit_per_file_percent\x18\x08 \x01(\x05\x123\x0A\x0Afile_types\x18\x05 \x03(\x0E2\x1F.google.privacy.dlp.v2.FileType\x12N\x0A\x0Dsample_method\x18\x06 \x01(\x0E27.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod\x12\x1B\x0A\x13files_limit_percent\x18\x07 \x01(\x05\x1A_\x0A\x07FileSet\x12\x0B\x0A\x03url\x18\x01 \x01(\x09\x12G\x0A\x0Eregex_file_set\x18\x02 \x01(\x0B2/.google.privacy.dlp.v2.CloudStorageRegexFileSet\"H\x0A\x0CSampleMethod\x12\x1D\x0A\x19SAMPLE_METHOD_UNSPECIFIED\x10\x00\x12\x07\x0A\x03TOP\x10\x01\x12\x10\x0A\x0CRANDOM_START\x10\x02\"\"\x0A\x13CloudStorageFileSet\x12\x0B\x0A\x03url\x18\x01 \x01(\x09\" \x0A\x10CloudStoragePath\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\"\xC4\x03\x0A\x0FBigQueryOptions\x12=\x0A\x0Ftable_reference\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12:\x0A\x12identifying_fields\x18\x02 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x12\x12\x0A\x0Arows_limit\x18\x03 \x01(\x03\x12\x1A\x0A\x12rows_limit_percent\x18\x06 \x01(\x05\x12J\x0A\x0Dsample_method\x18\x04 \x01(\x0E23.google.privacy.dlp.v2.BigQueryOptions.SampleMethod\x127\x0A\x0Fexcluded_fields\x18\x05 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x127\x0A\x0Fincluded_fields\x18\x07 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId\"H\x0A\x0CSampleMethod\x12\x1D\x0A\x19SAMPLE_METHOD_UNSPECIFIED\x10\x00\x12\x07\x0A\x03TOP\x10\x01\x12\x10\x0A\x0CRANDOM_START\x10\x02\"\xDA\x04\x0A\x0DStorageConfig\x12D\x0A\x11datastore_options\x18\x02 \x01(\x0B2'.google.privacy.dlp.v2.DatastoreOptionsH\x00\x12K\x0A\x15cloud_storage_options\x18\x03 \x01(\x0B2*.google.privacy.dlp.v2.CloudStorageOptionsH\x00\x12C\x0A\x11big_query_options\x18\x04 \x01(\x0B2&.google.privacy.dlp.v2.BigQueryOptionsH\x00\x12>\x0A\x0Ehybrid_options\x18\x09 \x01(\x0B2\$.google.privacy.dlp.v2.HybridOptionsH\x00\x12L\x0A\x0Ftimespan_config\x18\x06 \x01(\x0B23.google.privacy.dlp.v2.StorageConfig.TimespanConfig\x1A\xDA\x01\x0A\x0ETimespanConfig\x12.\x0A\x0Astart_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x127\x0A\x0Ftimestamp_field\x18\x03 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\x121\x0A)enable_auto_population_of_timespan_config\x18\x04 \x01(\x08B\x06\x0A\x04type\"\xF6\x01\x0A\x0DHybridOptions\x12\x13\x0A\x0Bdescription\x18\x01 \x01(\x09\x12#\x0A\x1Brequired_finding_label_keys\x18\x02 \x03(\x09\x12@\x0A\x06labels\x18\x03 \x03(\x0B20.google.privacy.dlp.v2.HybridOptions.LabelsEntry\x12:\x0A\x0Dtable_options\x18\x04 \x01(\x0B2#.google.privacy.dlp.v2.TableOptions\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"`\x0A\x0BBigQueryKey\x12=\x0A\x0Ftable_reference\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12\x12\x0A\x0Arow_number\x18\x02 \x01(\x03\">\x0A\x0CDatastoreKey\x12.\x0A\x0Aentity_key\x18\x01 \x01(\x0B2\x1A.google.privacy.dlp.v2.Key\"\xBB\x01\x0A\x03Key\x128\x0A\x0Cpartition_id\x18\x01 \x01(\x0B2\".google.privacy.dlp.v2.PartitionId\x124\x0A\x04path\x18\x02 \x03(\x0B2&.google.privacy.dlp.v2.Key.PathElement\x1AD\x0A\x0BPathElement\x12\x0C\x0A\x04kind\x18\x01 \x01(\x09\x12\x0C\x0A\x02id\x18\x02 \x01(\x03H\x00\x12\x0E\x0A\x04name\x18\x03 \x01(\x09H\x00B\x09\x0A\x07id_type\"\xA1\x01\x0A\x09RecordKey\x12<\x0A\x0Ddatastore_key\x18\x02 \x01(\x0B2#.google.privacy.dlp.v2.DatastoreKeyH\x00\x12;\x0A\x0Dbig_query_key\x18\x03 \x01(\x0B2\".google.privacy.dlp.v2.BigQueryKeyH\x00\x12\x11\x0A\x09id_values\x18\x05 \x03(\x09B\x06\x0A\x04type\"I\x0A\x0DBigQueryTable\x12\x12\x0A\x0Aproject_id\x18\x01 \x01(\x09\x12\x12\x0A\x0Adataset_id\x18\x02 \x01(\x09\x12\x10\x0A\x08table_id\x18\x03 \x01(\x09\"J\x0A\x0ETableReference\x12\x12\x0A\x0Adataset_id\x18\x01 \x01(\x09\x12\x10\x0A\x08table_id\x18\x02 \x01(\x09\x12\x12\x0A\x0Aproject_id\x18\x03 \x01(\x09\"s\x0A\x0DBigQueryField\x123\x0A\x05table\x18\x01 \x01(\x0B2\$.google.privacy.dlp.v2.BigQueryTable\x12-\x0A\x05field\x18\x02 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\"9\x0A\x08EntityId\x12-\x0A\x05field\x18\x01 \x01(\x0B2\x1E.google.privacy.dlp.v2.FieldId\"J\x0A\x0CTableOptions\x12:\x0A\x12identifying_fields\x18\x01 \x03(\x0B2\x1E.google.privacy.dlp.v2.FieldId*t\x0A\x0ALikelihood\x12\x1A\x0A\x16LIKELIHOOD_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DVERY_UNLIKELY\x10\x01\x12\x0C\x0A\x08UNLIKELY\x10\x02\x12\x0C\x0A\x08POSSIBLE\x10\x03\x12\x0A\x0A\x06LIKELY\x10\x04\x12\x0F\x0A\x0BVERY_LIKELY\x10\x05*\x9A\x01\x0A\x08FileType\x12\x19\x0A\x15FILE_TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BBINARY_FILE\x10\x01\x12\x0D\x0A\x09TEXT_FILE\x10\x02\x12\x09\x0A\x05IMAGE\x10\x03\x12\x08\x0A\x04WORD\x10\x05\x12\x07\x0A\x03PDF\x10\x06\x12\x08\x0A\x04AVRO\x10\x07\x12\x07\x0A\x03CSV\x10\x08\x12\x07\x0A\x03TSV\x10\x09\x12\x0E\x0A\x0APOWERPOINT\x10\x0B\x12\x09\x0A\x05EXCEL\x10\x0CB\x99\x01\x0A\x19com.google.privacy.dlp.v2B\x0ADlpStorageP\x01Z)cloud.google.com/go/dlp/apiv2/dlppb;dlppb\xAA\x02\x13Google.Cloud.Dlp.V2\xCA\x02\x13Google\\Cloud\\Dlp\\V2\xEA\x02\x16Google::Cloud::Dlp::V2b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action.php deleted file mode 100644 index cf63a0d472fd..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action.php +++ /dev/null @@ -1,329 +0,0 @@ -google.privacy.dlp.v2.Action - */ -class Action extends \Google\Protobuf\Internal\Message -{ - protected $action; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Action\SaveFindings $save_findings - * Save resulting findings in a provided location. - * @type \Google\Cloud\Dlp\V2\Action\PublishToPubSub $pub_sub - * Publish a notification to a Pub/Sub topic. - * @type \Google\Cloud\Dlp\V2\Action\PublishSummaryToCscc $publish_summary_to_cscc - * Publish summary to Cloud Security Command Center (Alpha). - * @type \Google\Cloud\Dlp\V2\Action\PublishFindingsToCloudDataCatalog $publish_findings_to_cloud_data_catalog - * Deprecated because Data Catalog is being turned down. Use - * publish_findings_to_dataplex_catalog to publish findings to Dataplex - * Universal Catalog. - * @type \Google\Cloud\Dlp\V2\Action\PublishFindingsToDataplexCatalog $publish_findings_to_dataplex_catalog - * Publish findings as an aspect to Dataplex Universal Catalog. - * @type \Google\Cloud\Dlp\V2\Action\Deidentify $deidentify - * Create a de-identified copy of the input data. - * @type \Google\Cloud\Dlp\V2\Action\JobNotificationEmails $job_notification_emails - * Sends an email when the job completes. The email goes to IAM project - * owners and technical [Essential - * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). - * @type \Google\Cloud\Dlp\V2\Action\PublishToStackdriver $publish_to_stackdriver - * Enable Stackdriver metric dlp.googleapis.com/finding_count. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Save resulting findings in a provided location. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1; - * @return \Google\Cloud\Dlp\V2\Action\SaveFindings|null - */ - public function getSaveFindings() - { - return $this->readOneof(1); - } - - public function hasSaveFindings() - { - return $this->hasOneof(1); - } - - /** - * Save resulting findings in a provided location. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1; - * @param \Google\Cloud\Dlp\V2\Action\SaveFindings $var - * @return $this - */ - public function setSaveFindings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\SaveFindings::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Publish a notification to a Pub/Sub topic. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2; - * @return \Google\Cloud\Dlp\V2\Action\PublishToPubSub|null - */ - public function getPubSub() - { - return $this->readOneof(2); - } - - public function hasPubSub() - { - return $this->hasOneof(2); - } - - /** - * Publish a notification to a Pub/Sub topic. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2; - * @param \Google\Cloud\Dlp\V2\Action\PublishToPubSub $var - * @return $this - */ - public function setPubSub($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\PublishToPubSub::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Publish summary to Cloud Security Command Center (Alpha). - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3; - * @return \Google\Cloud\Dlp\V2\Action\PublishSummaryToCscc|null - */ - public function getPublishSummaryToCscc() - { - return $this->readOneof(3); - } - - public function hasPublishSummaryToCscc() - { - return $this->hasOneof(3); - } - - /** - * Publish summary to Cloud Security Command Center (Alpha). - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3; - * @param \Google\Cloud\Dlp\V2\Action\PublishSummaryToCscc $var - * @return $this - */ - public function setPublishSummaryToCscc($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\PublishSummaryToCscc::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Deprecated because Data Catalog is being turned down. Use - * publish_findings_to_dataplex_catalog to publish findings to Dataplex - * Universal Catalog. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; - * @return \Google\Cloud\Dlp\V2\Action\PublishFindingsToCloudDataCatalog|null - * @deprecated - */ - public function getPublishFindingsToCloudDataCatalog() - { - if ($this->hasOneof(5)) { - @trigger_error('publish_findings_to_cloud_data_catalog is deprecated.', E_USER_DEPRECATED); - } - return $this->readOneof(5); - } - - public function hasPublishFindingsToCloudDataCatalog() - { - if ($this->hasOneof(5)) { - @trigger_error('publish_findings_to_cloud_data_catalog is deprecated.', E_USER_DEPRECATED); - } - return $this->hasOneof(5); - } - - /** - * Deprecated because Data Catalog is being turned down. Use - * publish_findings_to_dataplex_catalog to publish findings to Dataplex - * Universal Catalog. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; - * @param \Google\Cloud\Dlp\V2\Action\PublishFindingsToCloudDataCatalog $var - * @return $this - * @deprecated - */ - public function setPublishFindingsToCloudDataCatalog($var) - { - @trigger_error('publish_findings_to_cloud_data_catalog is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\PublishFindingsToCloudDataCatalog::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Publish findings as an aspect to Dataplex Universal Catalog. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog publish_findings_to_dataplex_catalog = 10; - * @return \Google\Cloud\Dlp\V2\Action\PublishFindingsToDataplexCatalog|null - */ - public function getPublishFindingsToDataplexCatalog() - { - return $this->readOneof(10); - } - - public function hasPublishFindingsToDataplexCatalog() - { - return $this->hasOneof(10); - } - - /** - * Publish findings as an aspect to Dataplex Universal Catalog. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog publish_findings_to_dataplex_catalog = 10; - * @param \Google\Cloud\Dlp\V2\Action\PublishFindingsToDataplexCatalog $var - * @return $this - */ - public function setPublishFindingsToDataplexCatalog($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\PublishFindingsToDataplexCatalog::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Create a de-identified copy of the input data. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.Deidentify deidentify = 7; - * @return \Google\Cloud\Dlp\V2\Action\Deidentify|null - */ - public function getDeidentify() - { - return $this->readOneof(7); - } - - public function hasDeidentify() - { - return $this->hasOneof(7); - } - - /** - * Create a de-identified copy of the input data. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.Deidentify deidentify = 7; - * @param \Google\Cloud\Dlp\V2\Action\Deidentify $var - * @return $this - */ - public function setDeidentify($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\Deidentify::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Sends an email when the job completes. The email goes to IAM project - * owners and technical [Essential - * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8; - * @return \Google\Cloud\Dlp\V2\Action\JobNotificationEmails|null - */ - public function getJobNotificationEmails() - { - return $this->readOneof(8); - } - - public function hasJobNotificationEmails() - { - return $this->hasOneof(8); - } - - /** - * Sends an email when the job completes. The email goes to IAM project - * owners and technical [Essential - * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8; - * @param \Google\Cloud\Dlp\V2\Action\JobNotificationEmails $var - * @return $this - */ - public function setJobNotificationEmails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\JobNotificationEmails::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Enable Stackdriver metric dlp.googleapis.com/finding_count. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9; - * @return \Google\Cloud\Dlp\V2\Action\PublishToStackdriver|null - */ - public function getPublishToStackdriver() - { - return $this->readOneof(9); - } - - public function hasPublishToStackdriver() - { - return $this->hasOneof(9); - } - - /** - * Enable Stackdriver metric dlp.googleapis.com/finding_count. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9; - * @param \Google\Cloud\Dlp\V2\Action\PublishToStackdriver $var - * @return $this - */ - public function setPublishToStackdriver($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\PublishToStackdriver::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * @return string - */ - public function getAction() - { - return $this->whichOneof("action"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/Deidentify.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/Deidentify.php deleted file mode 100644 index 702c3b87d728..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/Deidentify.php +++ /dev/null @@ -1,439 +0,0 @@ -google.privacy.dlp.v2.Action.Deidentify - */ -class Deidentify extends \Google\Protobuf\Internal\Message -{ - /** - * User specified deidentify templates and configs for structured, - * unstructured, and image files. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationConfig transformation_config = 7; - */ - protected $transformation_config = null; - /** - * Config for storing transformation details. - * This field specifies the configuration for storing detailed metadata - * about each transformation performed during a de-identification process. - * The metadata is stored separately from the de-identified content itself - * and provides a granular record of both successful transformations and any - * failures that occurred. - * Enabling this configuration is essential for users who need to access - * comprehensive information about the status, outcome, and specifics of - * each transformation. The details are captured in the - * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] - * message for each operation. - * Key use cases: - * * **Auditing and compliance** - * * Provides a verifiable audit trail of de-identification activities, - * which is crucial for meeting regulatory requirements and internal - * data governance policies. - * * Logs what data was transformed, what transformations were applied, - * when they occurred, and their success status. This helps - * demonstrate accountability and due diligence in protecting - * sensitive data. - * * **Troubleshooting and debugging** - * * Offers detailed error messages and context if a transformation - * fails. This information is useful for diagnosing and resolving - * issues in the de-identification pipeline. - * * Helps pinpoint the exact location and nature of failures, speeding - * up the debugging process. - * * **Process verification and quality assurance** - * * Allows users to confirm that de-identification rules and - * transformations were applied correctly and consistently across - * the dataset as intended. - * * Helps in verifying the effectiveness of the chosen - * de-identification strategies. - * * **Data lineage and impact analysis** - * * Creates a record of how data elements were modified, contributing - * to data lineage. This is useful for understanding the provenance - * of de-identified data. - * * Aids in assessing the potential impact of de-identification choices - * on downstream analytical processes or data usability. - * * **Reporting and operational insights** - * * You can analyze the metadata stored in a queryable BigQuery table - * to generate reports on transformation success rates, common - * error types, processing volumes (e.g., transformedBytes), and the - * types of transformations applied. - * * These insights can inform optimization of de-identification - * configurations and resource planning. - * To take advantage of these benefits, set this configuration. The stored - * details include a description of the transformation, success or - * error codes, error messages, the number of bytes transformed, the - * location of the transformed content, and identifiers for the job and - * source data. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; - */ - protected $transformation_details_storage_config = null; - /** - * List of user-specified file type groups to transform. If specified, only - * the files with these file types are transformed. If empty, all - * supported files are transformed. Supported types may be automatically - * added over time. Any unsupported file types that are set in this field - * are excluded from de-identification. An error is recorded for each - * unsupported file in the TransformationDetails output table. Currently the - * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; - */ - private $file_types_to_transform; - protected $output; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\TransformationConfig $transformation_config - * User specified deidentify templates and configs for structured, - * unstructured, and image files. - * @type \Google\Cloud\Dlp\V2\TransformationDetailsStorageConfig $transformation_details_storage_config - * Config for storing transformation details. - * This field specifies the configuration for storing detailed metadata - * about each transformation performed during a de-identification process. - * The metadata is stored separately from the de-identified content itself - * and provides a granular record of both successful transformations and any - * failures that occurred. - * Enabling this configuration is essential for users who need to access - * comprehensive information about the status, outcome, and specifics of - * each transformation. The details are captured in the - * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] - * message for each operation. - * Key use cases: - * * **Auditing and compliance** - * * Provides a verifiable audit trail of de-identification activities, - * which is crucial for meeting regulatory requirements and internal - * data governance policies. - * * Logs what data was transformed, what transformations were applied, - * when they occurred, and their success status. This helps - * demonstrate accountability and due diligence in protecting - * sensitive data. - * * **Troubleshooting and debugging** - * * Offers detailed error messages and context if a transformation - * fails. This information is useful for diagnosing and resolving - * issues in the de-identification pipeline. - * * Helps pinpoint the exact location and nature of failures, speeding - * up the debugging process. - * * **Process verification and quality assurance** - * * Allows users to confirm that de-identification rules and - * transformations were applied correctly and consistently across - * the dataset as intended. - * * Helps in verifying the effectiveness of the chosen - * de-identification strategies. - * * **Data lineage and impact analysis** - * * Creates a record of how data elements were modified, contributing - * to data lineage. This is useful for understanding the provenance - * of de-identified data. - * * Aids in assessing the potential impact of de-identification choices - * on downstream analytical processes or data usability. - * * **Reporting and operational insights** - * * You can analyze the metadata stored in a queryable BigQuery table - * to generate reports on transformation success rates, common - * error types, processing volumes (e.g., transformedBytes), and the - * types of transformations applied. - * * These insights can inform optimization of de-identification - * configurations and resource planning. - * To take advantage of these benefits, set this configuration. The stored - * details include a description of the transformation, success or - * error codes, error messages, the number of bytes transformed, the - * location of the transformed content, and identifiers for the job and - * source data. - * @type string $cloud_storage_output - * Required. User settable Cloud Storage bucket and folders to store - * de-identified files. This field must be set for Cloud Storage - * deidentification. The output Cloud Storage bucket must be different - * from the input bucket. De-identified files will overwrite files in the - * output path. - * Form of: gs://bucket/folder/ or gs://bucket - * @type int[] $file_types_to_transform - * List of user-specified file type groups to transform. If specified, only - * the files with these file types are transformed. If empty, all - * supported files are transformed. Supported types may be automatically - * added over time. Any unsupported file types that are set in this field - * are excluded from de-identification. An error is recorded for each - * unsupported file in the TransformationDetails output table. Currently the - * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * User specified deidentify templates and configs for structured, - * unstructured, and image files. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationConfig transformation_config = 7; - * @return \Google\Cloud\Dlp\V2\TransformationConfig|null - */ - public function getTransformationConfig() - { - return $this->transformation_config; - } - - public function hasTransformationConfig() - { - return isset($this->transformation_config); - } - - public function clearTransformationConfig() - { - unset($this->transformation_config); - } - - /** - * User specified deidentify templates and configs for structured, - * unstructured, and image files. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationConfig transformation_config = 7; - * @param \Google\Cloud\Dlp\V2\TransformationConfig $var - * @return $this - */ - public function setTransformationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationConfig::class); - $this->transformation_config = $var; - - return $this; - } - - /** - * Config for storing transformation details. - * This field specifies the configuration for storing detailed metadata - * about each transformation performed during a de-identification process. - * The metadata is stored separately from the de-identified content itself - * and provides a granular record of both successful transformations and any - * failures that occurred. - * Enabling this configuration is essential for users who need to access - * comprehensive information about the status, outcome, and specifics of - * each transformation. The details are captured in the - * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] - * message for each operation. - * Key use cases: - * * **Auditing and compliance** - * * Provides a verifiable audit trail of de-identification activities, - * which is crucial for meeting regulatory requirements and internal - * data governance policies. - * * Logs what data was transformed, what transformations were applied, - * when they occurred, and their success status. This helps - * demonstrate accountability and due diligence in protecting - * sensitive data. - * * **Troubleshooting and debugging** - * * Offers detailed error messages and context if a transformation - * fails. This information is useful for diagnosing and resolving - * issues in the de-identification pipeline. - * * Helps pinpoint the exact location and nature of failures, speeding - * up the debugging process. - * * **Process verification and quality assurance** - * * Allows users to confirm that de-identification rules and - * transformations were applied correctly and consistently across - * the dataset as intended. - * * Helps in verifying the effectiveness of the chosen - * de-identification strategies. - * * **Data lineage and impact analysis** - * * Creates a record of how data elements were modified, contributing - * to data lineage. This is useful for understanding the provenance - * of de-identified data. - * * Aids in assessing the potential impact of de-identification choices - * on downstream analytical processes or data usability. - * * **Reporting and operational insights** - * * You can analyze the metadata stored in a queryable BigQuery table - * to generate reports on transformation success rates, common - * error types, processing volumes (e.g., transformedBytes), and the - * types of transformations applied. - * * These insights can inform optimization of de-identification - * configurations and resource planning. - * To take advantage of these benefits, set this configuration. The stored - * details include a description of the transformation, success or - * error codes, error messages, the number of bytes transformed, the - * location of the transformed content, and identifiers for the job and - * source data. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; - * @return \Google\Cloud\Dlp\V2\TransformationDetailsStorageConfig|null - */ - public function getTransformationDetailsStorageConfig() - { - return $this->transformation_details_storage_config; - } - - public function hasTransformationDetailsStorageConfig() - { - return isset($this->transformation_details_storage_config); - } - - public function clearTransformationDetailsStorageConfig() - { - unset($this->transformation_details_storage_config); - } - - /** - * Config for storing transformation details. - * This field specifies the configuration for storing detailed metadata - * about each transformation performed during a de-identification process. - * The metadata is stored separately from the de-identified content itself - * and provides a granular record of both successful transformations and any - * failures that occurred. - * Enabling this configuration is essential for users who need to access - * comprehensive information about the status, outcome, and specifics of - * each transformation. The details are captured in the - * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] - * message for each operation. - * Key use cases: - * * **Auditing and compliance** - * * Provides a verifiable audit trail of de-identification activities, - * which is crucial for meeting regulatory requirements and internal - * data governance policies. - * * Logs what data was transformed, what transformations were applied, - * when they occurred, and their success status. This helps - * demonstrate accountability and due diligence in protecting - * sensitive data. - * * **Troubleshooting and debugging** - * * Offers detailed error messages and context if a transformation - * fails. This information is useful for diagnosing and resolving - * issues in the de-identification pipeline. - * * Helps pinpoint the exact location and nature of failures, speeding - * up the debugging process. - * * **Process verification and quality assurance** - * * Allows users to confirm that de-identification rules and - * transformations were applied correctly and consistently across - * the dataset as intended. - * * Helps in verifying the effectiveness of the chosen - * de-identification strategies. - * * **Data lineage and impact analysis** - * * Creates a record of how data elements were modified, contributing - * to data lineage. This is useful for understanding the provenance - * of de-identified data. - * * Aids in assessing the potential impact of de-identification choices - * on downstream analytical processes or data usability. - * * **Reporting and operational insights** - * * You can analyze the metadata stored in a queryable BigQuery table - * to generate reports on transformation success rates, common - * error types, processing volumes (e.g., transformedBytes), and the - * types of transformations applied. - * * These insights can inform optimization of de-identification - * configurations and resource planning. - * To take advantage of these benefits, set this configuration. The stored - * details include a description of the transformation, success or - * error codes, error messages, the number of bytes transformed, the - * location of the transformed content, and identifiers for the job and - * source data. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; - * @param \Google\Cloud\Dlp\V2\TransformationDetailsStorageConfig $var - * @return $this - */ - public function setTransformationDetailsStorageConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationDetailsStorageConfig::class); - $this->transformation_details_storage_config = $var; - - return $this; - } - - /** - * Required. User settable Cloud Storage bucket and folders to store - * de-identified files. This field must be set for Cloud Storage - * deidentification. The output Cloud Storage bucket must be different - * from the input bucket. De-identified files will overwrite files in the - * output path. - * Form of: gs://bucket/folder/ or gs://bucket - * - * Generated from protobuf field string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCloudStorageOutput() - { - return $this->readOneof(9); - } - - public function hasCloudStorageOutput() - { - return $this->hasOneof(9); - } - - /** - * Required. User settable Cloud Storage bucket and folders to store - * de-identified files. This field must be set for Cloud Storage - * deidentification. The output Cloud Storage bucket must be different - * from the input bucket. De-identified files will overwrite files in the - * output path. - * Form of: gs://bucket/folder/ or gs://bucket - * - * Generated from protobuf field string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCloudStorageOutput($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * List of user-specified file type groups to transform. If specified, only - * the files with these file types are transformed. If empty, all - * supported files are transformed. Supported types may be automatically - * added over time. Any unsupported file types that are set in this field - * are excluded from de-identification. An error is recorded for each - * unsupported file in the TransformationDetails output table. Currently the - * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; - * @return RepeatedField - */ - public function getFileTypesToTransform() - { - return $this->file_types_to_transform; - } - - /** - * List of user-specified file type groups to transform. If specified, only - * the files with these file types are transformed. If empty, all - * supported files are transformed. Supported types may be automatically - * added over time. Any unsupported file types that are set in this field - * are excluded from de-identification. An error is recorded for each - * unsupported file in the TransformationDetails output table. Currently the - * only file types supported are: IMAGES, TEXT_FILES, CSV, TSV. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; - * @param int[] $var - * @return $this - */ - public function setFileTypesToTransform($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\FileType::class); - $this->file_types_to_transform = $arr; - - return $this; - } - - /** - * @return string - */ - public function getOutput() - { - return $this->whichOneof("output"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/JobNotificationEmails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/JobNotificationEmails.php deleted file mode 100644 index 721a816a485f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/JobNotificationEmails.php +++ /dev/null @@ -1,35 +0,0 @@ -google.privacy.dlp.v2.Action.JobNotificationEmails - */ -class JobNotificationEmails extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToCloudDataCatalog.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToCloudDataCatalog.php deleted file mode 100644 index 38870781dae8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToCloudDataCatalog.php +++ /dev/null @@ -1,48 +0,0 @@ -google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog - */ -class PublishFindingsToCloudDataCatalog extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToDataplexCatalog.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToDataplexCatalog.php deleted file mode 100644 index 5d1d0659239a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToDataplexCatalog.php +++ /dev/null @@ -1,43 +0,0 @@ -google.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalog - */ -class PublishFindingsToDataplexCatalog extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishSummaryToCscc.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishSummaryToCscc.php deleted file mode 100644 index 9fdbed69984b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishSummaryToCscc.php +++ /dev/null @@ -1,40 +0,0 @@ -google.privacy.dlp.v2.Action.PublishSummaryToCscc - */ -class PublishSummaryToCscc extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToPubSub.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToPubSub.php deleted file mode 100644 index 27416c4022a2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToPubSub.php +++ /dev/null @@ -1,83 +0,0 @@ -google.privacy.dlp.v2.Action.PublishToPubSub - */ -class PublishToPubSub extends \Google\Protobuf\Internal\Message -{ - /** - * Cloud Pub/Sub topic to send notifications to. The topic must have given - * publishing access rights to the DLP API service account executing - * the long running DlpJob sending the notifications. - * Format is projects/{project}/topics/{topic}. - * - * Generated from protobuf field string topic = 1; - */ - protected $topic = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $topic - * Cloud Pub/Sub topic to send notifications to. The topic must have given - * publishing access rights to the DLP API service account executing - * the long running DlpJob sending the notifications. - * Format is projects/{project}/topics/{topic}. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Cloud Pub/Sub topic to send notifications to. The topic must have given - * publishing access rights to the DLP API service account executing - * the long running DlpJob sending the notifications. - * Format is projects/{project}/topics/{topic}. - * - * Generated from protobuf field string topic = 1; - * @return string - */ - public function getTopic() - { - return $this->topic; - } - - /** - * Cloud Pub/Sub topic to send notifications to. The topic must have given - * publishing access rights to the DLP API service account executing - * the long running DlpJob sending the notifications. - * Format is projects/{project}/topics/{topic}. - * - * Generated from protobuf field string topic = 1; - * @param string $var - * @return $this - */ - public function setTopic($var) - { - GPBUtil::checkString($var, True); - $this->topic = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToStackdriver.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToStackdriver.php deleted file mode 100644 index 42315ba5a80f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToStackdriver.php +++ /dev/null @@ -1,36 +0,0 @@ -google.privacy.dlp.v2.Action.PublishToStackdriver - */ -class PublishToStackdriver extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/SaveFindings.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/SaveFindings.php deleted file mode 100644 index 23c3b4652499..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/SaveFindings.php +++ /dev/null @@ -1,80 +0,0 @@ -google.privacy.dlp.v2.Action.SaveFindings - */ -class SaveFindings extends \Google\Protobuf\Internal\Message -{ - /** - * Location to store findings outside of DLP. - * - * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig output_config = 1; - */ - protected $output_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\OutputStorageConfig $output_config - * Location to store findings outside of DLP. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Location to store findings outside of DLP. - * - * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig output_config = 1; - * @return \Google\Cloud\Dlp\V2\OutputStorageConfig|null - */ - public function getOutputConfig() - { - return $this->output_config; - } - - public function hasOutputConfig() - { - return isset($this->output_config); - } - - public function clearOutputConfig() - { - unset($this->output_config); - } - - /** - * Location to store findings outside of DLP. - * - * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig output_config = 1; - * @param \Google\Cloud\Dlp\V2\OutputStorageConfig $var - * @return $this - */ - public function setOutputConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OutputStorageConfig::class); - $this->output_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActionDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActionDetails.php deleted file mode 100644 index 9e36c1cb3316..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActionDetails.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.ActionDetails - */ -class ActionDetails extends \Google\Protobuf\Internal\Message -{ - protected $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails $deidentify_details - * Outcome of a de-identification action. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Outcome of a de-identification action. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceDetails deidentify_details = 1; - * @return \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails|null - */ - public function getDeidentifyDetails() - { - return $this->readOneof(1); - } - - public function hasDeidentifyDetails() - { - return $this->hasOneof(1); - } - - /** - * Outcome of a de-identification action. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceDetails deidentify_details = 1; - * @param \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails $var - * @return $this - */ - public function setDeidentifyDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getDetails() - { - return $this->whichOneof("details"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActivateJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActivateJobTriggerRequest.php deleted file mode 100644 index cedc5fc7b665..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActivateJobTriggerRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.ActivateJobTriggerRequest - */ -class ActivateJobTriggerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the trigger to activate, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the trigger to activate, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the trigger to activate, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the trigger to activate, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustByImageFindings.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustByImageFindings.php deleted file mode 100644 index 887dd6ba17b0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustByImageFindings.php +++ /dev/null @@ -1,218 +0,0 @@ -google.privacy.dlp.v2.AdjustByImageFindings - */ -class AdjustByImageFindings extends \Google\Protobuf\Internal\Message -{ - /** - * A list of image-supported infoTypes—excluding [document - * infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to - * be used as context for the adjustment rule. Sensitive Data Protection - * adjusts the likelihood of an image finding if its bounding box has the - * specified spatial relationship (defined by `image_containment_type`) with a - * finding of an infoType in this list. - * For example, you can create a rule to adjust the likelihood of a - * `US_PASSPORT` finding if it is enclosed by a finding of - * `OBJECT_TYPE/PERSON/PASSPORT`. To configure this, set `US_PASSPORT` in - * `InspectionRuleSet.info_types`. Add an `adjustment_rule` with an - * `adjust_by_image_findings.info_types` that contains - * `OBJECT_TYPE/PERSON/PASSPORT` and `image_containment_type` set - * to `encloses`. In this case, the likelihood of the `US_PASSPORT` finding is - * adjusted, but the likelihood of the `OBJECT_TYPE/PERSON/PASSPORT` - * finding is not. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - */ - private $info_types; - /** - * Required. Minimum likelihood of the - * `adjust_by_image_findings.info_types` finding. If the likelihood is - * lower than this value, Sensitive Data Protection doesn't adjust the - * likelihood of the `InspectionRuleSet.info_types` finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - */ - protected $min_likelihood = 0; - /** - * Specifies the required spatial relationship between the bounding boxes - * of the target finding and the context infoType findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageContainmentType image_containment_type = 3; - */ - protected $image_containment_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType[] $info_types - * A list of image-supported infoTypes—excluding [document - * infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to - * be used as context for the adjustment rule. Sensitive Data Protection - * adjusts the likelihood of an image finding if its bounding box has the - * specified spatial relationship (defined by `image_containment_type`) with a - * finding of an infoType in this list. - * For example, you can create a rule to adjust the likelihood of a - * `US_PASSPORT` finding if it is enclosed by a finding of - * `OBJECT_TYPE/PERSON/PASSPORT`. To configure this, set `US_PASSPORT` in - * `InspectionRuleSet.info_types`. Add an `adjustment_rule` with an - * `adjust_by_image_findings.info_types` that contains - * `OBJECT_TYPE/PERSON/PASSPORT` and `image_containment_type` set - * to `encloses`. In this case, the likelihood of the `US_PASSPORT` finding is - * adjusted, but the likelihood of the `OBJECT_TYPE/PERSON/PASSPORT` - * finding is not. - * @type int $min_likelihood - * Required. Minimum likelihood of the - * `adjust_by_image_findings.info_types` finding. If the likelihood is - * lower than this value, Sensitive Data Protection doesn't adjust the - * likelihood of the `InspectionRuleSet.info_types` finding. - * @type \Google\Cloud\Dlp\V2\ImageContainmentType $image_containment_type - * Specifies the required spatial relationship between the bounding boxes - * of the target finding and the context infoType findings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A list of image-supported infoTypes—excluding [document - * infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to - * be used as context for the adjustment rule. Sensitive Data Protection - * adjusts the likelihood of an image finding if its bounding box has the - * specified spatial relationship (defined by `image_containment_type`) with a - * finding of an infoType in this list. - * For example, you can create a rule to adjust the likelihood of a - * `US_PASSPORT` finding if it is enclosed by a finding of - * `OBJECT_TYPE/PERSON/PASSPORT`. To configure this, set `US_PASSPORT` in - * `InspectionRuleSet.info_types`. Add an `adjustment_rule` with an - * `adjust_by_image_findings.info_types` that contains - * `OBJECT_TYPE/PERSON/PASSPORT` and `image_containment_type` set - * to `encloses`. In this case, the likelihood of the `US_PASSPORT` finding is - * adjusted, but the likelihood of the `OBJECT_TYPE/PERSON/PASSPORT` - * finding is not. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoType> - */ - public function getInfoTypes() - { - return $this->info_types; - } - - /** - * A list of image-supported infoTypes—excluding [document - * infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to - * be used as context for the adjustment rule. Sensitive Data Protection - * adjusts the likelihood of an image finding if its bounding box has the - * specified spatial relationship (defined by `image_containment_type`) with a - * finding of an infoType in this list. - * For example, you can create a rule to adjust the likelihood of a - * `US_PASSPORT` finding if it is enclosed by a finding of - * `OBJECT_TYPE/PERSON/PASSPORT`. To configure this, set `US_PASSPORT` in - * `InspectionRuleSet.info_types`. Add an `adjustment_rule` with an - * `adjust_by_image_findings.info_types` that contains - * `OBJECT_TYPE/PERSON/PASSPORT` and `image_containment_type` set - * to `encloses`. In this case, the likelihood of the `US_PASSPORT` finding is - * adjusted, but the likelihood of the `OBJECT_TYPE/PERSON/PASSPORT` - * finding is not. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @param \Google\Cloud\Dlp\V2\InfoType[] $var - * @return $this - */ - public function setInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_types = $arr; - - return $this; - } - - /** - * Required. Minimum likelihood of the - * `adjust_by_image_findings.info_types` finding. If the likelihood is - * lower than this value, Sensitive Data Protection doesn't adjust the - * likelihood of the `InspectionRuleSet.info_types` finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - * @return int - */ - public function getMinLikelihood() - { - return $this->min_likelihood; - } - - /** - * Required. Minimum likelihood of the - * `adjust_by_image_findings.info_types` finding. If the likelihood is - * lower than this value, Sensitive Data Protection doesn't adjust the - * likelihood of the `InspectionRuleSet.info_types` finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - * @param int $var - * @return $this - */ - public function setMinLikelihood($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); - $this->min_likelihood = $var; - - return $this; - } - - /** - * Specifies the required spatial relationship between the bounding boxes - * of the target finding and the context infoType findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageContainmentType image_containment_type = 3; - * @return \Google\Cloud\Dlp\V2\ImageContainmentType|null - */ - public function getImageContainmentType() - { - return $this->image_containment_type; - } - - public function hasImageContainmentType() - { - return isset($this->image_containment_type); - } - - public function clearImageContainmentType() - { - unset($this->image_containment_type); - } - - /** - * Specifies the required spatial relationship between the bounding boxes - * of the target finding and the context infoType findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageContainmentType image_containment_type = 3; - * @param \Google\Cloud\Dlp\V2\ImageContainmentType $var - * @return $this - */ - public function setImageContainmentType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageContainmentType::class); - $this->image_containment_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustByMatchingInfoTypes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustByMatchingInfoTypes.php deleted file mode 100644 index b70cb8de3d0d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustByMatchingInfoTypes.php +++ /dev/null @@ -1,199 +0,0 @@ -google.privacy.dlp.v2.AdjustByMatchingInfoTypes - */ -class AdjustByMatchingInfoTypes extends \Google\Protobuf\Internal\Message -{ - /** - * Sensitive Data Protection adjusts the likelihood of a finding if that - * finding also matches one of these infoTypes. - * For example, you can create a rule to adjust the likelihood of a - * `PHONE_NUMBER` finding if the string is found within a document that is - * classified as `DOCUMENT_TYPE/HR/RESUME`. To configure this, set - * `PHONE_NUMBER` in `InspectionRuleSet.info_types`. Add an `adjustment_rule` - * with an `adjust_by_matching_info_types.info_types` that contains - * `DOCUMENT_TYPE/HR/RESUME`. In this case, the likelihood of the - * `PHONE_NUMBER` finding is adjusted, but the likelihood of the - * `DOCUMENT_TYPE/HR/RESUME` finding is not. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - */ - private $info_types; - /** - * Required. Minimum likelihood of the - * `adjust_by_matching_info_types.info_types` finding. If the likelihood is - * lower than this value, Sensitive Data Protection doesn't adjust the - * likelihood of the `InspectionRuleSet.info_types` finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - */ - protected $min_likelihood = 0; - /** - * How the adjustment rule is applied. - * Only `MATCHING_TYPE_PARTIAL_MATCH` is supported: - * - Partial match: adjusts the findings of infoTypes specified in the - * inspection rule when they have a nonempty intersection with a finding of an - * infoType specified in this adjustment rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.MatchingType matching_type = 3; - */ - protected $matching_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType[] $info_types - * Sensitive Data Protection adjusts the likelihood of a finding if that - * finding also matches one of these infoTypes. - * For example, you can create a rule to adjust the likelihood of a - * `PHONE_NUMBER` finding if the string is found within a document that is - * classified as `DOCUMENT_TYPE/HR/RESUME`. To configure this, set - * `PHONE_NUMBER` in `InspectionRuleSet.info_types`. Add an `adjustment_rule` - * with an `adjust_by_matching_info_types.info_types` that contains - * `DOCUMENT_TYPE/HR/RESUME`. In this case, the likelihood of the - * `PHONE_NUMBER` finding is adjusted, but the likelihood of the - * `DOCUMENT_TYPE/HR/RESUME` finding is not. - * @type int $min_likelihood - * Required. Minimum likelihood of the - * `adjust_by_matching_info_types.info_types` finding. If the likelihood is - * lower than this value, Sensitive Data Protection doesn't adjust the - * likelihood of the `InspectionRuleSet.info_types` finding. - * @type int $matching_type - * How the adjustment rule is applied. - * Only `MATCHING_TYPE_PARTIAL_MATCH` is supported: - * - Partial match: adjusts the findings of infoTypes specified in the - * inspection rule when they have a nonempty intersection with a finding of an - * infoType specified in this adjustment rule. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Sensitive Data Protection adjusts the likelihood of a finding if that - * finding also matches one of these infoTypes. - * For example, you can create a rule to adjust the likelihood of a - * `PHONE_NUMBER` finding if the string is found within a document that is - * classified as `DOCUMENT_TYPE/HR/RESUME`. To configure this, set - * `PHONE_NUMBER` in `InspectionRuleSet.info_types`. Add an `adjustment_rule` - * with an `adjust_by_matching_info_types.info_types` that contains - * `DOCUMENT_TYPE/HR/RESUME`. In this case, the likelihood of the - * `PHONE_NUMBER` finding is adjusted, but the likelihood of the - * `DOCUMENT_TYPE/HR/RESUME` finding is not. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoType> - */ - public function getInfoTypes() - { - return $this->info_types; - } - - /** - * Sensitive Data Protection adjusts the likelihood of a finding if that - * finding also matches one of these infoTypes. - * For example, you can create a rule to adjust the likelihood of a - * `PHONE_NUMBER` finding if the string is found within a document that is - * classified as `DOCUMENT_TYPE/HR/RESUME`. To configure this, set - * `PHONE_NUMBER` in `InspectionRuleSet.info_types`. Add an `adjustment_rule` - * with an `adjust_by_matching_info_types.info_types` that contains - * `DOCUMENT_TYPE/HR/RESUME`. In this case, the likelihood of the - * `PHONE_NUMBER` finding is adjusted, but the likelihood of the - * `DOCUMENT_TYPE/HR/RESUME` finding is not. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @param \Google\Cloud\Dlp\V2\InfoType[] $var - * @return $this - */ - public function setInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_types = $arr; - - return $this; - } - - /** - * Required. Minimum likelihood of the - * `adjust_by_matching_info_types.info_types` finding. If the likelihood is - * lower than this value, Sensitive Data Protection doesn't adjust the - * likelihood of the `InspectionRuleSet.info_types` finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - * @return int - */ - public function getMinLikelihood() - { - return $this->min_likelihood; - } - - /** - * Required. Minimum likelihood of the - * `adjust_by_matching_info_types.info_types` finding. If the likelihood is - * lower than this value, Sensitive Data Protection doesn't adjust the - * likelihood of the `InspectionRuleSet.info_types` finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - * @param int $var - * @return $this - */ - public function setMinLikelihood($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); - $this->min_likelihood = $var; - - return $this; - } - - /** - * How the adjustment rule is applied. - * Only `MATCHING_TYPE_PARTIAL_MATCH` is supported: - * - Partial match: adjusts the findings of infoTypes specified in the - * inspection rule when they have a nonempty intersection with a finding of an - * infoType specified in this adjustment rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.MatchingType matching_type = 3; - * @return int - */ - public function getMatchingType() - { - return $this->matching_type; - } - - /** - * How the adjustment rule is applied. - * Only `MATCHING_TYPE_PARTIAL_MATCH` is supported: - * - Partial match: adjusts the findings of infoTypes specified in the - * inspection rule when they have a nonempty intersection with a finding of an - * infoType specified in this adjustment rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.MatchingType matching_type = 3; - * @param int $var - * @return $this - */ - public function setMatchingType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\MatchingType::class); - $this->matching_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustmentRule.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustmentRule.php deleted file mode 100644 index 33453fde9e52..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AdjustmentRule.php +++ /dev/null @@ -1,153 +0,0 @@ -google.privacy.dlp.v2.AdjustmentRule - */ -class AdjustmentRule extends \Google\Protobuf\Internal\Message -{ - /** - * Likelihood adjustment to apply to the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 2; - */ - protected $likelihood_adjustment = null; - protected $conditions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\AdjustByMatchingInfoTypes $adjust_by_matching_info_types - * Set of infoTypes for which findings would affect this rule. - * @type \Google\Cloud\Dlp\V2\AdjustByImageFindings $adjust_by_image_findings - * AdjustmentRule condition for image findings. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment $likelihood_adjustment - * Likelihood adjustment to apply to the infoType. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Set of infoTypes for which findings would affect this rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.AdjustByMatchingInfoTypes adjust_by_matching_info_types = 1; - * @return \Google\Cloud\Dlp\V2\AdjustByMatchingInfoTypes|null - */ - public function getAdjustByMatchingInfoTypes() - { - return $this->readOneof(1); - } - - public function hasAdjustByMatchingInfoTypes() - { - return $this->hasOneof(1); - } - - /** - * Set of infoTypes for which findings would affect this rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.AdjustByMatchingInfoTypes adjust_by_matching_info_types = 1; - * @param \Google\Cloud\Dlp\V2\AdjustByMatchingInfoTypes $var - * @return $this - */ - public function setAdjustByMatchingInfoTypes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AdjustByMatchingInfoTypes::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * AdjustmentRule condition for image findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.AdjustByImageFindings adjust_by_image_findings = 3; - * @return \Google\Cloud\Dlp\V2\AdjustByImageFindings|null - */ - public function getAdjustByImageFindings() - { - return $this->readOneof(3); - } - - public function hasAdjustByImageFindings() - { - return $this->hasOneof(3); - } - - /** - * AdjustmentRule condition for image findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.AdjustByImageFindings adjust_by_image_findings = 3; - * @param \Google\Cloud\Dlp\V2\AdjustByImageFindings $var - * @return $this - */ - public function setAdjustByImageFindings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AdjustByImageFindings::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Likelihood adjustment to apply to the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 2; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment|null - */ - public function getLikelihoodAdjustment() - { - return $this->likelihood_adjustment; - } - - public function hasLikelihoodAdjustment() - { - return isset($this->likelihood_adjustment); - } - - public function clearLikelihoodAdjustment() - { - unset($this->likelihood_adjustment); - } - - /** - * Likelihood adjustment to apply to the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 2; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment $var - * @return $this - */ - public function setLikelihoodAdjustment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment::class); - $this->likelihood_adjustment = $var; - - return $this; - } - - /** - * @return string - */ - public function getConditions() - { - return $this->whichOneof("conditions"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherDatabaseResources.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherDatabaseResources.php deleted file mode 100644 index 3db18488e8be..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherDatabaseResources.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.AllOtherDatabaseResources - */ -class AllOtherDatabaseResources extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherResources.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherResources.php deleted file mode 100644 index df5aae5afb5a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherResources.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.AllOtherResources - */ -class AllOtherResources extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3Bucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3Bucket.php deleted file mode 100644 index 10f70f5d141f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3Bucket.php +++ /dev/null @@ -1,111 +0,0 @@ -google.privacy.dlp.v2.AmazonS3Bucket - */ -class AmazonS3Bucket extends \Google\Protobuf\Internal\Message -{ - /** - * The AWS account. - * - * Generated from protobuf field .google.privacy.dlp.v2.AwsAccount aws_account = 1; - */ - protected $aws_account = null; - /** - * Required. The bucket name. - * - * Generated from protobuf field string bucket_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $bucket_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\AwsAccount $aws_account - * The AWS account. - * @type string $bucket_name - * Required. The bucket name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The AWS account. - * - * Generated from protobuf field .google.privacy.dlp.v2.AwsAccount aws_account = 1; - * @return \Google\Cloud\Dlp\V2\AwsAccount|null - */ - public function getAwsAccount() - { - return $this->aws_account; - } - - public function hasAwsAccount() - { - return isset($this->aws_account); - } - - public function clearAwsAccount() - { - unset($this->aws_account); - } - - /** - * The AWS account. - * - * Generated from protobuf field .google.privacy.dlp.v2.AwsAccount aws_account = 1; - * @param \Google\Cloud\Dlp\V2\AwsAccount $var - * @return $this - */ - public function setAwsAccount($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AwsAccount::class); - $this->aws_account = $var; - - return $this; - } - - /** - * Required. The bucket name. - * - * Generated from protobuf field string bucket_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBucketName() - { - return $this->bucket_name; - } - - /** - * Required. The bucket name. - * - * Generated from protobuf field string bucket_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBucketName($var) - { - GPBUtil::checkString($var, True); - $this->bucket_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions.php deleted file mode 100644 index 9344c00f5db1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions.php +++ /dev/null @@ -1,109 +0,0 @@ -google.privacy.dlp.v2.AmazonS3BucketConditions - */ -class AmazonS3BucketConditions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Bucket types that should be profiled. - * Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $bucket_types; - /** - * Optional. Object classes that should be profiled. - * Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $object_storage_classes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int[] $bucket_types - * Optional. Bucket types that should be profiled. - * Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified. - * @type int[] $object_storage_classes - * Optional. Object classes that should be profiled. - * Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Bucket types that should be profiled. - * Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getBucketTypes() - { - return $this->bucket_types; - } - - /** - * Optional. Bucket types that should be profiled. - * Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int[] $var - * @return $this - */ - public function setBucketTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\AmazonS3BucketConditions\BucketType::class); - $this->bucket_types = $arr; - - return $this; - } - - /** - * Optional. Object classes that should be profiled. - * Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getObjectStorageClasses() - { - return $this->object_storage_classes; - } - - /** - * Optional. Object classes that should be profiled. - * Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int[] $var - * @return $this - */ - public function setObjectStorageClasses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\AmazonS3BucketConditions\ObjectStorageClass::class); - $this->object_storage_classes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/BucketType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/BucketType.php deleted file mode 100644 index 96827e556d7b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/BucketType.php +++ /dev/null @@ -1,62 +0,0 @@ -google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType - */ -class BucketType -{ - /** - * Unused. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * All supported classes. - * - * Generated from protobuf enum TYPE_ALL_SUPPORTED = 1; - */ - const TYPE_ALL_SUPPORTED = 1; - /** - * A general purpose Amazon S3 bucket. - * - * Generated from protobuf enum TYPE_GENERAL_PURPOSE = 2; - */ - const TYPE_GENERAL_PURPOSE = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::TYPE_ALL_SUPPORTED => 'TYPE_ALL_SUPPORTED', - self::TYPE_GENERAL_PURPOSE => 'TYPE_GENERAL_PURPOSE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/ObjectStorageClass.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/ObjectStorageClass.php deleted file mode 100644 index 08ee4771da3d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/ObjectStorageClass.php +++ /dev/null @@ -1,83 +0,0 @@ -google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass - */ -class ObjectStorageClass -{ - /** - * Unused. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * All supported classes. - * - * Generated from protobuf enum ALL_SUPPORTED_CLASSES = 1; - */ - const ALL_SUPPORTED_CLASSES = 1; - /** - * Standard object class. - * - * Generated from protobuf enum STANDARD = 2; - */ - const STANDARD = 2; - /** - * Standard - infrequent access object class. - * - * Generated from protobuf enum STANDARD_INFREQUENT_ACCESS = 4; - */ - const STANDARD_INFREQUENT_ACCESS = 4; - /** - * Glacier - instant retrieval object class. - * - * Generated from protobuf enum GLACIER_INSTANT_RETRIEVAL = 6; - */ - const GLACIER_INSTANT_RETRIEVAL = 6; - /** - * Objects in the S3 Intelligent-Tiering access tiers. - * - * Generated from protobuf enum INTELLIGENT_TIERING = 7; - */ - const INTELLIGENT_TIERING = 7; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::ALL_SUPPORTED_CLASSES => 'ALL_SUPPORTED_CLASSES', - self::STANDARD => 'STANDARD', - self::STANDARD_INFREQUENT_ACCESS => 'STANDARD_INFREQUENT_ACCESS', - self::GLACIER_INSTANT_RETRIEVAL => 'GLACIER_INSTANT_RETRIEVAL', - self::INTELLIGENT_TIERING => 'INTELLIGENT_TIERING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketRegex.php deleted file mode 100644 index 2752309e0291..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketRegex.php +++ /dev/null @@ -1,115 +0,0 @@ -google.privacy.dlp.v2.AmazonS3BucketRegex - */ -class AmazonS3BucketRegex extends \Google\Protobuf\Internal\Message -{ - /** - * The AWS account regex. - * - * Generated from protobuf field .google.privacy.dlp.v2.AwsAccountRegex aws_account_regex = 1; - */ - protected $aws_account_regex = null; - /** - * Optional. Regex to test the bucket name against. - * If empty, all buckets match. - * - * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $bucket_name_regex = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\AwsAccountRegex $aws_account_regex - * The AWS account regex. - * @type string $bucket_name_regex - * Optional. Regex to test the bucket name against. - * If empty, all buckets match. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The AWS account regex. - * - * Generated from protobuf field .google.privacy.dlp.v2.AwsAccountRegex aws_account_regex = 1; - * @return \Google\Cloud\Dlp\V2\AwsAccountRegex|null - */ - public function getAwsAccountRegex() - { - return $this->aws_account_regex; - } - - public function hasAwsAccountRegex() - { - return isset($this->aws_account_regex); - } - - public function clearAwsAccountRegex() - { - unset($this->aws_account_regex); - } - - /** - * The AWS account regex. - * - * Generated from protobuf field .google.privacy.dlp.v2.AwsAccountRegex aws_account_regex = 1; - * @param \Google\Cloud\Dlp\V2\AwsAccountRegex $var - * @return $this - */ - public function setAwsAccountRegex($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AwsAccountRegex::class); - $this->aws_account_regex = $var; - - return $this; - } - - /** - * Optional. Regex to test the bucket name against. - * If empty, all buckets match. - * - * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getBucketNameRegex() - { - return $this->bucket_name_regex; - } - - /** - * Optional. Regex to test the bucket name against. - * If empty, all buckets match. - * - * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setBucketNameRegex($var) - { - GPBUtil::checkString($var, True); - $this->bucket_name_regex = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails.php deleted file mode 100644 index 065a2e0277c0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails.php +++ /dev/null @@ -1,372 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails - */ -class AnalyzeDataSourceRiskDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Privacy metric to compute. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric requested_privacy_metric = 1; - */ - protected $requested_privacy_metric = null; - /** - * Input dataset to compute metrics over. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable requested_source_table = 2; - */ - protected $requested_source_table = null; - /** - * The configuration used for this job. - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions requested_options = 10; - */ - protected $requested_options = null; - protected $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\PrivacyMetric $requested_privacy_metric - * Privacy metric to compute. - * @type \Google\Cloud\Dlp\V2\BigQueryTable $requested_source_table - * Input dataset to compute metrics over. - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\NumericalStatsResult $numerical_stats_result - * Numerical stats result - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult $categorical_stats_result - * Categorical stats result - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult $k_anonymity_result - * K-anonymity result - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult $l_diversity_result - * L-divesity result - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult $k_map_estimation_result - * K-map result - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult $delta_presence_estimation_result - * Delta-presence result - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\RequestedRiskAnalysisOptions $requested_options - * The configuration used for this job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Privacy metric to compute. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric requested_privacy_metric = 1; - * @return \Google\Cloud\Dlp\V2\PrivacyMetric|null - */ - public function getRequestedPrivacyMetric() - { - return $this->requested_privacy_metric; - } - - public function hasRequestedPrivacyMetric() - { - return isset($this->requested_privacy_metric); - } - - public function clearRequestedPrivacyMetric() - { - unset($this->requested_privacy_metric); - } - - /** - * Privacy metric to compute. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric requested_privacy_metric = 1; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric $var - * @return $this - */ - public function setRequestedPrivacyMetric($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric::class); - $this->requested_privacy_metric = $var; - - return $this; - } - - /** - * Input dataset to compute metrics over. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable requested_source_table = 2; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getRequestedSourceTable() - { - return $this->requested_source_table; - } - - public function hasRequestedSourceTable() - { - return isset($this->requested_source_table); - } - - public function clearRequestedSourceTable() - { - unset($this->requested_source_table); - } - - /** - * Input dataset to compute metrics over. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable requested_source_table = 2; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setRequestedSourceTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->requested_source_table = $var; - - return $this; - } - - /** - * Numerical stats result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult numerical_stats_result = 3; - * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\NumericalStatsResult|null - */ - public function getNumericalStatsResult() - { - return $this->readOneof(3); - } - - public function hasNumericalStatsResult() - { - return $this->hasOneof(3); - } - - /** - * Numerical stats result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult numerical_stats_result = 3; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\NumericalStatsResult $var - * @return $this - */ - public function setNumericalStatsResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\NumericalStatsResult::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Categorical stats result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult categorical_stats_result = 4; - * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult|null - */ - public function getCategoricalStatsResult() - { - return $this->readOneof(4); - } - - public function hasCategoricalStatsResult() - { - return $this->hasOneof(4); - } - - /** - * Categorical stats result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult categorical_stats_result = 4; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult $var - * @return $this - */ - public function setCategoricalStatsResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * K-anonymity result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult k_anonymity_result = 5; - * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult|null - */ - public function getKAnonymityResult() - { - return $this->readOneof(5); - } - - public function hasKAnonymityResult() - { - return $this->hasOneof(5); - } - - /** - * K-anonymity result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult k_anonymity_result = 5; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult $var - * @return $this - */ - public function setKAnonymityResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * L-divesity result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult l_diversity_result = 6; - * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult|null - */ - public function getLDiversityResult() - { - return $this->readOneof(6); - } - - public function hasLDiversityResult() - { - return $this->hasOneof(6); - } - - /** - * L-divesity result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult l_diversity_result = 6; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult $var - * @return $this - */ - public function setLDiversityResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * K-map result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult k_map_estimation_result = 7; - * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult|null - */ - public function getKMapEstimationResult() - { - return $this->readOneof(7); - } - - public function hasKMapEstimationResult() - { - return $this->hasOneof(7); - } - - /** - * K-map result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult k_map_estimation_result = 7; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult $var - * @return $this - */ - public function setKMapEstimationResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Delta-presence result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult delta_presence_estimation_result = 9; - * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult|null - */ - public function getDeltaPresenceEstimationResult() - { - return $this->readOneof(9); - } - - public function hasDeltaPresenceEstimationResult() - { - return $this->hasOneof(9); - } - - /** - * Delta-presence result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult delta_presence_estimation_result = 9; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult $var - * @return $this - */ - public function setDeltaPresenceEstimationResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * The configuration used for this job. - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions requested_options = 10; - * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\RequestedRiskAnalysisOptions|null - */ - public function getRequestedOptions() - { - return $this->requested_options; - } - - public function hasRequestedOptions() - { - return isset($this->requested_options); - } - - public function clearRequestedOptions() - { - unset($this->requested_options); - } - - /** - * The configuration used for this job. - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions requested_options = 10; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\RequestedRiskAnalysisOptions $var - * @return $this - */ - public function setRequestedOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\RequestedRiskAnalysisOptions::class); - $this->requested_options = $var; - - return $this; - } - - /** - * @return string - */ - public function getResult() - { - return $this->whichOneof("result"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult.php deleted file mode 100644 index f402c62d1137..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult - */ -class CategoricalStatsResult extends \Google\Protobuf\Internal\Message -{ - /** - * Histogram of value frequencies in the column. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket value_frequency_histogram_buckets = 5; - */ - private $value_frequency_histogram_buckets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult\CategoricalStatsHistogramBucket[] $value_frequency_histogram_buckets - * Histogram of value frequencies in the column. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Histogram of value frequencies in the column. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket value_frequency_histogram_buckets = 5; - * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult\CategoricalStatsHistogramBucket> - */ - public function getValueFrequencyHistogramBuckets() - { - return $this->value_frequency_histogram_buckets; - } - - /** - * Histogram of value frequencies in the column. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket value_frequency_histogram_buckets = 5; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult\CategoricalStatsHistogramBucket[] $var - * @return $this - */ - public function setValueFrequencyHistogramBuckets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult\CategoricalStatsHistogramBucket::class); - $this->value_frequency_histogram_buckets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult/CategoricalStatsHistogramBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult/CategoricalStatsHistogramBucket.php deleted file mode 100644 index 4bbe2da9172f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult/CategoricalStatsHistogramBucket.php +++ /dev/null @@ -1,207 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket - */ -class CategoricalStatsHistogramBucket extends \Google\Protobuf\Internal\Message -{ - /** - * Lower bound on the value frequency of the values in this bucket. - * - * Generated from protobuf field int64 value_frequency_lower_bound = 1; - */ - protected $value_frequency_lower_bound = 0; - /** - * Upper bound on the value frequency of the values in this bucket. - * - * Generated from protobuf field int64 value_frequency_upper_bound = 2; - */ - protected $value_frequency_upper_bound = 0; - /** - * Total number of values in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - */ - protected $bucket_size = 0; - /** - * Sample of value frequencies in this bucket. The total number of - * values returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency bucket_values = 4; - */ - private $bucket_values; - /** - * Total number of distinct values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - */ - protected $bucket_value_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $value_frequency_lower_bound - * Lower bound on the value frequency of the values in this bucket. - * @type int|string $value_frequency_upper_bound - * Upper bound on the value frequency of the values in this bucket. - * @type int|string $bucket_size - * Total number of values in this bucket. - * @type \Google\Cloud\Dlp\V2\ValueFrequency[] $bucket_values - * Sample of value frequencies in this bucket. The total number of - * values returned per bucket is capped at 20. - * @type int|string $bucket_value_count - * Total number of distinct values in this bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Lower bound on the value frequency of the values in this bucket. - * - * Generated from protobuf field int64 value_frequency_lower_bound = 1; - * @return int|string - */ - public function getValueFrequencyLowerBound() - { - return $this->value_frequency_lower_bound; - } - - /** - * Lower bound on the value frequency of the values in this bucket. - * - * Generated from protobuf field int64 value_frequency_lower_bound = 1; - * @param int|string $var - * @return $this - */ - public function setValueFrequencyLowerBound($var) - { - GPBUtil::checkInt64($var); - $this->value_frequency_lower_bound = $var; - - return $this; - } - - /** - * Upper bound on the value frequency of the values in this bucket. - * - * Generated from protobuf field int64 value_frequency_upper_bound = 2; - * @return int|string - */ - public function getValueFrequencyUpperBound() - { - return $this->value_frequency_upper_bound; - } - - /** - * Upper bound on the value frequency of the values in this bucket. - * - * Generated from protobuf field int64 value_frequency_upper_bound = 2; - * @param int|string $var - * @return $this - */ - public function setValueFrequencyUpperBound($var) - { - GPBUtil::checkInt64($var); - $this->value_frequency_upper_bound = $var; - - return $this; - } - - /** - * Total number of values in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - * @return int|string - */ - public function getBucketSize() - { - return $this->bucket_size; - } - - /** - * Total number of values in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - * @param int|string $var - * @return $this - */ - public function setBucketSize($var) - { - GPBUtil::checkInt64($var); - $this->bucket_size = $var; - - return $this; - } - - /** - * Sample of value frequencies in this bucket. The total number of - * values returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency bucket_values = 4; - * @return RepeatedField<\Google\Cloud\Dlp\V2\ValueFrequency> - */ - public function getBucketValues() - { - return $this->bucket_values; - } - - /** - * Sample of value frequencies in this bucket. The total number of - * values returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency bucket_values = 4; - * @param \Google\Cloud\Dlp\V2\ValueFrequency[] $var - * @return $this - */ - public function setBucketValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ValueFrequency::class); - $this->bucket_values = $arr; - - return $this; - } - - /** - * Total number of distinct values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - * @return int|string - */ - public function getBucketValueCount() - { - return $this->bucket_value_count; - } - - /** - * Total number of distinct values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - * @param int|string $var - * @return $this - */ - public function setBucketValueCount($var) - { - GPBUtil::checkInt64($var); - $this->bucket_value_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult.php deleted file mode 100644 index 3ec3508bd91f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult.php +++ /dev/null @@ -1,96 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult - */ -class DeltaPresenceEstimationResult extends \Google\Protobuf\Internal\Message -{ - /** - * The intervals [min_probability, max_probability) do not overlap. If a - * value doesn't correspond to any such interval, the associated frequency - * is zero. For example, the following records: - * {min_probability: 0, max_probability: 0.1, frequency: 17} - * {min_probability: 0.2, max_probability: 0.3, frequency: 42} - * {min_probability: 0.3, max_probability: 0.4, frequency: 99} - * mean that there are no record with an estimated probability in [0.1, 0.2) - * nor larger or equal to 0.4. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket delta_presence_estimation_histogram = 1; - */ - private $delta_presence_estimation_histogram; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationHistogramBucket[] $delta_presence_estimation_histogram - * The intervals [min_probability, max_probability) do not overlap. If a - * value doesn't correspond to any such interval, the associated frequency - * is zero. For example, the following records: - * {min_probability: 0, max_probability: 0.1, frequency: 17} - * {min_probability: 0.2, max_probability: 0.3, frequency: 42} - * {min_probability: 0.3, max_probability: 0.4, frequency: 99} - * mean that there are no record with an estimated probability in [0.1, 0.2) - * nor larger or equal to 0.4. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The intervals [min_probability, max_probability) do not overlap. If a - * value doesn't correspond to any such interval, the associated frequency - * is zero. For example, the following records: - * {min_probability: 0, max_probability: 0.1, frequency: 17} - * {min_probability: 0.2, max_probability: 0.3, frequency: 42} - * {min_probability: 0.3, max_probability: 0.4, frequency: 99} - * mean that there are no record with an estimated probability in [0.1, 0.2) - * nor larger or equal to 0.4. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket delta_presence_estimation_histogram = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationHistogramBucket> - */ - public function getDeltaPresenceEstimationHistogram() - { - return $this->delta_presence_estimation_histogram; - } - - /** - * The intervals [min_probability, max_probability) do not overlap. If a - * value doesn't correspond to any such interval, the associated frequency - * is zero. For example, the following records: - * {min_probability: 0, max_probability: 0.1, frequency: 17} - * {min_probability: 0.2, max_probability: 0.3, frequency: 42} - * {min_probability: 0.3, max_probability: 0.4, frequency: 99} - * mean that there are no record with an estimated probability in [0.1, 0.2) - * nor larger or equal to 0.4. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket delta_presence_estimation_histogram = 1; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationHistogramBucket[] $var - * @return $this - */ - public function setDeltaPresenceEstimationHistogram($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationHistogramBucket::class); - $this->delta_presence_estimation_histogram = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationHistogramBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationHistogramBucket.php deleted file mode 100644 index 39ea9ada22ec..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationHistogramBucket.php +++ /dev/null @@ -1,215 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket - */ -class DeltaPresenceEstimationHistogramBucket extends \Google\Protobuf\Internal\Message -{ - /** - * Between 0 and 1. - * - * Generated from protobuf field double min_probability = 1; - */ - protected $min_probability = 0.0; - /** - * Always greater than or equal to min_probability. - * - * Generated from protobuf field double max_probability = 2; - */ - protected $max_probability = 0.0; - /** - * Number of records within these probability bounds. - * - * Generated from protobuf field int64 bucket_size = 5; - */ - protected $bucket_size = 0; - /** - * Sample of quasi-identifier tuple values in this bucket. The total - * number of classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues bucket_values = 6; - */ - private $bucket_values; - /** - * Total number of distinct quasi-identifier tuple values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 7; - */ - protected $bucket_value_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $min_probability - * Between 0 and 1. - * @type float $max_probability - * Always greater than or equal to min_probability. - * @type int|string $bucket_size - * Number of records within these probability bounds. - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationQuasiIdValues[] $bucket_values - * Sample of quasi-identifier tuple values in this bucket. The total - * number of classes returned per bucket is capped at 20. - * @type int|string $bucket_value_count - * Total number of distinct quasi-identifier tuple values in this bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Between 0 and 1. - * - * Generated from protobuf field double min_probability = 1; - * @return float - */ - public function getMinProbability() - { - return $this->min_probability; - } - - /** - * Between 0 and 1. - * - * Generated from protobuf field double min_probability = 1; - * @param float $var - * @return $this - */ - public function setMinProbability($var) - { - GPBUtil::checkDouble($var); - $this->min_probability = $var; - - return $this; - } - - /** - * Always greater than or equal to min_probability. - * - * Generated from protobuf field double max_probability = 2; - * @return float - */ - public function getMaxProbability() - { - return $this->max_probability; - } - - /** - * Always greater than or equal to min_probability. - * - * Generated from protobuf field double max_probability = 2; - * @param float $var - * @return $this - */ - public function setMaxProbability($var) - { - GPBUtil::checkDouble($var); - $this->max_probability = $var; - - return $this; - } - - /** - * Number of records within these probability bounds. - * - * Generated from protobuf field int64 bucket_size = 5; - * @return int|string - */ - public function getBucketSize() - { - return $this->bucket_size; - } - - /** - * Number of records within these probability bounds. - * - * Generated from protobuf field int64 bucket_size = 5; - * @param int|string $var - * @return $this - */ - public function setBucketSize($var) - { - GPBUtil::checkInt64($var); - $this->bucket_size = $var; - - return $this; - } - - /** - * Sample of quasi-identifier tuple values in this bucket. The total - * number of classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues bucket_values = 6; - * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationQuasiIdValues> - */ - public function getBucketValues() - { - return $this->bucket_values; - } - - /** - * Sample of quasi-identifier tuple values in this bucket. The total - * number of classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues bucket_values = 6; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationQuasiIdValues[] $var - * @return $this - */ - public function setBucketValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationQuasiIdValues::class); - $this->bucket_values = $arr; - - return $this; - } - - /** - * Total number of distinct quasi-identifier tuple values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 7; - * @return int|string - */ - public function getBucketValueCount() - { - return $this->bucket_value_count; - } - - /** - * Total number of distinct quasi-identifier tuple values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 7; - * @param int|string $var - * @return $this - */ - public function setBucketValueCount($var) - { - GPBUtil::checkInt64($var); - $this->bucket_value_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationQuasiIdValues.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationQuasiIdValues.php deleted file mode 100644 index fcb9a8d1f843..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationQuasiIdValues.php +++ /dev/null @@ -1,129 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues - */ -class DeltaPresenceEstimationQuasiIdValues extends \Google\Protobuf\Internal\Message -{ - /** - * The quasi-identifier values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - */ - private $quasi_ids_values; - /** - * The estimated probability that a given individual sharing these - * quasi-identifier values is in the dataset. This value, typically - * called δ, is the ratio between the number of records in the dataset - * with these quasi-identifier values, and the total number of individuals - * (inside *and* outside the dataset) with these quasi-identifier values. - * For example, if there are 15 individuals in the dataset who share the - * same quasi-identifier values, and an estimated 100 people in the entire - * population with these values, then δ is 0.15. - * - * Generated from protobuf field double estimated_probability = 2; - */ - protected $estimated_probability = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Value[] $quasi_ids_values - * The quasi-identifier values. - * @type float $estimated_probability - * The estimated probability that a given individual sharing these - * quasi-identifier values is in the dataset. This value, typically - * called δ, is the ratio between the number of records in the dataset - * with these quasi-identifier values, and the total number of individuals - * (inside *and* outside the dataset) with these quasi-identifier values. - * For example, if there are 15 individuals in the dataset who share the - * same quasi-identifier values, and an estimated 100 people in the entire - * population with these values, then δ is 0.15. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The quasi-identifier values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Value> - */ - public function getQuasiIdsValues() - { - return $this->quasi_ids_values; - } - - /** - * The quasi-identifier values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - * @param \Google\Cloud\Dlp\V2\Value[] $var - * @return $this - */ - public function setQuasiIdsValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); - $this->quasi_ids_values = $arr; - - return $this; - } - - /** - * The estimated probability that a given individual sharing these - * quasi-identifier values is in the dataset. This value, typically - * called δ, is the ratio between the number of records in the dataset - * with these quasi-identifier values, and the total number of individuals - * (inside *and* outside the dataset) with these quasi-identifier values. - * For example, if there are 15 individuals in the dataset who share the - * same quasi-identifier values, and an estimated 100 people in the entire - * population with these values, then δ is 0.15. - * - * Generated from protobuf field double estimated_probability = 2; - * @return float - */ - public function getEstimatedProbability() - { - return $this->estimated_probability; - } - - /** - * The estimated probability that a given individual sharing these - * quasi-identifier values is in the dataset. This value, typically - * called δ, is the ratio between the number of records in the dataset - * with these quasi-identifier values, and the total number of individuals - * (inside *and* outside the dataset) with these quasi-identifier values. - * For example, if there are 15 individuals in the dataset who share the - * same quasi-identifier values, and an estimated 100 people in the entire - * population with these values, then δ is 0.15. - * - * Generated from protobuf field double estimated_probability = 2; - * @param float $var - * @return $this - */ - public function setEstimatedProbability($var) - { - GPBUtil::checkDouble($var); - $this->estimated_probability = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult.php deleted file mode 100644 index b75dd1ee5e7b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult - */ -class KAnonymityResult extends \Google\Protobuf\Internal\Message -{ - /** - * Histogram of k-anonymity equivalence classes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket equivalence_class_histogram_buckets = 5; - */ - private $equivalence_class_histogram_buckets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityHistogramBucket[] $equivalence_class_histogram_buckets - * Histogram of k-anonymity equivalence classes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Histogram of k-anonymity equivalence classes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket equivalence_class_histogram_buckets = 5; - * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityHistogramBucket> - */ - public function getEquivalenceClassHistogramBuckets() - { - return $this->equivalence_class_histogram_buckets; - } - - /** - * Histogram of k-anonymity equivalence classes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket equivalence_class_histogram_buckets = 5; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityHistogramBucket[] $var - * @return $this - */ - public function setEquivalenceClassHistogramBuckets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityHistogramBucket::class); - $this->equivalence_class_histogram_buckets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityEquivalenceClass.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityEquivalenceClass.php deleted file mode 100644 index 0f01902fec4c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityEquivalenceClass.php +++ /dev/null @@ -1,113 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass - */ -class KAnonymityEquivalenceClass extends \Google\Protobuf\Internal\Message -{ - /** - * Set of values defining the equivalence class. One value per - * quasi-identifier column in the original KAnonymity metric message. - * The order is always the same as the original request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - */ - private $quasi_ids_values; - /** - * Size of the equivalence class, for example number of rows with the - * above set of values. - * - * Generated from protobuf field int64 equivalence_class_size = 2; - */ - protected $equivalence_class_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Value[] $quasi_ids_values - * Set of values defining the equivalence class. One value per - * quasi-identifier column in the original KAnonymity metric message. - * The order is always the same as the original request. - * @type int|string $equivalence_class_size - * Size of the equivalence class, for example number of rows with the - * above set of values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Set of values defining the equivalence class. One value per - * quasi-identifier column in the original KAnonymity metric message. - * The order is always the same as the original request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Value> - */ - public function getQuasiIdsValues() - { - return $this->quasi_ids_values; - } - - /** - * Set of values defining the equivalence class. One value per - * quasi-identifier column in the original KAnonymity metric message. - * The order is always the same as the original request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - * @param \Google\Cloud\Dlp\V2\Value[] $var - * @return $this - */ - public function setQuasiIdsValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); - $this->quasi_ids_values = $arr; - - return $this; - } - - /** - * Size of the equivalence class, for example number of rows with the - * above set of values. - * - * Generated from protobuf field int64 equivalence_class_size = 2; - * @return int|string - */ - public function getEquivalenceClassSize() - { - return $this->equivalence_class_size; - } - - /** - * Size of the equivalence class, for example number of rows with the - * above set of values. - * - * Generated from protobuf field int64 equivalence_class_size = 2; - * @param int|string $var - * @return $this - */ - public function setEquivalenceClassSize($var) - { - GPBUtil::checkInt64($var); - $this->equivalence_class_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityHistogramBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityHistogramBucket.php deleted file mode 100644 index a87ca465ee0f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityHistogramBucket.php +++ /dev/null @@ -1,207 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket - */ -class KAnonymityHistogramBucket extends \Google\Protobuf\Internal\Message -{ - /** - * Lower bound on the size of the equivalence classes in this bucket. - * - * Generated from protobuf field int64 equivalence_class_size_lower_bound = 1; - */ - protected $equivalence_class_size_lower_bound = 0; - /** - * Upper bound on the size of the equivalence classes in this bucket. - * - * Generated from protobuf field int64 equivalence_class_size_upper_bound = 2; - */ - protected $equivalence_class_size_upper_bound = 0; - /** - * Total number of equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - */ - protected $bucket_size = 0; - /** - * Sample of equivalence classes in this bucket. The total number of - * classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass bucket_values = 4; - */ - private $bucket_values; - /** - * Total number of distinct equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - */ - protected $bucket_value_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $equivalence_class_size_lower_bound - * Lower bound on the size of the equivalence classes in this bucket. - * @type int|string $equivalence_class_size_upper_bound - * Upper bound on the size of the equivalence classes in this bucket. - * @type int|string $bucket_size - * Total number of equivalence classes in this bucket. - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityEquivalenceClass[] $bucket_values - * Sample of equivalence classes in this bucket. The total number of - * classes returned per bucket is capped at 20. - * @type int|string $bucket_value_count - * Total number of distinct equivalence classes in this bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Lower bound on the size of the equivalence classes in this bucket. - * - * Generated from protobuf field int64 equivalence_class_size_lower_bound = 1; - * @return int|string - */ - public function getEquivalenceClassSizeLowerBound() - { - return $this->equivalence_class_size_lower_bound; - } - - /** - * Lower bound on the size of the equivalence classes in this bucket. - * - * Generated from protobuf field int64 equivalence_class_size_lower_bound = 1; - * @param int|string $var - * @return $this - */ - public function setEquivalenceClassSizeLowerBound($var) - { - GPBUtil::checkInt64($var); - $this->equivalence_class_size_lower_bound = $var; - - return $this; - } - - /** - * Upper bound on the size of the equivalence classes in this bucket. - * - * Generated from protobuf field int64 equivalence_class_size_upper_bound = 2; - * @return int|string - */ - public function getEquivalenceClassSizeUpperBound() - { - return $this->equivalence_class_size_upper_bound; - } - - /** - * Upper bound on the size of the equivalence classes in this bucket. - * - * Generated from protobuf field int64 equivalence_class_size_upper_bound = 2; - * @param int|string $var - * @return $this - */ - public function setEquivalenceClassSizeUpperBound($var) - { - GPBUtil::checkInt64($var); - $this->equivalence_class_size_upper_bound = $var; - - return $this; - } - - /** - * Total number of equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - * @return int|string - */ - public function getBucketSize() - { - return $this->bucket_size; - } - - /** - * Total number of equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - * @param int|string $var - * @return $this - */ - public function setBucketSize($var) - { - GPBUtil::checkInt64($var); - $this->bucket_size = $var; - - return $this; - } - - /** - * Sample of equivalence classes in this bucket. The total number of - * classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass bucket_values = 4; - * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityEquivalenceClass> - */ - public function getBucketValues() - { - return $this->bucket_values; - } - - /** - * Sample of equivalence classes in this bucket. The total number of - * classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass bucket_values = 4; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityEquivalenceClass[] $var - * @return $this - */ - public function setBucketValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityEquivalenceClass::class); - $this->bucket_values = $arr; - - return $this; - } - - /** - * Total number of distinct equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - * @return int|string - */ - public function getBucketValueCount() - { - return $this->bucket_value_count; - } - - /** - * Total number of distinct equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - * @param int|string $var - * @return $this - */ - public function setBucketValueCount($var) - { - GPBUtil::checkInt64($var); - $this->bucket_value_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult.php deleted file mode 100644 index c8513592a472..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult.php +++ /dev/null @@ -1,96 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult - */ -class KMapEstimationResult extends \Google\Protobuf\Internal\Message -{ - /** - * The intervals [min_anonymity, max_anonymity] do not overlap. If a value - * doesn't correspond to any such interval, the associated frequency is - * zero. For example, the following records: - * {min_anonymity: 1, max_anonymity: 1, frequency: 17} - * {min_anonymity: 2, max_anonymity: 3, frequency: 42} - * {min_anonymity: 5, max_anonymity: 10, frequency: 99} - * mean that there are no record with an estimated anonymity of 4, 5, or - * larger than 10. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket k_map_estimation_histogram = 1; - */ - private $k_map_estimation_histogram; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationHistogramBucket[] $k_map_estimation_histogram - * The intervals [min_anonymity, max_anonymity] do not overlap. If a value - * doesn't correspond to any such interval, the associated frequency is - * zero. For example, the following records: - * {min_anonymity: 1, max_anonymity: 1, frequency: 17} - * {min_anonymity: 2, max_anonymity: 3, frequency: 42} - * {min_anonymity: 5, max_anonymity: 10, frequency: 99} - * mean that there are no record with an estimated anonymity of 4, 5, or - * larger than 10. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The intervals [min_anonymity, max_anonymity] do not overlap. If a value - * doesn't correspond to any such interval, the associated frequency is - * zero. For example, the following records: - * {min_anonymity: 1, max_anonymity: 1, frequency: 17} - * {min_anonymity: 2, max_anonymity: 3, frequency: 42} - * {min_anonymity: 5, max_anonymity: 10, frequency: 99} - * mean that there are no record with an estimated anonymity of 4, 5, or - * larger than 10. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket k_map_estimation_histogram = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationHistogramBucket> - */ - public function getKMapEstimationHistogram() - { - return $this->k_map_estimation_histogram; - } - - /** - * The intervals [min_anonymity, max_anonymity] do not overlap. If a value - * doesn't correspond to any such interval, the associated frequency is - * zero. For example, the following records: - * {min_anonymity: 1, max_anonymity: 1, frequency: 17} - * {min_anonymity: 2, max_anonymity: 3, frequency: 42} - * {min_anonymity: 5, max_anonymity: 10, frequency: 99} - * mean that there are no record with an estimated anonymity of 4, 5, or - * larger than 10. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket k_map_estimation_histogram = 1; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationHistogramBucket[] $var - * @return $this - */ - public function setKMapEstimationHistogram($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationHistogramBucket::class); - $this->k_map_estimation_histogram = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationHistogramBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationHistogramBucket.php deleted file mode 100644 index ea3c2d161bcd..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationHistogramBucket.php +++ /dev/null @@ -1,214 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket - */ -class KMapEstimationHistogramBucket extends \Google\Protobuf\Internal\Message -{ - /** - * Always positive. - * - * Generated from protobuf field int64 min_anonymity = 1; - */ - protected $min_anonymity = 0; - /** - * Always greater than or equal to min_anonymity. - * - * Generated from protobuf field int64 max_anonymity = 2; - */ - protected $max_anonymity = 0; - /** - * Number of records within these anonymity bounds. - * - * Generated from protobuf field int64 bucket_size = 5; - */ - protected $bucket_size = 0; - /** - * Sample of quasi-identifier tuple values in this bucket. The total - * number of classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues bucket_values = 6; - */ - private $bucket_values; - /** - * Total number of distinct quasi-identifier tuple values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 7; - */ - protected $bucket_value_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $min_anonymity - * Always positive. - * @type int|string $max_anonymity - * Always greater than or equal to min_anonymity. - * @type int|string $bucket_size - * Number of records within these anonymity bounds. - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationQuasiIdValues[] $bucket_values - * Sample of quasi-identifier tuple values in this bucket. The total - * number of classes returned per bucket is capped at 20. - * @type int|string $bucket_value_count - * Total number of distinct quasi-identifier tuple values in this bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Always positive. - * - * Generated from protobuf field int64 min_anonymity = 1; - * @return int|string - */ - public function getMinAnonymity() - { - return $this->min_anonymity; - } - - /** - * Always positive. - * - * Generated from protobuf field int64 min_anonymity = 1; - * @param int|string $var - * @return $this - */ - public function setMinAnonymity($var) - { - GPBUtil::checkInt64($var); - $this->min_anonymity = $var; - - return $this; - } - - /** - * Always greater than or equal to min_anonymity. - * - * Generated from protobuf field int64 max_anonymity = 2; - * @return int|string - */ - public function getMaxAnonymity() - { - return $this->max_anonymity; - } - - /** - * Always greater than or equal to min_anonymity. - * - * Generated from protobuf field int64 max_anonymity = 2; - * @param int|string $var - * @return $this - */ - public function setMaxAnonymity($var) - { - GPBUtil::checkInt64($var); - $this->max_anonymity = $var; - - return $this; - } - - /** - * Number of records within these anonymity bounds. - * - * Generated from protobuf field int64 bucket_size = 5; - * @return int|string - */ - public function getBucketSize() - { - return $this->bucket_size; - } - - /** - * Number of records within these anonymity bounds. - * - * Generated from protobuf field int64 bucket_size = 5; - * @param int|string $var - * @return $this - */ - public function setBucketSize($var) - { - GPBUtil::checkInt64($var); - $this->bucket_size = $var; - - return $this; - } - - /** - * Sample of quasi-identifier tuple values in this bucket. The total - * number of classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues bucket_values = 6; - * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationQuasiIdValues> - */ - public function getBucketValues() - { - return $this->bucket_values; - } - - /** - * Sample of quasi-identifier tuple values in this bucket. The total - * number of classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues bucket_values = 6; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationQuasiIdValues[] $var - * @return $this - */ - public function setBucketValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationQuasiIdValues::class); - $this->bucket_values = $arr; - - return $this; - } - - /** - * Total number of distinct quasi-identifier tuple values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 7; - * @return int|string - */ - public function getBucketValueCount() - { - return $this->bucket_value_count; - } - - /** - * Total number of distinct quasi-identifier tuple values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 7; - * @param int|string $var - * @return $this - */ - public function setBucketValueCount($var) - { - GPBUtil::checkInt64($var); - $this->bucket_value_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationQuasiIdValues.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationQuasiIdValues.php deleted file mode 100644 index 5a00480aeae1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationQuasiIdValues.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues - */ -class KMapEstimationQuasiIdValues extends \Google\Protobuf\Internal\Message -{ - /** - * The quasi-identifier values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - */ - private $quasi_ids_values; - /** - * The estimated anonymity for these quasi-identifier values. - * - * Generated from protobuf field int64 estimated_anonymity = 2; - */ - protected $estimated_anonymity = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Value[] $quasi_ids_values - * The quasi-identifier values. - * @type int|string $estimated_anonymity - * The estimated anonymity for these quasi-identifier values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The quasi-identifier values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Value> - */ - public function getQuasiIdsValues() - { - return $this->quasi_ids_values; - } - - /** - * The quasi-identifier values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - * @param \Google\Cloud\Dlp\V2\Value[] $var - * @return $this - */ - public function setQuasiIdsValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); - $this->quasi_ids_values = $arr; - - return $this; - } - - /** - * The estimated anonymity for these quasi-identifier values. - * - * Generated from protobuf field int64 estimated_anonymity = 2; - * @return int|string - */ - public function getEstimatedAnonymity() - { - return $this->estimated_anonymity; - } - - /** - * The estimated anonymity for these quasi-identifier values. - * - * Generated from protobuf field int64 estimated_anonymity = 2; - * @param int|string $var - * @return $this - */ - public function setEstimatedAnonymity($var) - { - GPBUtil::checkInt64($var); - $this->estimated_anonymity = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult.php deleted file mode 100644 index f283792e67ac..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult - */ -class LDiversityResult extends \Google\Protobuf\Internal\Message -{ - /** - * Histogram of l-diversity equivalence class sensitive value frequencies. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket sensitive_value_frequency_histogram_buckets = 5; - */ - private $sensitive_value_frequency_histogram_buckets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityHistogramBucket[] $sensitive_value_frequency_histogram_buckets - * Histogram of l-diversity equivalence class sensitive value frequencies. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Histogram of l-diversity equivalence class sensitive value frequencies. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket sensitive_value_frequency_histogram_buckets = 5; - * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityHistogramBucket> - */ - public function getSensitiveValueFrequencyHistogramBuckets() - { - return $this->sensitive_value_frequency_histogram_buckets; - } - - /** - * Histogram of l-diversity equivalence class sensitive value frequencies. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket sensitive_value_frequency_histogram_buckets = 5; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityHistogramBucket[] $var - * @return $this - */ - public function setSensitiveValueFrequencyHistogramBuckets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityHistogramBucket::class); - $this->sensitive_value_frequency_histogram_buckets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityEquivalenceClass.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityEquivalenceClass.php deleted file mode 100644 index c15ec2a422d4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityEquivalenceClass.php +++ /dev/null @@ -1,173 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass - */ -class LDiversityEquivalenceClass extends \Google\Protobuf\Internal\Message -{ - /** - * Quasi-identifier values defining the k-anonymity equivalence - * class. The order is always the same as the original request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - */ - private $quasi_ids_values; - /** - * Size of the k-anonymity equivalence class. - * - * Generated from protobuf field int64 equivalence_class_size = 2; - */ - protected $equivalence_class_size = 0; - /** - * Number of distinct sensitive values in this equivalence class. - * - * Generated from protobuf field int64 num_distinct_sensitive_values = 3; - */ - protected $num_distinct_sensitive_values = 0; - /** - * Estimated frequencies of top sensitive values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency top_sensitive_values = 4; - */ - private $top_sensitive_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Value[] $quasi_ids_values - * Quasi-identifier values defining the k-anonymity equivalence - * class. The order is always the same as the original request. - * @type int|string $equivalence_class_size - * Size of the k-anonymity equivalence class. - * @type int|string $num_distinct_sensitive_values - * Number of distinct sensitive values in this equivalence class. - * @type \Google\Cloud\Dlp\V2\ValueFrequency[] $top_sensitive_values - * Estimated frequencies of top sensitive values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Quasi-identifier values defining the k-anonymity equivalence - * class. The order is always the same as the original request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Value> - */ - public function getQuasiIdsValues() - { - return $this->quasi_ids_values; - } - - /** - * Quasi-identifier values defining the k-anonymity equivalence - * class. The order is always the same as the original request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - * @param \Google\Cloud\Dlp\V2\Value[] $var - * @return $this - */ - public function setQuasiIdsValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); - $this->quasi_ids_values = $arr; - - return $this; - } - - /** - * Size of the k-anonymity equivalence class. - * - * Generated from protobuf field int64 equivalence_class_size = 2; - * @return int|string - */ - public function getEquivalenceClassSize() - { - return $this->equivalence_class_size; - } - - /** - * Size of the k-anonymity equivalence class. - * - * Generated from protobuf field int64 equivalence_class_size = 2; - * @param int|string $var - * @return $this - */ - public function setEquivalenceClassSize($var) - { - GPBUtil::checkInt64($var); - $this->equivalence_class_size = $var; - - return $this; - } - - /** - * Number of distinct sensitive values in this equivalence class. - * - * Generated from protobuf field int64 num_distinct_sensitive_values = 3; - * @return int|string - */ - public function getNumDistinctSensitiveValues() - { - return $this->num_distinct_sensitive_values; - } - - /** - * Number of distinct sensitive values in this equivalence class. - * - * Generated from protobuf field int64 num_distinct_sensitive_values = 3; - * @param int|string $var - * @return $this - */ - public function setNumDistinctSensitiveValues($var) - { - GPBUtil::checkInt64($var); - $this->num_distinct_sensitive_values = $var; - - return $this; - } - - /** - * Estimated frequencies of top sensitive values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency top_sensitive_values = 4; - * @return RepeatedField<\Google\Cloud\Dlp\V2\ValueFrequency> - */ - public function getTopSensitiveValues() - { - return $this->top_sensitive_values; - } - - /** - * Estimated frequencies of top sensitive values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency top_sensitive_values = 4; - * @param \Google\Cloud\Dlp\V2\ValueFrequency[] $var - * @return $this - */ - public function setTopSensitiveValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ValueFrequency::class); - $this->top_sensitive_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityHistogramBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityHistogramBucket.php deleted file mode 100644 index 02702056d1a6..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityHistogramBucket.php +++ /dev/null @@ -1,215 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket - */ -class LDiversityHistogramBucket extends \Google\Protobuf\Internal\Message -{ - /** - * Lower bound on the sensitive value frequencies of the equivalence - * classes in this bucket. - * - * Generated from protobuf field int64 sensitive_value_frequency_lower_bound = 1; - */ - protected $sensitive_value_frequency_lower_bound = 0; - /** - * Upper bound on the sensitive value frequencies of the equivalence - * classes in this bucket. - * - * Generated from protobuf field int64 sensitive_value_frequency_upper_bound = 2; - */ - protected $sensitive_value_frequency_upper_bound = 0; - /** - * Total number of equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - */ - protected $bucket_size = 0; - /** - * Sample of equivalence classes in this bucket. The total number of - * classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass bucket_values = 4; - */ - private $bucket_values; - /** - * Total number of distinct equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - */ - protected $bucket_value_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $sensitive_value_frequency_lower_bound - * Lower bound on the sensitive value frequencies of the equivalence - * classes in this bucket. - * @type int|string $sensitive_value_frequency_upper_bound - * Upper bound on the sensitive value frequencies of the equivalence - * classes in this bucket. - * @type int|string $bucket_size - * Total number of equivalence classes in this bucket. - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityEquivalenceClass[] $bucket_values - * Sample of equivalence classes in this bucket. The total number of - * classes returned per bucket is capped at 20. - * @type int|string $bucket_value_count - * Total number of distinct equivalence classes in this bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Lower bound on the sensitive value frequencies of the equivalence - * classes in this bucket. - * - * Generated from protobuf field int64 sensitive_value_frequency_lower_bound = 1; - * @return int|string - */ - public function getSensitiveValueFrequencyLowerBound() - { - return $this->sensitive_value_frequency_lower_bound; - } - - /** - * Lower bound on the sensitive value frequencies of the equivalence - * classes in this bucket. - * - * Generated from protobuf field int64 sensitive_value_frequency_lower_bound = 1; - * @param int|string $var - * @return $this - */ - public function setSensitiveValueFrequencyLowerBound($var) - { - GPBUtil::checkInt64($var); - $this->sensitive_value_frequency_lower_bound = $var; - - return $this; - } - - /** - * Upper bound on the sensitive value frequencies of the equivalence - * classes in this bucket. - * - * Generated from protobuf field int64 sensitive_value_frequency_upper_bound = 2; - * @return int|string - */ - public function getSensitiveValueFrequencyUpperBound() - { - return $this->sensitive_value_frequency_upper_bound; - } - - /** - * Upper bound on the sensitive value frequencies of the equivalence - * classes in this bucket. - * - * Generated from protobuf field int64 sensitive_value_frequency_upper_bound = 2; - * @param int|string $var - * @return $this - */ - public function setSensitiveValueFrequencyUpperBound($var) - { - GPBUtil::checkInt64($var); - $this->sensitive_value_frequency_upper_bound = $var; - - return $this; - } - - /** - * Total number of equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - * @return int|string - */ - public function getBucketSize() - { - return $this->bucket_size; - } - - /** - * Total number of equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - * @param int|string $var - * @return $this - */ - public function setBucketSize($var) - { - GPBUtil::checkInt64($var); - $this->bucket_size = $var; - - return $this; - } - - /** - * Sample of equivalence classes in this bucket. The total number of - * classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass bucket_values = 4; - * @return RepeatedField<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityEquivalenceClass> - */ - public function getBucketValues() - { - return $this->bucket_values; - } - - /** - * Sample of equivalence classes in this bucket. The total number of - * classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass bucket_values = 4; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityEquivalenceClass[] $var - * @return $this - */ - public function setBucketValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityEquivalenceClass::class); - $this->bucket_values = $arr; - - return $this; - } - - /** - * Total number of distinct equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - * @return int|string - */ - public function getBucketValueCount() - { - return $this->bucket_value_count; - } - - /** - * Total number of distinct equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - * @param int|string $var - * @return $this - */ - public function setBucketValueCount($var) - { - GPBUtil::checkInt64($var); - $this->bucket_value_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/NumericalStatsResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/NumericalStatsResult.php deleted file mode 100644 index 36dce1413141..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/NumericalStatsResult.php +++ /dev/null @@ -1,159 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult - */ -class NumericalStatsResult extends \Google\Protobuf\Internal\Message -{ - /** - * Minimum value appearing in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value min_value = 1; - */ - protected $min_value = null; - /** - * Maximum value appearing in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value max_value = 2; - */ - protected $max_value = null; - /** - * List of 99 values that partition the set of field values into 100 equal - * sized buckets. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quantile_values = 4; - */ - private $quantile_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Value $min_value - * Minimum value appearing in the column. - * @type \Google\Cloud\Dlp\V2\Value $max_value - * Maximum value appearing in the column. - * @type \Google\Cloud\Dlp\V2\Value[] $quantile_values - * List of 99 values that partition the set of field values into 100 equal - * sized buckets. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Minimum value appearing in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value min_value = 1; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getMinValue() - { - return $this->min_value; - } - - public function hasMinValue() - { - return isset($this->min_value); - } - - public function clearMinValue() - { - unset($this->min_value); - } - - /** - * Minimum value appearing in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value min_value = 1; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setMinValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->min_value = $var; - - return $this; - } - - /** - * Maximum value appearing in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value max_value = 2; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getMaxValue() - { - return $this->max_value; - } - - public function hasMaxValue() - { - return isset($this->max_value); - } - - public function clearMaxValue() - { - unset($this->max_value); - } - - /** - * Maximum value appearing in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value max_value = 2; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setMaxValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->max_value = $var; - - return $this; - } - - /** - * List of 99 values that partition the set of field values into 100 equal - * sized buckets. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quantile_values = 4; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Value> - */ - public function getQuantileValues() - { - return $this->quantile_values; - } - - /** - * List of 99 values that partition the set of field values into 100 equal - * sized buckets. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quantile_values = 4; - * @param \Google\Cloud\Dlp\V2\Value[] $var - * @return $this - */ - public function setQuantileValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); - $this->quantile_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/RequestedRiskAnalysisOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/RequestedRiskAnalysisOptions.php deleted file mode 100644 index e4920b48b193..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/RequestedRiskAnalysisOptions.php +++ /dev/null @@ -1,77 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions - */ -class RequestedRiskAnalysisOptions extends \Google\Protobuf\Internal\Message -{ - /** - * The job config for the risk job. - * - * Generated from protobuf field .google.privacy.dlp.v2.RiskAnalysisJobConfig job_config = 1; - */ - protected $job_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $job_config - * The job config for the risk job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The job config for the risk job. - * - * Generated from protobuf field .google.privacy.dlp.v2.RiskAnalysisJobConfig job_config = 1; - * @return \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig|null - */ - public function getJobConfig() - { - return $this->job_config; - } - - public function hasJobConfig() - { - return isset($this->job_config); - } - - public function clearJobConfig() - { - unset($this->job_config); - } - - /** - * The job config for the risk job. - * - * Generated from protobuf field .google.privacy.dlp.v2.RiskAnalysisJobConfig job_config = 1; - * @param \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $var - * @return $this - */ - public function setJobConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig::class); - $this->job_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccount.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccount.php deleted file mode 100644 index c03278aec88a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccount.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.AwsAccount - */ -class AwsAccount extends \Google\Protobuf\Internal\Message -{ - /** - * Required. AWS account ID. - * - * Generated from protobuf field string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $account_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $account_id - * Required. AWS account ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. AWS account ID. - * - * Generated from protobuf field string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAccountId() - { - return $this->account_id; - } - - /** - * Required. AWS account ID. - * - * Generated from protobuf field string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAccountId($var) - { - GPBUtil::checkString($var, True); - $this->account_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccountRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccountRegex.php deleted file mode 100644 index f797c48c4a7c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccountRegex.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.AwsAccountRegex - */ -class AwsAccountRegex extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Regex to test the AWS account ID against. - * If empty, all accounts match. - * - * Generated from protobuf field string account_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $account_id_regex = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $account_id_regex - * Optional. Regex to test the AWS account ID against. - * If empty, all accounts match. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Regex to test the AWS account ID against. - * If empty, all accounts match. - * - * Generated from protobuf field string account_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAccountIdRegex() - { - return $this->account_id_regex; - } - - /** - * Optional. Regex to test the AWS account ID against. - * If empty, all accounts match. - * - * Generated from protobuf field string account_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAccountIdRegex($var) - { - GPBUtil::checkString($var, True); - $this->account_id_regex = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryDiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryDiscoveryTarget.php deleted file mode 100644 index bbeb9f95e9d6..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryDiscoveryTarget.php +++ /dev/null @@ -1,210 +0,0 @@ -google.privacy.dlp.v2.BigQueryDiscoveryTarget - */ -class BigQueryDiscoveryTarget extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The tables the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = null; - /** - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions conditions = 2; - */ - protected $conditions = null; - protected $frequency; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter $filter - * Required. The tables the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a table. - * @type \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions $conditions - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * @type \Google\Cloud\Dlp\V2\DiscoveryGenerationCadence $cadence - * How often and when to update profiles. New tables that match both the - * filter and conditions are scanned as quickly as possible depending on - * system capacity. - * @type \Google\Cloud\Dlp\V2\Disabled $disabled - * Tables that match this filter will not have profiles created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The tables the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter|null - */ - public function getFilter() - { - return $this->filter; - } - - public function hasFilter() - { - return isset($this->filter); - } - - public function clearFilter() - { - unset($this->filter); - } - - /** - * Required. The tables the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter::class); - $this->filter = $var; - - return $this; - } - - /** - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions conditions = 2; - * @return \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions|null - */ - public function getConditions() - { - return $this->conditions; - } - - public function hasConditions() - { - return isset($this->conditions); - } - - public function clearConditions() - { - unset($this->conditions); - } - - /** - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions conditions = 2; - * @param \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions $var - * @return $this - */ - public function setConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions::class); - $this->conditions = $var; - - return $this; - } - - /** - * How often and when to update profiles. New tables that match both the - * filter and conditions are scanned as quickly as possible depending on - * system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryGenerationCadence cadence = 3; - * @return \Google\Cloud\Dlp\V2\DiscoveryGenerationCadence|null - */ - public function getCadence() - { - return $this->readOneof(3); - } - - public function hasCadence() - { - return $this->hasOneof(3); - } - - /** - * How often and when to update profiles. New tables that match both the - * filter and conditions are scanned as quickly as possible depending on - * system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryGenerationCadence cadence = 3; - * @param \Google\Cloud\Dlp\V2\DiscoveryGenerationCadence $var - * @return $this - */ - public function setCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryGenerationCadence::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Tables that match this filter will not have profiles created. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 4; - * @return \Google\Cloud\Dlp\V2\Disabled|null - */ - public function getDisabled() - { - return $this->readOneof(4); - } - - public function hasDisabled() - { - return $this->hasOneof(4); - } - - /** - * Tables that match this filter will not have profiles created. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 4; - * @param \Google\Cloud\Dlp\V2\Disabled $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Disabled::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getFrequency() - { - return $this->whichOneof("frequency"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryField.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryField.php deleted file mode 100644 index 0df9f89d23e2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryField.php +++ /dev/null @@ -1,121 +0,0 @@ -google.privacy.dlp.v2.BigQueryField - */ -class BigQueryField extends \Google\Protobuf\Internal\Message -{ - /** - * Source table of the field. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; - */ - protected $table = null; - /** - * Designated field in the BigQuery table. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; - */ - protected $field = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTable $table - * Source table of the field. - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Designated field in the BigQuery table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Source table of the field. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getTable() - { - return $this->table; - } - - public function hasTable() - { - return isset($this->table); - } - - public function clearTable() - { - unset($this->table); - } - - /** - * Source table of the field. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->table = $var; - - return $this; - } - - /** - * Designated field in the BigQuery table. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Designated field in the BigQuery table. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryKey.php deleted file mode 100644 index ab72006a93e5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryKey.php +++ /dev/null @@ -1,127 +0,0 @@ -google.privacy.dlp.v2.BigQueryKey - */ -class BigQueryKey extends \Google\Protobuf\Internal\Message -{ - /** - * Complete BigQuery table reference. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; - */ - protected $table_reference = null; - /** - * Row number inferred at the time the table was scanned. This value is - * nondeterministic, cannot be queried, and may be null for inspection - * jobs. To locate findings within a table, specify - * `inspect_job.storage_config.big_query_options.identifying_fields` in - * `CreateDlpJobRequest`. - * - * Generated from protobuf field int64 row_number = 2; - */ - protected $row_number = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTable $table_reference - * Complete BigQuery table reference. - * @type int|string $row_number - * Row number inferred at the time the table was scanned. This value is - * nondeterministic, cannot be queried, and may be null for inspection - * jobs. To locate findings within a table, specify - * `inspect_job.storage_config.big_query_options.identifying_fields` in - * `CreateDlpJobRequest`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Complete BigQuery table reference. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getTableReference() - { - return $this->table_reference; - } - - public function hasTableReference() - { - return isset($this->table_reference); - } - - public function clearTableReference() - { - unset($this->table_reference); - } - - /** - * Complete BigQuery table reference. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setTableReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->table_reference = $var; - - return $this; - } - - /** - * Row number inferred at the time the table was scanned. This value is - * nondeterministic, cannot be queried, and may be null for inspection - * jobs. To locate findings within a table, specify - * `inspect_job.storage_config.big_query_options.identifying_fields` in - * `CreateDlpJobRequest`. - * - * Generated from protobuf field int64 row_number = 2; - * @return int|string - */ - public function getRowNumber() - { - return $this->row_number; - } - - /** - * Row number inferred at the time the table was scanned. This value is - * nondeterministic, cannot be queried, and may be null for inspection - * jobs. To locate findings within a table, specify - * `inspect_job.storage_config.big_query_options.identifying_fields` in - * `CreateDlpJobRequest`. - * - * Generated from protobuf field int64 row_number = 2; - * @param int|string $var - * @return $this - */ - public function setRowNumber($var) - { - GPBUtil::checkInt64($var); - $this->row_number = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions.php deleted file mode 100644 index 68c3dc5a2d72..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions.php +++ /dev/null @@ -1,369 +0,0 @@ -google.privacy.dlp.v2.BigQueryOptions - */ -class BigQueryOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Complete BigQuery table reference. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; - */ - protected $table_reference = null; - /** - * Table fields that may uniquely identify a row within the table. When - * `actions.saveFindings.outputConfig.table` is specified, the values of - * columns specified here are available in the output table under - * `location.content_locations.record_location.record_key.id_values`. Nested - * fields such as `person.birthdate.year` are allowed. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; - */ - private $identifying_fields; - /** - * Max number of rows to scan. If the table has more rows than this value, the - * rest of the rows are omitted. If not set, or if set to 0, all rows will be - * scanned. Only one of rows_limit and rows_limit_percent can be specified. - * Cannot be used in conjunction with TimespanConfig. - * - * Generated from protobuf field int64 rows_limit = 3; - */ - protected $rows_limit = 0; - /** - * Max percentage of rows to scan. The rest are omitted. The number of rows - * scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and - * 100 means no limit. Defaults to 0. Only one of rows_limit and - * rows_limit_percent can be specified. Cannot be used in conjunction with - * TimespanConfig. - * Caution: A [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) - * is causing the `rowsLimitPercent` field to behave unexpectedly. We - * recommend using `rowsLimit` instead. - * - * Generated from protobuf field int32 rows_limit_percent = 6; - */ - protected $rows_limit_percent = 0; - /** - * How to sample the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; - */ - protected $sample_method = 0; - /** - * References to fields excluded from scanning. This allows you to skip - * inspection of entire columns which you know have no findings. - * When inspecting a table, we recommend that you inspect all columns. - * Otherwise, findings might be affected because hints from excluded columns - * will not be used. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId excluded_fields = 5; - */ - private $excluded_fields; - /** - * Limit scanning only to these fields. - * When inspecting a table, we recommend that you inspect all columns. - * Otherwise, findings might be affected because hints from excluded columns - * will not be used. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId included_fields = 7; - */ - private $included_fields; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTable $table_reference - * Complete BigQuery table reference. - * @type \Google\Cloud\Dlp\V2\FieldId[] $identifying_fields - * Table fields that may uniquely identify a row within the table. When - * `actions.saveFindings.outputConfig.table` is specified, the values of - * columns specified here are available in the output table under - * `location.content_locations.record_location.record_key.id_values`. Nested - * fields such as `person.birthdate.year` are allowed. - * @type int|string $rows_limit - * Max number of rows to scan. If the table has more rows than this value, the - * rest of the rows are omitted. If not set, or if set to 0, all rows will be - * scanned. Only one of rows_limit and rows_limit_percent can be specified. - * Cannot be used in conjunction with TimespanConfig. - * @type int $rows_limit_percent - * Max percentage of rows to scan. The rest are omitted. The number of rows - * scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and - * 100 means no limit. Defaults to 0. Only one of rows_limit and - * rows_limit_percent can be specified. Cannot be used in conjunction with - * TimespanConfig. - * Caution: A [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) - * is causing the `rowsLimitPercent` field to behave unexpectedly. We - * recommend using `rowsLimit` instead. - * @type int $sample_method - * How to sample the data. - * @type \Google\Cloud\Dlp\V2\FieldId[] $excluded_fields - * References to fields excluded from scanning. This allows you to skip - * inspection of entire columns which you know have no findings. - * When inspecting a table, we recommend that you inspect all columns. - * Otherwise, findings might be affected because hints from excluded columns - * will not be used. - * @type \Google\Cloud\Dlp\V2\FieldId[] $included_fields - * Limit scanning only to these fields. - * When inspecting a table, we recommend that you inspect all columns. - * Otherwise, findings might be affected because hints from excluded columns - * will not be used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Complete BigQuery table reference. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getTableReference() - { - return $this->table_reference; - } - - public function hasTableReference() - { - return isset($this->table_reference); - } - - public function clearTableReference() - { - unset($this->table_reference); - } - - /** - * Complete BigQuery table reference. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setTableReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->table_reference = $var; - - return $this; - } - - /** - * Table fields that may uniquely identify a row within the table. When - * `actions.saveFindings.outputConfig.table` is specified, the values of - * columns specified here are available in the output table under - * `location.content_locations.record_location.record_key.id_values`. Nested - * fields such as `person.birthdate.year` are allowed. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; - * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldId> - */ - public function getIdentifyingFields() - { - return $this->identifying_fields; - } - - /** - * Table fields that may uniquely identify a row within the table. When - * `actions.saveFindings.outputConfig.table` is specified, the values of - * columns specified here are available in the output table under - * `location.content_locations.record_location.record_key.id_values`. Nested - * fields such as `person.birthdate.year` are allowed. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; - * @param \Google\Cloud\Dlp\V2\FieldId[] $var - * @return $this - */ - public function setIdentifyingFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); - $this->identifying_fields = $arr; - - return $this; - } - - /** - * Max number of rows to scan. If the table has more rows than this value, the - * rest of the rows are omitted. If not set, or if set to 0, all rows will be - * scanned. Only one of rows_limit and rows_limit_percent can be specified. - * Cannot be used in conjunction with TimespanConfig. - * - * Generated from protobuf field int64 rows_limit = 3; - * @return int|string - */ - public function getRowsLimit() - { - return $this->rows_limit; - } - - /** - * Max number of rows to scan. If the table has more rows than this value, the - * rest of the rows are omitted. If not set, or if set to 0, all rows will be - * scanned. Only one of rows_limit and rows_limit_percent can be specified. - * Cannot be used in conjunction with TimespanConfig. - * - * Generated from protobuf field int64 rows_limit = 3; - * @param int|string $var - * @return $this - */ - public function setRowsLimit($var) - { - GPBUtil::checkInt64($var); - $this->rows_limit = $var; - - return $this; - } - - /** - * Max percentage of rows to scan. The rest are omitted. The number of rows - * scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and - * 100 means no limit. Defaults to 0. Only one of rows_limit and - * rows_limit_percent can be specified. Cannot be used in conjunction with - * TimespanConfig. - * Caution: A [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) - * is causing the `rowsLimitPercent` field to behave unexpectedly. We - * recommend using `rowsLimit` instead. - * - * Generated from protobuf field int32 rows_limit_percent = 6; - * @return int - */ - public function getRowsLimitPercent() - { - return $this->rows_limit_percent; - } - - /** - * Max percentage of rows to scan. The rest are omitted. The number of rows - * scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and - * 100 means no limit. Defaults to 0. Only one of rows_limit and - * rows_limit_percent can be specified. Cannot be used in conjunction with - * TimespanConfig. - * Caution: A [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) - * is causing the `rowsLimitPercent` field to behave unexpectedly. We - * recommend using `rowsLimit` instead. - * - * Generated from protobuf field int32 rows_limit_percent = 6; - * @param int $var - * @return $this - */ - public function setRowsLimitPercent($var) - { - GPBUtil::checkInt32($var); - $this->rows_limit_percent = $var; - - return $this; - } - - /** - * How to sample the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; - * @return int - */ - public function getSampleMethod() - { - return $this->sample_method; - } - - /** - * How to sample the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; - * @param int $var - * @return $this - */ - public function setSampleMethod($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\BigQueryOptions\SampleMethod::class); - $this->sample_method = $var; - - return $this; - } - - /** - * References to fields excluded from scanning. This allows you to skip - * inspection of entire columns which you know have no findings. - * When inspecting a table, we recommend that you inspect all columns. - * Otherwise, findings might be affected because hints from excluded columns - * will not be used. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId excluded_fields = 5; - * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldId> - */ - public function getExcludedFields() - { - return $this->excluded_fields; - } - - /** - * References to fields excluded from scanning. This allows you to skip - * inspection of entire columns which you know have no findings. - * When inspecting a table, we recommend that you inspect all columns. - * Otherwise, findings might be affected because hints from excluded columns - * will not be used. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId excluded_fields = 5; - * @param \Google\Cloud\Dlp\V2\FieldId[] $var - * @return $this - */ - public function setExcludedFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); - $this->excluded_fields = $arr; - - return $this; - } - - /** - * Limit scanning only to these fields. - * When inspecting a table, we recommend that you inspect all columns. - * Otherwise, findings might be affected because hints from excluded columns - * will not be used. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId included_fields = 7; - * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldId> - */ - public function getIncludedFields() - { - return $this->included_fields; - } - - /** - * Limit scanning only to these fields. - * When inspecting a table, we recommend that you inspect all columns. - * Otherwise, findings might be affected because hints from excluded columns - * will not be used. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId included_fields = 7; - * @param \Google\Cloud\Dlp\V2\FieldId[] $var - * @return $this - */ - public function setIncludedFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); - $this->included_fields = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions/SampleMethod.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions/SampleMethod.php deleted file mode 100644 index 6d55acc939fb..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions/SampleMethod.php +++ /dev/null @@ -1,65 +0,0 @@ -google.privacy.dlp.v2.BigQueryOptions.SampleMethod - */ -class SampleMethod -{ - /** - * No sampling. - * - * Generated from protobuf enum SAMPLE_METHOD_UNSPECIFIED = 0; - */ - const SAMPLE_METHOD_UNSPECIFIED = 0; - /** - * Scan groups of rows in the order BigQuery provides (default). Multiple - * groups of rows may be scanned in parallel, so results may not appear in - * the same order the rows are read. - * - * Generated from protobuf enum TOP = 1; - */ - const TOP = 1; - /** - * Randomly pick groups of rows to scan. - * - * Generated from protobuf enum RANDOM_START = 2; - */ - const RANDOM_START = 2; - - private static $valueToName = [ - self::SAMPLE_METHOD_UNSPECIFIED => 'SAMPLE_METHOD_UNSPECIFIED', - self::TOP => 'TOP', - self::RANDOM_START => 'RANDOM_START', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegex.php deleted file mode 100644 index 19c11f76b153..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegex.php +++ /dev/null @@ -1,143 +0,0 @@ -google.privacy.dlp.v2.BigQueryRegex - */ -class BigQueryRegex extends \Google\Protobuf\Internal\Message -{ - /** - * For organizations, if unset, will match all projects. Has no effect - * for data profile configurations created within a project. - * - * Generated from protobuf field string project_id_regex = 1; - */ - protected $project_id_regex = ''; - /** - * If unset, this property matches all datasets. - * - * Generated from protobuf field string dataset_id_regex = 2; - */ - protected $dataset_id_regex = ''; - /** - * If unset, this property matches all tables. - * - * Generated from protobuf field string table_id_regex = 3; - */ - protected $table_id_regex = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id_regex - * For organizations, if unset, will match all projects. Has no effect - * for data profile configurations created within a project. - * @type string $dataset_id_regex - * If unset, this property matches all datasets. - * @type string $table_id_regex - * If unset, this property matches all tables. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * For organizations, if unset, will match all projects. Has no effect - * for data profile configurations created within a project. - * - * Generated from protobuf field string project_id_regex = 1; - * @return string - */ - public function getProjectIdRegex() - { - return $this->project_id_regex; - } - - /** - * For organizations, if unset, will match all projects. Has no effect - * for data profile configurations created within a project. - * - * Generated from protobuf field string project_id_regex = 1; - * @param string $var - * @return $this - */ - public function setProjectIdRegex($var) - { - GPBUtil::checkString($var, True); - $this->project_id_regex = $var; - - return $this; - } - - /** - * If unset, this property matches all datasets. - * - * Generated from protobuf field string dataset_id_regex = 2; - * @return string - */ - public function getDatasetIdRegex() - { - return $this->dataset_id_regex; - } - - /** - * If unset, this property matches all datasets. - * - * Generated from protobuf field string dataset_id_regex = 2; - * @param string $var - * @return $this - */ - public function setDatasetIdRegex($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id_regex = $var; - - return $this; - } - - /** - * If unset, this property matches all tables. - * - * Generated from protobuf field string table_id_regex = 3; - * @return string - */ - public function getTableIdRegex() - { - return $this->table_id_regex; - } - - /** - * If unset, this property matches all tables. - * - * Generated from protobuf field string table_id_regex = 3; - * @param string $var - * @return $this - */ - public function setTableIdRegex($var) - { - GPBUtil::checkString($var, True); - $this->table_id_regex = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegexes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegexes.php deleted file mode 100644 index 8ee6223b311f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegexes.php +++ /dev/null @@ -1,72 +0,0 @@ -google.privacy.dlp.v2.BigQueryRegexes - */ -class BigQueryRegexes extends \Google\Protobuf\Internal\Message -{ - /** - * A single BigQuery regular expression pattern to match against one or more - * tables, datasets, or projects that contain BigQuery tables. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryRegex patterns = 1; - */ - private $patterns; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryRegex[] $patterns - * A single BigQuery regular expression pattern to match against one or more - * tables, datasets, or projects that contain BigQuery tables. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A single BigQuery regular expression pattern to match against one or more - * tables, datasets, or projects that contain BigQuery tables. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryRegex patterns = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\BigQueryRegex> - */ - public function getPatterns() - { - return $this->patterns; - } - - /** - * A single BigQuery regular expression pattern to match against one or more - * tables, datasets, or projects that contain BigQuery tables. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryRegex patterns = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryRegex[] $var - * @return $this - */ - public function setPatterns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\BigQueryRegex::class); - $this->patterns = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQuerySchemaModification.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQuerySchemaModification.php deleted file mode 100644 index 331f232a4b09..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQuerySchemaModification.php +++ /dev/null @@ -1,63 +0,0 @@ -google.privacy.dlp.v2.BigQuerySchemaModification - */ -class BigQuerySchemaModification -{ - /** - * Unused - * - * Generated from protobuf enum SCHEMA_MODIFICATION_UNSPECIFIED = 0; - */ - const SCHEMA_MODIFICATION_UNSPECIFIED = 0; - /** - * Profiles should be regenerated when new columns are added to the table. - * Default. - * - * Generated from protobuf enum SCHEMA_NEW_COLUMNS = 1; - */ - const SCHEMA_NEW_COLUMNS = 1; - /** - * Profiles should be regenerated when columns are removed from the table. - * - * Generated from protobuf enum SCHEMA_REMOVED_COLUMNS = 2; - */ - const SCHEMA_REMOVED_COLUMNS = 2; - - private static $valueToName = [ - self::SCHEMA_MODIFICATION_UNSPECIFIED => 'SCHEMA_MODIFICATION_UNSPECIFIED', - self::SCHEMA_NEW_COLUMNS => 'SCHEMA_NEW_COLUMNS', - self::SCHEMA_REMOVED_COLUMNS => 'SCHEMA_REMOVED_COLUMNS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTable.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTable.php deleted file mode 100644 index 31aa68d2047d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTable.php +++ /dev/null @@ -1,143 +0,0 @@ -:.` or - * `..`. - * - * Generated from protobuf message google.privacy.dlp.v2.BigQueryTable - */ -class BigQueryTable extends \Google\Protobuf\Internal\Message -{ - /** - * The Google Cloud project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * Dataset ID of the table. - * - * Generated from protobuf field string dataset_id = 2; - */ - protected $dataset_id = ''; - /** - * Name of the table. - * - * Generated from protobuf field string table_id = 3; - */ - protected $table_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The Google Cloud project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - * @type string $dataset_id - * Dataset ID of the table. - * @type string $table_id - * Name of the table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The Google Cloud project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The Google Cloud project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Dataset ID of the table. - * - * Generated from protobuf field string dataset_id = 2; - * @return string - */ - public function getDatasetId() - { - return $this->dataset_id; - } - - /** - * Dataset ID of the table. - * - * Generated from protobuf field string dataset_id = 2; - * @param string $var - * @return $this - */ - public function setDatasetId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id = $var; - - return $this; - } - - /** - * Name of the table. - * - * Generated from protobuf field string table_id = 3; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * Name of the table. - * - * Generated from protobuf field string table_id = 3; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableCollection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableCollection.php deleted file mode 100644 index 98bd63a209ca..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableCollection.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.BigQueryTableCollection - */ -class BigQueryTableCollection extends \Google\Protobuf\Internal\Message -{ - protected $pattern; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryRegexes $include_regexes - * A collection of regular expressions to match a BigQuery table against. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A collection of regular expressions to match a BigQuery table against. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryRegexes include_regexes = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryRegexes|null - */ - public function getIncludeRegexes() - { - return $this->readOneof(1); - } - - public function hasIncludeRegexes() - { - return $this->hasOneof(1); - } - - /** - * A collection of regular expressions to match a BigQuery table against. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryRegexes include_regexes = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryRegexes $var - * @return $this - */ - public function setIncludeRegexes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryRegexes::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getPattern() - { - return $this->whichOneof("pattern"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableModification.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableModification.php deleted file mode 100644 index c2f8c68bd6b5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableModification.php +++ /dev/null @@ -1,56 +0,0 @@ -google.privacy.dlp.v2.BigQueryTableModification - */ -class BigQueryTableModification -{ - /** - * Unused. - * - * Generated from protobuf enum TABLE_MODIFICATION_UNSPECIFIED = 0; - */ - const TABLE_MODIFICATION_UNSPECIFIED = 0; - /** - * A table will be considered modified when the last_modified_time from - * BigQuery has been updated. - * - * Generated from protobuf enum TABLE_MODIFIED_TIMESTAMP = 1; - */ - const TABLE_MODIFIED_TIMESTAMP = 1; - - private static $valueToName = [ - self::TABLE_MODIFICATION_UNSPECIFIED => 'TABLE_MODIFICATION_UNSPECIFIED', - self::TABLE_MODIFIED_TIMESTAMP => 'TABLE_MODIFIED_TIMESTAMP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableType.php deleted file mode 100644 index 92406d4bd856..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableType.php +++ /dev/null @@ -1,69 +0,0 @@ -google.privacy.dlp.v2.BigQueryTableType - */ -class BigQueryTableType -{ - /** - * Unused. - * - * Generated from protobuf enum BIG_QUERY_TABLE_TYPE_UNSPECIFIED = 0; - */ - const BIG_QUERY_TABLE_TYPE_UNSPECIFIED = 0; - /** - * A normal BigQuery table. - * - * Generated from protobuf enum BIG_QUERY_TABLE_TYPE_TABLE = 1; - */ - const BIG_QUERY_TABLE_TYPE_TABLE = 1; - /** - * A table that references data stored in Cloud Storage. - * - * Generated from protobuf enum BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE = 2; - */ - const BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE = 2; - /** - * A snapshot of a BigQuery table. - * - * Generated from protobuf enum BIG_QUERY_TABLE_TYPE_SNAPSHOT = 3; - */ - const BIG_QUERY_TABLE_TYPE_SNAPSHOT = 3; - - private static $valueToName = [ - self::BIG_QUERY_TABLE_TYPE_UNSPECIFIED => 'BIG_QUERY_TABLE_TYPE_UNSPECIFIED', - self::BIG_QUERY_TABLE_TYPE_TABLE => 'BIG_QUERY_TABLE_TYPE_TABLE', - self::BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE => 'BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE', - self::BIG_QUERY_TABLE_TYPE_SNAPSHOT => 'BIG_QUERY_TABLE_TYPE_SNAPSHOT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypeCollection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypeCollection.php deleted file mode 100644 index 28c960f7cf56..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypeCollection.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.BigQueryTableTypeCollection - */ -class BigQueryTableTypeCollection -{ - /** - * Unused. - * - * Generated from protobuf enum BIG_QUERY_COLLECTION_UNSPECIFIED = 0; - */ - const BIG_QUERY_COLLECTION_UNSPECIFIED = 0; - /** - * Automatically generate profiles for all tables, even if the table type is - * not yet fully supported for analysis. Profiles for unsupported tables will - * be generated with errors to indicate their partial support. When full - * support is added, the tables will automatically be profiled during the next - * scheduled run. - * - * Generated from protobuf enum BIG_QUERY_COLLECTION_ALL_TYPES = 1; - */ - const BIG_QUERY_COLLECTION_ALL_TYPES = 1; - /** - * Only those types fully supported will be profiled. Will expand - * automatically as Cloud DLP adds support for new table types. Unsupported - * table types will not have partial profiles generated. - * - * Generated from protobuf enum BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES = 2; - */ - const BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES = 2; - - private static $valueToName = [ - self::BIG_QUERY_COLLECTION_UNSPECIFIED => 'BIG_QUERY_COLLECTION_UNSPECIFIED', - self::BIG_QUERY_COLLECTION_ALL_TYPES => 'BIG_QUERY_COLLECTION_ALL_TYPES', - self::BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES => 'BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypes.php deleted file mode 100644 index ce0caf2e7f28..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypes.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.BigQueryTableTypes - */ -class BigQueryTableTypes extends \Google\Protobuf\Internal\Message -{ - /** - * A set of BigQuery table types. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableType types = 1; - */ - private $types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int[] $types - * A set of BigQuery table types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A set of BigQuery table types. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableType types = 1; - * @return RepeatedField - */ - public function getTypes() - { - return $this->types; - } - - /** - * A set of BigQuery table types. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableType types = 1; - * @param int[] $var - * @return $this - */ - public function setTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\BigQueryTableType::class); - $this->types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BoundingBox.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BoundingBox.php deleted file mode 100644 index 2446fc075771..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BoundingBox.php +++ /dev/null @@ -1,169 +0,0 @@ -google.privacy.dlp.v2.BoundingBox - */ -class BoundingBox extends \Google\Protobuf\Internal\Message -{ - /** - * Top coordinate of the bounding box. (0,0) is upper left. - * - * Generated from protobuf field int32 top = 1; - */ - protected $top = 0; - /** - * Left coordinate of the bounding box. (0,0) is upper left. - * - * Generated from protobuf field int32 left = 2; - */ - protected $left = 0; - /** - * Width of the bounding box in pixels. - * - * Generated from protobuf field int32 width = 3; - */ - protected $width = 0; - /** - * Height of the bounding box in pixels. - * - * Generated from protobuf field int32 height = 4; - */ - protected $height = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $top - * Top coordinate of the bounding box. (0,0) is upper left. - * @type int $left - * Left coordinate of the bounding box. (0,0) is upper left. - * @type int $width - * Width of the bounding box in pixels. - * @type int $height - * Height of the bounding box in pixels. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Top coordinate of the bounding box. (0,0) is upper left. - * - * Generated from protobuf field int32 top = 1; - * @return int - */ - public function getTop() - { - return $this->top; - } - - /** - * Top coordinate of the bounding box. (0,0) is upper left. - * - * Generated from protobuf field int32 top = 1; - * @param int $var - * @return $this - */ - public function setTop($var) - { - GPBUtil::checkInt32($var); - $this->top = $var; - - return $this; - } - - /** - * Left coordinate of the bounding box. (0,0) is upper left. - * - * Generated from protobuf field int32 left = 2; - * @return int - */ - public function getLeft() - { - return $this->left; - } - - /** - * Left coordinate of the bounding box. (0,0) is upper left. - * - * Generated from protobuf field int32 left = 2; - * @param int $var - * @return $this - */ - public function setLeft($var) - { - GPBUtil::checkInt32($var); - $this->left = $var; - - return $this; - } - - /** - * Width of the bounding box in pixels. - * - * Generated from protobuf field int32 width = 3; - * @return int - */ - public function getWidth() - { - return $this->width; - } - - /** - * Width of the bounding box in pixels. - * - * Generated from protobuf field int32 width = 3; - * @param int $var - * @return $this - */ - public function setWidth($var) - { - GPBUtil::checkInt32($var); - $this->width = $var; - - return $this; - } - - /** - * Height of the bounding box in pixels. - * - * Generated from protobuf field int32 height = 4; - * @return int - */ - public function getHeight() - { - return $this->height; - } - - /** - * Height of the bounding box in pixels. - * - * Generated from protobuf field int32 height = 4; - * @param int $var - * @return $this - */ - public function setHeight($var) - { - GPBUtil::checkInt32($var); - $this->height = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig.php deleted file mode 100644 index d90802f0d85b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig.php +++ /dev/null @@ -1,76 +0,0 @@ - LOW, 31-65 -> MEDIUM, 66-100 -> HIGH. - * This can be used on data of type: number, long, string, timestamp. - * If the bound `Value` type differs from the type of data being transformed, we - * will first attempt converting the type of the data to be transformed to match - * the type of the bound before comparing. - * See - * https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to - * learn more. - * - * Generated from protobuf message google.privacy.dlp.v2.BucketingConfig - */ -class BucketingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Set of buckets. Ranges must be non-overlapping. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1; - */ - private $buckets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BucketingConfig\Bucket[] $buckets - * Set of buckets. Ranges must be non-overlapping. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Set of buckets. Ranges must be non-overlapping. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\BucketingConfig\Bucket> - */ - public function getBuckets() - { - return $this->buckets; - } - - /** - * Set of buckets. Ranges must be non-overlapping. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1; - * @param \Google\Cloud\Dlp\V2\BucketingConfig\Bucket[] $var - * @return $this - */ - public function setBuckets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\BucketingConfig\Bucket::class); - $this->buckets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig/Bucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig/Bucket.php deleted file mode 100644 index a3be310a60f4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig/Bucket.php +++ /dev/null @@ -1,169 +0,0 @@ -google.privacy.dlp.v2.BucketingConfig.Bucket - */ -class Bucket extends \Google\Protobuf\Internal\Message -{ - /** - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value min = 1; - */ - protected $min = null; - /** - * Upper bound of the range, exclusive; type must match min. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value max = 2; - */ - protected $max = null; - /** - * Required. Replacement value for this bucket. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value replacement_value = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $replacement_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Value $min - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - * @type \Google\Cloud\Dlp\V2\Value $max - * Upper bound of the range, exclusive; type must match min. - * @type \Google\Cloud\Dlp\V2\Value $replacement_value - * Required. Replacement value for this bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value min = 1; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getMin() - { - return $this->min; - } - - public function hasMin() - { - return isset($this->min); - } - - public function clearMin() - { - unset($this->min); - } - - /** - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value min = 1; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setMin($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->min = $var; - - return $this; - } - - /** - * Upper bound of the range, exclusive; type must match min. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value max = 2; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getMax() - { - return $this->max; - } - - public function hasMax() - { - return isset($this->max); - } - - public function clearMax() - { - unset($this->max); - } - - /** - * Upper bound of the range, exclusive; type must match min. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value max = 2; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setMax($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->max = $var; - - return $this; - } - - /** - * Required. Replacement value for this bucket. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value replacement_value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getReplacementValue() - { - return $this->replacement_value; - } - - public function hasReplacementValue() - { - return isset($this->replacement_value); - } - - public function clearReplacementValue() - { - unset($this->replacement_value); - } - - /** - * Required. Replacement value for this bucket. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value replacement_value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setReplacementValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->replacement_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem.php deleted file mode 100644 index 5971e92376ab..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.ByteContentItem - */ -class ByteContentItem extends \Google\Protobuf\Internal\Message -{ - /** - * The type of data stored in the bytes string. Default will be TEXT_UTF8. - * - * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem.BytesType type = 1; - */ - protected $type = 0; - /** - * Content data to inspect or redact. - * - * Generated from protobuf field bytes data = 2; - */ - protected $data = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The type of data stored in the bytes string. Default will be TEXT_UTF8. - * @type string $data - * Content data to inspect or redact. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The type of data stored in the bytes string. Default will be TEXT_UTF8. - * - * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem.BytesType type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of data stored in the bytes string. Default will be TEXT_UTF8. - * - * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem.BytesType type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ByteContentItem\BytesType::class); - $this->type = $var; - - return $this; - } - - /** - * Content data to inspect or redact. - * - * Generated from protobuf field bytes data = 2; - * @return string - */ - public function getData() - { - return $this->data; - } - - /** - * Content data to inspect or redact. - * - * Generated from protobuf field bytes data = 2; - * @param string $var - * @return $this - */ - public function setData($var) - { - GPBUtil::checkString($var, False); - $this->data = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem/BytesType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem/BytesType.php deleted file mode 100644 index 859e1ca88f98..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem/BytesType.php +++ /dev/null @@ -1,170 +0,0 @@ -google.privacy.dlp.v2.ByteContentItem.BytesType - */ -class BytesType -{ - /** - * Unused - * - * Generated from protobuf enum BYTES_TYPE_UNSPECIFIED = 0; - */ - const BYTES_TYPE_UNSPECIFIED = 0; - /** - * Any image type. - * - * Generated from protobuf enum IMAGE = 6; - */ - const IMAGE = 6; - /** - * jpeg - * - * Generated from protobuf enum IMAGE_JPEG = 1; - */ - const IMAGE_JPEG = 1; - /** - * bmp - * - * Generated from protobuf enum IMAGE_BMP = 2; - */ - const IMAGE_BMP = 2; - /** - * png - * - * Generated from protobuf enum IMAGE_PNG = 3; - */ - const IMAGE_PNG = 3; - /** - * svg - * - * Generated from protobuf enum IMAGE_SVG = 4; - */ - const IMAGE_SVG = 4; - /** - * plain text - * - * Generated from protobuf enum TEXT_UTF8 = 5; - */ - const TEXT_UTF8 = 5; - /** - * docx, docm, dotx, dotm - * - * Generated from protobuf enum WORD_DOCUMENT = 7; - */ - const WORD_DOCUMENT = 7; - /** - * pdf - * - * Generated from protobuf enum PDF = 8; - */ - const PDF = 8; - /** - * pptx, pptm, potx, potm, pot - * - * Generated from protobuf enum POWERPOINT_DOCUMENT = 9; - */ - const POWERPOINT_DOCUMENT = 9; - /** - * xlsx, xlsm, xltx, xltm - * - * Generated from protobuf enum EXCEL_DOCUMENT = 10; - */ - const EXCEL_DOCUMENT = 10; - /** - * avro - * - * Generated from protobuf enum AVRO = 11; - */ - const AVRO = 11; - /** - * csv - * - * Generated from protobuf enum CSV = 12; - */ - const CSV = 12; - /** - * tsv - * - * Generated from protobuf enum TSV = 13; - */ - const TSV = 13; - /** - * Audio file types. Only used for profiling. - * - * Generated from protobuf enum AUDIO = 15; - */ - const AUDIO = 15; - /** - * Video file types. Only used for profiling. - * - * Generated from protobuf enum VIDEO = 16; - */ - const VIDEO = 16; - /** - * Executable file types. Only used for profiling. - * - * Generated from protobuf enum EXECUTABLE = 17; - */ - const EXECUTABLE = 17; - /** - * AI model file types. Only used for profiling. - * - * Generated from protobuf enum AI_MODEL = 18; - */ - const AI_MODEL = 18; - - private static $valueToName = [ - self::BYTES_TYPE_UNSPECIFIED => 'BYTES_TYPE_UNSPECIFIED', - self::IMAGE => 'IMAGE', - self::IMAGE_JPEG => 'IMAGE_JPEG', - self::IMAGE_BMP => 'IMAGE_BMP', - self::IMAGE_PNG => 'IMAGE_PNG', - self::IMAGE_SVG => 'IMAGE_SVG', - self::TEXT_UTF8 => 'TEXT_UTF8', - self::WORD_DOCUMENT => 'WORD_DOCUMENT', - self::PDF => 'PDF', - self::POWERPOINT_DOCUMENT => 'POWERPOINT_DOCUMENT', - self::EXCEL_DOCUMENT => 'EXCEL_DOCUMENT', - self::AVRO => 'AVRO', - self::CSV => 'CSV', - self::TSV => 'TSV', - self::AUDIO => 'AUDIO', - self::VIDEO => 'VIDEO', - self::EXECUTABLE => 'EXECUTABLE', - self::AI_MODEL => 'AI_MODEL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CancelDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CancelDlpJobRequest.php deleted file mode 100644 index 3fe3c1e3e85e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CancelDlpJobRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.CancelDlpJobRequest - */ -class CancelDlpJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DlpJob resource to be cancelled. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DlpJob resource to be cancelled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DlpJob resource to be cancelled. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DlpJob resource to be cancelled. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharacterMaskConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharacterMaskConfig.php deleted file mode 100644 index 2ebacb51edce..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharacterMaskConfig.php +++ /dev/null @@ -1,266 +0,0 @@ -google.privacy.dlp.v2.CharacterMaskConfig - */ -class CharacterMaskConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Character to use to mask the sensitive values—for example, `*` for an - * alphabetic string such as a name, or `0` for a numeric string such as ZIP - * code or credit card number. This string must have a length of 1. If not - * supplied, this value defaults to `*` for strings, and `0` for digits. - * - * Generated from protobuf field string masking_character = 1; - */ - protected $masking_character = ''; - /** - * Number of characters to mask. If not set, all matching chars will be - * masked. Skipped characters do not count towards this tally. - * If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP - * masks all but a number of characters. - * For example, suppose you have the following values: - * - `masking_character` is `*` - * - `number_to_mask` is `-4` - * - `reverse_order` is `false` - * - `CharsToIgnore` includes `-` - * - Input string is `1234-5678-9012-3456` - * The resulting de-identified string is - * `****-****-****-3456`. Cloud DLP masks all but the last four characters. - * If `reverse_order` is `true`, all but the first four characters are masked - * as `1234-****-****-****`. - * - * Generated from protobuf field int32 number_to_mask = 2; - */ - protected $number_to_mask = 0; - /** - * Mask characters in reverse order. For example, if `masking_character` is - * `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the - * input string `1234-5678-9012-3456` is masked as `00000000000000-3456`. - * If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order` - * is `true`, then the string `12345` is masked as `12***`. - * - * Generated from protobuf field bool reverse_order = 3; - */ - protected $reverse_order = false; - /** - * When masking a string, items in this list will be skipped when replacing - * characters. For example, if the input string is `555-555-5555` and you - * instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP - * returns `***-**5-5555`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CharsToIgnore characters_to_ignore = 4; - */ - private $characters_to_ignore; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $masking_character - * Character to use to mask the sensitive values—for example, `*` for an - * alphabetic string such as a name, or `0` for a numeric string such as ZIP - * code or credit card number. This string must have a length of 1. If not - * supplied, this value defaults to `*` for strings, and `0` for digits. - * @type int $number_to_mask - * Number of characters to mask. If not set, all matching chars will be - * masked. Skipped characters do not count towards this tally. - * If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP - * masks all but a number of characters. - * For example, suppose you have the following values: - * - `masking_character` is `*` - * - `number_to_mask` is `-4` - * - `reverse_order` is `false` - * - `CharsToIgnore` includes `-` - * - Input string is `1234-5678-9012-3456` - * The resulting de-identified string is - * `****-****-****-3456`. Cloud DLP masks all but the last four characters. - * If `reverse_order` is `true`, all but the first four characters are masked - * as `1234-****-****-****`. - * @type bool $reverse_order - * Mask characters in reverse order. For example, if `masking_character` is - * `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the - * input string `1234-5678-9012-3456` is masked as `00000000000000-3456`. - * If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order` - * is `true`, then the string `12345` is masked as `12***`. - * @type \Google\Cloud\Dlp\V2\CharsToIgnore[] $characters_to_ignore - * When masking a string, items in this list will be skipped when replacing - * characters. For example, if the input string is `555-555-5555` and you - * instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP - * returns `***-**5-5555`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Character to use to mask the sensitive values—for example, `*` for an - * alphabetic string such as a name, or `0` for a numeric string such as ZIP - * code or credit card number. This string must have a length of 1. If not - * supplied, this value defaults to `*` for strings, and `0` for digits. - * - * Generated from protobuf field string masking_character = 1; - * @return string - */ - public function getMaskingCharacter() - { - return $this->masking_character; - } - - /** - * Character to use to mask the sensitive values—for example, `*` for an - * alphabetic string such as a name, or `0` for a numeric string such as ZIP - * code or credit card number. This string must have a length of 1. If not - * supplied, this value defaults to `*` for strings, and `0` for digits. - * - * Generated from protobuf field string masking_character = 1; - * @param string $var - * @return $this - */ - public function setMaskingCharacter($var) - { - GPBUtil::checkString($var, True); - $this->masking_character = $var; - - return $this; - } - - /** - * Number of characters to mask. If not set, all matching chars will be - * masked. Skipped characters do not count towards this tally. - * If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP - * masks all but a number of characters. - * For example, suppose you have the following values: - * - `masking_character` is `*` - * - `number_to_mask` is `-4` - * - `reverse_order` is `false` - * - `CharsToIgnore` includes `-` - * - Input string is `1234-5678-9012-3456` - * The resulting de-identified string is - * `****-****-****-3456`. Cloud DLP masks all but the last four characters. - * If `reverse_order` is `true`, all but the first four characters are masked - * as `1234-****-****-****`. - * - * Generated from protobuf field int32 number_to_mask = 2; - * @return int - */ - public function getNumberToMask() - { - return $this->number_to_mask; - } - - /** - * Number of characters to mask. If not set, all matching chars will be - * masked. Skipped characters do not count towards this tally. - * If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP - * masks all but a number of characters. - * For example, suppose you have the following values: - * - `masking_character` is `*` - * - `number_to_mask` is `-4` - * - `reverse_order` is `false` - * - `CharsToIgnore` includes `-` - * - Input string is `1234-5678-9012-3456` - * The resulting de-identified string is - * `****-****-****-3456`. Cloud DLP masks all but the last four characters. - * If `reverse_order` is `true`, all but the first four characters are masked - * as `1234-****-****-****`. - * - * Generated from protobuf field int32 number_to_mask = 2; - * @param int $var - * @return $this - */ - public function setNumberToMask($var) - { - GPBUtil::checkInt32($var); - $this->number_to_mask = $var; - - return $this; - } - - /** - * Mask characters in reverse order. For example, if `masking_character` is - * `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the - * input string `1234-5678-9012-3456` is masked as `00000000000000-3456`. - * If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order` - * is `true`, then the string `12345` is masked as `12***`. - * - * Generated from protobuf field bool reverse_order = 3; - * @return bool - */ - public function getReverseOrder() - { - return $this->reverse_order; - } - - /** - * Mask characters in reverse order. For example, if `masking_character` is - * `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the - * input string `1234-5678-9012-3456` is masked as `00000000000000-3456`. - * If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order` - * is `true`, then the string `12345` is masked as `12***`. - * - * Generated from protobuf field bool reverse_order = 3; - * @param bool $var - * @return $this - */ - public function setReverseOrder($var) - { - GPBUtil::checkBool($var); - $this->reverse_order = $var; - - return $this; - } - - /** - * When masking a string, items in this list will be skipped when replacing - * characters. For example, if the input string is `555-555-5555` and you - * instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP - * returns `***-**5-5555`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CharsToIgnore characters_to_ignore = 4; - * @return RepeatedField<\Google\Cloud\Dlp\V2\CharsToIgnore> - */ - public function getCharactersToIgnore() - { - return $this->characters_to_ignore; - } - - /** - * When masking a string, items in this list will be skipped when replacing - * characters. For example, if the input string is `555-555-5555` and you - * instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP - * returns `***-**5-5555`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CharsToIgnore characters_to_ignore = 4; - * @param \Google\Cloud\Dlp\V2\CharsToIgnore[] $var - * @return $this - */ - public function setCharactersToIgnore($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\CharsToIgnore::class); - $this->characters_to_ignore = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore.php deleted file mode 100644 index 31f0593c1326..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore.php +++ /dev/null @@ -1,112 +0,0 @@ -google.privacy.dlp.v2.CharsToIgnore - */ -class CharsToIgnore extends \Google\Protobuf\Internal\Message -{ - protected $characters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $characters_to_skip - * Characters to not transform when masking. - * @type int $common_characters_to_ignore - * Common characters to not transform when masking. Useful to avoid removing - * punctuation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Characters to not transform when masking. - * - * Generated from protobuf field string characters_to_skip = 1; - * @return string - */ - public function getCharactersToSkip() - { - return $this->readOneof(1); - } - - public function hasCharactersToSkip() - { - return $this->hasOneof(1); - } - - /** - * Characters to not transform when masking. - * - * Generated from protobuf field string characters_to_skip = 1; - * @param string $var - * @return $this - */ - public function setCharactersToSkip($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Common characters to not transform when masking. Useful to avoid removing - * punctuation. - * - * Generated from protobuf field .google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore common_characters_to_ignore = 2; - * @return int - */ - public function getCommonCharactersToIgnore() - { - return $this->readOneof(2); - } - - public function hasCommonCharactersToIgnore() - { - return $this->hasOneof(2); - } - - /** - * Common characters to not transform when masking. Useful to avoid removing - * punctuation. - * - * Generated from protobuf field .google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore common_characters_to_ignore = 2; - * @param int $var - * @return $this - */ - public function setCommonCharactersToIgnore($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\CharsToIgnore\CommonCharsToIgnore::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getCharacters() - { - return $this->whichOneof("characters"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore/CommonCharsToIgnore.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore/CommonCharsToIgnore.php deleted file mode 100644 index 875056364b4e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore/CommonCharsToIgnore.php +++ /dev/null @@ -1,82 +0,0 @@ -google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore - */ -class CommonCharsToIgnore -{ - /** - * Unused. - * - * Generated from protobuf enum COMMON_CHARS_TO_IGNORE_UNSPECIFIED = 0; - */ - const COMMON_CHARS_TO_IGNORE_UNSPECIFIED = 0; - /** - * 0-9 - * - * Generated from protobuf enum NUMERIC = 1; - */ - const NUMERIC = 1; - /** - * A-Z - * - * Generated from protobuf enum ALPHA_UPPER_CASE = 2; - */ - const ALPHA_UPPER_CASE = 2; - /** - * a-z - * - * Generated from protobuf enum ALPHA_LOWER_CASE = 3; - */ - const ALPHA_LOWER_CASE = 3; - /** - * US Punctuation, one of !"#$%&'()*+,-./:;<=>?\@[\]^_`{|}~ - * - * Generated from protobuf enum PUNCTUATION = 4; - */ - const PUNCTUATION = 4; - /** - * Whitespace character, one of [ \t\n\x0B\f\r] - * - * Generated from protobuf enum WHITESPACE = 5; - */ - const WHITESPACE = 5; - - private static $valueToName = [ - self::COMMON_CHARS_TO_IGNORE_UNSPECIFIED => 'COMMON_CHARS_TO_IGNORE_UNSPECIFIED', - self::NUMERIC => 'NUMERIC', - self::ALPHA_UPPER_CASE => 'ALPHA_UPPER_CASE', - self::ALPHA_LOWER_CASE => 'ALPHA_LOWER_CASE', - self::PUNCTUATION => 'PUNCTUATION', - self::WHITESPACE => 'WHITESPACE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlDiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlDiscoveryTarget.php deleted file mode 100644 index f38345058c33..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlDiscoveryTarget.php +++ /dev/null @@ -1,210 +0,0 @@ -google.privacy.dlp.v2.CloudSqlDiscoveryTarget - */ -class CloudSqlDiscoveryTarget extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The tables the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = null; - /** - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlConditions conditions = 2; - */ - protected $conditions = null; - protected $cadence; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DiscoveryCloudSqlFilter $filter - * Required. The tables the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a table. - * @type \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions $conditions - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * @type \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence $generation_cadence - * How often and when to update profiles. New tables that match both the - * filter and conditions are scanned as quickly as possible depending on - * system capacity. - * @type \Google\Cloud\Dlp\V2\Disabled $disabled - * Disable profiling for database resources that match this filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The tables the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\DiscoveryCloudSqlFilter|null - */ - public function getFilter() - { - return $this->filter; - } - - public function hasFilter() - { - return isset($this->filter); - } - - public function clearFilter() - { - unset($this->filter); - } - - /** - * Required. The tables the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\DiscoveryCloudSqlFilter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlFilter::class); - $this->filter = $var; - - return $this; - } - - /** - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlConditions conditions = 2; - * @return \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions|null - */ - public function getConditions() - { - return $this->conditions; - } - - public function hasConditions() - { - return isset($this->conditions); - } - - public function clearConditions() - { - unset($this->conditions); - } - - /** - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlConditions conditions = 2; - * @param \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions $var - * @return $this - */ - public function setConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions::class); - $this->conditions = $var; - - return $this; - } - - /** - * How often and when to update profiles. New tables that match both the - * filter and conditions are scanned as quickly as possible depending on - * system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence generation_cadence = 3; - * @return \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence|null - */ - public function getGenerationCadence() - { - return $this->readOneof(3); - } - - public function hasGenerationCadence() - { - return $this->hasOneof(3); - } - - /** - * How often and when to update profiles. New tables that match both the - * filter and conditions are scanned as quickly as possible depending on - * system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence generation_cadence = 3; - * @param \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence $var - * @return $this - */ - public function setGenerationCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Disable profiling for database resources that match this filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 4; - * @return \Google\Cloud\Dlp\V2\Disabled|null - */ - public function getDisabled() - { - return $this->readOneof(4); - } - - public function hasDisabled() - { - return $this->hasOneof(4); - } - - /** - * Disable profiling for database resources that match this filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 4; - * @param \Google\Cloud\Dlp\V2\Disabled $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Disabled::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getCadence() - { - return $this->whichOneof("cadence"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlIamCredential.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlIamCredential.php deleted file mode 100644 index d648d88db6d5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlIamCredential.php +++ /dev/null @@ -1,36 +0,0 @@ -google.privacy.dlp.v2.CloudSqlIamCredential - */ -class CloudSqlIamCredential extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties.php deleted file mode 100644 index 355617dcdf7b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties.php +++ /dev/null @@ -1,250 +0,0 @@ -google.privacy.dlp.v2.CloudSqlProperties - */ -class CloudSqlProperties extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Immutable. The Cloud SQL instance for which the connection is - * defined. Only one connection per instance is allowed. This can only be set - * at creation time, and cannot be updated. - * It is an error to use a connection_name from different project or region - * than the one that holds the connection. - * For example, a Connection resource for Cloud SQL connection_name - * `project-id:us-central1:sql-instance` - * must be created under the parent - * `projects/project-id/locations/us-central1` - * - * Generated from protobuf field string connection_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - */ - protected $connection_name = ''; - /** - * Required. The DLP API will limit its connections to max_connections. - * Must be 2 or greater. - * - * Generated from protobuf field int32 max_connections = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $max_connections = 0; - /** - * Required. The database engine used by the Cloud SQL instance that this - * connection configures. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngine database_engine = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database_engine = 0; - protected $credential; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $connection_name - * Optional. Immutable. The Cloud SQL instance for which the connection is - * defined. Only one connection per instance is allowed. This can only be set - * at creation time, and cannot be updated. - * It is an error to use a connection_name from different project or region - * than the one that holds the connection. - * For example, a Connection resource for Cloud SQL connection_name - * `project-id:us-central1:sql-instance` - * must be created under the parent - * `projects/project-id/locations/us-central1` - * @type \Google\Cloud\Dlp\V2\SecretManagerCredential $username_password - * A username and password stored in Secret Manager. - * @type \Google\Cloud\Dlp\V2\CloudSqlIamCredential $cloud_sql_iam - * Built-in IAM authentication (must be configured in Cloud SQL). - * @type int $max_connections - * Required. The DLP API will limit its connections to max_connections. - * Must be 2 or greater. - * @type int $database_engine - * Required. The database engine used by the Cloud SQL instance that this - * connection configures. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Immutable. The Cloud SQL instance for which the connection is - * defined. Only one connection per instance is allowed. This can only be set - * at creation time, and cannot be updated. - * It is an error to use a connection_name from different project or region - * than the one that holds the connection. - * For example, a Connection resource for Cloud SQL connection_name - * `project-id:us-central1:sql-instance` - * must be created under the parent - * `projects/project-id/locations/us-central1` - * - * Generated from protobuf field string connection_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getConnectionName() - { - return $this->connection_name; - } - - /** - * Optional. Immutable. The Cloud SQL instance for which the connection is - * defined. Only one connection per instance is allowed. This can only be set - * at creation time, and cannot be updated. - * It is an error to use a connection_name from different project or region - * than the one that holds the connection. - * For example, a Connection resource for Cloud SQL connection_name - * `project-id:us-central1:sql-instance` - * must be created under the parent - * `projects/project-id/locations/us-central1` - * - * Generated from protobuf field string connection_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setConnectionName($var) - { - GPBUtil::checkString($var, True); - $this->connection_name = $var; - - return $this; - } - - /** - * A username and password stored in Secret Manager. - * - * Generated from protobuf field .google.privacy.dlp.v2.SecretManagerCredential username_password = 2; - * @return \Google\Cloud\Dlp\V2\SecretManagerCredential|null - */ - public function getUsernamePassword() - { - return $this->readOneof(2); - } - - public function hasUsernamePassword() - { - return $this->hasOneof(2); - } - - /** - * A username and password stored in Secret Manager. - * - * Generated from protobuf field .google.privacy.dlp.v2.SecretManagerCredential username_password = 2; - * @param \Google\Cloud\Dlp\V2\SecretManagerCredential $var - * @return $this - */ - public function setUsernamePassword($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SecretManagerCredential::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Built-in IAM authentication (must be configured in Cloud SQL). - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3; - * @return \Google\Cloud\Dlp\V2\CloudSqlIamCredential|null - */ - public function getCloudSqlIam() - { - return $this->readOneof(3); - } - - public function hasCloudSqlIam() - { - return $this->hasOneof(3); - } - - /** - * Built-in IAM authentication (must be configured in Cloud SQL). - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3; - * @param \Google\Cloud\Dlp\V2\CloudSqlIamCredential $var - * @return $this - */ - public function setCloudSqlIam($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudSqlIamCredential::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Required. The DLP API will limit its connections to max_connections. - * Must be 2 or greater. - * - * Generated from protobuf field int32 max_connections = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMaxConnections() - { - return $this->max_connections; - } - - /** - * Required. The DLP API will limit its connections to max_connections. - * Must be 2 or greater. - * - * Generated from protobuf field int32 max_connections = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMaxConnections($var) - { - GPBUtil::checkInt32($var); - $this->max_connections = $var; - - return $this; - } - - /** - * Required. The database engine used by the Cloud SQL instance that this - * connection configures. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngine database_engine = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getDatabaseEngine() - { - return $this->database_engine; - } - - /** - * Required. The database engine used by the Cloud SQL instance that this - * connection configures. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngine database_engine = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setDatabaseEngine($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\CloudSqlProperties\DatabaseEngine::class); - $this->database_engine = $var; - - return $this; - } - - /** - * @return string - */ - public function getCredential() - { - return $this->whichOneof("credential"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties/DatabaseEngine.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties/DatabaseEngine.php deleted file mode 100644 index 26f4502fcff5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties/DatabaseEngine.php +++ /dev/null @@ -1,62 +0,0 @@ -google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngine - */ -class DatabaseEngine -{ - /** - * An engine that is not currently supported by Sensitive Data Protection. - * - * Generated from protobuf enum DATABASE_ENGINE_UNKNOWN = 0; - */ - const DATABASE_ENGINE_UNKNOWN = 0; - /** - * Cloud SQL for MySQL instance. - * - * Generated from protobuf enum DATABASE_ENGINE_MYSQL = 1; - */ - const DATABASE_ENGINE_MYSQL = 1; - /** - * Cloud SQL for PostgreSQL instance. - * - * Generated from protobuf enum DATABASE_ENGINE_POSTGRES = 2; - */ - const DATABASE_ENGINE_POSTGRES = 2; - - private static $valueToName = [ - self::DATABASE_ENGINE_UNKNOWN => 'DATABASE_ENGINE_UNKNOWN', - self::DATABASE_ENGINE_MYSQL => 'DATABASE_ENGINE_MYSQL', - self::DATABASE_ENGINE_POSTGRES => 'DATABASE_ENGINE_POSTGRES', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageDiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageDiscoveryTarget.php deleted file mode 100644 index b45cac4a310d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageDiscoveryTarget.php +++ /dev/null @@ -1,210 +0,0 @@ -google.privacy.dlp.v2.CloudStorageDiscoveryTarget - */ -class CloudStorageDiscoveryTarget extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The buckets the generation_cadence applies to. The first target - * with a matching filter will be the one to apply to a bucket. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = null; - /** - * Optional. In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $conditions = null; - protected $cadence; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DiscoveryCloudStorageFilter $filter - * Required. The buckets the generation_cadence applies to. The first target - * with a matching filter will be the one to apply to a bucket. - * @type \Google\Cloud\Dlp\V2\DiscoveryFileStoreConditions $conditions - * Optional. In addition to matching the filter, these conditions must be true - * before a profile is generated. - * @type \Google\Cloud\Dlp\V2\DiscoveryCloudStorageGenerationCadence $generation_cadence - * Optional. How often and when to update profiles. New buckets that match - * both the filter and conditions are scanned as quickly as possible - * depending on system capacity. - * @type \Google\Cloud\Dlp\V2\Disabled $disabled - * Optional. Disable profiling for buckets that match this filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The buckets the generation_cadence applies to. The first target - * with a matching filter will be the one to apply to a bucket. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\DiscoveryCloudStorageFilter|null - */ - public function getFilter() - { - return $this->filter; - } - - public function hasFilter() - { - return isset($this->filter); - } - - public function clearFilter() - { - unset($this->filter); - } - - /** - * Required. The buckets the generation_cadence applies to. The first target - * with a matching filter will be the one to apply to a bucket. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\DiscoveryCloudStorageFilter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudStorageFilter::class); - $this->filter = $var; - - return $this; - } - - /** - * Optional. In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\DiscoveryFileStoreConditions|null - */ - public function getConditions() - { - return $this->conditions; - } - - public function hasConditions() - { - return isset($this->conditions); - } - - public function clearConditions() - { - unset($this->conditions); - } - - /** - * Optional. In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\DiscoveryFileStoreConditions $var - * @return $this - */ - public function setConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryFileStoreConditions::class); - $this->conditions = $var; - - return $this; - } - - /** - * Optional. How often and when to update profiles. New buckets that match - * both the filter and conditions are scanned as quickly as possible - * depending on system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\DiscoveryCloudStorageGenerationCadence|null - */ - public function getGenerationCadence() - { - return $this->readOneof(2); - } - - public function hasGenerationCadence() - { - return $this->hasOneof(2); - } - - /** - * Optional. How often and when to update profiles. New buckets that match - * both the filter and conditions are scanned as quickly as possible - * depending on system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\DiscoveryCloudStorageGenerationCadence $var - * @return $this - */ - public function setGenerationCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudStorageGenerationCadence::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Optional. Disable profiling for buckets that match this filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\Disabled|null - */ - public function getDisabled() - { - return $this->readOneof(3); - } - - public function hasDisabled() - { - return $this->hasOneof(3); - } - - /** - * Optional. Disable profiling for buckets that match this filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\Disabled $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Disabled::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getCadence() - { - return $this->whichOneof("cadence"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageFileSet.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageFileSet.php deleted file mode 100644 index 385cd1443702..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageFileSet.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.CloudStorageFileSet - */ -class CloudStorageFileSet extends \Google\Protobuf\Internal\Message -{ - /** - * The url, in the format `gs:///`. Trailing wildcard in the - * path is allowed. - * - * Generated from protobuf field string url = 1; - */ - protected $url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * The url, in the format `gs:///`. Trailing wildcard in the - * path is allowed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The url, in the format `gs:///`. Trailing wildcard in the - * path is allowed. - * - * Generated from protobuf field string url = 1; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * The url, in the format `gs:///`. Trailing wildcard in the - * path is allowed. - * - * Generated from protobuf field string url = 1; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions.php deleted file mode 100644 index c6d8ee1231d8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions.php +++ /dev/null @@ -1,332 +0,0 @@ -google.privacy.dlp.v2.CloudStorageOptions - */ -class CloudStorageOptions extends \Google\Protobuf\Internal\Message -{ - /** - * The set of one or more files to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; - */ - protected $file_set = null; - /** - * Max number of bytes to scan from a file. If a scanned file's size is bigger - * than this value then the rest of the bytes are omitted. Only one of - * `bytes_limit_per_file` and `bytes_limit_per_file_percent` can be specified. - * This field can't be set if de-identification is requested. For certain file - * types, setting this field has no effect. For more information, see [Limits - * on bytes scanned per - * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). - * - * Generated from protobuf field int64 bytes_limit_per_file = 4; - */ - protected $bytes_limit_per_file = 0; - /** - * Max percentage of bytes to scan from a file. The rest are omitted. The - * number of bytes scanned is rounded down. Must be between 0 and 100, - * inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of - * bytes_limit_per_file and bytes_limit_per_file_percent can be specified. - * This field can't be set if de-identification is requested. For certain file - * types, setting this field has no effect. For more information, see [Limits - * on bytes scanned per - * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). - * - * Generated from protobuf field int32 bytes_limit_per_file_percent = 8; - */ - protected $bytes_limit_per_file_percent = 0; - /** - * List of file type groups to include in the scan. - * If empty, all files are scanned and available data format processors - * are applied. In addition, the binary content of the selected files - * is always scanned as well. - * Images are scanned only as binary if the specified region - * does not support image inspection and no file_types were specified. - * Image inspection is restricted to 'global', 'us', 'asia', and 'europe'. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types = 5; - */ - private $file_types; - /** - * How to sample the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; - */ - protected $sample_method = 0; - /** - * Limits the number of files to scan to this percentage of the input FileSet. - * Number of files scanned is rounded down. Must be between 0 and 100, - * inclusively. Both 0 and 100 means no limit. Defaults to 0. - * - * Generated from protobuf field int32 files_limit_percent = 7; - */ - protected $files_limit_percent = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CloudStorageOptions\FileSet $file_set - * The set of one or more files to scan. - * @type int|string $bytes_limit_per_file - * Max number of bytes to scan from a file. If a scanned file's size is bigger - * than this value then the rest of the bytes are omitted. Only one of - * `bytes_limit_per_file` and `bytes_limit_per_file_percent` can be specified. - * This field can't be set if de-identification is requested. For certain file - * types, setting this field has no effect. For more information, see [Limits - * on bytes scanned per - * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). - * @type int $bytes_limit_per_file_percent - * Max percentage of bytes to scan from a file. The rest are omitted. The - * number of bytes scanned is rounded down. Must be between 0 and 100, - * inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of - * bytes_limit_per_file and bytes_limit_per_file_percent can be specified. - * This field can't be set if de-identification is requested. For certain file - * types, setting this field has no effect. For more information, see [Limits - * on bytes scanned per - * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). - * @type int[] $file_types - * List of file type groups to include in the scan. - * If empty, all files are scanned and available data format processors - * are applied. In addition, the binary content of the selected files - * is always scanned as well. - * Images are scanned only as binary if the specified region - * does not support image inspection and no file_types were specified. - * Image inspection is restricted to 'global', 'us', 'asia', and 'europe'. - * @type int $sample_method - * How to sample the data. - * @type int $files_limit_percent - * Limits the number of files to scan to this percentage of the input FileSet. - * Number of files scanned is rounded down. Must be between 0 and 100, - * inclusively. Both 0 and 100 means no limit. Defaults to 0. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The set of one or more files to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; - * @return \Google\Cloud\Dlp\V2\CloudStorageOptions\FileSet|null - */ - public function getFileSet() - { - return $this->file_set; - } - - public function hasFileSet() - { - return isset($this->file_set); - } - - public function clearFileSet() - { - unset($this->file_set); - } - - /** - * The set of one or more files to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; - * @param \Google\Cloud\Dlp\V2\CloudStorageOptions\FileSet $var - * @return $this - */ - public function setFileSet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageOptions\FileSet::class); - $this->file_set = $var; - - return $this; - } - - /** - * Max number of bytes to scan from a file. If a scanned file's size is bigger - * than this value then the rest of the bytes are omitted. Only one of - * `bytes_limit_per_file` and `bytes_limit_per_file_percent` can be specified. - * This field can't be set if de-identification is requested. For certain file - * types, setting this field has no effect. For more information, see [Limits - * on bytes scanned per - * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). - * - * Generated from protobuf field int64 bytes_limit_per_file = 4; - * @return int|string - */ - public function getBytesLimitPerFile() - { - return $this->bytes_limit_per_file; - } - - /** - * Max number of bytes to scan from a file. If a scanned file's size is bigger - * than this value then the rest of the bytes are omitted. Only one of - * `bytes_limit_per_file` and `bytes_limit_per_file_percent` can be specified. - * This field can't be set if de-identification is requested. For certain file - * types, setting this field has no effect. For more information, see [Limits - * on bytes scanned per - * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). - * - * Generated from protobuf field int64 bytes_limit_per_file = 4; - * @param int|string $var - * @return $this - */ - public function setBytesLimitPerFile($var) - { - GPBUtil::checkInt64($var); - $this->bytes_limit_per_file = $var; - - return $this; - } - - /** - * Max percentage of bytes to scan from a file. The rest are omitted. The - * number of bytes scanned is rounded down. Must be between 0 and 100, - * inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of - * bytes_limit_per_file and bytes_limit_per_file_percent can be specified. - * This field can't be set if de-identification is requested. For certain file - * types, setting this field has no effect. For more information, see [Limits - * on bytes scanned per - * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). - * - * Generated from protobuf field int32 bytes_limit_per_file_percent = 8; - * @return int - */ - public function getBytesLimitPerFilePercent() - { - return $this->bytes_limit_per_file_percent; - } - - /** - * Max percentage of bytes to scan from a file. The rest are omitted. The - * number of bytes scanned is rounded down. Must be between 0 and 100, - * inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of - * bytes_limit_per_file and bytes_limit_per_file_percent can be specified. - * This field can't be set if de-identification is requested. For certain file - * types, setting this field has no effect. For more information, see [Limits - * on bytes scanned per - * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). - * - * Generated from protobuf field int32 bytes_limit_per_file_percent = 8; - * @param int $var - * @return $this - */ - public function setBytesLimitPerFilePercent($var) - { - GPBUtil::checkInt32($var); - $this->bytes_limit_per_file_percent = $var; - - return $this; - } - - /** - * List of file type groups to include in the scan. - * If empty, all files are scanned and available data format processors - * are applied. In addition, the binary content of the selected files - * is always scanned as well. - * Images are scanned only as binary if the specified region - * does not support image inspection and no file_types were specified. - * Image inspection is restricted to 'global', 'us', 'asia', and 'europe'. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types = 5; - * @return RepeatedField - */ - public function getFileTypes() - { - return $this->file_types; - } - - /** - * List of file type groups to include in the scan. - * If empty, all files are scanned and available data format processors - * are applied. In addition, the binary content of the selected files - * is always scanned as well. - * Images are scanned only as binary if the specified region - * does not support image inspection and no file_types were specified. - * Image inspection is restricted to 'global', 'us', 'asia', and 'europe'. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types = 5; - * @param int[] $var - * @return $this - */ - public function setFileTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\FileType::class); - $this->file_types = $arr; - - return $this; - } - - /** - * How to sample the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; - * @return int - */ - public function getSampleMethod() - { - return $this->sample_method; - } - - /** - * How to sample the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; - * @param int $var - * @return $this - */ - public function setSampleMethod($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\CloudStorageOptions\SampleMethod::class); - $this->sample_method = $var; - - return $this; - } - - /** - * Limits the number of files to scan to this percentage of the input FileSet. - * Number of files scanned is rounded down. Must be between 0 and 100, - * inclusively. Both 0 and 100 means no limit. Defaults to 0. - * - * Generated from protobuf field int32 files_limit_percent = 7; - * @return int - */ - public function getFilesLimitPercent() - { - return $this->files_limit_percent; - } - - /** - * Limits the number of files to scan to this percentage of the input FileSet. - * Number of files scanned is rounded down. Must be between 0 and 100, - * inclusively. Both 0 and 100 means no limit. Defaults to 0. - * - * Generated from protobuf field int32 files_limit_percent = 7; - * @param int $var - * @return $this - */ - public function setFilesLimitPercent($var) - { - GPBUtil::checkInt32($var); - $this->files_limit_percent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/FileSet.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/FileSet.php deleted file mode 100644 index d02877418694..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/FileSet.php +++ /dev/null @@ -1,143 +0,0 @@ -google.privacy.dlp.v2.CloudStorageOptions.FileSet - */ -class FileSet extends \Google\Protobuf\Internal\Message -{ - /** - * The Cloud Storage url of the file(s) to scan, in the format - * `gs:///`. Trailing wildcard in the path is allowed. - * If the url ends in a trailing slash, the bucket or directory represented - * by the url will be scanned non-recursively (content in sub-directories - * will not be scanned). This means that `gs://mybucket/` is equivalent to - * `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to - * `gs://mybucket/directory/*`. - * Exactly one of `url` or `regex_file_set` must be set. - * - * Generated from protobuf field string url = 1; - */ - protected $url = ''; - /** - * The regex-filtered set of files to scan. Exactly one of `url` or - * `regex_file_set` must be set. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2; - */ - protected $regex_file_set = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * The Cloud Storage url of the file(s) to scan, in the format - * `gs:///`. Trailing wildcard in the path is allowed. - * If the url ends in a trailing slash, the bucket or directory represented - * by the url will be scanned non-recursively (content in sub-directories - * will not be scanned). This means that `gs://mybucket/` is equivalent to - * `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to - * `gs://mybucket/directory/*`. - * Exactly one of `url` or `regex_file_set` must be set. - * @type \Google\Cloud\Dlp\V2\CloudStorageRegexFileSet $regex_file_set - * The regex-filtered set of files to scan. Exactly one of `url` or - * `regex_file_set` must be set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The Cloud Storage url of the file(s) to scan, in the format - * `gs:///`. Trailing wildcard in the path is allowed. - * If the url ends in a trailing slash, the bucket or directory represented - * by the url will be scanned non-recursively (content in sub-directories - * will not be scanned). This means that `gs://mybucket/` is equivalent to - * `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to - * `gs://mybucket/directory/*`. - * Exactly one of `url` or `regex_file_set` must be set. - * - * Generated from protobuf field string url = 1; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * The Cloud Storage url of the file(s) to scan, in the format - * `gs:///`. Trailing wildcard in the path is allowed. - * If the url ends in a trailing slash, the bucket or directory represented - * by the url will be scanned non-recursively (content in sub-directories - * will not be scanned). This means that `gs://mybucket/` is equivalent to - * `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to - * `gs://mybucket/directory/*`. - * Exactly one of `url` or `regex_file_set` must be set. - * - * Generated from protobuf field string url = 1; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - - /** - * The regex-filtered set of files to scan. Exactly one of `url` or - * `regex_file_set` must be set. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2; - * @return \Google\Cloud\Dlp\V2\CloudStorageRegexFileSet|null - */ - public function getRegexFileSet() - { - return $this->regex_file_set; - } - - public function hasRegexFileSet() - { - return isset($this->regex_file_set); - } - - public function clearRegexFileSet() - { - unset($this->regex_file_set); - } - - /** - * The regex-filtered set of files to scan. Exactly one of `url` or - * `regex_file_set` must be set. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2; - * @param \Google\Cloud\Dlp\V2\CloudStorageRegexFileSet $var - * @return $this - */ - public function setRegexFileSet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageRegexFileSet::class); - $this->regex_file_set = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/SampleMethod.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/SampleMethod.php deleted file mode 100644 index cda362c7e367..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/SampleMethod.php +++ /dev/null @@ -1,64 +0,0 @@ -google.privacy.dlp.v2.CloudStorageOptions.SampleMethod - */ -class SampleMethod -{ - /** - * No sampling. - * - * Generated from protobuf enum SAMPLE_METHOD_UNSPECIFIED = 0; - */ - const SAMPLE_METHOD_UNSPECIFIED = 0; - /** - * Scan from the top (default). - * - * Generated from protobuf enum TOP = 1; - */ - const TOP = 1; - /** - * For each file larger than bytes_limit_per_file, randomly pick the offset - * to start scanning. The scanned bytes are contiguous. - * - * Generated from protobuf enum RANDOM_START = 2; - */ - const RANDOM_START = 2; - - private static $valueToName = [ - self::SAMPLE_METHOD_UNSPECIFIED => 'SAMPLE_METHOD_UNSPECIFIED', - self::TOP => 'TOP', - self::RANDOM_START => 'RANDOM_START', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStoragePath.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStoragePath.php deleted file mode 100644 index b012744d2707..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStoragePath.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.CloudStoragePath - */ -class CloudStoragePath extends \Google\Protobuf\Internal\Message -{ - /** - * A URL representing a file or path (no wildcards) in Cloud Storage. - * Example: `gs://[BUCKET_NAME]/dictionary.txt` - * - * Generated from protobuf field string path = 1; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $path - * A URL representing a file or path (no wildcards) in Cloud Storage. - * Example: `gs://[BUCKET_NAME]/dictionary.txt` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * A URL representing a file or path (no wildcards) in Cloud Storage. - * Example: `gs://[BUCKET_NAME]/dictionary.txt` - * - * Generated from protobuf field string path = 1; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * A URL representing a file or path (no wildcards) in Cloud Storage. - * Example: `gs://[BUCKET_NAME]/dictionary.txt` - * - * Generated from protobuf field string path = 1; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegex.php deleted file mode 100644 index 0f585f42e294..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegex.php +++ /dev/null @@ -1,112 +0,0 @@ -google.privacy.dlp.v2.CloudStorageRegex - */ -class CloudStorageRegex extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. For organizations, if unset, will match all projects. - * - * Generated from protobuf field string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $project_id_regex = ''; - /** - * Optional. Regex to test the bucket name against. If empty, all buckets - * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the - * bucket gs://marketing2021 - * - * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $bucket_name_regex = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id_regex - * Optional. For organizations, if unset, will match all projects. - * @type string $bucket_name_regex - * Optional. Regex to test the bucket name against. If empty, all buckets - * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the - * bucket gs://marketing2021 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. For organizations, if unset, will match all projects. - * - * Generated from protobuf field string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getProjectIdRegex() - { - return $this->project_id_regex; - } - - /** - * Optional. For organizations, if unset, will match all projects. - * - * Generated from protobuf field string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setProjectIdRegex($var) - { - GPBUtil::checkString($var, True); - $this->project_id_regex = $var; - - return $this; - } - - /** - * Optional. Regex to test the bucket name against. If empty, all buckets - * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the - * bucket gs://marketing2021 - * - * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getBucketNameRegex() - { - return $this->bucket_name_regex; - } - - /** - * Optional. Regex to test the bucket name against. If empty, all buckets - * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the - * bucket gs://marketing2021 - * - * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setBucketNameRegex($var) - { - GPBUtil::checkString($var, True); - $this->bucket_name_regex = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegexFileSet.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegexFileSet.php deleted file mode 100644 index 8fa4c8ffc20d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegexFileSet.php +++ /dev/null @@ -1,208 +0,0 @@ -google.privacy.dlp.v2.CloudStorageRegexFileSet - */ -class CloudStorageRegexFileSet extends \Google\Protobuf\Internal\Message -{ - /** - * The name of a Cloud Storage bucket. Required. - * - * Generated from protobuf field string bucket_name = 1; - */ - protected $bucket_name = ''; - /** - * A list of regular expressions matching file paths to include. All files in - * the bucket that match at least one of these regular expressions will be - * included in the set of files, except for those that also match an item in - * `exclude_regex`. Leaving this field empty will match all files by default - * (this is equivalent to including `.*` in the list). - * Regular expressions use RE2 - * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found - * under the google/re2 repository on GitHub. - * - * Generated from protobuf field repeated string include_regex = 2; - */ - private $include_regex; - /** - * A list of regular expressions matching file paths to exclude. All files in - * the bucket that match at least one of these regular expressions will be - * excluded from the scan. - * Regular expressions use RE2 - * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found - * under the google/re2 repository on GitHub. - * - * Generated from protobuf field repeated string exclude_regex = 3; - */ - private $exclude_regex; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $bucket_name - * The name of a Cloud Storage bucket. Required. - * @type string[] $include_regex - * A list of regular expressions matching file paths to include. All files in - * the bucket that match at least one of these regular expressions will be - * included in the set of files, except for those that also match an item in - * `exclude_regex`. Leaving this field empty will match all files by default - * (this is equivalent to including `.*` in the list). - * Regular expressions use RE2 - * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found - * under the google/re2 repository on GitHub. - * @type string[] $exclude_regex - * A list of regular expressions matching file paths to exclude. All files in - * the bucket that match at least one of these regular expressions will be - * excluded from the scan. - * Regular expressions use RE2 - * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found - * under the google/re2 repository on GitHub. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The name of a Cloud Storage bucket. Required. - * - * Generated from protobuf field string bucket_name = 1; - * @return string - */ - public function getBucketName() - { - return $this->bucket_name; - } - - /** - * The name of a Cloud Storage bucket. Required. - * - * Generated from protobuf field string bucket_name = 1; - * @param string $var - * @return $this - */ - public function setBucketName($var) - { - GPBUtil::checkString($var, True); - $this->bucket_name = $var; - - return $this; - } - - /** - * A list of regular expressions matching file paths to include. All files in - * the bucket that match at least one of these regular expressions will be - * included in the set of files, except for those that also match an item in - * `exclude_regex`. Leaving this field empty will match all files by default - * (this is equivalent to including `.*` in the list). - * Regular expressions use RE2 - * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found - * under the google/re2 repository on GitHub. - * - * Generated from protobuf field repeated string include_regex = 2; - * @return RepeatedField - */ - public function getIncludeRegex() - { - return $this->include_regex; - } - - /** - * A list of regular expressions matching file paths to include. All files in - * the bucket that match at least one of these regular expressions will be - * included in the set of files, except for those that also match an item in - * `exclude_regex`. Leaving this field empty will match all files by default - * (this is equivalent to including `.*` in the list). - * Regular expressions use RE2 - * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found - * under the google/re2 repository on GitHub. - * - * Generated from protobuf field repeated string include_regex = 2; - * @param string[] $var - * @return $this - */ - public function setIncludeRegex($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->include_regex = $arr; - - return $this; - } - - /** - * A list of regular expressions matching file paths to exclude. All files in - * the bucket that match at least one of these regular expressions will be - * excluded from the scan. - * Regular expressions use RE2 - * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found - * under the google/re2 repository on GitHub. - * - * Generated from protobuf field repeated string exclude_regex = 3; - * @return RepeatedField - */ - public function getExcludeRegex() - { - return $this->exclude_regex; - } - - /** - * A list of regular expressions matching file paths to exclude. All files in - * the bucket that match at least one of these regular expressions will be - * excluded from the scan. - * Regular expressions use RE2 - * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found - * under the google/re2 repository on GitHub. - * - * Generated from protobuf field repeated string exclude_regex = 3; - * @param string[] $var - * @return $this - */ - public function setExcludeRegex($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->exclude_regex = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageResourceReference.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageResourceReference.php deleted file mode 100644 index 01dc419436f4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageResourceReference.php +++ /dev/null @@ -1,105 +0,0 @@ -google.privacy.dlp.v2.CloudStorageResourceReference - */ -class CloudStorageResourceReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The bucket to scan. - * - * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $bucket_name = ''; - /** - * Required. If within a project-level config, then this must match the - * config's project id. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $bucket_name - * Required. The bucket to scan. - * @type string $project_id - * Required. If within a project-level config, then this must match the - * config's project id. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The bucket to scan. - * - * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBucketName() - { - return $this->bucket_name; - } - - /** - * Required. The bucket to scan. - * - * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBucketName($var) - { - GPBUtil::checkString($var, True); - $this->bucket_name = $var; - - return $this; - } - - /** - * Required. If within a project-level config, then this must match the - * config's project id. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. If within a project-level config, then this must match the - * config's project id. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Color.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Color.php deleted file mode 100644 index 2e54159db64e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Color.php +++ /dev/null @@ -1,135 +0,0 @@ -google.privacy.dlp.v2.Color - */ -class Color extends \Google\Protobuf\Internal\Message -{ - /** - * The amount of red in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float red = 1; - */ - protected $red = 0.0; - /** - * The amount of green in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float green = 2; - */ - protected $green = 0.0; - /** - * The amount of blue in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float blue = 3; - */ - protected $blue = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $red - * The amount of red in the color as a value in the interval [0, 1]. - * @type float $green - * The amount of green in the color as a value in the interval [0, 1]. - * @type float $blue - * The amount of blue in the color as a value in the interval [0, 1]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The amount of red in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float red = 1; - * @return float - */ - public function getRed() - { - return $this->red; - } - - /** - * The amount of red in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float red = 1; - * @param float $var - * @return $this - */ - public function setRed($var) - { - GPBUtil::checkFloat($var); - $this->red = $var; - - return $this; - } - - /** - * The amount of green in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float green = 2; - * @return float - */ - public function getGreen() - { - return $this->green; - } - - /** - * The amount of green in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float green = 2; - * @param float $var - * @return $this - */ - public function setGreen($var) - { - GPBUtil::checkFloat($var); - $this->green = $var; - - return $this; - } - - /** - * The amount of blue in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float blue = 3; - * @return float - */ - public function getBlue() - { - return $this->blue; - } - - /** - * The amount of blue in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float blue = 3; - * @param float $var - * @return $this - */ - public function setBlue($var) - { - GPBUtil::checkFloat($var); - $this->blue = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile.php deleted file mode 100644 index c5cb44960571..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile.php +++ /dev/null @@ -1,795 +0,0 @@ -google.privacy.dlp.v2.ColumnDataProfile - */ -class ColumnDataProfile extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the profile. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 17; - */ - protected $profile_status = null; - /** - * State of a profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.State state = 18; - */ - protected $state = 0; - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; - */ - protected $profile_last_generated = null; - /** - * The resource name of the table data profile. - * - * Generated from protobuf field string table_data_profile = 4; - */ - protected $table_data_profile = ''; - /** - * The resource name of the resource this column is within. - * - * Generated from protobuf field string table_full_resource = 5; - */ - protected $table_full_resource = ''; - /** - * The Google Cloud project ID that owns the profiled resource. - * - * Generated from protobuf field string dataset_project_id = 19; - */ - protected $dataset_project_id = ''; - /** - * If supported, the location where the dataset's data is stored. - * See https://cloud.google.com/bigquery/docs/locations for supported - * BigQuery locations. - * - * Generated from protobuf field string dataset_location = 20; - */ - protected $dataset_location = ''; - /** - * The BigQuery dataset ID, if the resource profiled is a BigQuery table. - * - * Generated from protobuf field string dataset_id = 21; - */ - protected $dataset_id = ''; - /** - * The table ID. - * - * Generated from protobuf field string table_id = 22; - */ - protected $table_id = ''; - /** - * The name of the column. - * - * Generated from protobuf field string column = 6; - */ - protected $column = ''; - /** - * The sensitivity of this column. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 7; - */ - protected $sensitivity_score = null; - /** - * The data risk level for this column. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 8; - */ - protected $data_risk_level = null; - /** - * If it's been determined this column can be identified as a single type, - * this will be set. Otherwise the column either has unidentifiable content - * or mixed types. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeSummary column_info_type = 9; - */ - protected $column_info_type = null; - /** - * Other types found within this column. List will be unordered. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_matches = 10; - */ - private $other_matches; - /** - * Approximate percentage of entries being null in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.NullPercentageLevel estimated_null_percentage = 23; - */ - protected $estimated_null_percentage = 0; - /** - * Approximate uniqueness of the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.UniquenessScoreLevel estimated_uniqueness_score = 24; - */ - protected $estimated_uniqueness_score = 0; - /** - * The likelihood that this column contains free-form text. - * A value close to 1 may indicate the column is likely to contain - * free-form or natural language text. - * Range in 0-1. - * - * Generated from protobuf field double free_text_score = 13; - */ - protected $free_text_score = 0.0; - /** - * The data type of a given column. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnDataType column_type = 14; - */ - protected $column_type = 0; - /** - * Indicates if a policy tag has been applied to the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState policy_state = 15; - */ - protected $policy_state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the profile. - * @type \Google\Cloud\Dlp\V2\ProfileStatus $profile_status - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * @type int $state - * State of a profile. - * @type \Google\Protobuf\Timestamp $profile_last_generated - * The last time the profile was generated. - * @type string $table_data_profile - * The resource name of the table data profile. - * @type string $table_full_resource - * The resource name of the resource this column is within. - * @type string $dataset_project_id - * The Google Cloud project ID that owns the profiled resource. - * @type string $dataset_location - * If supported, the location where the dataset's data is stored. - * See https://cloud.google.com/bigquery/docs/locations for supported - * BigQuery locations. - * @type string $dataset_id - * The BigQuery dataset ID, if the resource profiled is a BigQuery table. - * @type string $table_id - * The table ID. - * @type string $column - * The name of the column. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * The sensitivity of this column. - * @type \Google\Cloud\Dlp\V2\DataRiskLevel $data_risk_level - * The data risk level for this column. - * @type \Google\Cloud\Dlp\V2\InfoTypeSummary $column_info_type - * If it's been determined this column can be identified as a single type, - * this will be set. Otherwise the column either has unidentifiable content - * or mixed types. - * @type \Google\Cloud\Dlp\V2\OtherInfoTypeSummary[] $other_matches - * Other types found within this column. List will be unordered. - * @type int $estimated_null_percentage - * Approximate percentage of entries being null in the column. - * @type int $estimated_uniqueness_score - * Approximate uniqueness of the column. - * @type float $free_text_score - * The likelihood that this column contains free-form text. - * A value close to 1 may indicate the column is likely to contain - * free-form or natural language text. - * Range in 0-1. - * @type int $column_type - * The data type of a given column. - * @type int $policy_state - * Indicates if a policy tag has been applied to the column. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The name of the profile. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the profile. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 17; - * @return \Google\Cloud\Dlp\V2\ProfileStatus|null - */ - public function getProfileStatus() - { - return $this->profile_status; - } - - public function hasProfileStatus() - { - return isset($this->profile_status); - } - - public function clearProfileStatus() - { - unset($this->profile_status); - } - - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 17; - * @param \Google\Cloud\Dlp\V2\ProfileStatus $var - * @return $this - */ - public function setProfileStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProfileStatus::class); - $this->profile_status = $var; - - return $this; - } - - /** - * State of a profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.State state = 18; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * State of a profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.State state = 18; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ColumnDataProfile\State::class); - $this->state = $var; - - return $this; - } - - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getProfileLastGenerated() - { - return $this->profile_last_generated; - } - - public function hasProfileLastGenerated() - { - return isset($this->profile_last_generated); - } - - public function clearProfileLastGenerated() - { - unset($this->profile_last_generated); - } - - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setProfileLastGenerated($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->profile_last_generated = $var; - - return $this; - } - - /** - * The resource name of the table data profile. - * - * Generated from protobuf field string table_data_profile = 4; - * @return string - */ - public function getTableDataProfile() - { - return $this->table_data_profile; - } - - /** - * The resource name of the table data profile. - * - * Generated from protobuf field string table_data_profile = 4; - * @param string $var - * @return $this - */ - public function setTableDataProfile($var) - { - GPBUtil::checkString($var, True); - $this->table_data_profile = $var; - - return $this; - } - - /** - * The resource name of the resource this column is within. - * - * Generated from protobuf field string table_full_resource = 5; - * @return string - */ - public function getTableFullResource() - { - return $this->table_full_resource; - } - - /** - * The resource name of the resource this column is within. - * - * Generated from protobuf field string table_full_resource = 5; - * @param string $var - * @return $this - */ - public function setTableFullResource($var) - { - GPBUtil::checkString($var, True); - $this->table_full_resource = $var; - - return $this; - } - - /** - * The Google Cloud project ID that owns the profiled resource. - * - * Generated from protobuf field string dataset_project_id = 19; - * @return string - */ - public function getDatasetProjectId() - { - return $this->dataset_project_id; - } - - /** - * The Google Cloud project ID that owns the profiled resource. - * - * Generated from protobuf field string dataset_project_id = 19; - * @param string $var - * @return $this - */ - public function setDatasetProjectId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_project_id = $var; - - return $this; - } - - /** - * If supported, the location where the dataset's data is stored. - * See https://cloud.google.com/bigquery/docs/locations for supported - * BigQuery locations. - * - * Generated from protobuf field string dataset_location = 20; - * @return string - */ - public function getDatasetLocation() - { - return $this->dataset_location; - } - - /** - * If supported, the location where the dataset's data is stored. - * See https://cloud.google.com/bigquery/docs/locations for supported - * BigQuery locations. - * - * Generated from protobuf field string dataset_location = 20; - * @param string $var - * @return $this - */ - public function setDatasetLocation($var) - { - GPBUtil::checkString($var, True); - $this->dataset_location = $var; - - return $this; - } - - /** - * The BigQuery dataset ID, if the resource profiled is a BigQuery table. - * - * Generated from protobuf field string dataset_id = 21; - * @return string - */ - public function getDatasetId() - { - return $this->dataset_id; - } - - /** - * The BigQuery dataset ID, if the resource profiled is a BigQuery table. - * - * Generated from protobuf field string dataset_id = 21; - * @param string $var - * @return $this - */ - public function setDatasetId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id = $var; - - return $this; - } - - /** - * The table ID. - * - * Generated from protobuf field string table_id = 22; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * The table ID. - * - * Generated from protobuf field string table_id = 22; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - - /** - * The name of the column. - * - * Generated from protobuf field string column = 6; - * @return string - */ - public function getColumn() - { - return $this->column; - } - - /** - * The name of the column. - * - * Generated from protobuf field string column = 6; - * @param string $var - * @return $this - */ - public function setColumn($var) - { - GPBUtil::checkString($var, True); - $this->column = $var; - - return $this; - } - - /** - * The sensitivity of this column. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 7; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->sensitivity_score; - } - - public function hasSensitivityScore() - { - return isset($this->sensitivity_score); - } - - public function clearSensitivityScore() - { - unset($this->sensitivity_score); - } - - /** - * The sensitivity of this column. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 7; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->sensitivity_score = $var; - - return $this; - } - - /** - * The data risk level for this column. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 8; - * @return \Google\Cloud\Dlp\V2\DataRiskLevel|null - */ - public function getDataRiskLevel() - { - return $this->data_risk_level; - } - - public function hasDataRiskLevel() - { - return isset($this->data_risk_level); - } - - public function clearDataRiskLevel() - { - unset($this->data_risk_level); - } - - /** - * The data risk level for this column. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 8; - * @param \Google\Cloud\Dlp\V2\DataRiskLevel $var - * @return $this - */ - public function setDataRiskLevel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataRiskLevel::class); - $this->data_risk_level = $var; - - return $this; - } - - /** - * If it's been determined this column can be identified as a single type, - * this will be set. Otherwise the column either has unidentifiable content - * or mixed types. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeSummary column_info_type = 9; - * @return \Google\Cloud\Dlp\V2\InfoTypeSummary|null - */ - public function getColumnInfoType() - { - return $this->column_info_type; - } - - public function hasColumnInfoType() - { - return isset($this->column_info_type); - } - - public function clearColumnInfoType() - { - unset($this->column_info_type); - } - - /** - * If it's been determined this column can be identified as a single type, - * this will be set. Otherwise the column either has unidentifiable content - * or mixed types. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeSummary column_info_type = 9; - * @param \Google\Cloud\Dlp\V2\InfoTypeSummary $var - * @return $this - */ - public function setColumnInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoTypeSummary::class); - $this->column_info_type = $var; - - return $this; - } - - /** - * Other types found within this column. List will be unordered. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_matches = 10; - * @return RepeatedField<\Google\Cloud\Dlp\V2\OtherInfoTypeSummary> - */ - public function getOtherMatches() - { - return $this->other_matches; - } - - /** - * Other types found within this column. List will be unordered. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_matches = 10; - * @param \Google\Cloud\Dlp\V2\OtherInfoTypeSummary[] $var - * @return $this - */ - public function setOtherMatches($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\OtherInfoTypeSummary::class); - $this->other_matches = $arr; - - return $this; - } - - /** - * Approximate percentage of entries being null in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.NullPercentageLevel estimated_null_percentage = 23; - * @return int - */ - public function getEstimatedNullPercentage() - { - return $this->estimated_null_percentage; - } - - /** - * Approximate percentage of entries being null in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.NullPercentageLevel estimated_null_percentage = 23; - * @param int $var - * @return $this - */ - public function setEstimatedNullPercentage($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\NullPercentageLevel::class); - $this->estimated_null_percentage = $var; - - return $this; - } - - /** - * Approximate uniqueness of the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.UniquenessScoreLevel estimated_uniqueness_score = 24; - * @return int - */ - public function getEstimatedUniquenessScore() - { - return $this->estimated_uniqueness_score; - } - - /** - * Approximate uniqueness of the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.UniquenessScoreLevel estimated_uniqueness_score = 24; - * @param int $var - * @return $this - */ - public function setEstimatedUniquenessScore($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\UniquenessScoreLevel::class); - $this->estimated_uniqueness_score = $var; - - return $this; - } - - /** - * The likelihood that this column contains free-form text. - * A value close to 1 may indicate the column is likely to contain - * free-form or natural language text. - * Range in 0-1. - * - * Generated from protobuf field double free_text_score = 13; - * @return float - */ - public function getFreeTextScore() - { - return $this->free_text_score; - } - - /** - * The likelihood that this column contains free-form text. - * A value close to 1 may indicate the column is likely to contain - * free-form or natural language text. - * Range in 0-1. - * - * Generated from protobuf field double free_text_score = 13; - * @param float $var - * @return $this - */ - public function setFreeTextScore($var) - { - GPBUtil::checkDouble($var); - $this->free_text_score = $var; - - return $this; - } - - /** - * The data type of a given column. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnDataType column_type = 14; - * @return int - */ - public function getColumnType() - { - return $this->column_type; - } - - /** - * The data type of a given column. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnDataType column_type = 14; - * @param int $var - * @return $this - */ - public function setColumnType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ColumnDataProfile\ColumnDataType::class); - $this->column_type = $var; - - return $this; - } - - /** - * Indicates if a policy tag has been applied to the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState policy_state = 15; - * @return int - */ - public function getPolicyState() - { - return $this->policy_state; - } - - /** - * Indicates if a policy tag has been applied to the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState policy_state = 15; - * @param int $var - * @return $this - */ - public function setPolicyState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ColumnDataProfile\ColumnPolicyState::class); - $this->policy_state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnDataType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnDataType.php deleted file mode 100644 index 3d9a60ec79c1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnDataType.php +++ /dev/null @@ -1,174 +0,0 @@ -google.privacy.dlp.v2.ColumnDataProfile.ColumnDataType - */ -class ColumnDataType -{ - /** - * Invalid type. - * - * Generated from protobuf enum COLUMN_DATA_TYPE_UNSPECIFIED = 0; - */ - const COLUMN_DATA_TYPE_UNSPECIFIED = 0; - /** - * Encoded as a string in decimal format. - * - * Generated from protobuf enum TYPE_INT64 = 1; - */ - const TYPE_INT64 = 1; - /** - * Encoded as a boolean "false" or "true". - * - * Generated from protobuf enum TYPE_BOOL = 2; - */ - const TYPE_BOOL = 2; - /** - * Encoded as a number, or string "NaN", "Infinity" or "-Infinity". - * - * Generated from protobuf enum TYPE_FLOAT64 = 3; - */ - const TYPE_FLOAT64 = 3; - /** - * Encoded as a string value. - * - * Generated from protobuf enum TYPE_STRING = 4; - */ - const TYPE_STRING = 4; - /** - * Encoded as a base64 string per RFC 4648, section 4. - * - * Generated from protobuf enum TYPE_BYTES = 5; - */ - const TYPE_BYTES = 5; - /** - * Encoded as an RFC 3339 timestamp with mandatory "Z" time zone string: - * 1985-04-12T23:20:50.52Z - * - * Generated from protobuf enum TYPE_TIMESTAMP = 6; - */ - const TYPE_TIMESTAMP = 6; - /** - * Encoded as RFC 3339 full-date format string: 1985-04-12 - * - * Generated from protobuf enum TYPE_DATE = 7; - */ - const TYPE_DATE = 7; - /** - * Encoded as RFC 3339 partial-time format string: 23:20:50.52 - * - * Generated from protobuf enum TYPE_TIME = 8; - */ - const TYPE_TIME = 8; - /** - * Encoded as RFC 3339 full-date "T" partial-time: 1985-04-12T23:20:50.52 - * - * Generated from protobuf enum TYPE_DATETIME = 9; - */ - const TYPE_DATETIME = 9; - /** - * Encoded as WKT - * - * Generated from protobuf enum TYPE_GEOGRAPHY = 10; - */ - const TYPE_GEOGRAPHY = 10; - /** - * Encoded as a decimal string. - * - * Generated from protobuf enum TYPE_NUMERIC = 11; - */ - const TYPE_NUMERIC = 11; - /** - * Container of ordered fields, each with a type and field name. - * - * Generated from protobuf enum TYPE_RECORD = 12; - */ - const TYPE_RECORD = 12; - /** - * Decimal type. - * - * Generated from protobuf enum TYPE_BIGNUMERIC = 13; - */ - const TYPE_BIGNUMERIC = 13; - /** - * Json type. - * - * Generated from protobuf enum TYPE_JSON = 14; - */ - const TYPE_JSON = 14; - /** - * Interval type. - * - * Generated from protobuf enum TYPE_INTERVAL = 15; - */ - const TYPE_INTERVAL = 15; - /** - * `Range` type. - * - * Generated from protobuf enum TYPE_RANGE_DATE = 16; - */ - const TYPE_RANGE_DATE = 16; - /** - * `Range` type. - * - * Generated from protobuf enum TYPE_RANGE_DATETIME = 17; - */ - const TYPE_RANGE_DATETIME = 17; - /** - * `Range` type. - * - * Generated from protobuf enum TYPE_RANGE_TIMESTAMP = 18; - */ - const TYPE_RANGE_TIMESTAMP = 18; - - private static $valueToName = [ - self::COLUMN_DATA_TYPE_UNSPECIFIED => 'COLUMN_DATA_TYPE_UNSPECIFIED', - self::TYPE_INT64 => 'TYPE_INT64', - self::TYPE_BOOL => 'TYPE_BOOL', - self::TYPE_FLOAT64 => 'TYPE_FLOAT64', - self::TYPE_STRING => 'TYPE_STRING', - self::TYPE_BYTES => 'TYPE_BYTES', - self::TYPE_TIMESTAMP => 'TYPE_TIMESTAMP', - self::TYPE_DATE => 'TYPE_DATE', - self::TYPE_TIME => 'TYPE_TIME', - self::TYPE_DATETIME => 'TYPE_DATETIME', - self::TYPE_GEOGRAPHY => 'TYPE_GEOGRAPHY', - self::TYPE_NUMERIC => 'TYPE_NUMERIC', - self::TYPE_RECORD => 'TYPE_RECORD', - self::TYPE_BIGNUMERIC => 'TYPE_BIGNUMERIC', - self::TYPE_JSON => 'TYPE_JSON', - self::TYPE_INTERVAL => 'TYPE_INTERVAL', - self::TYPE_RANGE_DATE => 'TYPE_RANGE_DATE', - self::TYPE_RANGE_DATETIME => 'TYPE_RANGE_DATETIME', - self::TYPE_RANGE_TIMESTAMP => 'TYPE_RANGE_TIMESTAMP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnPolicyState.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnPolicyState.php deleted file mode 100644 index b68e10b4fa28..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnPolicyState.php +++ /dev/null @@ -1,54 +0,0 @@ -google.privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState - */ -class ColumnPolicyState -{ - /** - * No policy tags. - * - * Generated from protobuf enum COLUMN_POLICY_STATE_UNSPECIFIED = 0; - */ - const COLUMN_POLICY_STATE_UNSPECIFIED = 0; - /** - * Column has policy tag applied. - * - * Generated from protobuf enum COLUMN_POLICY_TAGGED = 1; - */ - const COLUMN_POLICY_TAGGED = 1; - - private static $valueToName = [ - self::COLUMN_POLICY_STATE_UNSPECIFIED => 'COLUMN_POLICY_STATE_UNSPECIFIED', - self::COLUMN_POLICY_TAGGED => 'COLUMN_POLICY_TAGGED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/State.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/State.php deleted file mode 100644 index 3be19c1c6bb2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/State.php +++ /dev/null @@ -1,64 +0,0 @@ -google.privacy.dlp.v2.ColumnDataProfile.State - */ -class State -{ - /** - * Unused. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The profile is currently running. Once a profile has finished it will - * transition to DONE. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The profile is no longer generating. - * If profile_status.status.code is 0, the profile succeeded, otherwise, it - * failed. - * - * Generated from protobuf enum DONE = 2; - */ - const DONE = 2; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::DONE => 'DONE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Connection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Connection.php deleted file mode 100644 index 30ef40719f85..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Connection.php +++ /dev/null @@ -1,186 +0,0 @@ -google.privacy.dlp.v2.Connection - */ -class Connection extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Name of the connection: - * `projects/{project}/locations/{location}/connections/{name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The connection's state in its lifecycle. - * - * Generated from protobuf field .google.privacy.dlp.v2.ConnectionState state = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $state = 0; - /** - * Output only. Set if status == ERROR, to provide additional details. Will - * store the last 10 errors sorted with the most recent first. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $errors; - protected $properties; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Name of the connection: - * `projects/{project}/locations/{location}/connections/{name}`. - * @type int $state - * Required. The connection's state in its lifecycle. - * @type \Google\Cloud\Dlp\V2\Error[] $errors - * Output only. Set if status == ERROR, to provide additional details. Will - * store the last 10 errors sorted with the most recent first. - * @type \Google\Cloud\Dlp\V2\CloudSqlProperties $cloud_sql - * Connect to a Cloud SQL instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Name of the connection: - * `projects/{project}/locations/{location}/connections/{name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Name of the connection: - * `projects/{project}/locations/{location}/connections/{name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The connection's state in its lifecycle. - * - * Generated from protobuf field .google.privacy.dlp.v2.ConnectionState state = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Required. The connection's state in its lifecycle. - * - * Generated from protobuf field .google.privacy.dlp.v2.ConnectionState state = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ConnectionState::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Set if status == ERROR, to provide additional details. Will - * store the last 10 errors sorted with the most recent first. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Error> - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Output only. Set if status == ERROR, to provide additional details. Will - * store the last 10 errors sorted with the most recent first. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dlp\V2\Error[] $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); - $this->errors = $arr; - - return $this; - } - - /** - * Connect to a Cloud SQL instance. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4; - * @return \Google\Cloud\Dlp\V2\CloudSqlProperties|null - */ - public function getCloudSql() - { - return $this->readOneof(4); - } - - public function hasCloudSql() - { - return $this->hasOneof(4); - } - - /** - * Connect to a Cloud SQL instance. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4; - * @param \Google\Cloud\Dlp\V2\CloudSqlProperties $var - * @return $this - */ - public function setCloudSql($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudSqlProperties::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getProperties() - { - return $this->whichOneof("properties"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ConnectionState.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ConnectionState.php deleted file mode 100644 index a3ce7181d724..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ConnectionState.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.ConnectionState - */ -class ConnectionState -{ - /** - * Unused - * - * Generated from protobuf enum CONNECTION_STATE_UNSPECIFIED = 0; - */ - const CONNECTION_STATE_UNSPECIFIED = 0; - /** - * The DLP API automatically created this connection during an initial scan, - * and it is awaiting full configuration by a user. - * - * Generated from protobuf enum MISSING_CREDENTIALS = 1; - */ - const MISSING_CREDENTIALS = 1; - /** - * A configured connection that has not encountered any errors. - * - * Generated from protobuf enum AVAILABLE = 2; - */ - const AVAILABLE = 2; - /** - * A configured connection that encountered errors during its last use. It - * will not be used again until it is set to AVAILABLE. - * If the resolution requires external action, then the client must send a - * request to set the status to AVAILABLE when the connection is ready for - * use. If the resolution doesn't require external action, then any changes to - * the connection properties will automatically mark it as AVAILABLE. - * - * Generated from protobuf enum ERROR = 3; - */ - const ERROR = 3; - - private static $valueToName = [ - self::CONNECTION_STATE_UNSPECIFIED => 'CONNECTION_STATE_UNSPECIFIED', - self::MISSING_CREDENTIALS => 'MISSING_CREDENTIALS', - self::AVAILABLE => 'AVAILABLE', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Container.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Container.php deleted file mode 100644 index 8df32079291c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Container.php +++ /dev/null @@ -1,354 +0,0 @@ -google.privacy.dlp.v2.Container - */ -class Container extends \Google\Protobuf\Internal\Message -{ - /** - * Container type, for example BigQuery or Cloud Storage. - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * Project where the finding was found. - * Can be different from the project that owns the finding. - * - * Generated from protobuf field string project_id = 2; - */ - protected $project_id = ''; - /** - * A string representation of the full container name. - * Examples: - * - BigQuery: 'Project:DataSetId.TableId' - * - Cloud Storage: 'gs://Bucket/folders/filename.txt' - * - * Generated from protobuf field string full_path = 3; - */ - protected $full_path = ''; - /** - * The root of the container. - * Examples: - * - For BigQuery table `project_id:dataset_id.table_id`, the root is - * `dataset_id` - * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root - * is `gs://bucket` - * - * Generated from protobuf field string root_path = 4; - */ - protected $root_path = ''; - /** - * The rest of the path after the root. - * Examples: - * - For BigQuery table `project_id:dataset_id.table_id`, the relative path is - * `table_id` - * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative - * path is `folder/filename.txt` - * - * Generated from protobuf field string relative_path = 5; - */ - protected $relative_path = ''; - /** - * Findings container modification timestamp, if applicable. For Cloud - * Storage, this field contains the last file modification timestamp. For a - * BigQuery table, this field contains the last_modified_time property. For - * Datastore, this field isn't populated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; - */ - protected $update_time = null; - /** - * Findings container version, if available - * ("generation" for Cloud Storage). - * - * Generated from protobuf field string version = 7; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * Container type, for example BigQuery or Cloud Storage. - * @type string $project_id - * Project where the finding was found. - * Can be different from the project that owns the finding. - * @type string $full_path - * A string representation of the full container name. - * Examples: - * - BigQuery: 'Project:DataSetId.TableId' - * - Cloud Storage: 'gs://Bucket/folders/filename.txt' - * @type string $root_path - * The root of the container. - * Examples: - * - For BigQuery table `project_id:dataset_id.table_id`, the root is - * `dataset_id` - * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root - * is `gs://bucket` - * @type string $relative_path - * The rest of the path after the root. - * Examples: - * - For BigQuery table `project_id:dataset_id.table_id`, the relative path is - * `table_id` - * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative - * path is `folder/filename.txt` - * @type \Google\Protobuf\Timestamp $update_time - * Findings container modification timestamp, if applicable. For Cloud - * Storage, this field contains the last file modification timestamp. For a - * BigQuery table, this field contains the last_modified_time property. For - * Datastore, this field isn't populated. - * @type string $version - * Findings container version, if available - * ("generation" for Cloud Storage). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Container type, for example BigQuery or Cloud Storage. - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Container type, for example BigQuery or Cloud Storage. - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Project where the finding was found. - * Can be different from the project that owns the finding. - * - * Generated from protobuf field string project_id = 2; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Project where the finding was found. - * Can be different from the project that owns the finding. - * - * Generated from protobuf field string project_id = 2; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * A string representation of the full container name. - * Examples: - * - BigQuery: 'Project:DataSetId.TableId' - * - Cloud Storage: 'gs://Bucket/folders/filename.txt' - * - * Generated from protobuf field string full_path = 3; - * @return string - */ - public function getFullPath() - { - return $this->full_path; - } - - /** - * A string representation of the full container name. - * Examples: - * - BigQuery: 'Project:DataSetId.TableId' - * - Cloud Storage: 'gs://Bucket/folders/filename.txt' - * - * Generated from protobuf field string full_path = 3; - * @param string $var - * @return $this - */ - public function setFullPath($var) - { - GPBUtil::checkString($var, True); - $this->full_path = $var; - - return $this; - } - - /** - * The root of the container. - * Examples: - * - For BigQuery table `project_id:dataset_id.table_id`, the root is - * `dataset_id` - * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root - * is `gs://bucket` - * - * Generated from protobuf field string root_path = 4; - * @return string - */ - public function getRootPath() - { - return $this->root_path; - } - - /** - * The root of the container. - * Examples: - * - For BigQuery table `project_id:dataset_id.table_id`, the root is - * `dataset_id` - * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root - * is `gs://bucket` - * - * Generated from protobuf field string root_path = 4; - * @param string $var - * @return $this - */ - public function setRootPath($var) - { - GPBUtil::checkString($var, True); - $this->root_path = $var; - - return $this; - } - - /** - * The rest of the path after the root. - * Examples: - * - For BigQuery table `project_id:dataset_id.table_id`, the relative path is - * `table_id` - * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative - * path is `folder/filename.txt` - * - * Generated from protobuf field string relative_path = 5; - * @return string - */ - public function getRelativePath() - { - return $this->relative_path; - } - - /** - * The rest of the path after the root. - * Examples: - * - For BigQuery table `project_id:dataset_id.table_id`, the relative path is - * `table_id` - * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative - * path is `folder/filename.txt` - * - * Generated from protobuf field string relative_path = 5; - * @param string $var - * @return $this - */ - public function setRelativePath($var) - { - GPBUtil::checkString($var, True); - $this->relative_path = $var; - - return $this; - } - - /** - * Findings container modification timestamp, if applicable. For Cloud - * Storage, this field contains the last file modification timestamp. For a - * BigQuery table, this field contains the last_modified_time property. For - * Datastore, this field isn't populated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Findings container modification timestamp, if applicable. For Cloud - * Storage, this field contains the last file modification timestamp. For a - * BigQuery table, this field contains the last_modified_time property. For - * Datastore, this field isn't populated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Findings container version, if available - * ("generation" for Cloud Storage). - * - * Generated from protobuf field string version = 7; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Findings container version, if available - * ("generation" for Cloud Storage). - * - * Generated from protobuf field string version = 7; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentItem.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentItem.php deleted file mode 100644 index fc1b431347ee..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentItem.php +++ /dev/null @@ -1,191 +0,0 @@ -google.privacy.dlp.v2.ContentItem - */ -class ContentItem extends \Google\Protobuf\Internal\Message -{ - /** - * User provided metadata for the content. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentMetadata content_metadata = 6; - */ - protected $content_metadata = null; - protected $data_item; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * String data to inspect or redact. - * @type \Google\Cloud\Dlp\V2\Table $table - * Structured content for inspection. See - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table - * to learn more. - * @type \Google\Cloud\Dlp\V2\ByteContentItem $byte_item - * Content data to inspect or redact. Replaces `type` and `data`. - * @type \Google\Cloud\Dlp\V2\ContentMetadata $content_metadata - * User provided metadata for the content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * String data to inspect or redact. - * - * Generated from protobuf field string value = 3; - * @return string - */ - public function getValue() - { - return $this->readOneof(3); - } - - public function hasValue() - { - return $this->hasOneof(3); - } - - /** - * String data to inspect or redact. - * - * Generated from protobuf field string value = 3; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Structured content for inspection. See - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table - * to learn more. - * - * Generated from protobuf field .google.privacy.dlp.v2.Table table = 4; - * @return \Google\Cloud\Dlp\V2\Table|null - */ - public function getTable() - { - return $this->readOneof(4); - } - - public function hasTable() - { - return $this->hasOneof(4); - } - - /** - * Structured content for inspection. See - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table - * to learn more. - * - * Generated from protobuf field .google.privacy.dlp.v2.Table table = 4; - * @param \Google\Cloud\Dlp\V2\Table $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Table::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Content data to inspect or redact. Replaces `type` and `data`. - * - * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem byte_item = 5; - * @return \Google\Cloud\Dlp\V2\ByteContentItem|null - */ - public function getByteItem() - { - return $this->readOneof(5); - } - - public function hasByteItem() - { - return $this->hasOneof(5); - } - - /** - * Content data to inspect or redact. Replaces `type` and `data`. - * - * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem byte_item = 5; - * @param \Google\Cloud\Dlp\V2\ByteContentItem $var - * @return $this - */ - public function setByteItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ByteContentItem::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * User provided metadata for the content. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentMetadata content_metadata = 6; - * @return \Google\Cloud\Dlp\V2\ContentMetadata|null - */ - public function getContentMetadata() - { - return $this->content_metadata; - } - - public function hasContentMetadata() - { - return isset($this->content_metadata); - } - - public function clearContentMetadata() - { - unset($this->content_metadata); - } - - /** - * User provided metadata for the content. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentMetadata content_metadata = 6; - * @param \Google\Cloud\Dlp\V2\ContentMetadata $var - * @return $this - */ - public function setContentMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentMetadata::class); - $this->content_metadata = $var; - - return $this; - } - - /** - * @return string - */ - public function getDataItem() - { - return $this->whichOneof("data_item"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentLocation.php deleted file mode 100644 index faa125d4a0ac..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentLocation.php +++ /dev/null @@ -1,331 +0,0 @@ -google.privacy.dlp.v2.ContentLocation - */ -class ContentLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the container where the finding is located. - * The top level name is the source file name or table name. Names of some - * common storage containers are formatted as follows: - * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` - * * Cloud Storage files: `gs://{bucket}/{path}` - * * Datastore namespace: {namespace} - * Nested names could be absent if the embedded object has no string - * identifier (for example, an image contained within a document). - * - * Generated from protobuf field string container_name = 1; - */ - protected $container_name = ''; - /** - * Finding container modification timestamp, if applicable. For Cloud Storage, - * this field contains the last file modification timestamp. For a BigQuery - * table, this field contains the last_modified_time property. For Datastore, - * this field isn't populated. - * - * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 6; - */ - protected $container_timestamp = null; - /** - * Finding container version, if available - * ("generation" for Cloud Storage). - * - * Generated from protobuf field string container_version = 7; - */ - protected $container_version = ''; - protected $location; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $container_name - * Name of the container where the finding is located. - * The top level name is the source file name or table name. Names of some - * common storage containers are formatted as follows: - * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` - * * Cloud Storage files: `gs://{bucket}/{path}` - * * Datastore namespace: {namespace} - * Nested names could be absent if the embedded object has no string - * identifier (for example, an image contained within a document). - * @type \Google\Cloud\Dlp\V2\RecordLocation $record_location - * Location within a row or record of a database table. - * @type \Google\Cloud\Dlp\V2\ImageLocation $image_location - * Location within an image's pixels. - * @type \Google\Cloud\Dlp\V2\DocumentLocation $document_location - * Location data for document files. - * @type \Google\Cloud\Dlp\V2\MetadataLocation $metadata_location - * Location within the metadata for inspected content. - * @type \Google\Protobuf\Timestamp $container_timestamp - * Finding container modification timestamp, if applicable. For Cloud Storage, - * this field contains the last file modification timestamp. For a BigQuery - * table, this field contains the last_modified_time property. For Datastore, - * this field isn't populated. - * @type string $container_version - * Finding container version, if available - * ("generation" for Cloud Storage). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Name of the container where the finding is located. - * The top level name is the source file name or table name. Names of some - * common storage containers are formatted as follows: - * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` - * * Cloud Storage files: `gs://{bucket}/{path}` - * * Datastore namespace: {namespace} - * Nested names could be absent if the embedded object has no string - * identifier (for example, an image contained within a document). - * - * Generated from protobuf field string container_name = 1; - * @return string - */ - public function getContainerName() - { - return $this->container_name; - } - - /** - * Name of the container where the finding is located. - * The top level name is the source file name or table name. Names of some - * common storage containers are formatted as follows: - * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` - * * Cloud Storage files: `gs://{bucket}/{path}` - * * Datastore namespace: {namespace} - * Nested names could be absent if the embedded object has no string - * identifier (for example, an image contained within a document). - * - * Generated from protobuf field string container_name = 1; - * @param string $var - * @return $this - */ - public function setContainerName($var) - { - GPBUtil::checkString($var, True); - $this->container_name = $var; - - return $this; - } - - /** - * Location within a row or record of a database table. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordLocation record_location = 2; - * @return \Google\Cloud\Dlp\V2\RecordLocation|null - */ - public function getRecordLocation() - { - return $this->readOneof(2); - } - - public function hasRecordLocation() - { - return $this->hasOneof(2); - } - - /** - * Location within a row or record of a database table. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordLocation record_location = 2; - * @param \Google\Cloud\Dlp\V2\RecordLocation $var - * @return $this - */ - public function setRecordLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordLocation::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Location within an image's pixels. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageLocation image_location = 3; - * @return \Google\Cloud\Dlp\V2\ImageLocation|null - */ - public function getImageLocation() - { - return $this->readOneof(3); - } - - public function hasImageLocation() - { - return $this->hasOneof(3); - } - - /** - * Location within an image's pixels. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageLocation image_location = 3; - * @param \Google\Cloud\Dlp\V2\ImageLocation $var - * @return $this - */ - public function setImageLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageLocation::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Location data for document files. - * - * Generated from protobuf field .google.privacy.dlp.v2.DocumentLocation document_location = 5; - * @return \Google\Cloud\Dlp\V2\DocumentLocation|null - */ - public function getDocumentLocation() - { - return $this->readOneof(5); - } - - public function hasDocumentLocation() - { - return $this->hasOneof(5); - } - - /** - * Location data for document files. - * - * Generated from protobuf field .google.privacy.dlp.v2.DocumentLocation document_location = 5; - * @param \Google\Cloud\Dlp\V2\DocumentLocation $var - * @return $this - */ - public function setDocumentLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DocumentLocation::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Location within the metadata for inspected content. - * - * Generated from protobuf field .google.privacy.dlp.v2.MetadataLocation metadata_location = 8; - * @return \Google\Cloud\Dlp\V2\MetadataLocation|null - */ - public function getMetadataLocation() - { - return $this->readOneof(8); - } - - public function hasMetadataLocation() - { - return $this->hasOneof(8); - } - - /** - * Location within the metadata for inspected content. - * - * Generated from protobuf field .google.privacy.dlp.v2.MetadataLocation metadata_location = 8; - * @param \Google\Cloud\Dlp\V2\MetadataLocation $var - * @return $this - */ - public function setMetadataLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\MetadataLocation::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Finding container modification timestamp, if applicable. For Cloud Storage, - * this field contains the last file modification timestamp. For a BigQuery - * table, this field contains the last_modified_time property. For Datastore, - * this field isn't populated. - * - * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getContainerTimestamp() - { - return $this->container_timestamp; - } - - public function hasContainerTimestamp() - { - return isset($this->container_timestamp); - } - - public function clearContainerTimestamp() - { - unset($this->container_timestamp); - } - - /** - * Finding container modification timestamp, if applicable. For Cloud Storage, - * this field contains the last file modification timestamp. For a BigQuery - * table, this field contains the last_modified_time property. For Datastore, - * this field isn't populated. - * - * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setContainerTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->container_timestamp = $var; - - return $this; - } - - /** - * Finding container version, if available - * ("generation" for Cloud Storage). - * - * Generated from protobuf field string container_version = 7; - * @return string - */ - public function getContainerVersion() - { - return $this->container_version; - } - - /** - * Finding container version, if available - * ("generation" for Cloud Storage). - * - * Generated from protobuf field string container_version = 7; - * @param string $var - * @return $this - */ - public function setContainerVersion($var) - { - GPBUtil::checkString($var, True); - $this->container_version = $var; - - return $this; - } - - /** - * @return string - */ - public function getLocation() - { - return $this->whichOneof("location"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentOption.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentOption.php deleted file mode 100644 index 69a85fe92312..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentOption.php +++ /dev/null @@ -1,61 +0,0 @@ -google.privacy.dlp.v2.ContentOption - */ -class ContentOption -{ - /** - * Includes entire content of a file or a data stream. - * - * Generated from protobuf enum CONTENT_UNSPECIFIED = 0; - */ - const CONTENT_UNSPECIFIED = 0; - /** - * Text content within the data, excluding any metadata. - * - * Generated from protobuf enum CONTENT_TEXT = 1; - */ - const CONTENT_TEXT = 1; - /** - * Images found in the data. - * - * Generated from protobuf enum CONTENT_IMAGE = 2; - */ - const CONTENT_IMAGE = 2; - - private static $valueToName = [ - self::CONTENT_UNSPECIFIED => 'CONTENT_UNSPECIFIED', - self::CONTENT_TEXT => 'CONTENT_TEXT', - self::CONTENT_IMAGE => 'CONTENT_IMAGE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateConnectionRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateConnectionRequest.php deleted file mode 100644 index 5ea388269fd3..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateConnectionRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.privacy.dlp.v2.CreateConnectionRequest - */ -class CreateConnectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization): - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The connection resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $connection = null; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on the scope of the request - * (project or organization): - * - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\Connection $connection Required. The connection resource. - * - * @return \Google\Cloud\Dlp\V2\CreateConnectionRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dlp\V2\Connection $connection): self - { - return (new self()) - ->setParent($parent) - ->setConnection($connection); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization): - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * @type \Google\Cloud\Dlp\V2\Connection $connection - * Required. The connection resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization): - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization): - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The connection resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\Connection|null - */ - public function getConnection() - { - return $this->connection; - } - - public function hasConnection() - { - return isset($this->connection); - } - - public function clearConnection() - { - unset($this->connection); - } - - /** - * Required. The connection resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\Connection $var - * @return $this - */ - public function setConnection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Connection::class); - $this->connection = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDeidentifyTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDeidentifyTemplateRequest.php deleted file mode 100644 index d1818024b004..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDeidentifyTemplateRequest.php +++ /dev/null @@ -1,286 +0,0 @@ -google.privacy.dlp.v2.CreateDeidentifyTemplateRequest - */ -class CreateDeidentifyTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The DeidentifyTemplate to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $deidentify_template = null; - /** - * The template id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string template_id = 3; - */ - protected $template_id = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentifyTemplate Required. The DeidentifyTemplate to create. - * - * @return \Google\Cloud\Dlp\V2\CreateDeidentifyTemplateRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentifyTemplate): self - { - return (new self()) - ->setParent($parent) - ->setDeidentifyTemplate($deidentifyTemplate); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentify_template - * Required. The DeidentifyTemplate to create. - * @type string $template_id - * The template id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The DeidentifyTemplate to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\DeidentifyTemplate|null - */ - public function getDeidentifyTemplate() - { - return $this->deidentify_template; - } - - public function hasDeidentifyTemplate() - { - return isset($this->deidentify_template); - } - - public function clearDeidentifyTemplate() - { - unset($this->deidentify_template); - } - - /** - * Required. The DeidentifyTemplate to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $var - * @return $this - */ - public function setDeidentifyTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); - $this->deidentify_template = $var; - - return $this; - } - - /** - * The template id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string template_id = 3; - * @return string - */ - public function getTemplateId() - { - return $this->template_id; - } - - /** - * The template id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string template_id = 3; - * @param string $var - * @return $this - */ - public function setTemplateId($var) - { - GPBUtil::checkString($var, True); - $this->template_id = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDiscoveryConfigRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDiscoveryConfigRequest.php deleted file mode 100644 index 8aa1707eddc2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDiscoveryConfigRequest.php +++ /dev/null @@ -1,227 +0,0 @@ -google.privacy.dlp.v2.CreateDiscoveryConfigRequest - */ -class CreateDiscoveryConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization): - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The DiscoveryConfig to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $discovery_config = null; - /** - * The config ID can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string config_id = 3; - */ - protected $config_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on the scope of the request - * (project or organization): - * - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\DiscoveryConfig $discoveryConfig Required. The DiscoveryConfig to create. - * - * @return \Google\Cloud\Dlp\V2\CreateDiscoveryConfigRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dlp\V2\DiscoveryConfig $discoveryConfig): self - { - return (new self()) - ->setParent($parent) - ->setDiscoveryConfig($discoveryConfig); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization): - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\DiscoveryConfig $discovery_config - * Required. The DiscoveryConfig to create. - * @type string $config_id - * The config ID can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization): - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization): - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The DiscoveryConfig to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\DiscoveryConfig|null - */ - public function getDiscoveryConfig() - { - return $this->discovery_config; - } - - public function hasDiscoveryConfig() - { - return isset($this->discovery_config); - } - - public function clearDiscoveryConfig() - { - unset($this->discovery_config); - } - - /** - * Required. The DiscoveryConfig to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\DiscoveryConfig $var - * @return $this - */ - public function setDiscoveryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryConfig::class); - $this->discovery_config = $var; - - return $this; - } - - /** - * The config ID can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string config_id = 3; - * @return string - */ - public function getConfigId() - { - return $this->config_id; - } - - /** - * The config ID can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string config_id = 3; - * @param string $var - * @return $this - */ - public function setConfigId($var) - { - GPBUtil::checkString($var, True); - $this->config_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDlpJobRequest.php deleted file mode 100644 index 4213921e762a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDlpJobRequest.php +++ /dev/null @@ -1,334 +0,0 @@ -google.privacy.dlp.v2.CreateDlpJobRequest - */ -class CreateDlpJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The job id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string job_id = 4; - */ - protected $job_id = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - */ - protected $location_id = ''; - protected $job; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::projectName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\InspectJobConfig $inspectJob An inspection job scans a storage repository for InfoTypes. - * - * @return \Google\Cloud\Dlp\V2\CreateDlpJobRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dlp\V2\InspectJobConfig $inspectJob): self - { - return (new self()) - ->setParent($parent) - ->setInspectJob($inspectJob); - } - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::projectName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $riskJob A risk analysis job calculates re-identification risk metrics for a - * BigQuery table. - * - * @return \Google\Cloud\Dlp\V2\CreateDlpJobRequest - * - * @experimental - */ - public static function buildFromParentRiskJob(string $parent, \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $riskJob): self - { - return (new self()) - ->setParent($parent) - ->setRiskJob($riskJob); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\InspectJobConfig $inspect_job - * An inspection job scans a storage repository for InfoTypes. - * @type \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $risk_job - * A risk analysis job calculates re-identification risk metrics for a - * BigQuery table. - * @type string $job_id - * The job id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * An inspection job scans a storage repository for InfoTypes. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig inspect_job = 2; - * @return \Google\Cloud\Dlp\V2\InspectJobConfig|null - */ - public function getInspectJob() - { - return $this->readOneof(2); - } - - public function hasInspectJob() - { - return $this->hasOneof(2); - } - - /** - * An inspection job scans a storage repository for InfoTypes. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig inspect_job = 2; - * @param \Google\Cloud\Dlp\V2\InspectJobConfig $var - * @return $this - */ - public function setInspectJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectJobConfig::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A risk analysis job calculates re-identification risk metrics for a - * BigQuery table. - * - * Generated from protobuf field .google.privacy.dlp.v2.RiskAnalysisJobConfig risk_job = 3; - * @return \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig|null - */ - public function getRiskJob() - { - return $this->readOneof(3); - } - - public function hasRiskJob() - { - return $this->hasOneof(3); - } - - /** - * A risk analysis job calculates re-identification risk metrics for a - * BigQuery table. - * - * Generated from protobuf field .google.privacy.dlp.v2.RiskAnalysisJobConfig risk_job = 3; - * @param \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $var - * @return $this - */ - public function setRiskJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The job id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string job_id = 4; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * The job id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string job_id = 4; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - - /** - * @return string - */ - public function getJob() - { - return $this->whichOneof("job"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateInspectTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateInspectTemplateRequest.php deleted file mode 100644 index e14fdfdd9a87..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateInspectTemplateRequest.php +++ /dev/null @@ -1,286 +0,0 @@ -google.privacy.dlp.v2.CreateInspectTemplateRequest - */ -class CreateInspectTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The InspectTemplate to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $inspect_template = null; - /** - * The template id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string template_id = 3; - */ - protected $template_id = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\InspectTemplate $inspectTemplate Required. The InspectTemplate to create. - * - * @return \Google\Cloud\Dlp\V2\CreateInspectTemplateRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dlp\V2\InspectTemplate $inspectTemplate): self - { - return (new self()) - ->setParent($parent) - ->setInspectTemplate($inspectTemplate); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\InspectTemplate $inspect_template - * Required. The InspectTemplate to create. - * @type string $template_id - * The template id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The InspectTemplate to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\InspectTemplate|null - */ - public function getInspectTemplate() - { - return $this->inspect_template; - } - - public function hasInspectTemplate() - { - return isset($this->inspect_template); - } - - public function clearInspectTemplate() - { - unset($this->inspect_template); - } - - /** - * Required. The InspectTemplate to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\InspectTemplate $var - * @return $this - */ - public function setInspectTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectTemplate::class); - $this->inspect_template = $var; - - return $this; - } - - /** - * The template id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string template_id = 3; - * @return string - */ - public function getTemplateId() - { - return $this->template_id; - } - - /** - * The template id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string template_id = 3; - * @param string $var - * @return $this - */ - public function setTemplateId($var) - { - GPBUtil::checkString($var, True); - $this->template_id = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateJobTriggerRequest.php deleted file mode 100644 index fd79719e7dfd..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateJobTriggerRequest.php +++ /dev/null @@ -1,266 +0,0 @@ -google.privacy.dlp.v2.CreateJobTriggerRequest - */ -class CreateJobTriggerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The JobTrigger to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $job_trigger = null; - /** - * The trigger id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string trigger_id = 3; - */ - protected $trigger_id = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::projectName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\JobTrigger $jobTrigger Required. The JobTrigger to create. - * - * @return \Google\Cloud\Dlp\V2\CreateJobTriggerRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dlp\V2\JobTrigger $jobTrigger): self - { - return (new self()) - ->setParent($parent) - ->setJobTrigger($jobTrigger); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\JobTrigger $job_trigger - * Required. The JobTrigger to create. - * @type string $trigger_id - * The trigger id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The JobTrigger to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\JobTrigger|null - */ - public function getJobTrigger() - { - return $this->job_trigger; - } - - public function hasJobTrigger() - { - return isset($this->job_trigger); - } - - public function clearJobTrigger() - { - unset($this->job_trigger); - } - - /** - * Required. The JobTrigger to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\JobTrigger $var - * @return $this - */ - public function setJobTrigger($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\JobTrigger::class); - $this->job_trigger = $var; - - return $this; - } - - /** - * The trigger id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string trigger_id = 3; - * @return string - */ - public function getTriggerId() - { - return $this->trigger_id; - } - - /** - * The trigger id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string trigger_id = 3; - * @param string $var - * @return $this - */ - public function setTriggerId($var) - { - GPBUtil::checkString($var, True); - $this->trigger_id = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateStoredInfoTypeRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateStoredInfoTypeRequest.php deleted file mode 100644 index c8c4308219c4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateStoredInfoTypeRequest.php +++ /dev/null @@ -1,286 +0,0 @@ -google.privacy.dlp.v2.CreateStoredInfoTypeRequest - */ -class CreateStoredInfoTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Configuration of the storedInfoType to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $config = null; - /** - * The storedInfoType ID can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string stored_info_type_id = 3; - */ - protected $stored_info_type_id = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config Required. Configuration of the storedInfoType to create. - * - * @return \Google\Cloud\Dlp\V2\CreateStoredInfoTypeRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config): self - { - return (new self()) - ->setParent($parent) - ->setConfig($config); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config - * Required. Configuration of the storedInfoType to create. - * @type string $stored_info_type_id - * The storedInfoType ID can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Configuration of the storedInfoType to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\StoredInfoTypeConfig|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * Required. Configuration of the storedInfoType to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredInfoTypeConfig::class); - $this->config = $var; - - return $this; - } - - /** - * The storedInfoType ID can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string stored_info_type_id = 3; - * @return string - */ - public function getStoredInfoTypeId() - { - return $this->stored_info_type_id; - } - - /** - * The storedInfoType ID can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string stored_info_type_id = 3; - * @param string $var - * @return $this - */ - public function setStoredInfoTypeId($var) - { - GPBUtil::checkString($var, True); - $this->stored_info_type_id = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoDeterministicConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoDeterministicConfig.php deleted file mode 100644 index 728308302b55..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoDeterministicConfig.php +++ /dev/null @@ -1,327 +0,0 @@ -google.privacy.dlp.v2.CryptoDeterministicConfig - */ -class CryptoDeterministicConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The key used by the encryption function. For deterministic encryption - * using AES-SIV, the provided key is internally expanded to 64 bytes prior to - * use. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; - */ - protected $crypto_key = null; - /** - * The custom info type to annotate the surrogate with. - * This annotation will be applied to the surrogate by prefixing it with - * the name of the custom info type followed by the number of - * characters comprising the surrogate. The following scheme defines the - * format: {info type name}({surrogate character count}):{surrogate} - * For example, if the name of custom info type is 'MY_TOKEN_INFO_TYPE' and - * the surrogate is 'abc', the full replacement value - * will be: 'MY_TOKEN_INFO_TYPE(3):abc' - * This annotation identifies the surrogate when inspecting content using the - * custom info type 'Surrogate'. This facilitates reversal of the - * surrogate when it occurs in free text. - * Note: For record transformations where the entire cell in a table is being - * transformed, surrogates are not mandatory. Surrogates are used to denote - * the location of the token and are necessary for re-identification in free - * form text. - * In order for inspection to work properly, the name of this info type must - * not occur naturally anywhere in your data; otherwise, inspection may either - * - reverse a surrogate that does not correspond to an actual identifier - * - be unable to parse the surrogate and result in an error - * Therefore, choose your custom info type name carefully after considering - * what your data looks like. One way to select a name that has a high chance - * of yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. - * For example, assuming your data is entered from a regular ASCII keyboard, - * the symbol with the hex code point 29DD might be used like so: - * ⧝MY_TOKEN_TYPE. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 2; - */ - protected $surrogate_info_type = null; - /** - * A context may be used for higher security and maintaining - * referential integrity such that the same identifier in two different - * contexts will be given a distinct surrogate. The context is appended to - * plaintext value being encrypted. On decryption the provided context is - * validated against the value used during encryption. If a context was - * provided during encryption, same context must be provided during decryption - * as well. - * If the context is not set, plaintext would be used as is for encryption. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 2. the field is not present when transforming a given value, - * plaintext would be used as is for encryption. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and unstructured `ContentItem`s. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; - */ - protected $context = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CryptoKey $crypto_key - * The key used by the encryption function. For deterministic encryption - * using AES-SIV, the provided key is internally expanded to 64 bytes prior to - * use. - * @type \Google\Cloud\Dlp\V2\InfoType $surrogate_info_type - * The custom info type to annotate the surrogate with. - * This annotation will be applied to the surrogate by prefixing it with - * the name of the custom info type followed by the number of - * characters comprising the surrogate. The following scheme defines the - * format: {info type name}({surrogate character count}):{surrogate} - * For example, if the name of custom info type is 'MY_TOKEN_INFO_TYPE' and - * the surrogate is 'abc', the full replacement value - * will be: 'MY_TOKEN_INFO_TYPE(3):abc' - * This annotation identifies the surrogate when inspecting content using the - * custom info type 'Surrogate'. This facilitates reversal of the - * surrogate when it occurs in free text. - * Note: For record transformations where the entire cell in a table is being - * transformed, surrogates are not mandatory. Surrogates are used to denote - * the location of the token and are necessary for re-identification in free - * form text. - * In order for inspection to work properly, the name of this info type must - * not occur naturally anywhere in your data; otherwise, inspection may either - * - reverse a surrogate that does not correspond to an actual identifier - * - be unable to parse the surrogate and result in an error - * Therefore, choose your custom info type name carefully after considering - * what your data looks like. One way to select a name that has a high chance - * of yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. - * For example, assuming your data is entered from a regular ASCII keyboard, - * the symbol with the hex code point 29DD might be used like so: - * ⧝MY_TOKEN_TYPE. - * @type \Google\Cloud\Dlp\V2\FieldId $context - * A context may be used for higher security and maintaining - * referential integrity such that the same identifier in two different - * contexts will be given a distinct surrogate. The context is appended to - * plaintext value being encrypted. On decryption the provided context is - * validated against the value used during encryption. If a context was - * provided during encryption, same context must be provided during decryption - * as well. - * If the context is not set, plaintext would be used as is for encryption. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 2. the field is not present when transforming a given value, - * plaintext would be used as is for encryption. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and unstructured `ContentItem`s. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The key used by the encryption function. For deterministic encryption - * using AES-SIV, the provided key is internally expanded to 64 bytes prior to - * use. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; - * @return \Google\Cloud\Dlp\V2\CryptoKey|null - */ - public function getCryptoKey() - { - return $this->crypto_key; - } - - public function hasCryptoKey() - { - return isset($this->crypto_key); - } - - public function clearCryptoKey() - { - unset($this->crypto_key); - } - - /** - * The key used by the encryption function. For deterministic encryption - * using AES-SIV, the provided key is internally expanded to 64 bytes prior to - * use. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; - * @param \Google\Cloud\Dlp\V2\CryptoKey $var - * @return $this - */ - public function setCryptoKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoKey::class); - $this->crypto_key = $var; - - return $this; - } - - /** - * The custom info type to annotate the surrogate with. - * This annotation will be applied to the surrogate by prefixing it with - * the name of the custom info type followed by the number of - * characters comprising the surrogate. The following scheme defines the - * format: {info type name}({surrogate character count}):{surrogate} - * For example, if the name of custom info type is 'MY_TOKEN_INFO_TYPE' and - * the surrogate is 'abc', the full replacement value - * will be: 'MY_TOKEN_INFO_TYPE(3):abc' - * This annotation identifies the surrogate when inspecting content using the - * custom info type 'Surrogate'. This facilitates reversal of the - * surrogate when it occurs in free text. - * Note: For record transformations where the entire cell in a table is being - * transformed, surrogates are not mandatory. Surrogates are used to denote - * the location of the token and are necessary for re-identification in free - * form text. - * In order for inspection to work properly, the name of this info type must - * not occur naturally anywhere in your data; otherwise, inspection may either - * - reverse a surrogate that does not correspond to an actual identifier - * - be unable to parse the surrogate and result in an error - * Therefore, choose your custom info type name carefully after considering - * what your data looks like. One way to select a name that has a high chance - * of yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. - * For example, assuming your data is entered from a regular ASCII keyboard, - * the symbol with the hex code point 29DD might be used like so: - * ⧝MY_TOKEN_TYPE. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 2; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getSurrogateInfoType() - { - return $this->surrogate_info_type; - } - - public function hasSurrogateInfoType() - { - return isset($this->surrogate_info_type); - } - - public function clearSurrogateInfoType() - { - unset($this->surrogate_info_type); - } - - /** - * The custom info type to annotate the surrogate with. - * This annotation will be applied to the surrogate by prefixing it with - * the name of the custom info type followed by the number of - * characters comprising the surrogate. The following scheme defines the - * format: {info type name}({surrogate character count}):{surrogate} - * For example, if the name of custom info type is 'MY_TOKEN_INFO_TYPE' and - * the surrogate is 'abc', the full replacement value - * will be: 'MY_TOKEN_INFO_TYPE(3):abc' - * This annotation identifies the surrogate when inspecting content using the - * custom info type 'Surrogate'. This facilitates reversal of the - * surrogate when it occurs in free text. - * Note: For record transformations where the entire cell in a table is being - * transformed, surrogates are not mandatory. Surrogates are used to denote - * the location of the token and are necessary for re-identification in free - * form text. - * In order for inspection to work properly, the name of this info type must - * not occur naturally anywhere in your data; otherwise, inspection may either - * - reverse a surrogate that does not correspond to an actual identifier - * - be unable to parse the surrogate and result in an error - * Therefore, choose your custom info type name carefully after considering - * what your data looks like. One way to select a name that has a high chance - * of yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. - * For example, assuming your data is entered from a regular ASCII keyboard, - * the symbol with the hex code point 29DD might be used like so: - * ⧝MY_TOKEN_TYPE. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 2; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setSurrogateInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->surrogate_info_type = $var; - - return $this; - } - - /** - * A context may be used for higher security and maintaining - * referential integrity such that the same identifier in two different - * contexts will be given a distinct surrogate. The context is appended to - * plaintext value being encrypted. On decryption the provided context is - * validated against the value used during encryption. If a context was - * provided during encryption, same context must be provided during decryption - * as well. - * If the context is not set, plaintext would be used as is for encryption. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 2. the field is not present when transforming a given value, - * plaintext would be used as is for encryption. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and unstructured `ContentItem`s. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getContext() - { - return $this->context; - } - - public function hasContext() - { - return isset($this->context); - } - - public function clearContext() - { - unset($this->context); - } - - /** - * A context may be used for higher security and maintaining - * referential integrity such that the same identifier in two different - * contexts will be given a distinct surrogate. The context is appended to - * plaintext value being encrypted. On decryption the provided context is - * validated against the value used during encryption. If a context was - * provided during encryption, same context must be provided during decryption - * as well. - * If the context is not set, plaintext would be used as is for encryption. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 2. the field is not present when transforming a given value, - * plaintext would be used as is for encryption. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and unstructured `ContentItem`s. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->context = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoHashConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoHashConfig.php deleted file mode 100644 index c410f70295ce..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoHashConfig.php +++ /dev/null @@ -1,84 +0,0 @@ -google.privacy.dlp.v2.CryptoHashConfig - */ -class CryptoHashConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The key used by the hash function. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; - */ - protected $crypto_key = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CryptoKey $crypto_key - * The key used by the hash function. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The key used by the hash function. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; - * @return \Google\Cloud\Dlp\V2\CryptoKey|null - */ - public function getCryptoKey() - { - return $this->crypto_key; - } - - public function hasCryptoKey() - { - return isset($this->crypto_key); - } - - public function clearCryptoKey() - { - unset($this->crypto_key); - } - - /** - * The key used by the hash function. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; - * @param \Google\Cloud\Dlp\V2\CryptoKey $var - * @return $this - */ - public function setCryptoKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoKey::class); - $this->crypto_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoKey.php deleted file mode 100644 index 0752367d6957..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoKey.php +++ /dev/null @@ -1,146 +0,0 @@ -google.privacy.dlp.v2.CryptoKey - */ -class CryptoKey extends \Google\Protobuf\Internal\Message -{ - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\TransientCryptoKey $transient - * Transient crypto key - * @type \Google\Cloud\Dlp\V2\UnwrappedCryptoKey $unwrapped - * Unwrapped crypto key - * @type \Google\Cloud\Dlp\V2\KmsWrappedCryptoKey $kms_wrapped - * Key wrapped using Cloud KMS - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Transient crypto key - * - * Generated from protobuf field .google.privacy.dlp.v2.TransientCryptoKey transient = 1; - * @return \Google\Cloud\Dlp\V2\TransientCryptoKey|null - */ - public function getTransient() - { - return $this->readOneof(1); - } - - public function hasTransient() - { - return $this->hasOneof(1); - } - - /** - * Transient crypto key - * - * Generated from protobuf field .google.privacy.dlp.v2.TransientCryptoKey transient = 1; - * @param \Google\Cloud\Dlp\V2\TransientCryptoKey $var - * @return $this - */ - public function setTransient($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransientCryptoKey::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Unwrapped crypto key - * - * Generated from protobuf field .google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2; - * @return \Google\Cloud\Dlp\V2\UnwrappedCryptoKey|null - */ - public function getUnwrapped() - { - return $this->readOneof(2); - } - - public function hasUnwrapped() - { - return $this->hasOneof(2); - } - - /** - * Unwrapped crypto key - * - * Generated from protobuf field .google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2; - * @param \Google\Cloud\Dlp\V2\UnwrappedCryptoKey $var - * @return $this - */ - public function setUnwrapped($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\UnwrappedCryptoKey::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Key wrapped using Cloud KMS - * - * Generated from protobuf field .google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3; - * @return \Google\Cloud\Dlp\V2\KmsWrappedCryptoKey|null - */ - public function getKmsWrapped() - { - return $this->readOneof(3); - } - - public function hasKmsWrapped() - { - return $this->hasOneof(3); - } - - /** - * Key wrapped using Cloud KMS - * - * Generated from protobuf field .google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3; - * @param \Google\Cloud\Dlp\V2\KmsWrappedCryptoKey $var - * @return $this - */ - public function setKmsWrapped($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\KmsWrappedCryptoKey::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig.php deleted file mode 100644 index 7f2f74ab2ec4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig.php +++ /dev/null @@ -1,445 +0,0 @@ -google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig - */ -class CryptoReplaceFfxFpeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The key used by the encryption algorithm. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $crypto_key = null; - /** - * The 'tweak', a context may be used for higher security since the same - * identifier in two different contexts won't be given the same surrogate. If - * the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and unstructured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 2; - */ - protected $context = null; - /** - * The custom infoType to annotate the surrogate with. - * This annotation will be applied to the surrogate by prefixing it with - * the name of the custom infoType followed by the number of - * characters comprising the surrogate. The following scheme defines the - * format: info_type_name(surrogate_character_count):surrogate - * For example, if the name of custom infoType is 'MY_TOKEN_INFO_TYPE' and - * the surrogate is 'abc', the full replacement value - * will be: 'MY_TOKEN_INFO_TYPE(3):abc' - * This annotation identifies the surrogate when inspecting content using the - * custom infoType - * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). - * This facilitates reversal of the surrogate when it occurs in free text. - * In order for inspection to work properly, the name of this infoType must - * not occur naturally anywhere in your data; otherwise, inspection may - * find a surrogate that does not correspond to an actual identifier. - * Therefore, choose your custom infoType name carefully after considering - * what your data looks like. One way to select a name that has a high chance - * of yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. - * For example, assuming your data is entered from a regular ASCII keyboard, - * the symbol with the hex code point 29DD might be used like so: - * ⧝MY_TOKEN_TYPE - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 8; - */ - protected $surrogate_info_type = null; - protected $alphabet; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CryptoKey $crypto_key - * Required. The key used by the encryption algorithm. - * @type \Google\Cloud\Dlp\V2\FieldId $context - * The 'tweak', a context may be used for higher security since the same - * identifier in two different contexts won't be given the same surrogate. If - * the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and unstructured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * @type int $common_alphabet - * Common alphabets. - * @type string $custom_alphabet - * This is supported by mapping these to the alphanumeric characters - * that the FFX mode natively supports. This happens before/after - * encryption/decryption. - * Each character listed must appear only once. - * Number of characters must be in the range [2, 95]. - * This must be encoded as ASCII. - * The order of characters does not matter. - * The full list of allowed characters is: - * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!\@#$%^&*()_-+={[}]|\:;"'<,>.?/`` - * @type int $radix - * The native way to select the alphabet. Must be in the range [2, 95]. - * @type \Google\Cloud\Dlp\V2\InfoType $surrogate_info_type - * The custom infoType to annotate the surrogate with. - * This annotation will be applied to the surrogate by prefixing it with - * the name of the custom infoType followed by the number of - * characters comprising the surrogate. The following scheme defines the - * format: info_type_name(surrogate_character_count):surrogate - * For example, if the name of custom infoType is 'MY_TOKEN_INFO_TYPE' and - * the surrogate is 'abc', the full replacement value - * will be: 'MY_TOKEN_INFO_TYPE(3):abc' - * This annotation identifies the surrogate when inspecting content using the - * custom infoType - * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). - * This facilitates reversal of the surrogate when it occurs in free text. - * In order for inspection to work properly, the name of this infoType must - * not occur naturally anywhere in your data; otherwise, inspection may - * find a surrogate that does not correspond to an actual identifier. - * Therefore, choose your custom infoType name carefully after considering - * what your data looks like. One way to select a name that has a high chance - * of yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. - * For example, assuming your data is entered from a regular ASCII keyboard, - * the symbol with the hex code point 29DD might be used like so: - * ⧝MY_TOKEN_TYPE - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The key used by the encryption algorithm. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\CryptoKey|null - */ - public function getCryptoKey() - { - return $this->crypto_key; - } - - public function hasCryptoKey() - { - return isset($this->crypto_key); - } - - public function clearCryptoKey() - { - unset($this->crypto_key); - } - - /** - * Required. The key used by the encryption algorithm. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\CryptoKey $var - * @return $this - */ - public function setCryptoKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoKey::class); - $this->crypto_key = $var; - - return $this; - } - - /** - * The 'tweak', a context may be used for higher security since the same - * identifier in two different contexts won't be given the same surrogate. If - * the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and unstructured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 2; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getContext() - { - return $this->context; - } - - public function hasContext() - { - return isset($this->context); - } - - public function clearContext() - { - unset($this->context); - } - - /** - * The 'tweak', a context may be used for higher security since the same - * identifier in two different contexts won't be given the same surrogate. If - * the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and unstructured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 2; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->context = $var; - - return $this; - } - - /** - * Common alphabets. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet common_alphabet = 4; - * @return int - */ - public function getCommonAlphabet() - { - return $this->readOneof(4); - } - - public function hasCommonAlphabet() - { - return $this->hasOneof(4); - } - - /** - * Common alphabets. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet common_alphabet = 4; - * @param int $var - * @return $this - */ - public function setCommonAlphabet($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig\FfxCommonNativeAlphabet::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * This is supported by mapping these to the alphanumeric characters - * that the FFX mode natively supports. This happens before/after - * encryption/decryption. - * Each character listed must appear only once. - * Number of characters must be in the range [2, 95]. - * This must be encoded as ASCII. - * The order of characters does not matter. - * The full list of allowed characters is: - * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!\@#$%^&*()_-+={[}]|\:;"'<,>.?/`` - * - * Generated from protobuf field string custom_alphabet = 5; - * @return string - */ - public function getCustomAlphabet() - { - return $this->readOneof(5); - } - - public function hasCustomAlphabet() - { - return $this->hasOneof(5); - } - - /** - * This is supported by mapping these to the alphanumeric characters - * that the FFX mode natively supports. This happens before/after - * encryption/decryption. - * Each character listed must appear only once. - * Number of characters must be in the range [2, 95]. - * This must be encoded as ASCII. - * The order of characters does not matter. - * The full list of allowed characters is: - * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!\@#$%^&*()_-+={[}]|\:;"'<,>.?/`` - * - * Generated from protobuf field string custom_alphabet = 5; - * @param string $var - * @return $this - */ - public function setCustomAlphabet($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The native way to select the alphabet. Must be in the range [2, 95]. - * - * Generated from protobuf field int32 radix = 6; - * @return int - */ - public function getRadix() - { - return $this->readOneof(6); - } - - public function hasRadix() - { - return $this->hasOneof(6); - } - - /** - * The native way to select the alphabet. Must be in the range [2, 95]. - * - * Generated from protobuf field int32 radix = 6; - * @param int $var - * @return $this - */ - public function setRadix($var) - { - GPBUtil::checkInt32($var); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The custom infoType to annotate the surrogate with. - * This annotation will be applied to the surrogate by prefixing it with - * the name of the custom infoType followed by the number of - * characters comprising the surrogate. The following scheme defines the - * format: info_type_name(surrogate_character_count):surrogate - * For example, if the name of custom infoType is 'MY_TOKEN_INFO_TYPE' and - * the surrogate is 'abc', the full replacement value - * will be: 'MY_TOKEN_INFO_TYPE(3):abc' - * This annotation identifies the surrogate when inspecting content using the - * custom infoType - * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). - * This facilitates reversal of the surrogate when it occurs in free text. - * In order for inspection to work properly, the name of this infoType must - * not occur naturally anywhere in your data; otherwise, inspection may - * find a surrogate that does not correspond to an actual identifier. - * Therefore, choose your custom infoType name carefully after considering - * what your data looks like. One way to select a name that has a high chance - * of yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. - * For example, assuming your data is entered from a regular ASCII keyboard, - * the symbol with the hex code point 29DD might be used like so: - * ⧝MY_TOKEN_TYPE - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 8; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getSurrogateInfoType() - { - return $this->surrogate_info_type; - } - - public function hasSurrogateInfoType() - { - return isset($this->surrogate_info_type); - } - - public function clearSurrogateInfoType() - { - unset($this->surrogate_info_type); - } - - /** - * The custom infoType to annotate the surrogate with. - * This annotation will be applied to the surrogate by prefixing it with - * the name of the custom infoType followed by the number of - * characters comprising the surrogate. The following scheme defines the - * format: info_type_name(surrogate_character_count):surrogate - * For example, if the name of custom infoType is 'MY_TOKEN_INFO_TYPE' and - * the surrogate is 'abc', the full replacement value - * will be: 'MY_TOKEN_INFO_TYPE(3):abc' - * This annotation identifies the surrogate when inspecting content using the - * custom infoType - * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). - * This facilitates reversal of the surrogate when it occurs in free text. - * In order for inspection to work properly, the name of this infoType must - * not occur naturally anywhere in your data; otherwise, inspection may - * find a surrogate that does not correspond to an actual identifier. - * Therefore, choose your custom infoType name carefully after considering - * what your data looks like. One way to select a name that has a high chance - * of yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. - * For example, assuming your data is entered from a regular ASCII keyboard, - * the symbol with the hex code point 29DD might be used like so: - * ⧝MY_TOKEN_TYPE - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 8; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setSurrogateInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->surrogate_info_type = $var; - - return $this; - } - - /** - * @return string - */ - public function getAlphabet() - { - return $this->whichOneof("alphabet"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig/FfxCommonNativeAlphabet.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig/FfxCommonNativeAlphabet.php deleted file mode 100644 index a9b4fa1d30d4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig/FfxCommonNativeAlphabet.php +++ /dev/null @@ -1,77 +0,0 @@ -google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet - */ -class FfxCommonNativeAlphabet -{ - /** - * Unused. - * - * Generated from protobuf enum FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED = 0; - */ - const FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED = 0; - /** - * `[0-9]` (radix of 10) - * - * Generated from protobuf enum NUMERIC = 1; - */ - const NUMERIC = 1; - /** - * `[0-9A-F]` (radix of 16) - * - * Generated from protobuf enum HEXADECIMAL = 2; - */ - const HEXADECIMAL = 2; - /** - * `[0-9A-Z]` (radix of 36) - * - * Generated from protobuf enum UPPER_CASE_ALPHA_NUMERIC = 3; - */ - const UPPER_CASE_ALPHA_NUMERIC = 3; - /** - * `[0-9A-Za-z]` (radix of 62) - * - * Generated from protobuf enum ALPHA_NUMERIC = 4; - */ - const ALPHA_NUMERIC = 4; - - private static $valueToName = [ - self::FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED => 'FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED', - self::NUMERIC => 'NUMERIC', - self::HEXADECIMAL => 'HEXADECIMAL', - self::UPPER_CASE_ALPHA_NUMERIC => 'UPPER_CASE_ALPHA_NUMERIC', - self::ALPHA_NUMERIC => 'ALPHA_NUMERIC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType.php deleted file mode 100644 index ad621b6f6a35..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType.php +++ /dev/null @@ -1,461 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType - */ -class CustomInfoType extends \Google\Protobuf\Internal\Message -{ - /** - * CustomInfoType can either be a new infoType, or an extension of built-in - * infoType, when the name matches one of existing infoTypes and that infoType - * is specified in `InspectContent.info_types` field. Specifying the latter - * adds findings to the one detected by the system. If built-in info type is - * not specified in `InspectContent.info_types` list then the name is treated - * as a custom info type. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - */ - protected $info_type = null; - /** - * Likelihood to return for this CustomInfoType. This base value can be - * altered by a detection rule if the finding meets the criteria specified by - * the rule. Defaults to `VERY_LIKELY` if not specified. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 6; - */ - protected $likelihood = 0; - /** - * Set of detection rules to apply to all findings of this CustomInfoType. - * Rules are applied in the order that they are specified. Only supported - * for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7; - */ - private $detection_rules; - /** - * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding - * to be returned. It still can be used for rules matching. Only supported - * for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; - */ - protected $exclusion_type = 0; - /** - * Sensitivity for this CustomInfoType. If this CustomInfoType extends an - * existing InfoType, the sensitivity here will take precedence over that of - * the original InfoType. If unset for a CustomInfoType, it will default to - * HIGH. - * This only applies to data profiling. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 9; - */ - protected $sensitivity_score = null; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * CustomInfoType can either be a new infoType, or an extension of built-in - * infoType, when the name matches one of existing infoTypes and that infoType - * is specified in `InspectContent.info_types` field. Specifying the latter - * adds findings to the one detected by the system. If built-in info type is - * not specified in `InspectContent.info_types` list then the name is treated - * as a custom info type. - * @type int $likelihood - * Likelihood to return for this CustomInfoType. This base value can be - * altered by a detection rule if the finding meets the criteria specified by - * the rule. Defaults to `VERY_LIKELY` if not specified. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $dictionary - * A list of phrases to detect as a CustomInfoType. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Regex $regex - * Regular expression based CustomInfoType. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\SurrogateType $surrogate_type - * Message for detecting output from deidentification transformations that - * support reversing. - * @type \Google\Cloud\Dlp\V2\StoredType $stored_type - * Loads an existing `StoredInfoType` resource. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\MetadataKeyValueExpression $metadata_key_value_expression - * Key-value pair to detect in the metadata. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule[] $detection_rules - * Set of detection rules to apply to all findings of this CustomInfoType. - * Rules are applied in the order that they are specified. Only supported - * for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes. - * @type int $exclusion_type - * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding - * to be returned. It still can be used for rules matching. Only supported - * for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * Sensitivity for this CustomInfoType. If this CustomInfoType extends an - * existing InfoType, the sensitivity here will take precedence over that of - * the original InfoType. If unset for a CustomInfoType, it will default to - * HIGH. - * This only applies to data profiling. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * CustomInfoType can either be a new infoType, or an extension of built-in - * infoType, when the name matches one of existing infoTypes and that infoType - * is specified in `InspectContent.info_types` field. Specifying the latter - * adds findings to the one detected by the system. If built-in info type is - * not specified in `InspectContent.info_types` list then the name is treated - * as a custom info type. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * CustomInfoType can either be a new infoType, or an extension of built-in - * infoType, when the name matches one of existing infoTypes and that infoType - * is specified in `InspectContent.info_types` field. Specifying the latter - * adds findings to the one detected by the system. If built-in info type is - * not specified in `InspectContent.info_types` list then the name is treated - * as a custom info type. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - - /** - * Likelihood to return for this CustomInfoType. This base value can be - * altered by a detection rule if the finding meets the criteria specified by - * the rule. Defaults to `VERY_LIKELY` if not specified. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 6; - * @return int - */ - public function getLikelihood() - { - return $this->likelihood; - } - - /** - * Likelihood to return for this CustomInfoType. This base value can be - * altered by a detection rule if the finding meets the criteria specified by - * the rule. Defaults to `VERY_LIKELY` if not specified. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 6; - * @param int $var - * @return $this - */ - public function setLikelihood($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); - $this->likelihood = $var; - - return $this; - } - - /** - * A list of phrases to detect as a CustomInfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary|null - */ - public function getDictionary() - { - return $this->readOneof(2); - } - - public function hasDictionary() - { - return $this->hasOneof(2); - } - - /** - * A list of phrases to detect as a CustomInfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $var - * @return $this - */ - public function setDictionary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Regular expression based CustomInfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 3; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Regex|null - */ - public function getRegex() - { - return $this->readOneof(3); - } - - public function hasRegex() - { - return $this->hasOneof(3); - } - - /** - * Regular expression based CustomInfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 3; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Regex $var - * @return $this - */ - public function setRegex($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Regex::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Message for detecting output from deidentification transformations that - * support reversing. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\SurrogateType|null - */ - public function getSurrogateType() - { - return $this->readOneof(4); - } - - public function hasSurrogateType() - { - return $this->hasOneof(4); - } - - /** - * Message for detecting output from deidentification transformations that - * support reversing. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\SurrogateType $var - * @return $this - */ - public function setSurrogateType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\SurrogateType::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Loads an existing `StoredInfoType` resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredType stored_type = 5; - * @return \Google\Cloud\Dlp\V2\StoredType|null - */ - public function getStoredType() - { - return $this->readOneof(5); - } - - public function hasStoredType() - { - return $this->hasOneof(5); - } - - /** - * Loads an existing `StoredInfoType` resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredType stored_type = 5; - * @param \Google\Cloud\Dlp\V2\StoredType $var - * @return $this - */ - public function setStoredType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredType::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Key-value pair to detect in the metadata. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.MetadataKeyValueExpression metadata_key_value_expression = 10; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\MetadataKeyValueExpression|null - */ - public function getMetadataKeyValueExpression() - { - return $this->readOneof(10); - } - - public function hasMetadataKeyValueExpression() - { - return $this->hasOneof(10); - } - - /** - * Key-value pair to detect in the metadata. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.MetadataKeyValueExpression metadata_key_value_expression = 10; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\MetadataKeyValueExpression $var - * @return $this - */ - public function setMetadataKeyValueExpression($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\MetadataKeyValueExpression::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Set of detection rules to apply to all findings of this CustomInfoType. - * Rules are applied in the order that they are specified. Only supported - * for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7; - * @return RepeatedField<\Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule> - */ - public function getDetectionRules() - { - return $this->detection_rules; - } - - /** - * Set of detection rules to apply to all findings of this CustomInfoType. - * Rules are applied in the order that they are specified. Only supported - * for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule[] $var - * @return $this - */ - public function setDetectionRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule::class); - $this->detection_rules = $arr; - - return $this; - } - - /** - * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding - * to be returned. It still can be used for rules matching. Only supported - * for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; - * @return int - */ - public function getExclusionType() - { - return $this->exclusion_type; - } - - /** - * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding - * to be returned. It still can be used for rules matching. Only supported - * for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; - * @param int $var - * @return $this - */ - public function setExclusionType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\CustomInfoType\ExclusionType::class); - $this->exclusion_type = $var; - - return $this; - } - - /** - * Sensitivity for this CustomInfoType. If this CustomInfoType extends an - * existing InfoType, the sensitivity here will take precedence over that of - * the original InfoType. If unset for a CustomInfoType, it will default to - * HIGH. - * This only applies to data profiling. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 9; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->sensitivity_score; - } - - public function hasSensitivityScore() - { - return isset($this->sensitivity_score); - } - - public function clearSensitivityScore() - { - unset($this->sensitivity_score); - } - - /** - * Sensitivity for this CustomInfoType. If this CustomInfoType extends an - * existing InfoType, the sensitivity here will take precedence over that of - * the original InfoType. If unset for a CustomInfoType, it will default to - * HIGH. - * This only applies to data profiling. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 9; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->sensitivity_score = $var; - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule.php deleted file mode 100644 index 37c5475d10ad..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule.php +++ /dev/null @@ -1,78 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.DetectionRule - */ -class DetectionRule extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule $hotword_rule - * Hotword-based detection rule. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Hotword-based detection rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule|null - */ - public function getHotwordRule() - { - return $this->readOneof(1); - } - - public function hasHotwordRule() - { - return $this->hasOneof(1); - } - - /** - * Hotword-based detection rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule $var - * @return $this - */ - public function setHotwordRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/HotwordRule.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/HotwordRule.php deleted file mode 100644 index 0bb673156ee8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/HotwordRule.php +++ /dev/null @@ -1,210 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule - */ -class HotwordRule extends \Google\Protobuf\Internal\Message -{ - /** - * Regular expression pattern defining what qualifies as a hotword. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; - */ - protected $hotword_regex = null; - /** - * Range of characters within which the entire hotword must reside. - * The total length of the window cannot exceed 1000 characters. - * The finding itself will be included in the window, so that hotwords can - * be used to match substrings of the finding itself. Suppose you - * want Cloud DLP to promote the likelihood of the phone number - * regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the - * area code of a company's office. In this case, use the hotword regex - * "\(xxx\)", where "xxx" is the area code in question. - * For tabular data, if you want to modify the likelihood of an entire - * column of findngs, see - * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; - */ - protected $proximity = null; - /** - * Likelihood adjustment to apply to all matching findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3; - */ - protected $likelihood_adjustment = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Regex $hotword_regex - * Regular expression pattern defining what qualifies as a hotword. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity $proximity - * Range of characters within which the entire hotword must reside. - * The total length of the window cannot exceed 1000 characters. - * The finding itself will be included in the window, so that hotwords can - * be used to match substrings of the finding itself. Suppose you - * want Cloud DLP to promote the likelihood of the phone number - * regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the - * area code of a company's office. In this case, use the hotword regex - * "\(xxx\)", where "xxx" is the area code in question. - * For tabular data, if you want to modify the likelihood of an entire - * column of findngs, see - * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). - * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment $likelihood_adjustment - * Likelihood adjustment to apply to all matching findings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Regular expression pattern defining what qualifies as a hotword. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Regex|null - */ - public function getHotwordRegex() - { - return $this->hotword_regex; - } - - public function hasHotwordRegex() - { - return isset($this->hotword_regex); - } - - public function clearHotwordRegex() - { - unset($this->hotword_regex); - } - - /** - * Regular expression pattern defining what qualifies as a hotword. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Regex $var - * @return $this - */ - public function setHotwordRegex($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Regex::class); - $this->hotword_regex = $var; - - return $this; - } - - /** - * Range of characters within which the entire hotword must reside. - * The total length of the window cannot exceed 1000 characters. - * The finding itself will be included in the window, so that hotwords can - * be used to match substrings of the finding itself. Suppose you - * want Cloud DLP to promote the likelihood of the phone number - * regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the - * area code of a company's office. In this case, use the hotword regex - * "\(xxx\)", where "xxx" is the area code in question. - * For tabular data, if you want to modify the likelihood of an entire - * column of findngs, see - * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity|null - */ - public function getProximity() - { - return $this->proximity; - } - - public function hasProximity() - { - return isset($this->proximity); - } - - public function clearProximity() - { - unset($this->proximity); - } - - /** - * Range of characters within which the entire hotword must reside. - * The total length of the window cannot exceed 1000 characters. - * The finding itself will be included in the window, so that hotwords can - * be used to match substrings of the finding itself. Suppose you - * want Cloud DLP to promote the likelihood of the phone number - * regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the - * area code of a company's office. In this case, use the hotword regex - * "\(xxx\)", where "xxx" is the area code in question. - * For tabular data, if you want to modify the likelihood of an entire - * column of findngs, see - * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity $var - * @return $this - */ - public function setProximity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity::class); - $this->proximity = $var; - - return $this; - } - - /** - * Likelihood adjustment to apply to all matching findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment|null - */ - public function getLikelihoodAdjustment() - { - return $this->likelihood_adjustment; - } - - public function hasLikelihoodAdjustment() - { - return isset($this->likelihood_adjustment); - } - - public function clearLikelihoodAdjustment() - { - unset($this->likelihood_adjustment); - } - - /** - * Likelihood adjustment to apply to all matching findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment $var - * @return $this - */ - public function setLikelihoodAdjustment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment::class); - $this->likelihood_adjustment = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/LikelihoodAdjustment.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/LikelihoodAdjustment.php deleted file mode 100644 index 3a5cc4333e37..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/LikelihoodAdjustment.php +++ /dev/null @@ -1,130 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment - */ -class LikelihoodAdjustment extends \Google\Protobuf\Internal\Message -{ - protected $adjustment; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $fixed_likelihood - * Set the likelihood of a finding to a fixed value. - * @type int $relative_likelihood - * Increase or decrease the likelihood by the specified number of - * levels. For example, if a finding would be `POSSIBLE` without the - * detection rule and `relative_likelihood` is 1, then it is upgraded to - * `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`. - * Likelihood may never drop below `VERY_UNLIKELY` or exceed - * `VERY_LIKELY`, so applying an adjustment of 1 followed by an - * adjustment of -1 when base likelihood is `VERY_LIKELY` will result in - * a final likelihood of `LIKELY`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Set the likelihood of a finding to a fixed value. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood fixed_likelihood = 1; - * @return int - */ - public function getFixedLikelihood() - { - return $this->readOneof(1); - } - - public function hasFixedLikelihood() - { - return $this->hasOneof(1); - } - - /** - * Set the likelihood of a finding to a fixed value. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood fixed_likelihood = 1; - * @param int $var - * @return $this - */ - public function setFixedLikelihood($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Increase or decrease the likelihood by the specified number of - * levels. For example, if a finding would be `POSSIBLE` without the - * detection rule and `relative_likelihood` is 1, then it is upgraded to - * `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`. - * Likelihood may never drop below `VERY_UNLIKELY` or exceed - * `VERY_LIKELY`, so applying an adjustment of 1 followed by an - * adjustment of -1 when base likelihood is `VERY_LIKELY` will result in - * a final likelihood of `LIKELY`. - * - * Generated from protobuf field int32 relative_likelihood = 2; - * @return int - */ - public function getRelativeLikelihood() - { - return $this->readOneof(2); - } - - public function hasRelativeLikelihood() - { - return $this->hasOneof(2); - } - - /** - * Increase or decrease the likelihood by the specified number of - * levels. For example, if a finding would be `POSSIBLE` without the - * detection rule and `relative_likelihood` is 1, then it is upgraded to - * `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`. - * Likelihood may never drop below `VERY_UNLIKELY` or exceed - * `VERY_LIKELY`, so applying an adjustment of 1 followed by an - * adjustment of -1 when base likelihood is `VERY_LIKELY` will result in - * a final likelihood of `LIKELY`. - * - * Generated from protobuf field int32 relative_likelihood = 2; - * @param int $var - * @return $this - */ - public function setRelativeLikelihood($var) - { - GPBUtil::checkInt32($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getAdjustment() - { - return $this->whichOneof("adjustment"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/Proximity.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/Proximity.php deleted file mode 100644 index a2d5a74e9b97..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/Proximity.php +++ /dev/null @@ -1,118 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity - */ -class Proximity extends \Google\Protobuf\Internal\Message -{ - /** - * Number of characters before the finding to consider. For tabular data, - * if you want to modify the likelihood of an entire column of findngs, - * set this to 1. For more information, see - * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). - * - * Generated from protobuf field int32 window_before = 1; - */ - protected $window_before = 0; - /** - * Number of characters after the finding to consider. - * - * Generated from protobuf field int32 window_after = 2; - */ - protected $window_after = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $window_before - * Number of characters before the finding to consider. For tabular data, - * if you want to modify the likelihood of an entire column of findngs, - * set this to 1. For more information, see - * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). - * @type int $window_after - * Number of characters after the finding to consider. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Number of characters before the finding to consider. For tabular data, - * if you want to modify the likelihood of an entire column of findngs, - * set this to 1. For more information, see - * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). - * - * Generated from protobuf field int32 window_before = 1; - * @return int - */ - public function getWindowBefore() - { - return $this->window_before; - } - - /** - * Number of characters before the finding to consider. For tabular data, - * if you want to modify the likelihood of an entire column of findngs, - * set this to 1. For more information, see - * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). - * - * Generated from protobuf field int32 window_before = 1; - * @param int $var - * @return $this - */ - public function setWindowBefore($var) - { - GPBUtil::checkInt32($var); - $this->window_before = $var; - - return $this; - } - - /** - * Number of characters after the finding to consider. - * - * Generated from protobuf field int32 window_after = 2; - * @return int - */ - public function getWindowAfter() - { - return $this->window_after; - } - - /** - * Number of characters after the finding to consider. - * - * Generated from protobuf field int32 window_after = 2; - * @param int $var - * @return $this - */ - public function setWindowAfter($var) - { - GPBUtil::checkInt32($var); - $this->window_after = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary.php deleted file mode 100644 index 693ddd78145b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary.php +++ /dev/null @@ -1,131 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.Dictionary - */ -class Dictionary extends \Google\Protobuf\Internal\Message -{ - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList $word_list - * List of words or phrases to search for. - * @type \Google\Cloud\Dlp\V2\CloudStoragePath $cloud_storage_path - * Newline-delimited file of words in Cloud Storage. Only a single file - * is accepted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * List of words or phrases to search for. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList|null - */ - public function getWordList() - { - return $this->readOneof(1); - } - - public function hasWordList() - { - return $this->hasOneof(1); - } - - /** - * List of words or phrases to search for. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList $var - * @return $this - */ - public function setWordList($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Newline-delimited file of words in Cloud Storage. Only a single file - * is accepted. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath cloud_storage_path = 3; - * @return \Google\Cloud\Dlp\V2\CloudStoragePath|null - */ - public function getCloudStoragePath() - { - return $this->readOneof(3); - } - - public function hasCloudStoragePath() - { - return $this->hasOneof(3); - } - - /** - * Newline-delimited file of words in Cloud Storage. Only a single file - * is accepted. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath cloud_storage_path = 3; - * @param \Google\Cloud\Dlp\V2\CloudStoragePath $var - * @return $this - */ - public function setCloudStoragePath($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStoragePath::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary/WordList.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary/WordList.php deleted file mode 100644 index 1308ccc39e0b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary/WordList.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList - */ -class WordList extends \Google\Protobuf\Internal\Message -{ - /** - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - * - * Generated from protobuf field repeated string words = 1; - */ - private $words; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $words - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - * - * Generated from protobuf field repeated string words = 1; - * @return RepeatedField - */ - public function getWords() - { - return $this->words; - } - - /** - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - * - * Generated from protobuf field repeated string words = 1; - * @param string[] $var - * @return $this - */ - public function setWords($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->words = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/ExclusionType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/ExclusionType.php deleted file mode 100644 index 3a282d202a6a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/ExclusionType.php +++ /dev/null @@ -1,55 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.ExclusionType - */ -class ExclusionType -{ - /** - * A finding of this custom info type will not be excluded from results. - * - * Generated from protobuf enum EXCLUSION_TYPE_UNSPECIFIED = 0; - */ - const EXCLUSION_TYPE_UNSPECIFIED = 0; - /** - * A finding of this custom info type will be excluded from final results, - * but can still affect rule execution. - * - * Generated from protobuf enum EXCLUSION_TYPE_EXCLUDE = 1; - */ - const EXCLUSION_TYPE_EXCLUDE = 1; - - private static $valueToName = [ - self::EXCLUSION_TYPE_UNSPECIFIED => 'EXCLUSION_TYPE_UNSPECIFIED', - self::EXCLUSION_TYPE_EXCLUDE => 'EXCLUSION_TYPE_EXCLUDE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/MetadataKeyValueExpression.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/MetadataKeyValueExpression.php deleted file mode 100644 index 2c89ac8ac5b0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/MetadataKeyValueExpression.php +++ /dev/null @@ -1,106 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.MetadataKeyValueExpression - */ -class MetadataKeyValueExpression extends \Google\Protobuf\Internal\Message -{ - /** - * The regular expression for the key. Key should be - * non-empty. - * - * Generated from protobuf field string key_regex = 1; - */ - protected $key_regex = ''; - /** - * The regular expression for the value. Value should be non-empty. - * - * Generated from protobuf field string value_regex = 2; - */ - protected $value_regex = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key_regex - * The regular expression for the key. Key should be - * non-empty. - * @type string $value_regex - * The regular expression for the value. Value should be non-empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The regular expression for the key. Key should be - * non-empty. - * - * Generated from protobuf field string key_regex = 1; - * @return string - */ - public function getKeyRegex() - { - return $this->key_regex; - } - - /** - * The regular expression for the key. Key should be - * non-empty. - * - * Generated from protobuf field string key_regex = 1; - * @param string $var - * @return $this - */ - public function setKeyRegex($var) - { - GPBUtil::checkString($var, True); - $this->key_regex = $var; - - return $this; - } - - /** - * The regular expression for the value. Value should be non-empty. - * - * Generated from protobuf field string value_regex = 2; - * @return string - */ - public function getValueRegex() - { - return $this->value_regex; - } - - /** - * The regular expression for the value. Value should be non-empty. - * - * Generated from protobuf field string value_regex = 2; - * @param string $var - * @return $this - */ - public function setValueRegex($var) - { - GPBUtil::checkString($var, True); - $this->value_regex = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Regex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Regex.php deleted file mode 100644 index d93830d1e34a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Regex.php +++ /dev/null @@ -1,113 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.Regex - */ -class Regex extends \Google\Protobuf\Internal\Message -{ - /** - * Pattern defining the regular expression. Its syntax - * (https://github.com/google/re2/wiki/Syntax) can be found under the - * google/re2 repository on GitHub. - * - * Generated from protobuf field string pattern = 1; - */ - protected $pattern = ''; - /** - * The index of the submatch to extract as findings. When not - * specified, the entire match is returned. No more than 3 may be included. - * - * Generated from protobuf field repeated int32 group_indexes = 2; - */ - private $group_indexes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $pattern - * Pattern defining the regular expression. Its syntax - * (https://github.com/google/re2/wiki/Syntax) can be found under the - * google/re2 repository on GitHub. - * @type int[] $group_indexes - * The index of the submatch to extract as findings. When not - * specified, the entire match is returned. No more than 3 may be included. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Pattern defining the regular expression. Its syntax - * (https://github.com/google/re2/wiki/Syntax) can be found under the - * google/re2 repository on GitHub. - * - * Generated from protobuf field string pattern = 1; - * @return string - */ - public function getPattern() - { - return $this->pattern; - } - - /** - * Pattern defining the regular expression. Its syntax - * (https://github.com/google/re2/wiki/Syntax) can be found under the - * google/re2 repository on GitHub. - * - * Generated from protobuf field string pattern = 1; - * @param string $var - * @return $this - */ - public function setPattern($var) - { - GPBUtil::checkString($var, True); - $this->pattern = $var; - - return $this; - } - - /** - * The index of the submatch to extract as findings. When not - * specified, the entire match is returned. No more than 3 may be included. - * - * Generated from protobuf field repeated int32 group_indexes = 2; - * @return RepeatedField - */ - public function getGroupIndexes() - { - return $this->group_indexes; - } - - /** - * The index of the submatch to extract as findings. When not - * specified, the entire match is returned. No more than 3 may be included. - * - * Generated from protobuf field repeated int32 group_indexes = 2; - * @param int[] $var - * @return $this - */ - public function setGroupIndexes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); - $this->group_indexes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/SurrogateType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/SurrogateType.php deleted file mode 100644 index 1fbfd3da5b32..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/SurrogateType.php +++ /dev/null @@ -1,40 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.SurrogateType - */ -class SurrogateType extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction.php deleted file mode 100644 index d4bf0dbaf212..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction.php +++ /dev/null @@ -1,252 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction - */ -class DataProfileAction extends \Google\Protobuf\Internal\Message -{ - protected $action; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DataProfileAction\Export $export_data - * Export data profiles into a provided location. - * @type \Google\Cloud\Dlp\V2\DataProfileAction\PubSubNotification $pub_sub_notification - * Publish a message into the Pub/Sub topic. - * @type \Google\Cloud\Dlp\V2\DataProfileAction\PublishToChronicle $publish_to_chronicle - * Publishes generated data profiles to Google Security Operations. - * For more information, see [Use Sensitive Data Protection data in - * context-aware - * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download). - * @type \Google\Cloud\Dlp\V2\DataProfileAction\PublishToSecurityCommandCenter $publish_to_scc - * Publishes findings to Security Command Center for each data profile. - * @type \Google\Cloud\Dlp\V2\DataProfileAction\TagResources $tag_resources - * Tags the profiled resources with the specified tag values. - * @type \Google\Cloud\Dlp\V2\DataProfileAction\PublishToDataplexCatalog $publish_to_dataplex_catalog - * Publishes a portion of each profile to Dataplex Universal Catalog with - * the aspect type Sensitive Data Protection Profile. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Export data profiles into a provided location. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; - * @return \Google\Cloud\Dlp\V2\DataProfileAction\Export|null - */ - public function getExportData() - { - return $this->readOneof(1); - } - - public function hasExportData() - { - return $this->hasOneof(1); - } - - /** - * Export data profiles into a provided location. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; - * @param \Google\Cloud\Dlp\V2\DataProfileAction\Export $var - * @return $this - */ - public function setExportData($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\Export::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Publish a message into the Pub/Sub topic. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; - * @return \Google\Cloud\Dlp\V2\DataProfileAction\PubSubNotification|null - */ - public function getPubSubNotification() - { - return $this->readOneof(2); - } - - public function hasPubSubNotification() - { - return $this->hasOneof(2); - } - - /** - * Publish a message into the Pub/Sub topic. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; - * @param \Google\Cloud\Dlp\V2\DataProfileAction\PubSubNotification $var - * @return $this - */ - public function setPubSubNotification($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\PubSubNotification::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Publishes generated data profiles to Google Security Operations. - * For more information, see [Use Sensitive Data Protection data in - * context-aware - * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download). - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; - * @return \Google\Cloud\Dlp\V2\DataProfileAction\PublishToChronicle|null - */ - public function getPublishToChronicle() - { - return $this->readOneof(3); - } - - public function hasPublishToChronicle() - { - return $this->hasOneof(3); - } - - /** - * Publishes generated data profiles to Google Security Operations. - * For more information, see [Use Sensitive Data Protection data in - * context-aware - * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download). - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; - * @param \Google\Cloud\Dlp\V2\DataProfileAction\PublishToChronicle $var - * @return $this - */ - public function setPublishToChronicle($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\PublishToChronicle::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Publishes findings to Security Command Center for each data profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; - * @return \Google\Cloud\Dlp\V2\DataProfileAction\PublishToSecurityCommandCenter|null - */ - public function getPublishToScc() - { - return $this->readOneof(4); - } - - public function hasPublishToScc() - { - return $this->hasOneof(4); - } - - /** - * Publishes findings to Security Command Center for each data profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; - * @param \Google\Cloud\Dlp\V2\DataProfileAction\PublishToSecurityCommandCenter $var - * @return $this - */ - public function setPublishToScc($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\PublishToSecurityCommandCenter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Tags the profiled resources with the specified tag values. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; - * @return \Google\Cloud\Dlp\V2\DataProfileAction\TagResources|null - */ - public function getTagResources() - { - return $this->readOneof(8); - } - - public function hasTagResources() - { - return $this->hasOneof(8); - } - - /** - * Tags the profiled resources with the specified tag values. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; - * @param \Google\Cloud\Dlp\V2\DataProfileAction\TagResources $var - * @return $this - */ - public function setTagResources($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\TagResources::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Publishes a portion of each profile to Dataplex Universal Catalog with - * the aspect type Sensitive Data Protection Profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog publish_to_dataplex_catalog = 9; - * @return \Google\Cloud\Dlp\V2\DataProfileAction\PublishToDataplexCatalog|null - */ - public function getPublishToDataplexCatalog() - { - return $this->readOneof(9); - } - - public function hasPublishToDataplexCatalog() - { - return $this->hasOneof(9); - } - - /** - * Publishes a portion of each profile to Dataplex Universal Catalog with - * the aspect type Sensitive Data Protection Profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog publish_to_dataplex_catalog = 9; - * @param \Google\Cloud\Dlp\V2\DataProfileAction\PublishToDataplexCatalog $var - * @return $this - */ - public function setPublishToDataplexCatalog($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\PublishToDataplexCatalog::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * @return string - */ - public function getAction() - { - return $this->whichOneof("action"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/EventType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/EventType.php deleted file mode 100644 index f2bc860254d4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/EventType.php +++ /dev/null @@ -1,77 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.EventType - */ -class EventType -{ - /** - * Unused. - * - * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; - */ - const EVENT_TYPE_UNSPECIFIED = 0; - /** - * New profile (not a re-profile). - * - * Generated from protobuf enum NEW_PROFILE = 1; - */ - const NEW_PROFILE = 1; - /** - * One of the following profile metrics changed: Data risk score, - * Sensitivity score, Resource visibility, Encryption type, Predicted - * infoTypes, Other infoTypes - * - * Generated from protobuf enum CHANGED_PROFILE = 2; - */ - const CHANGED_PROFILE = 2; - /** - * Table data risk score or sensitivity score increased. - * - * Generated from protobuf enum SCORE_INCREASED = 3; - */ - const SCORE_INCREASED = 3; - /** - * A user (non-internal) error occurred. - * - * Generated from protobuf enum ERROR_CHANGED = 4; - */ - const ERROR_CHANGED = 4; - - private static $valueToName = [ - self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', - self::NEW_PROFILE => 'NEW_PROFILE', - self::CHANGED_PROFILE => 'CHANGED_PROFILE', - self::SCORE_INCREASED => 'SCORE_INCREASED', - self::ERROR_CHANGED => 'ERROR_CHANGED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/Export.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/Export.php deleted file mode 100644 index 8669571dff0c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/Export.php +++ /dev/null @@ -1,242 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.Export - */ -class Export extends \Google\Protobuf\Internal\Message -{ - /** - * Store all profiles to BigQuery. - * * The system will create a new dataset and table for you if none are - * are provided. The dataset will be named - * `sensitive_data_protection_discovery` and table will be named - * `discovery_profiles`. This table will be placed in the same project as - * the container project running the scan. After the first profile is - * generated and the dataset and table are created, the discovery scan - * configuration will be updated with the dataset and table names. - * * See [Analyze data profiles stored in - * BigQuery](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles). - * * See [Sample queries for your BigQuery - * table](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#sample_sql_queries). - * * Data is inserted using [streaming - * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) - * and so data may be in the buffer for a period of time after the - * profile has finished. - * * The Pub/Sub notification is sent before the streaming buffer is - * guaranteed to be written, so data may not be instantly - * visible to queries by the time your topic receives the Pub/Sub - * notification. - * * The best practice is to use the same table for an entire organization - * so that you can take advantage of the [provided Looker - * reports](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#use_a_premade_report). - * If you use VPC Service Controls to define security perimeters, then - * you must use a separate table for each boundary. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable profile_table = 1; - */ - protected $profile_table = null; - /** - * Store sample [data profile - * findings][google.privacy.dlp.v2.DataProfileFinding] in an existing table - * or a new table in an existing dataset. Each regeneration will result in - * new rows in BigQuery. Data is inserted using [streaming - * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) - * and so data may be in the buffer for a period of time after the profile - * has finished. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 2; - */ - protected $sample_findings_table = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTable $profile_table - * Store all profiles to BigQuery. - * * The system will create a new dataset and table for you if none are - * are provided. The dataset will be named - * `sensitive_data_protection_discovery` and table will be named - * `discovery_profiles`. This table will be placed in the same project as - * the container project running the scan. After the first profile is - * generated and the dataset and table are created, the discovery scan - * configuration will be updated with the dataset and table names. - * * See [Analyze data profiles stored in - * BigQuery](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles). - * * See [Sample queries for your BigQuery - * table](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#sample_sql_queries). - * * Data is inserted using [streaming - * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) - * and so data may be in the buffer for a period of time after the - * profile has finished. - * * The Pub/Sub notification is sent before the streaming buffer is - * guaranteed to be written, so data may not be instantly - * visible to queries by the time your topic receives the Pub/Sub - * notification. - * * The best practice is to use the same table for an entire organization - * so that you can take advantage of the [provided Looker - * reports](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#use_a_premade_report). - * If you use VPC Service Controls to define security perimeters, then - * you must use a separate table for each boundary. - * @type \Google\Cloud\Dlp\V2\BigQueryTable $sample_findings_table - * Store sample [data profile - * findings][google.privacy.dlp.v2.DataProfileFinding] in an existing table - * or a new table in an existing dataset. Each regeneration will result in - * new rows in BigQuery. Data is inserted using [streaming - * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) - * and so data may be in the buffer for a period of time after the profile - * has finished. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Store all profiles to BigQuery. - * * The system will create a new dataset and table for you if none are - * are provided. The dataset will be named - * `sensitive_data_protection_discovery` and table will be named - * `discovery_profiles`. This table will be placed in the same project as - * the container project running the scan. After the first profile is - * generated and the dataset and table are created, the discovery scan - * configuration will be updated with the dataset and table names. - * * See [Analyze data profiles stored in - * BigQuery](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles). - * * See [Sample queries for your BigQuery - * table](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#sample_sql_queries). - * * Data is inserted using [streaming - * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) - * and so data may be in the buffer for a period of time after the - * profile has finished. - * * The Pub/Sub notification is sent before the streaming buffer is - * guaranteed to be written, so data may not be instantly - * visible to queries by the time your topic receives the Pub/Sub - * notification. - * * The best practice is to use the same table for an entire organization - * so that you can take advantage of the [provided Looker - * reports](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#use_a_premade_report). - * If you use VPC Service Controls to define security perimeters, then - * you must use a separate table for each boundary. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable profile_table = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getProfileTable() - { - return $this->profile_table; - } - - public function hasProfileTable() - { - return isset($this->profile_table); - } - - public function clearProfileTable() - { - unset($this->profile_table); - } - - /** - * Store all profiles to BigQuery. - * * The system will create a new dataset and table for you if none are - * are provided. The dataset will be named - * `sensitive_data_protection_discovery` and table will be named - * `discovery_profiles`. This table will be placed in the same project as - * the container project running the scan. After the first profile is - * generated and the dataset and table are created, the discovery scan - * configuration will be updated with the dataset and table names. - * * See [Analyze data profiles stored in - * BigQuery](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles). - * * See [Sample queries for your BigQuery - * table](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#sample_sql_queries). - * * Data is inserted using [streaming - * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) - * and so data may be in the buffer for a period of time after the - * profile has finished. - * * The Pub/Sub notification is sent before the streaming buffer is - * guaranteed to be written, so data may not be instantly - * visible to queries by the time your topic receives the Pub/Sub - * notification. - * * The best practice is to use the same table for an entire organization - * so that you can take advantage of the [provided Looker - * reports](https://cloud.google.com/sensitive-data-protection/docs/analyze-data-profiles#use_a_premade_report). - * If you use VPC Service Controls to define security perimeters, then - * you must use a separate table for each boundary. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable profile_table = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setProfileTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->profile_table = $var; - - return $this; - } - - /** - * Store sample [data profile - * findings][google.privacy.dlp.v2.DataProfileFinding] in an existing table - * or a new table in an existing dataset. Each regeneration will result in - * new rows in BigQuery. Data is inserted using [streaming - * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) - * and so data may be in the buffer for a period of time after the profile - * has finished. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 2; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getSampleFindingsTable() - { - return $this->sample_findings_table; - } - - public function hasSampleFindingsTable() - { - return isset($this->sample_findings_table); - } - - public function clearSampleFindingsTable() - { - unset($this->sample_findings_table); - } - - /** - * Store sample [data profile - * findings][google.privacy.dlp.v2.DataProfileFinding] in an existing table - * or a new table in an existing dataset. Each regeneration will result in - * new rows in BigQuery. Data is inserted using [streaming - * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) - * and so data may be in the buffer for a period of time after the profile - * has finished. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 2; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setSampleFindingsTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->sample_findings_table = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification.php deleted file mode 100644 index 8b2078f4fb12..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification.php +++ /dev/null @@ -1,201 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.PubSubNotification - */ -class PubSubNotification extends \Google\Protobuf\Internal\Message -{ - /** - * Cloud Pub/Sub topic to send notifications to. - * Format is projects/{project}/topics/{topic}. - * - * Generated from protobuf field string topic = 1; - */ - protected $topic = ''; - /** - * The type of event that triggers a Pub/Sub. At most one - * `PubSubNotification` per EventType is permitted. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; - */ - protected $event = 0; - /** - * Conditions (e.g., data risk or sensitivity level) for triggering a - * Pub/Sub. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; - */ - protected $pubsub_condition = null; - /** - * How much data to include in the Pub/Sub message. If the user wishes to - * limit the size of the message, they can use resource_name and fetch the - * profile fields they wish to. Per table profile (not per column). - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; - */ - protected $detail_of_message = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $topic - * Cloud Pub/Sub topic to send notifications to. - * Format is projects/{project}/topics/{topic}. - * @type int $event - * The type of event that triggers a Pub/Sub. At most one - * `PubSubNotification` per EventType is permitted. - * @type \Google\Cloud\Dlp\V2\DataProfilePubSubCondition $pubsub_condition - * Conditions (e.g., data risk or sensitivity level) for triggering a - * Pub/Sub. - * @type int $detail_of_message - * How much data to include in the Pub/Sub message. If the user wishes to - * limit the size of the message, they can use resource_name and fetch the - * profile fields they wish to. Per table profile (not per column). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Cloud Pub/Sub topic to send notifications to. - * Format is projects/{project}/topics/{topic}. - * - * Generated from protobuf field string topic = 1; - * @return string - */ - public function getTopic() - { - return $this->topic; - } - - /** - * Cloud Pub/Sub topic to send notifications to. - * Format is projects/{project}/topics/{topic}. - * - * Generated from protobuf field string topic = 1; - * @param string $var - * @return $this - */ - public function setTopic($var) - { - GPBUtil::checkString($var, True); - $this->topic = $var; - - return $this; - } - - /** - * The type of event that triggers a Pub/Sub. At most one - * `PubSubNotification` per EventType is permitted. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; - * @return int - */ - public function getEvent() - { - return $this->event; - } - - /** - * The type of event that triggers a Pub/Sub. At most one - * `PubSubNotification` per EventType is permitted. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; - * @param int $var - * @return $this - */ - public function setEvent($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileAction\EventType::class); - $this->event = $var; - - return $this; - } - - /** - * Conditions (e.g., data risk or sensitivity level) for triggering a - * Pub/Sub. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; - * @return \Google\Cloud\Dlp\V2\DataProfilePubSubCondition|null - */ - public function getPubsubCondition() - { - return $this->pubsub_condition; - } - - public function hasPubsubCondition() - { - return isset($this->pubsub_condition); - } - - public function clearPubsubCondition() - { - unset($this->pubsub_condition); - } - - /** - * Conditions (e.g., data risk or sensitivity level) for triggering a - * Pub/Sub. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; - * @param \Google\Cloud\Dlp\V2\DataProfilePubSubCondition $var - * @return $this - */ - public function setPubsubCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition::class); - $this->pubsub_condition = $var; - - return $this; - } - - /** - * How much data to include in the Pub/Sub message. If the user wishes to - * limit the size of the message, they can use resource_name and fetch the - * profile fields they wish to. Per table profile (not per column). - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; - * @return int - */ - public function getDetailOfMessage() - { - return $this->detail_of_message; - } - - /** - * How much data to include in the Pub/Sub message. If the user wishes to - * limit the size of the message, they can use resource_name and fetch the - * profile fields they wish to. Per table profile (not per column). - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; - * @param int $var - * @return $this - */ - public function setDetailOfMessage($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileAction\PubSubNotification\DetailLevel::class); - $this->detail_of_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification/DetailLevel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification/DetailLevel.php deleted file mode 100644 index f92fba77b873..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification/DetailLevel.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel - */ -class DetailLevel -{ - /** - * Unused. - * - * Generated from protobuf enum DETAIL_LEVEL_UNSPECIFIED = 0; - */ - const DETAIL_LEVEL_UNSPECIFIED = 0; - /** - * The full table data profile. - * - * Generated from protobuf enum TABLE_PROFILE = 1; - */ - const TABLE_PROFILE = 1; - /** - * The name of the profiled resource. - * - * Generated from protobuf enum RESOURCE_NAME = 2; - */ - const RESOURCE_NAME = 2; - /** - * The full file store data profile. - * - * Generated from protobuf enum FILE_STORE_PROFILE = 3; - */ - const FILE_STORE_PROFILE = 3; - - private static $valueToName = [ - self::DETAIL_LEVEL_UNSPECIFIED => 'DETAIL_LEVEL_UNSPECIFIED', - self::TABLE_PROFILE => 'TABLE_PROFILE', - self::RESOURCE_NAME => 'RESOURCE_NAME', - self::FILE_STORE_PROFILE => 'FILE_STORE_PROFILE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToChronicle.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToChronicle.php deleted file mode 100644 index 8e3085810a2a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToChronicle.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.PublishToChronicle - */ -class PublishToChronicle extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToDataplexCatalog.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToDataplexCatalog.php deleted file mode 100644 index 011f5f0f676f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToDataplexCatalog.php +++ /dev/null @@ -1,89 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalog - */ -class PublishToDataplexCatalog extends \Google\Protobuf\Internal\Message -{ - /** - * Whether creating a Dataplex Universal Catalog aspect for a profiled - * resource should lower the risk of the profile for that resource. This - * also lowers the data risk of resources at the lower levels of the - * resource hierarchy. For example, reducing the data risk of a table data - * profile also reduces the data risk of the constituent column data - * profiles. - * - * Generated from protobuf field bool lower_data_risk_to_low = 1; - */ - protected $lower_data_risk_to_low = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $lower_data_risk_to_low - * Whether creating a Dataplex Universal Catalog aspect for a profiled - * resource should lower the risk of the profile for that resource. This - * also lowers the data risk of resources at the lower levels of the - * resource hierarchy. For example, reducing the data risk of a table data - * profile also reduces the data risk of the constituent column data - * profiles. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Whether creating a Dataplex Universal Catalog aspect for a profiled - * resource should lower the risk of the profile for that resource. This - * also lowers the data risk of resources at the lower levels of the - * resource hierarchy. For example, reducing the data risk of a table data - * profile also reduces the data risk of the constituent column data - * profiles. - * - * Generated from protobuf field bool lower_data_risk_to_low = 1; - * @return bool - */ - public function getLowerDataRiskToLow() - { - return $this->lower_data_risk_to_low; - } - - /** - * Whether creating a Dataplex Universal Catalog aspect for a profiled - * resource should lower the risk of the profile for that resource. This - * also lowers the data risk of resources at the lower levels of the - * resource hierarchy. For example, reducing the data risk of a table data - * profile also reduces the data risk of the constituent column data - * profiles. - * - * Generated from protobuf field bool lower_data_risk_to_low = 1; - * @param bool $var - * @return $this - */ - public function setLowerDataRiskToLow($var) - { - GPBUtil::checkBool($var); - $this->lower_data_risk_to_low = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToSecurityCommandCenter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToSecurityCommandCenter.php deleted file mode 100644 index b7ebfb007258..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToSecurityCommandCenter.php +++ /dev/null @@ -1,34 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter - */ -class PublishToSecurityCommandCenter extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources.php deleted file mode 100644 index 9c6c3633d382..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources.php +++ /dev/null @@ -1,188 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.TagResources - */ -class TagResources extends \Google\Protobuf\Internal\Message -{ - /** - * The tags to associate with different conditions. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; - */ - private $tag_conditions; - /** - * The profile generations for which the tag should be attached to - * resources. If you attach a tag to only new profiles, then if the - * sensitivity score of a profile subsequently changes, its tag doesn't - * change. By default, this field includes only new profiles. To include - * both new and updated profiles for tagging, this field should explicitly - * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; - */ - private $profile_generations_to_tag; - /** - * Whether applying a tag to a resource should lower the risk of the profile - * for that resource. For example, in conjunction with an [IAM deny - * policy](https://cloud.google.com/iam/docs/deny-overview), you can deny - * all principals a permission if a tag value is present, mitigating the - * risk of the resource. This also lowers the data risk of resources at the - * lower levels of the resource hierarchy. For example, reducing the data - * risk of a table data profile also reduces the data risk of the - * constituent column data profiles. - * - * Generated from protobuf field bool lower_data_risk_to_low = 3; - */ - protected $lower_data_risk_to_low = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagCondition[] $tag_conditions - * The tags to associate with different conditions. - * @type int[] $profile_generations_to_tag - * The profile generations for which the tag should be attached to - * resources. If you attach a tag to only new profiles, then if the - * sensitivity score of a profile subsequently changes, its tag doesn't - * change. By default, this field includes only new profiles. To include - * both new and updated profiles for tagging, this field should explicitly - * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`. - * @type bool $lower_data_risk_to_low - * Whether applying a tag to a resource should lower the risk of the profile - * for that resource. For example, in conjunction with an [IAM deny - * policy](https://cloud.google.com/iam/docs/deny-overview), you can deny - * all principals a permission if a tag value is present, mitigating the - * risk of the resource. This also lowers the data risk of resources at the - * lower levels of the resource hierarchy. For example, reducing the data - * risk of a table data profile also reduces the data risk of the - * constituent column data profiles. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The tags to associate with different conditions. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagCondition> - */ - public function getTagConditions() - { - return $this->tag_conditions; - } - - /** - * The tags to associate with different conditions. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; - * @param \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagCondition[] $var - * @return $this - */ - public function setTagConditions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagCondition::class); - $this->tag_conditions = $arr; - - return $this; - } - - /** - * The profile generations for which the tag should be attached to - * resources. If you attach a tag to only new profiles, then if the - * sensitivity score of a profile subsequently changes, its tag doesn't - * change. By default, this field includes only new profiles. To include - * both new and updated profiles for tagging, this field should explicitly - * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; - * @return RepeatedField - */ - public function getProfileGenerationsToTag() - { - return $this->profile_generations_to_tag; - } - - /** - * The profile generations for which the tag should be attached to - * resources. If you attach a tag to only new profiles, then if the - * sensitivity score of a profile subsequently changes, its tag doesn't - * change. By default, this field includes only new profiles. To include - * both new and updated profiles for tagging, this field should explicitly - * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; - * @param int[] $var - * @return $this - */ - public function setProfileGenerationsToTag($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\ProfileGeneration::class); - $this->profile_generations_to_tag = $arr; - - return $this; - } - - /** - * Whether applying a tag to a resource should lower the risk of the profile - * for that resource. For example, in conjunction with an [IAM deny - * policy](https://cloud.google.com/iam/docs/deny-overview), you can deny - * all principals a permission if a tag value is present, mitigating the - * risk of the resource. This also lowers the data risk of resources at the - * lower levels of the resource hierarchy. For example, reducing the data - * risk of a table data profile also reduces the data risk of the - * constituent column data profiles. - * - * Generated from protobuf field bool lower_data_risk_to_low = 3; - * @return bool - */ - public function getLowerDataRiskToLow() - { - return $this->lower_data_risk_to_low; - } - - /** - * Whether applying a tag to a resource should lower the risk of the profile - * for that resource. For example, in conjunction with an [IAM deny - * policy](https://cloud.google.com/iam/docs/deny-overview), you can deny - * all principals a permission if a tag value is present, mitigating the - * risk of the resource. This also lowers the data risk of resources at the - * lower levels of the resource hierarchy. For example, reducing the data - * risk of a table data profile also reduces the data risk of the - * constituent column data profiles. - * - * Generated from protobuf field bool lower_data_risk_to_low = 3; - * @param bool $var - * @return $this - */ - public function setLowerDataRiskToLow($var) - { - GPBUtil::checkBool($var); - $this->lower_data_risk_to_low = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagCondition.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagCondition.php deleted file mode 100644 index a718a955c11a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagCondition.php +++ /dev/null @@ -1,123 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition - */ -class TagCondition extends \Google\Protobuf\Internal\Message -{ - /** - * The tag value to attach to resources. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; - */ - protected $tag = null; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagValue $tag - * The tag value to attach to resources. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * Conditions attaching the tag to a resource on its profile having this - * sensitivity score. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The tag value to attach to resources. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; - * @return \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagValue|null - */ - public function getTag() - { - return $this->tag; - } - - public function hasTag() - { - return isset($this->tag); - } - - public function clearTag() - { - unset($this->tag); - } - - /** - * The tag value to attach to resources. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; - * @param \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagValue $var - * @return $this - */ - public function setTag($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagValue::class); - $this->tag = $var; - - return $this; - } - - /** - * Conditions attaching the tag to a resource on its profile having this - * sensitivity score. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->readOneof(2); - } - - public function hasSensitivityScore() - { - return $this->hasOneof(2); - } - - /** - * Conditions attaching the tag to a resource on its profile having this - * sensitivity score. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagValue.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagValue.php deleted file mode 100644 index 525bbe9a7852..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagValue.php +++ /dev/null @@ -1,84 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue - */ -class TagValue extends \Google\Protobuf\Internal\Message -{ - protected $format; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $namespaced_value - * The namespaced name for the tag value to attach to resources. Must be - * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for - * example, "123456/environment/prod" for an organization parent, or - * "my-project/environment/prod" for a project parent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The namespaced name for the tag value to attach to resources. Must be - * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for - * example, "123456/environment/prod" for an organization parent, or - * "my-project/environment/prod" for a project parent. - * - * Generated from protobuf field string namespaced_value = 1; - * @return string - */ - public function getNamespacedValue() - { - return $this->readOneof(1); - } - - public function hasNamespacedValue() - { - return $this->hasOneof(1); - } - - /** - * The namespaced name for the tag value to attach to resources. Must be - * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for - * example, "123456/environment/prod" for an organization parent, or - * "my-project/environment/prod" for a project parent. - * - * Generated from protobuf field string namespaced_value = 1; - * @param string $var - * @return $this - */ - public function setNamespacedValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getFormat() - { - return $this->whichOneof("format"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileBigQueryRowSchema.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileBigQueryRowSchema.php deleted file mode 100644 index bd8d244749c1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileBigQueryRowSchema.php +++ /dev/null @@ -1,142 +0,0 @@ -google.privacy.dlp.v2.DataProfileBigQueryRowSchema - */ -class DataProfileBigQueryRowSchema extends \Google\Protobuf\Internal\Message -{ - protected $data_profile; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\TableDataProfile $table_profile - * Table data profile column - * @type \Google\Cloud\Dlp\V2\ColumnDataProfile $column_profile - * Column data profile column - * @type \Google\Cloud\Dlp\V2\FileStoreDataProfile $file_store_profile - * File store data profile column. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Table data profile column - * - * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile table_profile = 1; - * @return \Google\Cloud\Dlp\V2\TableDataProfile|null - */ - public function getTableProfile() - { - return $this->readOneof(1); - } - - public function hasTableProfile() - { - return $this->hasOneof(1); - } - - /** - * Table data profile column - * - * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile table_profile = 1; - * @param \Google\Cloud\Dlp\V2\TableDataProfile $var - * @return $this - */ - public function setTableProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableDataProfile::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Column data profile column - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile column_profile = 2; - * @return \Google\Cloud\Dlp\V2\ColumnDataProfile|null - */ - public function getColumnProfile() - { - return $this->readOneof(2); - } - - public function hasColumnProfile() - { - return $this->hasOneof(2); - } - - /** - * Column data profile column - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile column_profile = 2; - * @param \Google\Cloud\Dlp\V2\ColumnDataProfile $var - * @return $this - */ - public function setColumnProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ColumnDataProfile::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * File store data profile column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; - * @return \Google\Cloud\Dlp\V2\FileStoreDataProfile|null - */ - public function getFileStoreProfile() - { - return $this->readOneof(3); - } - - public function hasFileStoreProfile() - { - return $this->hasOneof(3); - } - - /** - * File store data profile column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; - * @param \Google\Cloud\Dlp\V2\FileStoreDataProfile $var - * @return $this - */ - public function setFileStoreProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FileStoreDataProfile::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getDataProfile() - { - return $this->whichOneof("data_profile"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileConfigSnapshot.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileConfigSnapshot.php deleted file mode 100644 index a81c221cafca..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileConfigSnapshot.php +++ /dev/null @@ -1,274 +0,0 @@ -google.privacy.dlp.v2.DataProfileConfigSnapshot - */ -class DataProfileConfigSnapshot extends \Google\Protobuf\Internal\Message -{ - /** - * A copy of the inspection config used to generate this profile. This - * is a copy of the inspect_template specified in `DataProfileJobConfig`. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - */ - protected $inspect_config = null; - /** - * A copy of the configuration used to generate this profile. This is - * deprecated, and the DiscoveryConfig field is preferred moving forward. - * DataProfileJobConfig will still be written here for Discovery in BigQuery - * for backwards compatibility, but will not be updated with new fields, while - * DiscoveryConfig will. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; - * @deprecated - */ - protected $data_profile_job = null; - /** - * A copy of the configuration used to generate this profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; - */ - protected $discovery_config = null; - /** - * Name of the inspection template used to generate this profile - * - * Generated from protobuf field string inspect_template_name = 5; - */ - protected $inspect_template_name = ''; - /** - * Timestamp when the template was modified - * - * Generated from protobuf field .google.protobuf.Timestamp inspect_template_modified_time = 6; - */ - protected $inspect_template_modified_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config - * A copy of the inspection config used to generate this profile. This - * is a copy of the inspect_template specified in `DataProfileJobConfig`. - * @type \Google\Cloud\Dlp\V2\DataProfileJobConfig $data_profile_job - * A copy of the configuration used to generate this profile. This is - * deprecated, and the DiscoveryConfig field is preferred moving forward. - * DataProfileJobConfig will still be written here for Discovery in BigQuery - * for backwards compatibility, but will not be updated with new fields, while - * DiscoveryConfig will. - * @type \Google\Cloud\Dlp\V2\DiscoveryConfig $discovery_config - * A copy of the configuration used to generate this profile. - * @type string $inspect_template_name - * Name of the inspection template used to generate this profile - * @type \Google\Protobuf\Timestamp $inspect_template_modified_time - * Timestamp when the template was modified - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A copy of the inspection config used to generate this profile. This - * is a copy of the inspect_template specified in `DataProfileJobConfig`. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - * @return \Google\Cloud\Dlp\V2\InspectConfig|null - */ - public function getInspectConfig() - { - return $this->inspect_config; - } - - public function hasInspectConfig() - { - return isset($this->inspect_config); - } - - public function clearInspectConfig() - { - unset($this->inspect_config); - } - - /** - * A copy of the inspection config used to generate this profile. This - * is a copy of the inspect_template specified in `DataProfileJobConfig`. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - * @param \Google\Cloud\Dlp\V2\InspectConfig $var - * @return $this - */ - public function setInspectConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); - $this->inspect_config = $var; - - return $this; - } - - /** - * A copy of the configuration used to generate this profile. This is - * deprecated, and the DiscoveryConfig field is preferred moving forward. - * DataProfileJobConfig will still be written here for Discovery in BigQuery - * for backwards compatibility, but will not be updated with new fields, while - * DiscoveryConfig will. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; - * @return \Google\Cloud\Dlp\V2\DataProfileJobConfig|null - * @deprecated - */ - public function getDataProfileJob() - { - if (isset($this->data_profile_job)) { - @trigger_error('data_profile_job is deprecated.', E_USER_DEPRECATED); - } - return $this->data_profile_job; - } - - public function hasDataProfileJob() - { - if (isset($this->data_profile_job)) { - @trigger_error('data_profile_job is deprecated.', E_USER_DEPRECATED); - } - return isset($this->data_profile_job); - } - - public function clearDataProfileJob() - { - @trigger_error('data_profile_job is deprecated.', E_USER_DEPRECATED); - unset($this->data_profile_job); - } - - /** - * A copy of the configuration used to generate this profile. This is - * deprecated, and the DiscoveryConfig field is preferred moving forward. - * DataProfileJobConfig will still be written here for Discovery in BigQuery - * for backwards compatibility, but will not be updated with new fields, while - * DiscoveryConfig will. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; - * @param \Google\Cloud\Dlp\V2\DataProfileJobConfig $var - * @return $this - * @deprecated - */ - public function setDataProfileJob($var) - { - @trigger_error('data_profile_job is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileJobConfig::class); - $this->data_profile_job = $var; - - return $this; - } - - /** - * A copy of the configuration used to generate this profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; - * @return \Google\Cloud\Dlp\V2\DiscoveryConfig|null - */ - public function getDiscoveryConfig() - { - return $this->discovery_config; - } - - public function hasDiscoveryConfig() - { - return isset($this->discovery_config); - } - - public function clearDiscoveryConfig() - { - unset($this->discovery_config); - } - - /** - * A copy of the configuration used to generate this profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; - * @param \Google\Cloud\Dlp\V2\DiscoveryConfig $var - * @return $this - */ - public function setDiscoveryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryConfig::class); - $this->discovery_config = $var; - - return $this; - } - - /** - * Name of the inspection template used to generate this profile - * - * Generated from protobuf field string inspect_template_name = 5; - * @return string - */ - public function getInspectTemplateName() - { - return $this->inspect_template_name; - } - - /** - * Name of the inspection template used to generate this profile - * - * Generated from protobuf field string inspect_template_name = 5; - * @param string $var - * @return $this - */ - public function setInspectTemplateName($var) - { - GPBUtil::checkString($var, True); - $this->inspect_template_name = $var; - - return $this; - } - - /** - * Timestamp when the template was modified - * - * Generated from protobuf field .google.protobuf.Timestamp inspect_template_modified_time = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getInspectTemplateModifiedTime() - { - return $this->inspect_template_modified_time; - } - - public function hasInspectTemplateModifiedTime() - { - return isset($this->inspect_template_modified_time); - } - - public function clearInspectTemplateModifiedTime() - { - unset($this->inspect_template_modified_time); - } - - /** - * Timestamp when the template was modified - * - * Generated from protobuf field .google.protobuf.Timestamp inspect_template_modified_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setInspectTemplateModifiedTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->inspect_template_modified_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFinding.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFinding.php deleted file mode 100644 index 6f7a99076514..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFinding.php +++ /dev/null @@ -1,452 +0,0 @@ -google.privacy.dlp.v2.DataProfileFinding - */ -class DataProfileFinding extends \Google\Protobuf\Internal\Message -{ - /** - * The content that was found. Even if the content is not textual, it - * may be converted to a textual representation here. If the finding exceeds - * 4096 bytes in length, the quote may be omitted. - * - * Generated from protobuf field string quote = 1; - */ - protected $quote = ''; - /** - * The [type of - * content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) - * that might have been found. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType infotype = 2; - */ - protected $infotype = null; - /** - * Contains data parsed from quotes. Currently supported infoTypes: DATE, - * DATE_OF_BIRTH, and TIME. - * - * Generated from protobuf field .google.privacy.dlp.v2.QuoteInfo quote_info = 3; - */ - protected $quote_info = null; - /** - * Resource name of the data profile associated with the finding. - * - * Generated from protobuf field string data_profile_resource_name = 4; - */ - protected $data_profile_resource_name = ''; - /** - * A unique identifier for the finding. - * - * Generated from protobuf field string finding_id = 5; - */ - protected $finding_id = ''; - /** - * Timestamp when the finding was detected. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 6; - */ - protected $timestamp = null; - /** - * Where the content was found. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileFindingLocation location = 7; - */ - protected $location = null; - /** - * How broadly a resource has been shared. - * - * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 8; - */ - protected $resource_visibility = 0; - /** - * The [full resource - * name](https://cloud.google.com/apis/design/resource_names#full_resource_name) - * of the resource profiled for this finding. - * - * Generated from protobuf field string full_resource_name = 9; - */ - protected $full_resource_name = ''; - /** - * The type of the resource that was profiled. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 10; - */ - protected $data_source_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $quote - * The content that was found. Even if the content is not textual, it - * may be converted to a textual representation here. If the finding exceeds - * 4096 bytes in length, the quote may be omitted. - * @type \Google\Cloud\Dlp\V2\InfoType $infotype - * The [type of - * content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) - * that might have been found. - * @type \Google\Cloud\Dlp\V2\QuoteInfo $quote_info - * Contains data parsed from quotes. Currently supported infoTypes: DATE, - * DATE_OF_BIRTH, and TIME. - * @type string $data_profile_resource_name - * Resource name of the data profile associated with the finding. - * @type string $finding_id - * A unique identifier for the finding. - * @type \Google\Protobuf\Timestamp $timestamp - * Timestamp when the finding was detected. - * @type \Google\Cloud\Dlp\V2\DataProfileFindingLocation $location - * Where the content was found. - * @type int $resource_visibility - * How broadly a resource has been shared. - * @type string $full_resource_name - * The [full resource - * name](https://cloud.google.com/apis/design/resource_names#full_resource_name) - * of the resource profiled for this finding. - * @type \Google\Cloud\Dlp\V2\DataSourceType $data_source_type - * The type of the resource that was profiled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The content that was found. Even if the content is not textual, it - * may be converted to a textual representation here. If the finding exceeds - * 4096 bytes in length, the quote may be omitted. - * - * Generated from protobuf field string quote = 1; - * @return string - */ - public function getQuote() - { - return $this->quote; - } - - /** - * The content that was found. Even if the content is not textual, it - * may be converted to a textual representation here. If the finding exceeds - * 4096 bytes in length, the quote may be omitted. - * - * Generated from protobuf field string quote = 1; - * @param string $var - * @return $this - */ - public function setQuote($var) - { - GPBUtil::checkString($var, True); - $this->quote = $var; - - return $this; - } - - /** - * The [type of - * content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) - * that might have been found. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType infotype = 2; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfotype() - { - return $this->infotype; - } - - public function hasInfotype() - { - return isset($this->infotype); - } - - public function clearInfotype() - { - unset($this->infotype); - } - - /** - * The [type of - * content](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference) - * that might have been found. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType infotype = 2; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfotype($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->infotype = $var; - - return $this; - } - - /** - * Contains data parsed from quotes. Currently supported infoTypes: DATE, - * DATE_OF_BIRTH, and TIME. - * - * Generated from protobuf field .google.privacy.dlp.v2.QuoteInfo quote_info = 3; - * @return \Google\Cloud\Dlp\V2\QuoteInfo|null - */ - public function getQuoteInfo() - { - return $this->quote_info; - } - - public function hasQuoteInfo() - { - return isset($this->quote_info); - } - - public function clearQuoteInfo() - { - unset($this->quote_info); - } - - /** - * Contains data parsed from quotes. Currently supported infoTypes: DATE, - * DATE_OF_BIRTH, and TIME. - * - * Generated from protobuf field .google.privacy.dlp.v2.QuoteInfo quote_info = 3; - * @param \Google\Cloud\Dlp\V2\QuoteInfo $var - * @return $this - */ - public function setQuoteInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\QuoteInfo::class); - $this->quote_info = $var; - - return $this; - } - - /** - * Resource name of the data profile associated with the finding. - * - * Generated from protobuf field string data_profile_resource_name = 4; - * @return string - */ - public function getDataProfileResourceName() - { - return $this->data_profile_resource_name; - } - - /** - * Resource name of the data profile associated with the finding. - * - * Generated from protobuf field string data_profile_resource_name = 4; - * @param string $var - * @return $this - */ - public function setDataProfileResourceName($var) - { - GPBUtil::checkString($var, True); - $this->data_profile_resource_name = $var; - - return $this; - } - - /** - * A unique identifier for the finding. - * - * Generated from protobuf field string finding_id = 5; - * @return string - */ - public function getFindingId() - { - return $this->finding_id; - } - - /** - * A unique identifier for the finding. - * - * Generated from protobuf field string finding_id = 5; - * @param string $var - * @return $this - */ - public function setFindingId($var) - { - GPBUtil::checkString($var, True); - $this->finding_id = $var; - - return $this; - } - - /** - * Timestamp when the finding was detected. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestamp() - { - return $this->timestamp; - } - - public function hasTimestamp() - { - return isset($this->timestamp); - } - - public function clearTimestamp() - { - unset($this->timestamp); - } - - /** - * Timestamp when the finding was detected. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->timestamp = $var; - - return $this; - } - - /** - * Where the content was found. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileFindingLocation location = 7; - * @return \Google\Cloud\Dlp\V2\DataProfileFindingLocation|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * Where the content was found. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileFindingLocation location = 7; - * @param \Google\Cloud\Dlp\V2\DataProfileFindingLocation $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileFindingLocation::class); - $this->location = $var; - - return $this; - } - - /** - * How broadly a resource has been shared. - * - * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 8; - * @return int - */ - public function getResourceVisibility() - { - return $this->resource_visibility; - } - - /** - * How broadly a resource has been shared. - * - * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 8; - * @param int $var - * @return $this - */ - public function setResourceVisibility($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ResourceVisibility::class); - $this->resource_visibility = $var; - - return $this; - } - - /** - * The [full resource - * name](https://cloud.google.com/apis/design/resource_names#full_resource_name) - * of the resource profiled for this finding. - * - * Generated from protobuf field string full_resource_name = 9; - * @return string - */ - public function getFullResourceName() - { - return $this->full_resource_name; - } - - /** - * The [full resource - * name](https://cloud.google.com/apis/design/resource_names#full_resource_name) - * of the resource profiled for this finding. - * - * Generated from protobuf field string full_resource_name = 9; - * @param string $var - * @return $this - */ - public function setFullResourceName($var) - { - GPBUtil::checkString($var, True); - $this->full_resource_name = $var; - - return $this; - } - - /** - * The type of the resource that was profiled. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 10; - * @return \Google\Cloud\Dlp\V2\DataSourceType|null - */ - public function getDataSourceType() - { - return $this->data_source_type; - } - - public function hasDataSourceType() - { - return isset($this->data_source_type); - } - - public function clearDataSourceType() - { - unset($this->data_source_type); - } - - /** - * The type of the resource that was profiled. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 10; - * @param \Google\Cloud\Dlp\V2\DataSourceType $var - * @return $this - */ - public function setDataSourceType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataSourceType::class); - $this->data_source_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFindingLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFindingLocation.php deleted file mode 100644 index 5fe456381489..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFindingLocation.php +++ /dev/null @@ -1,128 +0,0 @@ -google.privacy.dlp.v2.DataProfileFindingLocation - */ -class DataProfileFindingLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the container where the finding is located. - * The top-level name is the source file name or table name. Names of some - * common storage containers are formatted as follows: - * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` - * * Cloud Storage files: `gs://{bucket}/{path}` - * - * Generated from protobuf field string container_name = 1; - */ - protected $container_name = ''; - protected $location_extra_details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $container_name - * Name of the container where the finding is located. - * The top-level name is the source file name or table name. Names of some - * common storage containers are formatted as follows: - * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` - * * Cloud Storage files: `gs://{bucket}/{path}` - * @type \Google\Cloud\Dlp\V2\DataProfileFindingRecordLocation $data_profile_finding_record_location - * Location of a finding within a resource that produces a table data - * profile. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Name of the container where the finding is located. - * The top-level name is the source file name or table name. Names of some - * common storage containers are formatted as follows: - * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` - * * Cloud Storage files: `gs://{bucket}/{path}` - * - * Generated from protobuf field string container_name = 1; - * @return string - */ - public function getContainerName() - { - return $this->container_name; - } - - /** - * Name of the container where the finding is located. - * The top-level name is the source file name or table name. Names of some - * common storage containers are formatted as follows: - * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` - * * Cloud Storage files: `gs://{bucket}/{path}` - * - * Generated from protobuf field string container_name = 1; - * @param string $var - * @return $this - */ - public function setContainerName($var) - { - GPBUtil::checkString($var, True); - $this->container_name = $var; - - return $this; - } - - /** - * Location of a finding within a resource that produces a table data - * profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileFindingRecordLocation data_profile_finding_record_location = 2; - * @return \Google\Cloud\Dlp\V2\DataProfileFindingRecordLocation|null - */ - public function getDataProfileFindingRecordLocation() - { - return $this->readOneof(2); - } - - public function hasDataProfileFindingRecordLocation() - { - return $this->hasOneof(2); - } - - /** - * Location of a finding within a resource that produces a table data - * profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileFindingRecordLocation data_profile_finding_record_location = 2; - * @param \Google\Cloud\Dlp\V2\DataProfileFindingRecordLocation $var - * @return $this - */ - public function setDataProfileFindingRecordLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileFindingRecordLocation::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getLocationExtraDetails() - { - return $this->whichOneof("location_extra_details"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFindingRecordLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFindingRecordLocation.php deleted file mode 100644 index 76b0ce7a99da..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileFindingRecordLocation.php +++ /dev/null @@ -1,77 +0,0 @@ -google.privacy.dlp.v2.DataProfileFindingRecordLocation - */ -class DataProfileFindingRecordLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Field ID of the column containing the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - */ - protected $field = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Field ID of the column containing the finding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Field ID of the column containing the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Field ID of the column containing the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileJobConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileJobConfig.php deleted file mode 100644 index 1a3ae20f7743..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileJobConfig.php +++ /dev/null @@ -1,284 +0,0 @@ -google.privacy.dlp.v2.DataProfileJobConfig - */ -class DataProfileJobConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The data to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileLocation location = 1; - */ - protected $location = null; - /** - * The project that will run the scan. The DLP service - * account that exists within this project must have access to all resources - * that are profiled, and the DLP API must be enabled. - * - * Generated from protobuf field string project_id = 5; - */ - protected $project_id = ''; - /** - * Must be set only when scanning other clouds. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8; - */ - protected $other_cloud_starting_location = null; - /** - * Detection logic for profile generation. - * Not all template features are used by profiles. FindingLimits, - * include_quote and exclude_info_types have no impact on - * data profiling. - * Multiple templates may be provided if there is data in multiple regions. - * At most one template must be specified per-region (including "global"). - * Each region is scanned using the applicable template. If no region-specific - * template is specified, but a "global" template is specified, it will be - * copied to that region and used instead. If no global or region-specific - * template is provided for a region with data, that region's data will not be - * scanned. - * For more information, see - * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. - * - * Generated from protobuf field repeated string inspect_templates = 7; - */ - private $inspect_templates; - /** - * Actions to execute at the completion of the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; - */ - private $data_profile_actions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DataProfileLocation $location - * The data to scan. - * @type string $project_id - * The project that will run the scan. The DLP service - * account that exists within this project must have access to all resources - * that are profiled, and the DLP API must be enabled. - * @type \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation $other_cloud_starting_location - * Must be set only when scanning other clouds. - * @type string[] $inspect_templates - * Detection logic for profile generation. - * Not all template features are used by profiles. FindingLimits, - * include_quote and exclude_info_types have no impact on - * data profiling. - * Multiple templates may be provided if there is data in multiple regions. - * At most one template must be specified per-region (including "global"). - * Each region is scanned using the applicable template. If no region-specific - * template is specified, but a "global" template is specified, it will be - * copied to that region and used instead. If no global or region-specific - * template is provided for a region with data, that region's data will not be - * scanned. - * For more information, see - * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. - * @type \Google\Cloud\Dlp\V2\DataProfileAction[] $data_profile_actions - * Actions to execute at the completion of the job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The data to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileLocation location = 1; - * @return \Google\Cloud\Dlp\V2\DataProfileLocation|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * The data to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileLocation location = 1; - * @param \Google\Cloud\Dlp\V2\DataProfileLocation $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileLocation::class); - $this->location = $var; - - return $this; - } - - /** - * The project that will run the scan. The DLP service - * account that exists within this project must have access to all resources - * that are profiled, and the DLP API must be enabled. - * - * Generated from protobuf field string project_id = 5; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The project that will run the scan. The DLP service - * account that exists within this project must have access to all resources - * that are profiled, and the DLP API must be enabled. - * - * Generated from protobuf field string project_id = 5; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Must be set only when scanning other clouds. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8; - * @return \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation|null - */ - public function getOtherCloudStartingLocation() - { - return $this->other_cloud_starting_location; - } - - public function hasOtherCloudStartingLocation() - { - return isset($this->other_cloud_starting_location); - } - - public function clearOtherCloudStartingLocation() - { - unset($this->other_cloud_starting_location); - } - - /** - * Must be set only when scanning other clouds. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8; - * @param \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation $var - * @return $this - */ - public function setOtherCloudStartingLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation::class); - $this->other_cloud_starting_location = $var; - - return $this; - } - - /** - * Detection logic for profile generation. - * Not all template features are used by profiles. FindingLimits, - * include_quote and exclude_info_types have no impact on - * data profiling. - * Multiple templates may be provided if there is data in multiple regions. - * At most one template must be specified per-region (including "global"). - * Each region is scanned using the applicable template. If no region-specific - * template is specified, but a "global" template is specified, it will be - * copied to that region and used instead. If no global or region-specific - * template is provided for a region with data, that region's data will not be - * scanned. - * For more information, see - * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. - * - * Generated from protobuf field repeated string inspect_templates = 7; - * @return RepeatedField - */ - public function getInspectTemplates() - { - return $this->inspect_templates; - } - - /** - * Detection logic for profile generation. - * Not all template features are used by profiles. FindingLimits, - * include_quote and exclude_info_types have no impact on - * data profiling. - * Multiple templates may be provided if there is data in multiple regions. - * At most one template must be specified per-region (including "global"). - * Each region is scanned using the applicable template. If no region-specific - * template is specified, but a "global" template is specified, it will be - * copied to that region and used instead. If no global or region-specific - * template is provided for a region with data, that region's data will not be - * scanned. - * For more information, see - * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. - * - * Generated from protobuf field repeated string inspect_templates = 7; - * @param string[] $var - * @return $this - */ - public function setInspectTemplates($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->inspect_templates = $arr; - - return $this; - } - - /** - * Actions to execute at the completion of the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; - * @return RepeatedField<\Google\Cloud\Dlp\V2\DataProfileAction> - */ - public function getDataProfileActions() - { - return $this->data_profile_actions; - } - - /** - * Actions to execute at the completion of the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; - * @param \Google\Cloud\Dlp\V2\DataProfileAction[] $var - * @return $this - */ - public function setDataProfileActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DataProfileAction::class); - $this->data_profile_actions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileLocation.php deleted file mode 100644 index 028ada3f3168..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileLocation.php +++ /dev/null @@ -1,108 +0,0 @@ -google.privacy.dlp.v2.DataProfileLocation - */ -class DataProfileLocation extends \Google\Protobuf\Internal\Message -{ - protected $location; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $organization_id - * The ID of an organization to scan. - * @type int|string $folder_id - * The ID of the folder within an organization to scan. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The ID of an organization to scan. - * - * Generated from protobuf field int64 organization_id = 1; - * @return int|string - */ - public function getOrganizationId() - { - return $this->readOneof(1); - } - - public function hasOrganizationId() - { - return $this->hasOneof(1); - } - - /** - * The ID of an organization to scan. - * - * Generated from protobuf field int64 organization_id = 1; - * @param int|string $var - * @return $this - */ - public function setOrganizationId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The ID of the folder within an organization to scan. - * - * Generated from protobuf field int64 folder_id = 2; - * @return int|string - */ - public function getFolderId() - { - return $this->readOneof(2); - } - - public function hasFolderId() - { - return $this->hasOneof(2); - } - - /** - * The ID of the folder within an organization to scan. - * - * Generated from protobuf field int64 folder_id = 2; - * @param int|string $var - * @return $this - */ - public function setFolderId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getLocation() - { - return $this->whichOneof("location"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition.php deleted file mode 100644 index ea8e925d2f09..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition.php +++ /dev/null @@ -1,77 +0,0 @@ -google.privacy.dlp.v2.DataProfilePubSubCondition - */ -class DataProfilePubSubCondition extends \Google\Protobuf\Internal\Message -{ - /** - * An expression. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1; - */ - protected $expressions = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubExpressions $expressions - * An expression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * An expression. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1; - * @return \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubExpressions|null - */ - public function getExpressions() - { - return $this->expressions; - } - - public function hasExpressions() - { - return isset($this->expressions); - } - - public function clearExpressions() - { - unset($this->expressions); - } - - /** - * An expression. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1; - * @param \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubExpressions $var - * @return $this - */ - public function setExpressions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubExpressions::class); - $this->expressions = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/ProfileScoreBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/ProfileScoreBucket.php deleted file mode 100644 index eefb05eb30ec..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/ProfileScoreBucket.php +++ /dev/null @@ -1,61 +0,0 @@ -google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket - */ -class ProfileScoreBucket -{ - /** - * Unused. - * - * Generated from protobuf enum PROFILE_SCORE_BUCKET_UNSPECIFIED = 0; - */ - const PROFILE_SCORE_BUCKET_UNSPECIFIED = 0; - /** - * High risk/sensitivity detected. - * - * Generated from protobuf enum HIGH = 1; - */ - const HIGH = 1; - /** - * Medium or high risk/sensitivity detected. - * - * Generated from protobuf enum MEDIUM_OR_HIGH = 2; - */ - const MEDIUM_OR_HIGH = 2; - - private static $valueToName = [ - self::PROFILE_SCORE_BUCKET_UNSPECIFIED => 'PROFILE_SCORE_BUCKET_UNSPECIFIED', - self::HIGH => 'HIGH', - self::MEDIUM_OR_HIGH => 'MEDIUM_OR_HIGH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubCondition.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubCondition.php deleted file mode 100644 index 1e33f6e03d20..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubCondition.php +++ /dev/null @@ -1,108 +0,0 @@ -google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition - */ -class PubSubCondition extends \Google\Protobuf\Internal\Message -{ - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $minimum_risk_score - * The minimum data risk score that triggers the condition. - * @type int $minimum_sensitivity_score - * The minimum sensitivity level that triggers the condition. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The minimum data risk score that triggers the condition. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1; - * @return int - */ - public function getMinimumRiskScore() - { - return $this->readOneof(1); - } - - public function hasMinimumRiskScore() - { - return $this->hasOneof(1); - } - - /** - * The minimum data risk score that triggers the condition. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1; - * @param int $var - * @return $this - */ - public function setMinimumRiskScore($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\ProfileScoreBucket::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The minimum sensitivity level that triggers the condition. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2; - * @return int - */ - public function getMinimumSensitivityScore() - { - return $this->readOneof(2); - } - - public function hasMinimumSensitivityScore() - { - return $this->hasOneof(2); - } - - /** - * The minimum sensitivity level that triggers the condition. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2; - * @param int $var - * @return $this - */ - public function setMinimumSensitivityScore($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\ProfileScoreBucket::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions.php deleted file mode 100644 index 6d5002224d54..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions - */ -class PubSubExpressions extends \Google\Protobuf\Internal\Message -{ - /** - * The operator to apply to the collection of conditions. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1; - */ - protected $logical_operator = 0; - /** - * Conditions to apply to the expression. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2; - */ - private $conditions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $logical_operator - * The operator to apply to the collection of conditions. - * @type \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubCondition[] $conditions - * Conditions to apply to the expression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The operator to apply to the collection of conditions. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1; - * @return int - */ - public function getLogicalOperator() - { - return $this->logical_operator; - } - - /** - * The operator to apply to the collection of conditions. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1; - * @param int $var - * @return $this - */ - public function setLogicalOperator($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubExpressions\PubSubLogicalOperator::class); - $this->logical_operator = $var; - - return $this; - } - - /** - * Conditions to apply to the expression. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2; - * @return RepeatedField<\Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubCondition> - */ - public function getConditions() - { - return $this->conditions; - } - - /** - * Conditions to apply to the expression. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2; - * @param \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubCondition[] $var - * @return $this - */ - public function setConditions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubCondition::class); - $this->conditions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions/PubSubLogicalOperator.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions/PubSubLogicalOperator.php deleted file mode 100644 index fa2c8e0248d1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions/PubSubLogicalOperator.php +++ /dev/null @@ -1,65 +0,0 @@ -google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator - */ -class PubSubLogicalOperator -{ - /** - * Unused. - * - * Generated from protobuf enum LOGICAL_OPERATOR_UNSPECIFIED = 0; - */ - const LOGICAL_OPERATOR_UNSPECIFIED = 0; - /** - * Conditional OR. - * - * Generated from protobuf enum OR = 1; - */ - const PBOR = 1; - /** - * Conditional AND. - * - * Generated from protobuf enum AND = 2; - */ - const PBAND = 2; - - private static $valueToName = [ - self::LOGICAL_OPERATOR_UNSPECIFIED => 'LOGICAL_OPERATOR_UNSPECIFIED', - self::PBOR => 'OR', - self::PBAND => 'AND', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubMessage.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubMessage.php deleted file mode 100644 index 96e2f2976e4f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubMessage.php +++ /dev/null @@ -1,173 +0,0 @@ -google.privacy.dlp.v2.DataProfilePubSubMessage - */ -class DataProfilePubSubMessage extends \Google\Protobuf\Internal\Message -{ - /** - * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. - * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and - * `full_resource` will be populated. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile profile = 1; - */ - protected $profile = null; - /** - * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated. - * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and - * `file_store_path` will be populated. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; - */ - protected $file_store_profile = null; - /** - * The event that caused the Pub/Sub message to be sent. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; - */ - protected $event = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\TableDataProfile $profile - * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. - * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and - * `full_resource` will be populated. - * @type \Google\Cloud\Dlp\V2\FileStoreDataProfile $file_store_profile - * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated. - * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and - * `file_store_path` will be populated. - * @type int $event - * The event that caused the Pub/Sub message to be sent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. - * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and - * `full_resource` will be populated. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile profile = 1; - * @return \Google\Cloud\Dlp\V2\TableDataProfile|null - */ - public function getProfile() - { - return $this->profile; - } - - public function hasProfile() - { - return isset($this->profile); - } - - public function clearProfile() - { - unset($this->profile); - } - - /** - * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. - * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and - * `full_resource` will be populated. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile profile = 1; - * @param \Google\Cloud\Dlp\V2\TableDataProfile $var - * @return $this - */ - public function setProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableDataProfile::class); - $this->profile = $var; - - return $this; - } - - /** - * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated. - * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and - * `file_store_path` will be populated. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; - * @return \Google\Cloud\Dlp\V2\FileStoreDataProfile|null - */ - public function getFileStoreProfile() - { - return $this->file_store_profile; - } - - public function hasFileStoreProfile() - { - return isset($this->file_store_profile); - } - - public function clearFileStoreProfile() - { - unset($this->file_store_profile); - } - - /** - * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated. - * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and - * `file_store_path` will be populated. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; - * @param \Google\Cloud\Dlp\V2\FileStoreDataProfile $var - * @return $this - */ - public function setFileStoreProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FileStoreDataProfile::class); - $this->file_store_profile = $var; - - return $this; - } - - /** - * The event that caused the Pub/Sub message to be sent. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; - * @return int - */ - public function getEvent() - { - return $this->event; - } - - /** - * The event that caused the Pub/Sub message to be sent. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; - * @param int $var - * @return $this - */ - public function setEvent($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileAction\EventType::class); - $this->event = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileUpdateFrequency.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileUpdateFrequency.php deleted file mode 100644 index 4b4fc355a7b8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileUpdateFrequency.php +++ /dev/null @@ -1,69 +0,0 @@ -google.privacy.dlp.v2.DataProfileUpdateFrequency - */ -class DataProfileUpdateFrequency -{ - /** - * Unspecified. - * - * Generated from protobuf enum UPDATE_FREQUENCY_UNSPECIFIED = 0; - */ - const UPDATE_FREQUENCY_UNSPECIFIED = 0; - /** - * After the data profile is created, it will never be updated. - * - * Generated from protobuf enum UPDATE_FREQUENCY_NEVER = 1; - */ - const UPDATE_FREQUENCY_NEVER = 1; - /** - * The data profile can be updated up to once every 24 hours. - * - * Generated from protobuf enum UPDATE_FREQUENCY_DAILY = 2; - */ - const UPDATE_FREQUENCY_DAILY = 2; - /** - * The data profile can be updated up to once every 30 days. Default. - * - * Generated from protobuf enum UPDATE_FREQUENCY_MONTHLY = 4; - */ - const UPDATE_FREQUENCY_MONTHLY = 4; - - private static $valueToName = [ - self::UPDATE_FREQUENCY_UNSPECIFIED => 'UPDATE_FREQUENCY_UNSPECIFIED', - self::UPDATE_FREQUENCY_NEVER => 'UPDATE_FREQUENCY_NEVER', - self::UPDATE_FREQUENCY_DAILY => 'UPDATE_FREQUENCY_DAILY', - self::UPDATE_FREQUENCY_MONTHLY => 'UPDATE_FREQUENCY_MONTHLY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel.php deleted file mode 100644 index a7ae54004c05..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.DataRiskLevel - */ -class DataRiskLevel extends \Google\Protobuf\Internal\Message -{ - /** - * The score applied to the resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1; - */ - protected $score = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $score - * The score applied to the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The score applied to the resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1; - * @return int - */ - public function getScore() - { - return $this->score; - } - - /** - * The score applied to the resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1; - * @param int $var - * @return $this - */ - public function setScore($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataRiskLevel\DataRiskLevelScore::class); - $this->score = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel/DataRiskLevelScore.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel/DataRiskLevelScore.php deleted file mode 100644 index f997465b5460..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel/DataRiskLevelScore.php +++ /dev/null @@ -1,81 +0,0 @@ -google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore - */ -class DataRiskLevelScore -{ - /** - * Unused. - * - * Generated from protobuf enum RISK_SCORE_UNSPECIFIED = 0; - */ - const RISK_SCORE_UNSPECIFIED = 0; - /** - * Low risk - Lower indication of sensitive data that appears to have - * additional access restrictions in place or no indication of sensitive - * data found. - * - * Generated from protobuf enum RISK_LOW = 10; - */ - const RISK_LOW = 10; - /** - * Unable to determine risk. - * - * Generated from protobuf enum RISK_UNKNOWN = 12; - */ - const RISK_UNKNOWN = 12; - /** - * Medium risk - Sensitive data may be present but additional access or fine - * grain access restrictions appear to be present. Consider limiting - * access even further or transform data to mask. - * - * Generated from protobuf enum RISK_MODERATE = 20; - */ - const RISK_MODERATE = 20; - /** - * High risk – SPII may be present. Access controls may include public - * ACLs. Exfiltration of data may lead to user data loss. Re-identification - * of users may be possible. Consider limiting usage and or removing SPII. - * - * Generated from protobuf enum RISK_HIGH = 30; - */ - const RISK_HIGH = 30; - - private static $valueToName = [ - self::RISK_SCORE_UNSPECIFIED => 'RISK_SCORE_UNSPECIFIED', - self::RISK_LOW => 'RISK_LOW', - self::RISK_UNKNOWN => 'RISK_UNKNOWN', - self::RISK_MODERATE => 'RISK_MODERATE', - self::RISK_HIGH => 'RISK_HIGH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataSourceType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataSourceType.php deleted file mode 100644 index 7b5188e4eddb..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataSourceType.php +++ /dev/null @@ -1,87 +0,0 @@ -google.privacy.dlp.v2.DataSourceType - */ -class DataSourceType extends \Google\Protobuf\Internal\Message -{ - /** - * A string that identifies the type of resource being profiled. - * Current values: - * * google/bigquery/table - * * google/project - * * google/sql/table - * * google/gcs/bucket - * - * Generated from protobuf field string data_source = 1; - */ - protected $data_source = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $data_source - * A string that identifies the type of resource being profiled. - * Current values: - * * google/bigquery/table - * * google/project - * * google/sql/table - * * google/gcs/bucket - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A string that identifies the type of resource being profiled. - * Current values: - * * google/bigquery/table - * * google/project - * * google/sql/table - * * google/gcs/bucket - * - * Generated from protobuf field string data_source = 1; - * @return string - */ - public function getDataSource() - { - return $this->data_source; - } - - /** - * A string that identifies the type of resource being profiled. - * Current values: - * * google/bigquery/table - * * google/project - * * google/sql/table - * * google/gcs/bucket - * - * Generated from protobuf field string data_source = 1; - * @param string $var - * @return $this - */ - public function setDataSource($var) - { - GPBUtil::checkString($var, True); - $this->data_source = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceCollection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceCollection.php deleted file mode 100644 index 7f217523160f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceCollection.php +++ /dev/null @@ -1,76 +0,0 @@ -google.privacy.dlp.v2.DatabaseResourceCollection - */ -class DatabaseResourceCollection extends \Google\Protobuf\Internal\Message -{ - protected $pattern; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DatabaseResourceRegexes $include_regexes - * A collection of regular expressions to match a database resource against. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A collection of regular expressions to match a database resource against. - * - * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceRegexes include_regexes = 1; - * @return \Google\Cloud\Dlp\V2\DatabaseResourceRegexes|null - */ - public function getIncludeRegexes() - { - return $this->readOneof(1); - } - - public function hasIncludeRegexes() - { - return $this->hasOneof(1); - } - - /** - * A collection of regular expressions to match a database resource against. - * - * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceRegexes include_regexes = 1; - * @param \Google\Cloud\Dlp\V2\DatabaseResourceRegexes $var - * @return $this - */ - public function setIncludeRegexes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DatabaseResourceRegexes::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getPattern() - { - return $this->whichOneof("pattern"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceReference.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceReference.php deleted file mode 100644 index 00e861dc8f1a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceReference.php +++ /dev/null @@ -1,181 +0,0 @@ -google.privacy.dlp.v2.DatabaseResourceReference - */ -class DatabaseResourceReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. If within a project-level config, then this must match the - * config's project ID. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * Required. The instance where this resource is located. For example: Cloud - * SQL instance ID. - * - * Generated from protobuf field string instance = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance = ''; - /** - * Required. Name of a database within the instance. - * - * Generated from protobuf field string database = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database = ''; - /** - * Required. Name of a database resource, for example, a table within the - * database. - * - * Generated from protobuf field string database_resource = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database_resource = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. If within a project-level config, then this must match the - * config's project ID. - * @type string $instance - * Required. The instance where this resource is located. For example: Cloud - * SQL instance ID. - * @type string $database - * Required. Name of a database within the instance. - * @type string $database_resource - * Required. Name of a database resource, for example, a table within the - * database. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. If within a project-level config, then this must match the - * config's project ID. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. If within a project-level config, then this must match the - * config's project ID. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The instance where this resource is located. For example: Cloud - * SQL instance ID. - * - * Generated from protobuf field string instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getInstance() - { - return $this->instance; - } - - /** - * Required. The instance where this resource is located. For example: Cloud - * SQL instance ID. - * - * Generated from protobuf field string instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setInstance($var) - { - GPBUtil::checkString($var, True); - $this->instance = $var; - - return $this; - } - - /** - * Required. Name of a database within the instance. - * - * Generated from protobuf field string database = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatabase() - { - return $this->database; - } - - /** - * Required. Name of a database within the instance. - * - * Generated from protobuf field string database = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatabase($var) - { - GPBUtil::checkString($var, True); - $this->database = $var; - - return $this; - } - - /** - * Required. Name of a database resource, for example, a table within the - * database. - * - * Generated from protobuf field string database_resource = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatabaseResource() - { - return $this->database_resource; - } - - /** - * Required. Name of a database resource, for example, a table within the - * database. - * - * Generated from protobuf field string database_resource = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatabaseResource($var) - { - GPBUtil::checkString($var, True); - $this->database_resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegex.php deleted file mode 100644 index fd1f5b4e053d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegex.php +++ /dev/null @@ -1,188 +0,0 @@ -google.privacy.dlp.v2.DatabaseResourceRegex - */ -class DatabaseResourceRegex extends \Google\Protobuf\Internal\Message -{ - /** - * For organizations, if unset, will match all projects. Has no effect - * for configurations created within a project. - * - * Generated from protobuf field string project_id_regex = 1; - */ - protected $project_id_regex = ''; - /** - * Regex to test the instance name against. If empty, all instances match. - * - * Generated from protobuf field string instance_regex = 2; - */ - protected $instance_regex = ''; - /** - * Regex to test the database name against. If empty, all databases match. - * - * Generated from protobuf field string database_regex = 3; - */ - protected $database_regex = ''; - /** - * Regex to test the database resource's name against. An example of a - * database resource name is a table's name. Other database resource names - * like view names could be included in the future. If empty, all database - * resources match. - * - * Generated from protobuf field string database_resource_name_regex = 4; - */ - protected $database_resource_name_regex = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id_regex - * For organizations, if unset, will match all projects. Has no effect - * for configurations created within a project. - * @type string $instance_regex - * Regex to test the instance name against. If empty, all instances match. - * @type string $database_regex - * Regex to test the database name against. If empty, all databases match. - * @type string $database_resource_name_regex - * Regex to test the database resource's name against. An example of a - * database resource name is a table's name. Other database resource names - * like view names could be included in the future. If empty, all database - * resources match. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * For organizations, if unset, will match all projects. Has no effect - * for configurations created within a project. - * - * Generated from protobuf field string project_id_regex = 1; - * @return string - */ - public function getProjectIdRegex() - { - return $this->project_id_regex; - } - - /** - * For organizations, if unset, will match all projects. Has no effect - * for configurations created within a project. - * - * Generated from protobuf field string project_id_regex = 1; - * @param string $var - * @return $this - */ - public function setProjectIdRegex($var) - { - GPBUtil::checkString($var, True); - $this->project_id_regex = $var; - - return $this; - } - - /** - * Regex to test the instance name against. If empty, all instances match. - * - * Generated from protobuf field string instance_regex = 2; - * @return string - */ - public function getInstanceRegex() - { - return $this->instance_regex; - } - - /** - * Regex to test the instance name against. If empty, all instances match. - * - * Generated from protobuf field string instance_regex = 2; - * @param string $var - * @return $this - */ - public function setInstanceRegex($var) - { - GPBUtil::checkString($var, True); - $this->instance_regex = $var; - - return $this; - } - - /** - * Regex to test the database name against. If empty, all databases match. - * - * Generated from protobuf field string database_regex = 3; - * @return string - */ - public function getDatabaseRegex() - { - return $this->database_regex; - } - - /** - * Regex to test the database name against. If empty, all databases match. - * - * Generated from protobuf field string database_regex = 3; - * @param string $var - * @return $this - */ - public function setDatabaseRegex($var) - { - GPBUtil::checkString($var, True); - $this->database_regex = $var; - - return $this; - } - - /** - * Regex to test the database resource's name against. An example of a - * database resource name is a table's name. Other database resource names - * like view names could be included in the future. If empty, all database - * resources match. - * - * Generated from protobuf field string database_resource_name_regex = 4; - * @return string - */ - public function getDatabaseResourceNameRegex() - { - return $this->database_resource_name_regex; - } - - /** - * Regex to test the database resource's name against. An example of a - * database resource name is a table's name. Other database resource names - * like view names could be included in the future. If empty, all database - * resources match. - * - * Generated from protobuf field string database_resource_name_regex = 4; - * @param string $var - * @return $this - */ - public function setDatabaseResourceNameRegex($var) - { - GPBUtil::checkString($var, True); - $this->database_resource_name_regex = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegexes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegexes.php deleted file mode 100644 index b302ddb6f166..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegexes.php +++ /dev/null @@ -1,80 +0,0 @@ -google.privacy.dlp.v2.DatabaseResourceRegexes - */ -class DatabaseResourceRegexes extends \Google\Protobuf\Internal\Message -{ - /** - * A group of regular expression patterns to match against one or more - * database resources. - * Maximum of 100 entries. The sum of all regular expression's length can't - * exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DatabaseResourceRegex patterns = 1; - */ - private $patterns; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DatabaseResourceRegex[] $patterns - * A group of regular expression patterns to match against one or more - * database resources. - * Maximum of 100 entries. The sum of all regular expression's length can't - * exceed 10 KiB. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A group of regular expression patterns to match against one or more - * database resources. - * Maximum of 100 entries. The sum of all regular expression's length can't - * exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DatabaseResourceRegex patterns = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\DatabaseResourceRegex> - */ - public function getPatterns() - { - return $this->patterns; - } - - /** - * A group of regular expression patterns to match against one or more - * database resources. - * Maximum of 100 entries. The sum of all regular expression's length can't - * exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DatabaseResourceRegex patterns = 1; - * @param \Google\Cloud\Dlp\V2\DatabaseResourceRegex[] $var - * @return $this - */ - public function setPatterns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DatabaseResourceRegex::class); - $this->patterns = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreKey.php deleted file mode 100644 index 6f278ce38458..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreKey.php +++ /dev/null @@ -1,77 +0,0 @@ -google.privacy.dlp.v2.DatastoreKey - */ -class DatastoreKey extends \Google\Protobuf\Internal\Message -{ - /** - * Datastore entity key. - * - * Generated from protobuf field .google.privacy.dlp.v2.Key entity_key = 1; - */ - protected $entity_key = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Key $entity_key - * Datastore entity key. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Datastore entity key. - * - * Generated from protobuf field .google.privacy.dlp.v2.Key entity_key = 1; - * @return \Google\Cloud\Dlp\V2\Key|null - */ - public function getEntityKey() - { - return $this->entity_key; - } - - public function hasEntityKey() - { - return isset($this->entity_key); - } - - public function clearEntityKey() - { - unset($this->entity_key); - } - - /** - * Datastore entity key. - * - * Generated from protobuf field .google.privacy.dlp.v2.Key entity_key = 1; - * @param \Google\Cloud\Dlp\V2\Key $var - * @return $this - */ - public function setEntityKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Key::class); - $this->entity_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreOptions.php deleted file mode 100644 index f6b5af24bcca..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreOptions.php +++ /dev/null @@ -1,125 +0,0 @@ -google.privacy.dlp.v2.DatastoreOptions - */ -class DatastoreOptions extends \Google\Protobuf\Internal\Message -{ - /** - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - * - * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; - */ - protected $partition_id = null; - /** - * The kind to process. - * - * Generated from protobuf field .google.privacy.dlp.v2.KindExpression kind = 2; - */ - protected $kind = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\PartitionId $partition_id - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - * @type \Google\Cloud\Dlp\V2\KindExpression $kind - * The kind to process. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - * - * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; - * @return \Google\Cloud\Dlp\V2\PartitionId|null - */ - public function getPartitionId() - { - return $this->partition_id; - } - - public function hasPartitionId() - { - return isset($this->partition_id); - } - - public function clearPartitionId() - { - unset($this->partition_id); - } - - /** - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - * - * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; - * @param \Google\Cloud\Dlp\V2\PartitionId $var - * @return $this - */ - public function setPartitionId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PartitionId::class); - $this->partition_id = $var; - - return $this; - } - - /** - * The kind to process. - * - * Generated from protobuf field .google.privacy.dlp.v2.KindExpression kind = 2; - * @return \Google\Cloud\Dlp\V2\KindExpression|null - */ - public function getKind() - { - return $this->kind; - } - - public function hasKind() - { - return isset($this->kind); - } - - public function clearKind() - { - unset($this->kind); - } - - /** - * The kind to process. - * - * Generated from protobuf field .google.privacy.dlp.v2.KindExpression kind = 2; - * @param \Google\Cloud\Dlp\V2\KindExpression $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\KindExpression::class); - $this->kind = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateShiftConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateShiftConfig.php deleted file mode 100644 index 188c45c4069d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateShiftConfig.php +++ /dev/null @@ -1,220 +0,0 @@ -google.privacy.dlp.v2.DateShiftConfig - */ -class DateShiftConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Range of shift in days. Actual shift will be selected at random - * within this range (inclusive ends). Negative means shift to earlier in - * time. Must not be more than 365250 days (1000 years) each direction. - * For example, 3 means shift date to at most 3 days into the future. - * - * Generated from protobuf field int32 upper_bound_days = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $upper_bound_days = 0; - /** - * Required. For example, -5 means shift date to at most 5 days back in the - * past. - * - * Generated from protobuf field int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $lower_bound_days = 0; - /** - * Points to the field that contains the context, for example, an entity id. - * If set, must also set cryptoKey. If set, shift will be consistent for the - * given context. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; - */ - protected $context = null; - protected $method; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $upper_bound_days - * Required. Range of shift in days. Actual shift will be selected at random - * within this range (inclusive ends). Negative means shift to earlier in - * time. Must not be more than 365250 days (1000 years) each direction. - * For example, 3 means shift date to at most 3 days into the future. - * @type int $lower_bound_days - * Required. For example, -5 means shift date to at most 5 days back in the - * past. - * @type \Google\Cloud\Dlp\V2\FieldId $context - * Points to the field that contains the context, for example, an entity id. - * If set, must also set cryptoKey. If set, shift will be consistent for the - * given context. - * @type \Google\Cloud\Dlp\V2\CryptoKey $crypto_key - * Causes the shift to be computed based on this key and the context. This - * results in the same shift for the same context and crypto_key. If - * set, must also set context. Can only be applied to table items. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Range of shift in days. Actual shift will be selected at random - * within this range (inclusive ends). Negative means shift to earlier in - * time. Must not be more than 365250 days (1000 years) each direction. - * For example, 3 means shift date to at most 3 days into the future. - * - * Generated from protobuf field int32 upper_bound_days = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getUpperBoundDays() - { - return $this->upper_bound_days; - } - - /** - * Required. Range of shift in days. Actual shift will be selected at random - * within this range (inclusive ends). Negative means shift to earlier in - * time. Must not be more than 365250 days (1000 years) each direction. - * For example, 3 means shift date to at most 3 days into the future. - * - * Generated from protobuf field int32 upper_bound_days = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setUpperBoundDays($var) - { - GPBUtil::checkInt32($var); - $this->upper_bound_days = $var; - - return $this; - } - - /** - * Required. For example, -5 means shift date to at most 5 days back in the - * past. - * - * Generated from protobuf field int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getLowerBoundDays() - { - return $this->lower_bound_days; - } - - /** - * Required. For example, -5 means shift date to at most 5 days back in the - * past. - * - * Generated from protobuf field int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setLowerBoundDays($var) - { - GPBUtil::checkInt32($var); - $this->lower_bound_days = $var; - - return $this; - } - - /** - * Points to the field that contains the context, for example, an entity id. - * If set, must also set cryptoKey. If set, shift will be consistent for the - * given context. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getContext() - { - return $this->context; - } - - public function hasContext() - { - return isset($this->context); - } - - public function clearContext() - { - unset($this->context); - } - - /** - * Points to the field that contains the context, for example, an entity id. - * If set, must also set cryptoKey. If set, shift will be consistent for the - * given context. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->context = $var; - - return $this; - } - - /** - * Causes the shift to be computed based on this key and the context. This - * results in the same shift for the same context and crypto_key. If - * set, must also set context. Can only be applied to table items. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 4; - * @return \Google\Cloud\Dlp\V2\CryptoKey|null - */ - public function getCryptoKey() - { - return $this->readOneof(4); - } - - public function hasCryptoKey() - { - return $this->hasOneof(4); - } - - /** - * Causes the shift to be computed based on this key and the context. This - * results in the same shift for the same context and crypto_key. If - * set, must also set context. Can only be applied to table items. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 4; - * @param \Google\Cloud\Dlp\V2\CryptoKey $var - * @return $this - */ - public function setCryptoKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoKey::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getMethod() - { - return $this->whichOneof("method"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime.php deleted file mode 100644 index 637d6bca9f84..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime.php +++ /dev/null @@ -1,204 +0,0 @@ -google.privacy.dlp.v2.DateTime - */ -class DateTime extends \Google\Protobuf\Internal\Message -{ - /** - * One or more of the following must be set. - * Must be a valid date or time value. - * - * Generated from protobuf field .google.type.Date date = 1; - */ - protected $date = null; - /** - * Day of week - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; - */ - protected $day_of_week = 0; - /** - * Time of day - * - * Generated from protobuf field .google.type.TimeOfDay time = 3; - */ - protected $time = null; - /** - * Time zone - * - * Generated from protobuf field .google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4; - */ - protected $time_zone = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\Date $date - * One or more of the following must be set. - * Must be a valid date or time value. - * @type int $day_of_week - * Day of week - * @type \Google\Type\TimeOfDay $time - * Time of day - * @type \Google\Cloud\Dlp\V2\DateTime\TimeZone $time_zone - * Time zone - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * One or more of the following must be set. - * Must be a valid date or time value. - * - * Generated from protobuf field .google.type.Date date = 1; - * @return \Google\Type\Date|null - */ - public function getDate() - { - return $this->date; - } - - public function hasDate() - { - return isset($this->date); - } - - public function clearDate() - { - unset($this->date); - } - - /** - * One or more of the following must be set. - * Must be a valid date or time value. - * - * Generated from protobuf field .google.type.Date date = 1; - * @param \Google\Type\Date $var - * @return $this - */ - public function setDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->date = $var; - - return $this; - } - - /** - * Day of week - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; - * @return int - */ - public function getDayOfWeek() - { - return $this->day_of_week; - } - - /** - * Day of week - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; - * @param int $var - * @return $this - */ - public function setDayOfWeek($var) - { - GPBUtil::checkEnum($var, \Google\Type\DayOfWeek::class); - $this->day_of_week = $var; - - return $this; - } - - /** - * Time of day - * - * Generated from protobuf field .google.type.TimeOfDay time = 3; - * @return \Google\Type\TimeOfDay|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Time of day - * - * Generated from protobuf field .google.type.TimeOfDay time = 3; - * @param \Google\Type\TimeOfDay $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); - $this->time = $var; - - return $this; - } - - /** - * Time zone - * - * Generated from protobuf field .google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4; - * @return \Google\Cloud\Dlp\V2\DateTime\TimeZone|null - */ - public function getTimeZone() - { - return $this->time_zone; - } - - public function hasTimeZone() - { - return isset($this->time_zone); - } - - public function clearTimeZone() - { - unset($this->time_zone); - } - - /** - * Time zone - * - * Generated from protobuf field .google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4; - * @param \Google\Cloud\Dlp\V2\DateTime\TimeZone $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DateTime\TimeZone::class); - $this->time_zone = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime/TimeZone.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime/TimeZone.php deleted file mode 100644 index 3d1ac87f375c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime/TimeZone.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.DateTime.TimeZone - */ -class TimeZone extends \Google\Protobuf\Internal\Message -{ - /** - * Set only if the offset can be determined. Positive for time ahead of UTC. - * E.g. For "UTC-9", this value is -540. - * - * Generated from protobuf field int32 offset_minutes = 1; - */ - protected $offset_minutes = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $offset_minutes - * Set only if the offset can be determined. Positive for time ahead of UTC. - * E.g. For "UTC-9", this value is -540. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Set only if the offset can be determined. Positive for time ahead of UTC. - * E.g. For "UTC-9", this value is -540. - * - * Generated from protobuf field int32 offset_minutes = 1; - * @return int - */ - public function getOffsetMinutes() - { - return $this->offset_minutes; - } - - /** - * Set only if the offset can be determined. Positive for time ahead of UTC. - * E.g. For "UTC-9", this value is -540. - * - * Generated from protobuf field int32 offset_minutes = 1; - * @param int $var - * @return $this - */ - public function setOffsetMinutes($var) - { - GPBUtil::checkInt32($var); - $this->offset_minutes = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyConfig.php deleted file mode 100644 index 2c0ecec153a9..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyConfig.php +++ /dev/null @@ -1,198 +0,0 @@ -google.privacy.dlp.v2.DeidentifyConfig - */ -class DeidentifyConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Mode for handling transformation errors. If left unspecified, the default - * mode is `TransformationErrorHandling.ThrowError`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; - */ - protected $transformation_error_handling = null; - protected $transformation; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoTypeTransformations $info_type_transformations - * Treat the dataset as free-form text and apply the same free text - * transformation everywhere. - * @type \Google\Cloud\Dlp\V2\RecordTransformations $record_transformations - * Treat the dataset as structured. Transformations can be applied to - * specific locations within structured datasets, such as transforming - * a column within a table. - * @type \Google\Cloud\Dlp\V2\ImageTransformations $image_transformations - * Treat the dataset as an image and redact. - * @type \Google\Cloud\Dlp\V2\TransformationErrorHandling $transformation_error_handling - * Mode for handling transformation errors. If left unspecified, the default - * mode is `TransformationErrorHandling.ThrowError`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Treat the dataset as free-form text and apply the same free text - * transformation everywhere. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 1; - * @return \Google\Cloud\Dlp\V2\InfoTypeTransformations|null - */ - public function getInfoTypeTransformations() - { - return $this->readOneof(1); - } - - public function hasInfoTypeTransformations() - { - return $this->hasOneof(1); - } - - /** - * Treat the dataset as free-form text and apply the same free text - * transformation everywhere. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 1; - * @param \Google\Cloud\Dlp\V2\InfoTypeTransformations $var - * @return $this - */ - public function setInfoTypeTransformations($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoTypeTransformations::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Treat the dataset as structured. Transformations can be applied to - * specific locations within structured datasets, such as transforming - * a column within a table. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordTransformations record_transformations = 2; - * @return \Google\Cloud\Dlp\V2\RecordTransformations|null - */ - public function getRecordTransformations() - { - return $this->readOneof(2); - } - - public function hasRecordTransformations() - { - return $this->hasOneof(2); - } - - /** - * Treat the dataset as structured. Transformations can be applied to - * specific locations within structured datasets, such as transforming - * a column within a table. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordTransformations record_transformations = 2; - * @param \Google\Cloud\Dlp\V2\RecordTransformations $var - * @return $this - */ - public function setRecordTransformations($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordTransformations::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Treat the dataset as an image and redact. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations image_transformations = 4; - * @return \Google\Cloud\Dlp\V2\ImageTransformations|null - */ - public function getImageTransformations() - { - return $this->readOneof(4); - } - - public function hasImageTransformations() - { - return $this->hasOneof(4); - } - - /** - * Treat the dataset as an image and redact. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations image_transformations = 4; - * @param \Google\Cloud\Dlp\V2\ImageTransformations $var - * @return $this - */ - public function setImageTransformations($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageTransformations::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Mode for handling transformation errors. If left unspecified, the default - * mode is `TransformationErrorHandling.ThrowError`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; - * @return \Google\Cloud\Dlp\V2\TransformationErrorHandling|null - */ - public function getTransformationErrorHandling() - { - return $this->transformation_error_handling; - } - - public function hasTransformationErrorHandling() - { - return isset($this->transformation_error_handling); - } - - public function clearTransformationErrorHandling() - { - unset($this->transformation_error_handling); - } - - /** - * Mode for handling transformation errors. If left unspecified, the default - * mode is `TransformationErrorHandling.ThrowError`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; - * @param \Google\Cloud\Dlp\V2\TransformationErrorHandling $var - * @return $this - */ - public function setTransformationErrorHandling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationErrorHandling::class); - $this->transformation_error_handling = $var; - - return $this; - } - - /** - * @return string - */ - public function getTransformation() - { - return $this->whichOneof("transformation"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentRequest.php deleted file mode 100644 index 89fa92f66c1c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentRequest.php +++ /dev/null @@ -1,417 +0,0 @@ -google.privacy.dlp.v2.DeidentifyContentRequest - */ -class DeidentifyContentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Configuration for the de-identification of the content item. - * Items specified here will override the template referenced by the - * deidentify_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2; - */ - protected $deidentify_config = null; - /** - * Configuration for the inspector. - * Items specified here will override the template referenced by the - * inspect_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; - */ - protected $inspect_config = null; - /** - * The item to de-identify. Will be treated as text. - * This value must be of type - * [Table][google.privacy.dlp.v2.Table] if your - * [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config] - * is a - * [RecordTransformations][google.privacy.dlp.v2.RecordTransformations] - * object. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; - */ - protected $item = null; - /** - * Template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 5; - */ - protected $inspect_template_name = ''; - /** - * Template to use. Any configuration directly specified in - * deidentify_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string deidentify_template_name = 6; - */ - protected $deidentify_template_name = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - */ - protected $location_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\DeidentifyConfig $deidentify_config - * Configuration for the de-identification of the content item. - * Items specified here will override the template referenced by the - * deidentify_template_name argument. - * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config - * Configuration for the inspector. - * Items specified here will override the template referenced by the - * inspect_template_name argument. - * @type \Google\Cloud\Dlp\V2\ContentItem $item - * The item to de-identify. Will be treated as text. - * This value must be of type - * [Table][google.privacy.dlp.v2.Table] if your - * [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config] - * is a - * [RecordTransformations][google.privacy.dlp.v2.RecordTransformations] - * object. - * @type string $inspect_template_name - * Template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * @type string $deidentify_template_name - * Template to use. Any configuration directly specified in - * deidentify_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Configuration for the de-identification of the content item. - * Items specified here will override the template referenced by the - * deidentify_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2; - * @return \Google\Cloud\Dlp\V2\DeidentifyConfig|null - */ - public function getDeidentifyConfig() - { - return $this->deidentify_config; - } - - public function hasDeidentifyConfig() - { - return isset($this->deidentify_config); - } - - public function clearDeidentifyConfig() - { - unset($this->deidentify_config); - } - - /** - * Configuration for the de-identification of the content item. - * Items specified here will override the template referenced by the - * deidentify_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2; - * @param \Google\Cloud\Dlp\V2\DeidentifyConfig $var - * @return $this - */ - public function setDeidentifyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyConfig::class); - $this->deidentify_config = $var; - - return $this; - } - - /** - * Configuration for the inspector. - * Items specified here will override the template referenced by the - * inspect_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; - * @return \Google\Cloud\Dlp\V2\InspectConfig|null - */ - public function getInspectConfig() - { - return $this->inspect_config; - } - - public function hasInspectConfig() - { - return isset($this->inspect_config); - } - - public function clearInspectConfig() - { - unset($this->inspect_config); - } - - /** - * Configuration for the inspector. - * Items specified here will override the template referenced by the - * inspect_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; - * @param \Google\Cloud\Dlp\V2\InspectConfig $var - * @return $this - */ - public function setInspectConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); - $this->inspect_config = $var; - - return $this; - } - - /** - * The item to de-identify. Will be treated as text. - * This value must be of type - * [Table][google.privacy.dlp.v2.Table] if your - * [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config] - * is a - * [RecordTransformations][google.privacy.dlp.v2.RecordTransformations] - * object. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; - * @return \Google\Cloud\Dlp\V2\ContentItem|null - */ - public function getItem() - { - return $this->item; - } - - public function hasItem() - { - return isset($this->item); - } - - public function clearItem() - { - unset($this->item); - } - - /** - * The item to de-identify. Will be treated as text. - * This value must be of type - * [Table][google.privacy.dlp.v2.Table] if your - * [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config] - * is a - * [RecordTransformations][google.privacy.dlp.v2.RecordTransformations] - * object. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; - * @param \Google\Cloud\Dlp\V2\ContentItem $var - * @return $this - */ - public function setItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); - $this->item = $var; - - return $this; - } - - /** - * Template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 5; - * @return string - */ - public function getInspectTemplateName() - { - return $this->inspect_template_name; - } - - /** - * Template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 5; - * @param string $var - * @return $this - */ - public function setInspectTemplateName($var) - { - GPBUtil::checkString($var, True); - $this->inspect_template_name = $var; - - return $this; - } - - /** - * Template to use. Any configuration directly specified in - * deidentify_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string deidentify_template_name = 6; - * @return string - */ - public function getDeidentifyTemplateName() - { - return $this->deidentify_template_name; - } - - /** - * Template to use. Any configuration directly specified in - * deidentify_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string deidentify_template_name = 6; - * @param string $var - * @return $this - */ - public function setDeidentifyTemplateName($var) - { - GPBUtil::checkString($var, True); - $this->deidentify_template_name = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentResponse.php deleted file mode 100644 index 74c7ff5478db..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentResponse.php +++ /dev/null @@ -1,121 +0,0 @@ -google.privacy.dlp.v2.DeidentifyContentResponse - */ -class DeidentifyContentResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The de-identified item. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - */ - protected $item = null; - /** - * An overview of the changes that were made on the `item`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; - */ - protected $overview = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\ContentItem $item - * The de-identified item. - * @type \Google\Cloud\Dlp\V2\TransformationOverview $overview - * An overview of the changes that were made on the `item`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The de-identified item. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - * @return \Google\Cloud\Dlp\V2\ContentItem|null - */ - public function getItem() - { - return $this->item; - } - - public function hasItem() - { - return isset($this->item); - } - - public function clearItem() - { - unset($this->item); - } - - /** - * The de-identified item. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - * @param \Google\Cloud\Dlp\V2\ContentItem $var - * @return $this - */ - public function setItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); - $this->item = $var; - - return $this; - } - - /** - * An overview of the changes that were made on the `item`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; - * @return \Google\Cloud\Dlp\V2\TransformationOverview|null - */ - public function getOverview() - { - return $this->overview; - } - - public function hasOverview() - { - return isset($this->overview); - } - - public function clearOverview() - { - unset($this->overview); - } - - /** - * An overview of the changes that were made on the `item`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; - * @param \Google\Cloud\Dlp\V2\TransformationOverview $var - * @return $this - */ - public function setOverview($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationOverview::class); - $this->overview = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails.php deleted file mode 100644 index 535d155ea665..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails.php +++ /dev/null @@ -1,122 +0,0 @@ -google.privacy.dlp.v2.DeidentifyDataSourceDetails - */ -class DeidentifyDataSourceDetails extends \Google\Protobuf\Internal\Message -{ - /** - * De-identification config used for the request. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; - */ - protected $requested_options = null; - /** - * Stats about the de-identification operation. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; - */ - protected $deidentify_stats = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails\RequestedDeidentifyOptions $requested_options - * De-identification config used for the request. - * @type \Google\Cloud\Dlp\V2\DeidentifyDataSourceStats $deidentify_stats - * Stats about the de-identification operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * De-identification config used for the request. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; - * @return \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails\RequestedDeidentifyOptions|null - */ - public function getRequestedOptions() - { - return $this->requested_options; - } - - public function hasRequestedOptions() - { - return isset($this->requested_options); - } - - public function clearRequestedOptions() - { - unset($this->requested_options); - } - - /** - * De-identification config used for the request. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; - * @param \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails\RequestedDeidentifyOptions $var - * @return $this - */ - public function setRequestedOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails\RequestedDeidentifyOptions::class); - $this->requested_options = $var; - - return $this; - } - - /** - * Stats about the de-identification operation. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; - * @return \Google\Cloud\Dlp\V2\DeidentifyDataSourceStats|null - */ - public function getDeidentifyStats() - { - return $this->deidentify_stats; - } - - public function hasDeidentifyStats() - { - return isset($this->deidentify_stats); - } - - public function clearDeidentifyStats() - { - unset($this->deidentify_stats); - } - - /** - * Stats about the de-identification operation. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; - * @param \Google\Cloud\Dlp\V2\DeidentifyDataSourceStats $var - * @return $this - */ - public function setDeidentifyStats($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyDataSourceStats::class); - $this->deidentify_stats = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails/RequestedDeidentifyOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails/RequestedDeidentifyOptions.php deleted file mode 100644 index c952ce01d9ba..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails/RequestedDeidentifyOptions.php +++ /dev/null @@ -1,181 +0,0 @@ -google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions - */ -class RequestedDeidentifyOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Snapshot of the state of the `DeidentifyTemplate` from the - * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time - * this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; - */ - protected $snapshot_deidentify_template = null; - /** - * Snapshot of the state of the structured `DeidentifyTemplate` from the - * `Deidentify` action at the time this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; - */ - protected $snapshot_structured_deidentify_template = null; - /** - * Snapshot of the state of the image transformation `DeidentifyTemplate` - * from the `Deidentify` action at the time this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; - */ - protected $snapshot_image_redact_template = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate $snapshot_deidentify_template - * Snapshot of the state of the `DeidentifyTemplate` from the - * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time - * this job was run. - * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate $snapshot_structured_deidentify_template - * Snapshot of the state of the structured `DeidentifyTemplate` from the - * `Deidentify` action at the time this job was run. - * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate $snapshot_image_redact_template - * Snapshot of the state of the image transformation `DeidentifyTemplate` - * from the `Deidentify` action at the time this job was run. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Snapshot of the state of the `DeidentifyTemplate` from the - * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time - * this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; - * @return \Google\Cloud\Dlp\V2\DeidentifyTemplate|null - */ - public function getSnapshotDeidentifyTemplate() - { - return $this->snapshot_deidentify_template; - } - - public function hasSnapshotDeidentifyTemplate() - { - return isset($this->snapshot_deidentify_template); - } - - public function clearSnapshotDeidentifyTemplate() - { - unset($this->snapshot_deidentify_template); - } - - /** - * Snapshot of the state of the `DeidentifyTemplate` from the - * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time - * this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; - * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $var - * @return $this - */ - public function setSnapshotDeidentifyTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); - $this->snapshot_deidentify_template = $var; - - return $this; - } - - /** - * Snapshot of the state of the structured `DeidentifyTemplate` from the - * `Deidentify` action at the time this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; - * @return \Google\Cloud\Dlp\V2\DeidentifyTemplate|null - */ - public function getSnapshotStructuredDeidentifyTemplate() - { - return $this->snapshot_structured_deidentify_template; - } - - public function hasSnapshotStructuredDeidentifyTemplate() - { - return isset($this->snapshot_structured_deidentify_template); - } - - public function clearSnapshotStructuredDeidentifyTemplate() - { - unset($this->snapshot_structured_deidentify_template); - } - - /** - * Snapshot of the state of the structured `DeidentifyTemplate` from the - * `Deidentify` action at the time this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; - * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $var - * @return $this - */ - public function setSnapshotStructuredDeidentifyTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); - $this->snapshot_structured_deidentify_template = $var; - - return $this; - } - - /** - * Snapshot of the state of the image transformation `DeidentifyTemplate` - * from the `Deidentify` action at the time this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; - * @return \Google\Cloud\Dlp\V2\DeidentifyTemplate|null - */ - public function getSnapshotImageRedactTemplate() - { - return $this->snapshot_image_redact_template; - } - - public function hasSnapshotImageRedactTemplate() - { - return isset($this->snapshot_image_redact_template); - } - - public function clearSnapshotImageRedactTemplate() - { - unset($this->snapshot_image_redact_template); - } - - /** - * Snapshot of the state of the image transformation `DeidentifyTemplate` - * from the `Deidentify` action at the time this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; - * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $var - * @return $this - */ - public function setSnapshotImageRedactTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); - $this->snapshot_image_redact_template = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceStats.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceStats.php deleted file mode 100644 index e38c21b34cf3..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceStats.php +++ /dev/null @@ -1,135 +0,0 @@ -google.privacy.dlp.v2.DeidentifyDataSourceStats - */ -class DeidentifyDataSourceStats extends \Google\Protobuf\Internal\Message -{ - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 1; - */ - protected $transformed_bytes = 0; - /** - * Number of successfully applied transformations. - * - * Generated from protobuf field int64 transformation_count = 2; - */ - protected $transformation_count = 0; - /** - * Number of errors encountered while trying to apply transformations. - * - * Generated from protobuf field int64 transformation_error_count = 3; - */ - protected $transformation_error_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $transformed_bytes - * Total size in bytes that were transformed in some way. - * @type int|string $transformation_count - * Number of successfully applied transformations. - * @type int|string $transformation_error_count - * Number of errors encountered while trying to apply transformations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 1; - * @return int|string - */ - public function getTransformedBytes() - { - return $this->transformed_bytes; - } - - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 1; - * @param int|string $var - * @return $this - */ - public function setTransformedBytes($var) - { - GPBUtil::checkInt64($var); - $this->transformed_bytes = $var; - - return $this; - } - - /** - * Number of successfully applied transformations. - * - * Generated from protobuf field int64 transformation_count = 2; - * @return int|string - */ - public function getTransformationCount() - { - return $this->transformation_count; - } - - /** - * Number of successfully applied transformations. - * - * Generated from protobuf field int64 transformation_count = 2; - * @param int|string $var - * @return $this - */ - public function setTransformationCount($var) - { - GPBUtil::checkInt64($var); - $this->transformation_count = $var; - - return $this; - } - - /** - * Number of errors encountered while trying to apply transformations. - * - * Generated from protobuf field int64 transformation_error_count = 3; - * @return int|string - */ - public function getTransformationErrorCount() - { - return $this->transformation_error_count; - } - - /** - * Number of errors encountered while trying to apply transformations. - * - * Generated from protobuf field int64 transformation_error_count = 3; - * @param int|string $var - * @return $this - */ - public function setTransformationErrorCount($var) - { - GPBUtil::checkInt64($var); - $this->transformation_error_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyTemplate.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyTemplate.php deleted file mode 100644 index 627ae3405038..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyTemplate.php +++ /dev/null @@ -1,282 +0,0 @@ -google.privacy.dlp.v2.DeidentifyTemplate - */ -class DeidentifyTemplate extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The template name. - * The template will have one of the following formats: - * `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Display name (max 256 chars). - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * Short description (max 256 chars). - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Output only. The creation timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The last update timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * The core content of the template. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6; - */ - protected $deidentify_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The template name. - * The template will have one of the following formats: - * `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID` - * @type string $display_name - * Display name (max 256 chars). - * @type string $description - * Short description (max 256 chars). - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation timestamp of an inspectTemplate. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last update timestamp of an inspectTemplate. - * @type \Google\Cloud\Dlp\V2\DeidentifyConfig $deidentify_config - * The core content of the template. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The template name. - * The template will have one of the following formats: - * `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The template name. - * The template will have one of the following formats: - * `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Display name (max 256 chars). - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name (max 256 chars). - * - * Generated from protobuf field string display_name = 2; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Short description (max 256 chars). - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Short description (max 256 chars). - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. The creation timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The creation timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The last update timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The last update timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * The core content of the template. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6; - * @return \Google\Cloud\Dlp\V2\DeidentifyConfig|null - */ - public function getDeidentifyConfig() - { - return $this->deidentify_config; - } - - public function hasDeidentifyConfig() - { - return isset($this->deidentify_config); - } - - public function clearDeidentifyConfig() - { - unset($this->deidentify_config); - } - - /** - * The core content of the template. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6; - * @param \Google\Cloud\Dlp\V2\DeidentifyConfig $var - * @return $this - */ - public function setDeidentifyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyConfig::class); - $this->deidentify_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteConnectionRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteConnectionRequest.php deleted file mode 100644 index 2896d85a7f80..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteConnectionRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.DeleteConnectionRequest - */ -class DeleteConnectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the Connection to be deleted, in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the Connection to be deleted, in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. Please see - * {@see DlpServiceClient::connectionName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteConnectionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the Connection to be deleted, in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the Connection to be deleted, in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the Connection to be deleted, in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDeidentifyTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDeidentifyTemplateRequest.php deleted file mode 100644 index dda435e03c7b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDeidentifyTemplateRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest - */ -class DeleteDeidentifyTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization and deidentify template to be - * deleted, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the organization and deidentify template to be - * deleted, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. Please see - * {@see DlpServiceClient::deidentifyTemplateName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteDeidentifyTemplateRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the organization and deidentify template to be - * deleted, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization and deidentify template to be - * deleted, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the organization and deidentify template to be - * deleted, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDiscoveryConfigRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDiscoveryConfigRequest.php deleted file mode 100644 index e4d498a20b9a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDiscoveryConfigRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.DeleteDiscoveryConfigRequest - */ -class DeleteDiscoveryConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the project and the config, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the project and the config, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. Please see - * {@see DlpServiceClient::discoveryConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteDiscoveryConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the project and the config, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the project and the config, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the project and the config, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDlpJobRequest.php deleted file mode 100644 index 985db26de861..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDlpJobRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.privacy.dlp.v2.DeleteDlpJobRequest - */ -class DeleteDlpJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DlpJob resource to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the DlpJob resource to be deleted. Please see - * {@see DlpServiceClient::dlpJobName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteDlpJobRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DlpJob resource to be deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DlpJob resource to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DlpJob resource to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteFileStoreDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteFileStoreDataProfileRequest.php deleted file mode 100644 index 42e56865dde5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteFileStoreDataProfileRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest - */ -class DeleteFileStoreDataProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the file store data profile. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the file store data profile. Please see - * {@see DlpServiceClient::fileStoreDataProfileName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteFileStoreDataProfileRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the file store data profile. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the file store data profile. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the file store data profile. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteInspectTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteInspectTemplateRequest.php deleted file mode 100644 index c2fdcf815e99..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteInspectTemplateRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.privacy.dlp.v2.DeleteInspectTemplateRequest - */ -class DeleteInspectTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization and inspectTemplate to be - * deleted, for example `organizations/433245324/inspectTemplates/432452342` - * or projects/project-id/inspectTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the organization and inspectTemplate to be - * deleted, for example `organizations/433245324/inspectTemplates/432452342` - * or projects/project-id/inspectTemplates/432452342. Please see - * {@see DlpServiceClient::inspectTemplateName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteInspectTemplateRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the organization and inspectTemplate to be - * deleted, for example `organizations/433245324/inspectTemplates/432452342` - * or projects/project-id/inspectTemplates/432452342. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization and inspectTemplate to be - * deleted, for example `organizations/433245324/inspectTemplates/432452342` - * or projects/project-id/inspectTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the organization and inspectTemplate to be - * deleted, for example `organizations/433245324/inspectTemplates/432452342` - * or projects/project-id/inspectTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteJobTriggerRequest.php deleted file mode 100644 index cc74d0a0dc36..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteJobTriggerRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.DeleteJobTriggerRequest - */ -class DeleteJobTriggerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. Please see - * {@see DlpServiceClient::jobTriggerName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteJobTriggerRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteStoredInfoTypeRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteStoredInfoTypeRequest.php deleted file mode 100644 index f5539488908b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteStoredInfoTypeRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.privacy.dlp.v2.DeleteStoredInfoTypeRequest - */ -class DeleteStoredInfoTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization and storedInfoType to be - * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the organization and storedInfoType to be - * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. Please see - * {@see DlpServiceClient::storedInfoTypeName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteStoredInfoTypeRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the organization and storedInfoType to be - * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization and storedInfoType to be - * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the organization and storedInfoType to be - * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteTableDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteTableDataProfileRequest.php deleted file mode 100644 index 214eb53f0022..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteTableDataProfileRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.privacy.dlp.v2.DeleteTableDataProfileRequest - */ -class DeleteTableDataProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the table data profile. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the table data profile. Please see - * {@see DlpServiceClient::tableDataProfileName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteTableDataProfileRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the table data profile. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the table data profile. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the table data profile. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Disabled.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Disabled.php deleted file mode 100644 index 29b9fa81c491..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Disabled.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.Disabled - */ -class Disabled extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions.php deleted file mode 100644 index 1e0f7dc6ea58..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions.php +++ /dev/null @@ -1,204 +0,0 @@ -google.privacy.dlp.v2.DiscoveryBigQueryConditions - */ -class DiscoveryBigQueryConditions extends \Google\Protobuf\Internal\Message -{ - /** - * BigQuery table must have been created after this date. Used to avoid - * backfilling. - * - * Generated from protobuf field .google.protobuf.Timestamp created_after = 1; - */ - protected $created_after = null; - /** - * At least one of the conditions must be true for a table to be scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions or_conditions = 4; - */ - protected $or_conditions = null; - protected $included_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $created_after - * BigQuery table must have been created after this date. Used to avoid - * backfilling. - * @type \Google\Cloud\Dlp\V2\BigQueryTableTypes $types - * Restrict discovery to specific table types. - * @type int $type_collection - * Restrict discovery to categories of table types. - * @type \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions\OrConditions $or_conditions - * At least one of the conditions must be true for a table to be scanned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * BigQuery table must have been created after this date. Used to avoid - * backfilling. - * - * Generated from protobuf field .google.protobuf.Timestamp created_after = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAfter() - { - return $this->created_after; - } - - public function hasCreatedAfter() - { - return isset($this->created_after); - } - - public function clearCreatedAfter() - { - unset($this->created_after); - } - - /** - * BigQuery table must have been created after this date. Used to avoid - * backfilling. - * - * Generated from protobuf field .google.protobuf.Timestamp created_after = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAfter($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_after = $var; - - return $this; - } - - /** - * Restrict discovery to specific table types. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableTypes types = 2; - * @return \Google\Cloud\Dlp\V2\BigQueryTableTypes|null - */ - public function getTypes() - { - return $this->readOneof(2); - } - - public function hasTypes() - { - return $this->hasOneof(2); - } - - /** - * Restrict discovery to specific table types. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableTypes types = 2; - * @param \Google\Cloud\Dlp\V2\BigQueryTableTypes $var - * @return $this - */ - public function setTypes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTableTypes::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Restrict discovery to categories of table types. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableTypeCollection type_collection = 3; - * @return int - */ - public function getTypeCollection() - { - return $this->readOneof(3); - } - - public function hasTypeCollection() - { - return $this->hasOneof(3); - } - - /** - * Restrict discovery to categories of table types. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableTypeCollection type_collection = 3; - * @param int $var - * @return $this - */ - public function setTypeCollection($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\BigQueryTableTypeCollection::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * At least one of the conditions must be true for a table to be scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions or_conditions = 4; - * @return \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions\OrConditions|null - */ - public function getOrConditions() - { - return $this->or_conditions; - } - - public function hasOrConditions() - { - return isset($this->or_conditions); - } - - public function clearOrConditions() - { - unset($this->or_conditions); - } - - /** - * At least one of the conditions must be true for a table to be scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions or_conditions = 4; - * @param \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions\OrConditions $var - * @return $this - */ - public function setOrConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions\OrConditions::class); - $this->or_conditions = $var; - - return $this; - } - - /** - * @return string - */ - public function getIncludedTypes() - { - return $this->whichOneof("included_types"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions/OrConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions/OrConditions.php deleted file mode 100644 index 81ebe465331c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions/OrConditions.php +++ /dev/null @@ -1,120 +0,0 @@ -google.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions - */ -class OrConditions extends \Google\Protobuf\Internal\Message -{ - /** - * Minimum number of rows that should be present before Cloud DLP - * profiles a table - * - * Generated from protobuf field int32 min_row_count = 1; - */ - protected $min_row_count = 0; - /** - * Minimum age a table must have before Cloud DLP can profile it. Value must - * be 1 hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 2; - */ - protected $min_age = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $min_row_count - * Minimum number of rows that should be present before Cloud DLP - * profiles a table - * @type \Google\Protobuf\Duration $min_age - * Minimum age a table must have before Cloud DLP can profile it. Value must - * be 1 hour or greater. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Minimum number of rows that should be present before Cloud DLP - * profiles a table - * - * Generated from protobuf field int32 min_row_count = 1; - * @return int - */ - public function getMinRowCount() - { - return $this->min_row_count; - } - - /** - * Minimum number of rows that should be present before Cloud DLP - * profiles a table - * - * Generated from protobuf field int32 min_row_count = 1; - * @param int $var - * @return $this - */ - public function setMinRowCount($var) - { - GPBUtil::checkInt32($var); - $this->min_row_count = $var; - - return $this; - } - - /** - * Minimum age a table must have before Cloud DLP can profile it. Value must - * be 1 hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 2; - * @return \Google\Protobuf\Duration|null - */ - public function getMinAge() - { - return $this->min_age; - } - - public function hasMinAge() - { - return isset($this->min_age); - } - - public function clearMinAge() - { - unset($this->min_age); - } - - /** - * Minimum age a table must have before Cloud DLP can profile it. Value must - * be 1 hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 2; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMinAge($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->min_age = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter.php deleted file mode 100644 index 43de277bfef8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter.php +++ /dev/null @@ -1,167 +0,0 @@ -google.privacy.dlp.v2.DiscoveryBigQueryFilter - */ -class DiscoveryBigQueryFilter extends \Google\Protobuf\Internal\Message -{ - protected $filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTableCollection $tables - * A specific set of tables for this filter to apply to. A table collection - * must be specified in only one filter per config. - * If a table id or dataset is empty, Cloud DLP assumes all tables in that - * collection must be profiled. Must specify a project ID. - * @type \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter\AllOtherBigQueryTables $other_tables - * Catch-all. This should always be the last filter in the list because - * anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * @type \Google\Cloud\Dlp\V2\TableReference $table_reference - * The table to scan. Discovery configurations including this can only - * include one DiscoveryTarget (the DiscoveryTarget with this - * TableReference). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A specific set of tables for this filter to apply to. A table collection - * must be specified in only one filter per config. - * If a table id or dataset is empty, Cloud DLP assumes all tables in that - * collection must be profiled. Must specify a project ID. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableCollection tables = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryTableCollection|null - */ - public function getTables() - { - return $this->readOneof(1); - } - - public function hasTables() - { - return $this->hasOneof(1); - } - - /** - * A specific set of tables for this filter to apply to. A table collection - * must be specified in only one filter per config. - * If a table id or dataset is empty, Cloud DLP assumes all tables in that - * collection must be profiled. Must specify a project ID. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableCollection tables = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryTableCollection $var - * @return $this - */ - public function setTables($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTableCollection::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Catch-all. This should always be the last filter in the list because - * anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryFilter.AllOtherBigQueryTables other_tables = 2; - * @return \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter\AllOtherBigQueryTables|null - */ - public function getOtherTables() - { - return $this->readOneof(2); - } - - public function hasOtherTables() - { - return $this->hasOneof(2); - } - - /** - * Catch-all. This should always be the last filter in the list because - * anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryFilter.AllOtherBigQueryTables other_tables = 2; - * @param \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter\AllOtherBigQueryTables $var - * @return $this - */ - public function setOtherTables($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter\AllOtherBigQueryTables::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The table to scan. Discovery configurations including this can only - * include one DiscoveryTarget (the DiscoveryTarget with this - * TableReference). - * - * Generated from protobuf field .google.privacy.dlp.v2.TableReference table_reference = 3; - * @return \Google\Cloud\Dlp\V2\TableReference|null - */ - public function getTableReference() - { - return $this->readOneof(3); - } - - public function hasTableReference() - { - return $this->hasOneof(3); - } - - /** - * The table to scan. Discovery configurations including this can only - * include one DiscoveryTarget (the DiscoveryTarget with this - * TableReference). - * - * Generated from protobuf field .google.privacy.dlp.v2.TableReference table_reference = 3; - * @param \Google\Cloud\Dlp\V2\TableReference $var - * @return $this - */ - public function setTableReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableReference::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getFilter() - { - return $this->whichOneof("filter"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter/AllOtherBigQueryTables.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter/AllOtherBigQueryTables.php deleted file mode 100644 index 4adc7bba6ccf..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter/AllOtherBigQueryTables.php +++ /dev/null @@ -1,35 +0,0 @@ -google.privacy.dlp.v2.DiscoveryBigQueryFilter.AllOtherBigQueryTables - */ -class AllOtherBigQueryTables extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions.php deleted file mode 100644 index 96c0b9dd3b49..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions.php +++ /dev/null @@ -1,114 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudSqlConditions - */ -class DiscoveryCloudSqlConditions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Database engines that should be profiled. - * Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $database_engines; - /** - * Data profiles will only be generated for the database resource types - * specified in this field. - * If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3; - */ - private $types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int[] $database_engines - * Optional. Database engines that should be profiled. - * Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. - * @type int[] $types - * Data profiles will only be generated for the database resource types - * specified in this field. - * If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Database engines that should be profiled. - * Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getDatabaseEngines() - { - return $this->database_engines; - } - - /** - * Optional. Database engines that should be profiled. - * Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int[] $var - * @return $this - */ - public function setDatabaseEngines($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions\DatabaseEngine::class); - $this->database_engines = $arr; - - return $this; - } - - /** - * Data profiles will only be generated for the database resource types - * specified in this field. - * If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3; - * @return RepeatedField - */ - public function getTypes() - { - return $this->types; - } - - /** - * Data profiles will only be generated for the database resource types - * specified in this field. - * If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3; - * @param int[] $var - * @return $this - */ - public function setTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions\DatabaseResourceType::class); - $this->types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseEngine.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseEngine.php deleted file mode 100644 index f111e0d5a90c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseEngine.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine - */ -class DatabaseEngine -{ - /** - * Unused. - * - * Generated from protobuf enum DATABASE_ENGINE_UNSPECIFIED = 0; - */ - const DATABASE_ENGINE_UNSPECIFIED = 0; - /** - * Include all supported database engines. - * - * Generated from protobuf enum ALL_SUPPORTED_DATABASE_ENGINES = 1; - */ - const ALL_SUPPORTED_DATABASE_ENGINES = 1; - /** - * MySQL database. - * - * Generated from protobuf enum MYSQL = 2; - */ - const MYSQL = 2; - /** - * PostgreSQL database. - * - * Generated from protobuf enum POSTGRES = 3; - */ - const POSTGRES = 3; - - private static $valueToName = [ - self::DATABASE_ENGINE_UNSPECIFIED => 'DATABASE_ENGINE_UNSPECIFIED', - self::ALL_SUPPORTED_DATABASE_ENGINES => 'ALL_SUPPORTED_DATABASE_ENGINES', - self::MYSQL => 'MYSQL', - self::POSTGRES => 'POSTGRES', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseResourceType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseResourceType.php deleted file mode 100644 index dc91b62c837a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseResourceType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType - */ -class DatabaseResourceType -{ - /** - * Unused. - * - * Generated from protobuf enum DATABASE_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - const DATABASE_RESOURCE_TYPE_UNSPECIFIED = 0; - /** - * Includes database resource types that become supported at a later time. - * - * Generated from protobuf enum DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES = 1; - */ - const DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES = 1; - /** - * Tables. - * - * Generated from protobuf enum DATABASE_RESOURCE_TYPE_TABLE = 2; - */ - const DATABASE_RESOURCE_TYPE_TABLE = 2; - - private static $valueToName = [ - self::DATABASE_RESOURCE_TYPE_UNSPECIFIED => 'DATABASE_RESOURCE_TYPE_UNSPECIFIED', - self::DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES => 'DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES', - self::DATABASE_RESOURCE_TYPE_TABLE => 'DATABASE_RESOURCE_TYPE_TABLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlFilter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlFilter.php deleted file mode 100644 index 6123f8644c35..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlFilter.php +++ /dev/null @@ -1,155 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudSqlFilter - */ -class DiscoveryCloudSqlFilter extends \Google\Protobuf\Internal\Message -{ - protected $filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DatabaseResourceCollection $collection - * A specific set of database resources for this filter to apply to. - * @type \Google\Cloud\Dlp\V2\AllOtherDatabaseResources $others - * Catch-all. This should always be the last target in the list because - * anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * @type \Google\Cloud\Dlp\V2\DatabaseResourceReference $database_resource_reference - * The database resource to scan. Targets including this can only include - * one target (the target with this database resource reference). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A specific set of database resources for this filter to apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceCollection collection = 1; - * @return \Google\Cloud\Dlp\V2\DatabaseResourceCollection|null - */ - public function getCollection() - { - return $this->readOneof(1); - } - - public function hasCollection() - { - return $this->hasOneof(1); - } - - /** - * A specific set of database resources for this filter to apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceCollection collection = 1; - * @param \Google\Cloud\Dlp\V2\DatabaseResourceCollection $var - * @return $this - */ - public function setCollection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DatabaseResourceCollection::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Catch-all. This should always be the last target in the list because - * anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.AllOtherDatabaseResources others = 2; - * @return \Google\Cloud\Dlp\V2\AllOtherDatabaseResources|null - */ - public function getOthers() - { - return $this->readOneof(2); - } - - public function hasOthers() - { - return $this->hasOneof(2); - } - - /** - * Catch-all. This should always be the last target in the list because - * anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.AllOtherDatabaseResources others = 2; - * @param \Google\Cloud\Dlp\V2\AllOtherDatabaseResources $var - * @return $this - */ - public function setOthers($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AllOtherDatabaseResources::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The database resource to scan. Targets including this can only include - * one target (the target with this database resource reference). - * - * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceReference database_resource_reference = 3; - * @return \Google\Cloud\Dlp\V2\DatabaseResourceReference|null - */ - public function getDatabaseResourceReference() - { - return $this->readOneof(3); - } - - public function hasDatabaseResourceReference() - { - return $this->hasOneof(3); - } - - /** - * The database resource to scan. Targets including this can only include - * one target (the target with this database resource reference). - * - * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceReference database_resource_reference = 3; - * @param \Google\Cloud\Dlp\V2\DatabaseResourceReference $var - * @return $this - */ - public function setDatabaseResourceReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DatabaseResourceReference::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getFilter() - { - return $this->whichOneof("filter"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence.php deleted file mode 100644 index 6cf5d214c32a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence.php +++ /dev/null @@ -1,177 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence - */ -class DiscoveryCloudSqlGenerationCadence extends \Google\Protobuf\Internal\Message -{ - /** - * When to reprofile if the schema has changed. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence schema_modified_cadence = 1; - */ - protected $schema_modified_cadence = null; - /** - * Data changes (non-schema changes) in Cloud SQL tables can't trigger - * reprofiling. If you set this field, profiles are refreshed at this - * frequency regardless of whether the underlying tables have changed. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 2; - */ - protected $refresh_frequency = 0; - /** - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; - */ - protected $inspect_template_modified_cadence = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence\SchemaModifiedCadence $schema_modified_cadence - * When to reprofile if the schema has changed. - * @type int $refresh_frequency - * Data changes (non-schema changes) in Cloud SQL tables can't trigger - * reprofiling. If you set this field, profiles are refreshed at this - * frequency regardless of whether the underlying tables have changed. - * Defaults to never. - * @type \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $inspect_template_modified_cadence - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * When to reprofile if the schema has changed. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence schema_modified_cadence = 1; - * @return \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence\SchemaModifiedCadence|null - */ - public function getSchemaModifiedCadence() - { - return $this->schema_modified_cadence; - } - - public function hasSchemaModifiedCadence() - { - return isset($this->schema_modified_cadence); - } - - public function clearSchemaModifiedCadence() - { - unset($this->schema_modified_cadence); - } - - /** - * When to reprofile if the schema has changed. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence schema_modified_cadence = 1; - * @param \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence\SchemaModifiedCadence $var - * @return $this - */ - public function setSchemaModifiedCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence\SchemaModifiedCadence::class); - $this->schema_modified_cadence = $var; - - return $this; - } - - /** - * Data changes (non-schema changes) in Cloud SQL tables can't trigger - * reprofiling. If you set this field, profiles are refreshed at this - * frequency regardless of whether the underlying tables have changed. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 2; - * @return int - */ - public function getRefreshFrequency() - { - return $this->refresh_frequency; - } - - /** - * Data changes (non-schema changes) in Cloud SQL tables can't trigger - * reprofiling. If you set this field, profiles are refreshed at this - * frequency regardless of whether the underlying tables have changed. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 2; - * @param int $var - * @return $this - */ - public function setRefreshFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); - $this->refresh_frequency = $var; - - return $this; - } - - /** - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; - * @return \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence|null - */ - public function getInspectTemplateModifiedCadence() - { - return $this->inspect_template_modified_cadence; - } - - public function hasInspectTemplateModifiedCadence() - { - return isset($this->inspect_template_modified_cadence); - } - - public function clearInspectTemplateModifiedCadence() - { - unset($this->inspect_template_modified_cadence); - } - - /** - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; - * @param \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $var - * @return $this - */ - public function setInspectTemplateModifiedCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence::class); - $this->inspect_template_modified_cadence = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence.php deleted file mode 100644 index 4124a9a1b255..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence.php +++ /dev/null @@ -1,109 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence - */ -class SchemaModifiedCadence extends \Google\Protobuf\Internal\Message -{ - /** - * The types of schema modifications to consider. - * Defaults to NEW_COLUMNS. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.CloudSqlSchemaModification types = 1; - */ - private $types; - /** - * Frequency to regenerate data profiles when the schema is modified. - * Defaults to monthly. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - */ - protected $frequency = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int[] $types - * The types of schema modifications to consider. - * Defaults to NEW_COLUMNS. - * @type int $frequency - * Frequency to regenerate data profiles when the schema is modified. - * Defaults to monthly. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The types of schema modifications to consider. - * Defaults to NEW_COLUMNS. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.CloudSqlSchemaModification types = 1; - * @return RepeatedField - */ - public function getTypes() - { - return $this->types; - } - - /** - * The types of schema modifications to consider. - * Defaults to NEW_COLUMNS. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.CloudSqlSchemaModification types = 1; - * @param int[] $var - * @return $this - */ - public function setTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence\SchemaModifiedCadence\CloudSqlSchemaModification::class); - $this->types = $arr; - - return $this; - } - - /** - * Frequency to regenerate data profiles when the schema is modified. - * Defaults to monthly. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - * @return int - */ - public function getFrequency() - { - return $this->frequency; - } - - /** - * Frequency to regenerate data profiles when the schema is modified. - * Defaults to monthly. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - * @param int $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); - $this->frequency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence/CloudSqlSchemaModification.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence/CloudSqlSchemaModification.php deleted file mode 100644 index d7faecdf8aca..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence/CloudSqlSchemaModification.php +++ /dev/null @@ -1,61 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.CloudSqlSchemaModification - */ -class CloudSqlSchemaModification -{ - /** - * Unused. - * - * Generated from protobuf enum SQL_SCHEMA_MODIFICATION_UNSPECIFIED = 0; - */ - const SQL_SCHEMA_MODIFICATION_UNSPECIFIED = 0; - /** - * New columns have appeared. - * - * Generated from protobuf enum NEW_COLUMNS = 1; - */ - const NEW_COLUMNS = 1; - /** - * Columns have been removed from the table. - * - * Generated from protobuf enum REMOVED_COLUMNS = 2; - */ - const REMOVED_COLUMNS = 2; - - private static $valueToName = [ - self::SQL_SCHEMA_MODIFICATION_UNSPECIFIED => 'SQL_SCHEMA_MODIFICATION_UNSPECIFIED', - self::NEW_COLUMNS => 'NEW_COLUMNS', - self::REMOVED_COLUMNS => 'REMOVED_COLUMNS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions.php deleted file mode 100644 index 7d913394158a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions.php +++ /dev/null @@ -1,123 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudStorageConditions - */ -class DiscoveryCloudStorageConditions extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Only objects with the specified attributes will be scanned. If an - * object has one of the specified attributes but is inside an excluded - * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A - * profile will be created even if no objects match the - * included_object_attributes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $included_object_attributes; - /** - * Required. Only objects with the specified attributes will be scanned. - * Defaults to [ALL_SUPPORTED_BUCKETS] if unset. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $included_bucket_attributes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int[] $included_object_attributes - * Required. Only objects with the specified attributes will be scanned. If an - * object has one of the specified attributes but is inside an excluded - * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A - * profile will be created even if no objects match the - * included_object_attributes. - * @type int[] $included_bucket_attributes - * Required. Only objects with the specified attributes will be scanned. - * Defaults to [ALL_SUPPORTED_BUCKETS] if unset. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Only objects with the specified attributes will be scanned. If an - * object has one of the specified attributes but is inside an excluded - * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A - * profile will be created even if no objects match the - * included_object_attributes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField - */ - public function getIncludedObjectAttributes() - { - return $this->included_object_attributes; - } - - /** - * Required. Only objects with the specified attributes will be scanned. If an - * object has one of the specified attributes but is inside an excluded - * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A - * profile will be created even if no objects match the - * included_object_attributes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int[] $var - * @return $this - */ - public function setIncludedObjectAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions\CloudStorageObjectAttribute::class); - $this->included_object_attributes = $arr; - - return $this; - } - - /** - * Required. Only objects with the specified attributes will be scanned. - * Defaults to [ALL_SUPPORTED_BUCKETS] if unset. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField - */ - public function getIncludedBucketAttributes() - { - return $this->included_bucket_attributes; - } - - /** - * Required. Only objects with the specified attributes will be scanned. - * Defaults to [ALL_SUPPORTED_BUCKETS] if unset. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int[] $var - * @return $this - */ - public function setIncludedBucketAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions\CloudStorageBucketAttribute::class); - $this->included_bucket_attributes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageBucketAttribute.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageBucketAttribute.php deleted file mode 100644 index b964ca9ca8be..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageBucketAttribute.php +++ /dev/null @@ -1,73 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute - */ -class CloudStorageBucketAttribute -{ - /** - * Unused. - * - * Generated from protobuf enum CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED = 0; - */ - const CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED = 0; - /** - * Scan buckets regardless of the attribute. - * - * Generated from protobuf enum ALL_SUPPORTED_BUCKETS = 1; - */ - const ALL_SUPPORTED_BUCKETS = 1; - /** - * Buckets with [Autoclass](https://cloud.google.com/storage/docs/autoclass) - * disabled. Only one of - * AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set. - * - * Generated from protobuf enum AUTOCLASS_DISABLED = 2; - */ - const AUTOCLASS_DISABLED = 2; - /** - * Buckets with [Autoclass](https://cloud.google.com/storage/docs/autoclass) - * enabled. Only one of - * AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set. Scanning - * Autoclass-enabled buckets can affect object storage classes. - * - * Generated from protobuf enum AUTOCLASS_ENABLED = 3; - */ - const AUTOCLASS_ENABLED = 3; - - private static $valueToName = [ - self::CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED => 'CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED', - self::ALL_SUPPORTED_BUCKETS => 'ALL_SUPPORTED_BUCKETS', - self::AUTOCLASS_DISABLED => 'AUTOCLASS_DISABLED', - self::AUTOCLASS_ENABLED => 'AUTOCLASS_ENABLED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageObjectAttribute.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageObjectAttribute.php deleted file mode 100644 index b973469865b4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageObjectAttribute.php +++ /dev/null @@ -1,109 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute - */ -class CloudStorageObjectAttribute -{ - /** - * Unused. - * - * Generated from protobuf enum CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED = 0; - */ - const CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED = 0; - /** - * Scan objects regardless of the attribute. - * - * Generated from protobuf enum ALL_SUPPORTED_OBJECTS = 1; - */ - const ALL_SUPPORTED_OBJECTS = 1; - /** - * Scan objects with the standard storage class. - * - * Generated from protobuf enum STANDARD = 2; - */ - const STANDARD = 2; - /** - * Scan objects with the nearline storage class. This will incur retrieval - * fees. - * - * Generated from protobuf enum NEARLINE = 3; - */ - const NEARLINE = 3; - /** - * Scan objects with the coldline storage class. This will incur retrieval - * fees. - * - * Generated from protobuf enum COLDLINE = 4; - */ - const COLDLINE = 4; - /** - * Scan objects with the archive storage class. This will incur retrieval - * fees. - * - * Generated from protobuf enum ARCHIVE = 5; - */ - const ARCHIVE = 5; - /** - * Scan objects with the regional storage class. - * - * Generated from protobuf enum REGIONAL = 6; - */ - const REGIONAL = 6; - /** - * Scan objects with the multi-regional storage class. - * - * Generated from protobuf enum MULTI_REGIONAL = 7; - */ - const MULTI_REGIONAL = 7; - /** - * Scan objects with the dual-regional storage class. This will incur - * retrieval fees. - * - * Generated from protobuf enum DURABLE_REDUCED_AVAILABILITY = 8; - */ - const DURABLE_REDUCED_AVAILABILITY = 8; - - private static $valueToName = [ - self::CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED => 'CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED', - self::ALL_SUPPORTED_OBJECTS => 'ALL_SUPPORTED_OBJECTS', - self::STANDARD => 'STANDARD', - self::NEARLINE => 'NEARLINE', - self::COLDLINE => 'COLDLINE', - self::ARCHIVE => 'ARCHIVE', - self::REGIONAL => 'REGIONAL', - self::MULTI_REGIONAL => 'MULTI_REGIONAL', - self::DURABLE_REDUCED_AVAILABILITY => 'DURABLE_REDUCED_AVAILABILITY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageFilter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageFilter.php deleted file mode 100644 index 1bdc66a39922..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageFilter.php +++ /dev/null @@ -1,161 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudStorageFilter - */ -class DiscoveryCloudStorageFilter extends \Google\Protobuf\Internal\Message -{ - protected $filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FileStoreCollection $collection - * Optional. A specific set of buckets for this filter to apply to. - * @type \Google\Cloud\Dlp\V2\CloudStorageResourceReference $cloud_storage_resource_reference - * Optional. The bucket to scan. Targets including this can only include one - * target (the target with this bucket). This enables profiling the contents - * of a single bucket, while the other options allow for easy profiling of - * many bucets within a project or an organization. - * @type \Google\Cloud\Dlp\V2\AllOtherResources $others - * Optional. Catch-all. This should always be the last target in the list - * because anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A specific set of buckets for this filter to apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\FileStoreCollection|null - */ - public function getCollection() - { - return $this->readOneof(1); - } - - public function hasCollection() - { - return $this->hasOneof(1); - } - - /** - * Optional. A specific set of buckets for this filter to apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\FileStoreCollection $var - * @return $this - */ - public function setCollection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FileStoreCollection::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Optional. The bucket to scan. Targets including this can only include one - * target (the target with this bucket). This enables profiling the contents - * of a single bucket, while the other options allow for easy profiling of - * many bucets within a project or an organization. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\CloudStorageResourceReference|null - */ - public function getCloudStorageResourceReference() - { - return $this->readOneof(2); - } - - public function hasCloudStorageResourceReference() - { - return $this->hasOneof(2); - } - - /** - * Optional. The bucket to scan. Targets including this can only include one - * target (the target with this bucket). This enables profiling the contents - * of a single bucket, while the other options allow for easy profiling of - * many bucets within a project or an organization. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\CloudStorageResourceReference $var - * @return $this - */ - public function setCloudStorageResourceReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageResourceReference::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Optional. Catch-all. This should always be the last target in the list - * because anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\AllOtherResources|null - */ - public function getOthers() - { - return $this->readOneof(100); - } - - public function hasOthers() - { - return $this->hasOneof(100); - } - - /** - * Optional. Catch-all. This should always be the last target in the list - * because anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\AllOtherResources $var - * @return $this - */ - public function setOthers($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AllOtherResources::class); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * @return string - */ - public function getFilter() - { - return $this->whichOneof("filter"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageGenerationCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageGenerationCadence.php deleted file mode 100644 index 8826077e2016..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageGenerationCadence.php +++ /dev/null @@ -1,129 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence - */ -class DiscoveryCloudStorageGenerationCadence extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you - * set this field, profiles are refreshed at this frequency regardless of - * whether the underlying buckets have changed. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $refresh_frequency = 0; - /** - * Optional. Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $inspect_template_modified_cadence = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $refresh_frequency - * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you - * set this field, profiles are refreshed at this frequency regardless of - * whether the underlying buckets have changed. Defaults to never. - * @type \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $inspect_template_modified_cadence - * Optional. Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you - * set this field, profiles are refreshed at this frequency regardless of - * whether the underlying buckets have changed. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getRefreshFrequency() - { - return $this->refresh_frequency; - } - - /** - * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you - * set this field, profiles are refreshed at this frequency regardless of - * whether the underlying buckets have changed. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setRefreshFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); - $this->refresh_frequency = $var; - - return $this; - } - - /** - * Optional. Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence|null - */ - public function getInspectTemplateModifiedCadence() - { - return $this->inspect_template_modified_cadence; - } - - public function hasInspectTemplateModifiedCadence() - { - return isset($this->inspect_template_modified_cadence); - } - - public function clearInspectTemplateModifiedCadence() - { - unset($this->inspect_template_modified_cadence); - } - - /** - * Optional. Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $var - * @return $this - */ - public function setInspectTemplateModifiedCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence::class); - $this->inspect_template_modified_cadence = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig.php deleted file mode 100644 index 9d25f99eba2f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig.php +++ /dev/null @@ -1,616 +0,0 @@ -google.privacy.dlp.v2.DiscoveryConfig - */ -class DiscoveryConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Unique resource name for the DiscoveryConfig, assigned by the service when - * the DiscoveryConfig is created, for example - * `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Display name (max 100 chars) - * - * Generated from protobuf field string display_name = 11; - */ - protected $display_name = ''; - /** - * Only set when the parent is an org. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2; - */ - protected $org_config = null; - /** - * Must be set only when scanning other clouds. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12; - */ - protected $other_cloud_starting_location = null; - /** - * Detection logic for profile generation. - * Not all template features are used by Discovery. FindingLimits, - * include_quote and exclude_info_types have no impact on - * Discovery. - * Multiple templates may be provided if there is data in multiple regions. - * At most one template must be specified per-region (including "global"). - * Each region is scanned using the applicable template. If no region-specific - * template is specified, but a "global" template is specified, it will be - * copied to that region and used instead. If no global or region-specific - * template is provided for a region with data, that region's data will not be - * scanned. - * For more information, see - * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. - * - * Generated from protobuf field repeated string inspect_templates = 3; - */ - private $inspect_templates; - /** - * Actions to execute at the completion of scanning. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; - */ - private $actions; - /** - * Target to match against for determining what to scan and how frequently. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; - */ - private $targets; - /** - * Output only. A stream of errors encountered when the config was activated. - * Repeated errors may result in the config automatically being paused. Output - * only field. Will return the last 100 errors. Whenever the config is - * modified this list will be cleared. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $errors; - /** - * Output only. The creation timestamp of a DiscoveryConfig. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The last update timestamp of a DiscoveryConfig. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The timestamp of the last time this config was executed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_run_time = null; - /** - * Required. A status for this configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $status = 0; - /** - * Optional. Processing location configuration. Vertex AI dataset scanning - * will set processing_location.image_fallback_type to MultiRegionProcessing - * by default. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation processing_location = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $processing_location = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Unique resource name for the DiscoveryConfig, assigned by the service when - * the DiscoveryConfig is created, for example - * `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`. - * @type string $display_name - * Display name (max 100 chars) - * @type \Google\Cloud\Dlp\V2\DiscoveryConfig\OrgConfig $org_config - * Only set when the parent is an org. - * @type \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation $other_cloud_starting_location - * Must be set only when scanning other clouds. - * @type string[] $inspect_templates - * Detection logic for profile generation. - * Not all template features are used by Discovery. FindingLimits, - * include_quote and exclude_info_types have no impact on - * Discovery. - * Multiple templates may be provided if there is data in multiple regions. - * At most one template must be specified per-region (including "global"). - * Each region is scanned using the applicable template. If no region-specific - * template is specified, but a "global" template is specified, it will be - * copied to that region and used instead. If no global or region-specific - * template is provided for a region with data, that region's data will not be - * scanned. - * For more information, see - * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. - * @type \Google\Cloud\Dlp\V2\DataProfileAction[] $actions - * Actions to execute at the completion of scanning. - * @type \Google\Cloud\Dlp\V2\DiscoveryTarget[] $targets - * Target to match against for determining what to scan and how frequently. - * @type \Google\Cloud\Dlp\V2\Error[] $errors - * Output only. A stream of errors encountered when the config was activated. - * Repeated errors may result in the config automatically being paused. Output - * only field. Will return the last 100 errors. Whenever the config is - * modified this list will be cleared. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation timestamp of a DiscoveryConfig. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last update timestamp of a DiscoveryConfig. - * @type \Google\Protobuf\Timestamp $last_run_time - * Output only. The timestamp of the last time this config was executed. - * @type int $status - * Required. A status for this configuration. - * @type \Google\Cloud\Dlp\V2\ProcessingLocation $processing_location - * Optional. Processing location configuration. Vertex AI dataset scanning - * will set processing_location.image_fallback_type to MultiRegionProcessing - * by default. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Unique resource name for the DiscoveryConfig, assigned by the service when - * the DiscoveryConfig is created, for example - * `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Unique resource name for the DiscoveryConfig, assigned by the service when - * the DiscoveryConfig is created, for example - * `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Display name (max 100 chars) - * - * Generated from protobuf field string display_name = 11; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name (max 100 chars) - * - * Generated from protobuf field string display_name = 11; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Only set when the parent is an org. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2; - * @return \Google\Cloud\Dlp\V2\DiscoveryConfig\OrgConfig|null - */ - public function getOrgConfig() - { - return $this->org_config; - } - - public function hasOrgConfig() - { - return isset($this->org_config); - } - - public function clearOrgConfig() - { - unset($this->org_config); - } - - /** - * Only set when the parent is an org. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2; - * @param \Google\Cloud\Dlp\V2\DiscoveryConfig\OrgConfig $var - * @return $this - */ - public function setOrgConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryConfig\OrgConfig::class); - $this->org_config = $var; - - return $this; - } - - /** - * Must be set only when scanning other clouds. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12; - * @return \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation|null - */ - public function getOtherCloudStartingLocation() - { - return $this->other_cloud_starting_location; - } - - public function hasOtherCloudStartingLocation() - { - return isset($this->other_cloud_starting_location); - } - - public function clearOtherCloudStartingLocation() - { - unset($this->other_cloud_starting_location); - } - - /** - * Must be set only when scanning other clouds. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12; - * @param \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation $var - * @return $this - */ - public function setOtherCloudStartingLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation::class); - $this->other_cloud_starting_location = $var; - - return $this; - } - - /** - * Detection logic for profile generation. - * Not all template features are used by Discovery. FindingLimits, - * include_quote and exclude_info_types have no impact on - * Discovery. - * Multiple templates may be provided if there is data in multiple regions. - * At most one template must be specified per-region (including "global"). - * Each region is scanned using the applicable template. If no region-specific - * template is specified, but a "global" template is specified, it will be - * copied to that region and used instead. If no global or region-specific - * template is provided for a region with data, that region's data will not be - * scanned. - * For more information, see - * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. - * - * Generated from protobuf field repeated string inspect_templates = 3; - * @return RepeatedField - */ - public function getInspectTemplates() - { - return $this->inspect_templates; - } - - /** - * Detection logic for profile generation. - * Not all template features are used by Discovery. FindingLimits, - * include_quote and exclude_info_types have no impact on - * Discovery. - * Multiple templates may be provided if there is data in multiple regions. - * At most one template must be specified per-region (including "global"). - * Each region is scanned using the applicable template. If no region-specific - * template is specified, but a "global" template is specified, it will be - * copied to that region and used instead. If no global or region-specific - * template is provided for a region with data, that region's data will not be - * scanned. - * For more information, see - * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. - * - * Generated from protobuf field repeated string inspect_templates = 3; - * @param string[] $var - * @return $this - */ - public function setInspectTemplates($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->inspect_templates = $arr; - - return $this; - } - - /** - * Actions to execute at the completion of scanning. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; - * @return RepeatedField<\Google\Cloud\Dlp\V2\DataProfileAction> - */ - public function getActions() - { - return $this->actions; - } - - /** - * Actions to execute at the completion of scanning. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; - * @param \Google\Cloud\Dlp\V2\DataProfileAction[] $var - * @return $this - */ - public function setActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DataProfileAction::class); - $this->actions = $arr; - - return $this; - } - - /** - * Target to match against for determining what to scan and how frequently. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; - * @return RepeatedField<\Google\Cloud\Dlp\V2\DiscoveryTarget> - */ - public function getTargets() - { - return $this->targets; - } - - /** - * Target to match against for determining what to scan and how frequently. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; - * @param \Google\Cloud\Dlp\V2\DiscoveryTarget[] $var - * @return $this - */ - public function setTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DiscoveryTarget::class); - $this->targets = $arr; - - return $this; - } - - /** - * Output only. A stream of errors encountered when the config was activated. - * Repeated errors may result in the config automatically being paused. Output - * only field. Will return the last 100 errors. Whenever the config is - * modified this list will be cleared. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Error> - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Output only. A stream of errors encountered when the config was activated. - * Repeated errors may result in the config automatically being paused. Output - * only field. Will return the last 100 errors. Whenever the config is - * modified this list will be cleared. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dlp\V2\Error[] $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); - $this->errors = $arr; - - return $this; - } - - /** - * Output only. The creation timestamp of a DiscoveryConfig. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The creation timestamp of a DiscoveryConfig. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The last update timestamp of a DiscoveryConfig. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The last update timestamp of a DiscoveryConfig. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The timestamp of the last time this config was executed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastRunTime() - { - return $this->last_run_time; - } - - public function hasLastRunTime() - { - return isset($this->last_run_time); - } - - public function clearLastRunTime() - { - unset($this->last_run_time); - } - - /** - * Output only. The timestamp of the last time this config was executed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastRunTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_run_time = $var; - - return $this; - } - - /** - * Required. A status for this configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Required. A status for this configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DiscoveryConfig\Status::class); - $this->status = $var; - - return $this; - } - - /** - * Optional. Processing location configuration. Vertex AI dataset scanning - * will set processing_location.image_fallback_type to MultiRegionProcessing - * by default. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation processing_location = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\ProcessingLocation|null - */ - public function getProcessingLocation() - { - return $this->processing_location; - } - - public function hasProcessingLocation() - { - return isset($this->processing_location); - } - - public function clearProcessingLocation() - { - unset($this->processing_location); - } - - /** - * Optional. Processing location configuration. Vertex AI dataset scanning - * will set processing_location.image_fallback_type to MultiRegionProcessing - * by default. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation processing_location = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\ProcessingLocation $var - * @return $this - */ - public function setProcessingLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProcessingLocation::class); - $this->processing_location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/OrgConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/OrgConfig.php deleted file mode 100644 index d89b7620a4b2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/OrgConfig.php +++ /dev/null @@ -1,119 +0,0 @@ -google.privacy.dlp.v2.DiscoveryConfig.OrgConfig - */ -class OrgConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The data to scan: folder, org, or project - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryStartingLocation location = 1; - */ - protected $location = null; - /** - * The project that will run the scan. The DLP service - * account that exists within this project must have access to all resources - * that are profiled, and the DLP API must be enabled. - * - * Generated from protobuf field string project_id = 2; - */ - protected $project_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DiscoveryStartingLocation $location - * The data to scan: folder, org, or project - * @type string $project_id - * The project that will run the scan. The DLP service - * account that exists within this project must have access to all resources - * that are profiled, and the DLP API must be enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The data to scan: folder, org, or project - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryStartingLocation location = 1; - * @return \Google\Cloud\Dlp\V2\DiscoveryStartingLocation|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * The data to scan: folder, org, or project - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryStartingLocation location = 1; - * @param \Google\Cloud\Dlp\V2\DiscoveryStartingLocation $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryStartingLocation::class); - $this->location = $var; - - return $this; - } - - /** - * The project that will run the scan. The DLP service - * account that exists within this project must have access to all resources - * that are profiled, and the DLP API must be enabled. - * - * Generated from protobuf field string project_id = 2; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The project that will run the scan. The DLP service - * account that exists within this project must have access to all resources - * that are profiled, and the DLP API must be enabled. - * - * Generated from protobuf field string project_id = 2; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/Status.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/Status.php deleted file mode 100644 index 143cec63fe99..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/Status.php +++ /dev/null @@ -1,62 +0,0 @@ -google.privacy.dlp.v2.DiscoveryConfig.Status - */ -class Status -{ - /** - * Unused - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * The discovery config is currently active. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The discovery config is paused temporarily. - * - * Generated from protobuf enum PAUSED = 2; - */ - const PAUSED = 2; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::PAUSED => 'PAUSED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryFileStoreConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryFileStoreConditions.php deleted file mode 100644 index 540d4d424c17..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryFileStoreConditions.php +++ /dev/null @@ -1,173 +0,0 @@ -google.privacy.dlp.v2.DiscoveryFileStoreConditions - */ -class DiscoveryFileStoreConditions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. File store must have been created after this date. Used to avoid - * backfilling. - * - * Generated from protobuf field .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $created_after = null; - /** - * Optional. Minimum age a file store must have. If set, the value must be 1 - * hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $min_age = null; - protected $conditions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $created_after - * Optional. File store must have been created after this date. Used to avoid - * backfilling. - * @type \Google\Protobuf\Duration $min_age - * Optional. Minimum age a file store must have. If set, the value must be 1 - * hour or greater. - * @type \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions $cloud_storage_conditions - * Optional. Cloud Storage conditions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. File store must have been created after this date. Used to avoid - * backfilling. - * - * Generated from protobuf field .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAfter() - { - return $this->created_after; - } - - public function hasCreatedAfter() - { - return isset($this->created_after); - } - - public function clearCreatedAfter() - { - unset($this->created_after); - } - - /** - * Optional. File store must have been created after this date. Used to avoid - * backfilling. - * - * Generated from protobuf field .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAfter($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_after = $var; - - return $this; - } - - /** - * Optional. Minimum age a file store must have. If set, the value must be 1 - * hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getMinAge() - { - return $this->min_age; - } - - public function hasMinAge() - { - return isset($this->min_age); - } - - public function clearMinAge() - { - unset($this->min_age); - } - - /** - * Optional. Minimum age a file store must have. If set, the value must be 1 - * hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMinAge($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->min_age = $var; - - return $this; - } - - /** - * Optional. Cloud Storage conditions. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions|null - */ - public function getCloudStorageConditions() - { - return $this->readOneof(3); - } - - public function hasCloudStorageConditions() - { - return $this->hasOneof(3); - } - - /** - * Optional. Cloud Storage conditions. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions $var - * @return $this - */ - public function setCloudStorageConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getConditions() - { - return $this->whichOneof("conditions"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryGenerationCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryGenerationCadence.php deleted file mode 100644 index fc8d373c1089..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryGenerationCadence.php +++ /dev/null @@ -1,214 +0,0 @@ -google.privacy.dlp.v2.DiscoveryGenerationCadence - */ -class DiscoveryGenerationCadence extends \Google\Protobuf\Internal\Message -{ - /** - * Governs when to update data profiles when a schema is modified. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoverySchemaModifiedCadence schema_modified_cadence = 1; - */ - protected $schema_modified_cadence = null; - /** - * Governs when to update data profiles when a table is modified. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryTableModifiedCadence table_modified_cadence = 2; - */ - protected $table_modified_cadence = null; - /** - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; - */ - protected $inspect_template_modified_cadence = null; - /** - * Frequency at which profiles should be updated, regardless of whether the - * underlying resource has changed. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; - */ - protected $refresh_frequency = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DiscoverySchemaModifiedCadence $schema_modified_cadence - * Governs when to update data profiles when a schema is modified. - * @type \Google\Cloud\Dlp\V2\DiscoveryTableModifiedCadence $table_modified_cadence - * Governs when to update data profiles when a table is modified. - * @type \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $inspect_template_modified_cadence - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * @type int $refresh_frequency - * Frequency at which profiles should be updated, regardless of whether the - * underlying resource has changed. Defaults to never. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Governs when to update data profiles when a schema is modified. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoverySchemaModifiedCadence schema_modified_cadence = 1; - * @return \Google\Cloud\Dlp\V2\DiscoverySchemaModifiedCadence|null - */ - public function getSchemaModifiedCadence() - { - return $this->schema_modified_cadence; - } - - public function hasSchemaModifiedCadence() - { - return isset($this->schema_modified_cadence); - } - - public function clearSchemaModifiedCadence() - { - unset($this->schema_modified_cadence); - } - - /** - * Governs when to update data profiles when a schema is modified. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoverySchemaModifiedCadence schema_modified_cadence = 1; - * @param \Google\Cloud\Dlp\V2\DiscoverySchemaModifiedCadence $var - * @return $this - */ - public function setSchemaModifiedCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoverySchemaModifiedCadence::class); - $this->schema_modified_cadence = $var; - - return $this; - } - - /** - * Governs when to update data profiles when a table is modified. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryTableModifiedCadence table_modified_cadence = 2; - * @return \Google\Cloud\Dlp\V2\DiscoveryTableModifiedCadence|null - */ - public function getTableModifiedCadence() - { - return $this->table_modified_cadence; - } - - public function hasTableModifiedCadence() - { - return isset($this->table_modified_cadence); - } - - public function clearTableModifiedCadence() - { - unset($this->table_modified_cadence); - } - - /** - * Governs when to update data profiles when a table is modified. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryTableModifiedCadence table_modified_cadence = 2; - * @param \Google\Cloud\Dlp\V2\DiscoveryTableModifiedCadence $var - * @return $this - */ - public function setTableModifiedCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryTableModifiedCadence::class); - $this->table_modified_cadence = $var; - - return $this; - } - - /** - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; - * @return \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence|null - */ - public function getInspectTemplateModifiedCadence() - { - return $this->inspect_template_modified_cadence; - } - - public function hasInspectTemplateModifiedCadence() - { - return isset($this->inspect_template_modified_cadence); - } - - public function clearInspectTemplateModifiedCadence() - { - unset($this->inspect_template_modified_cadence); - } - - /** - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; - * @param \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $var - * @return $this - */ - public function setInspectTemplateModifiedCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence::class); - $this->inspect_template_modified_cadence = $var; - - return $this; - } - - /** - * Frequency at which profiles should be updated, regardless of whether the - * underlying resource has changed. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; - * @return int - */ - public function getRefreshFrequency() - { - return $this->refresh_frequency; - } - - /** - * Frequency at which profiles should be updated, regardless of whether the - * underlying resource has changed. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; - * @param int $var - * @return $this - */ - public function setRefreshFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); - $this->refresh_frequency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryInspectTemplateModifiedCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryInspectTemplateModifiedCadence.php deleted file mode 100644 index c946ec1d8291..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryInspectTemplateModifiedCadence.php +++ /dev/null @@ -1,72 +0,0 @@ -google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence - */ -class DiscoveryInspectTemplateModifiedCadence extends \Google\Protobuf\Internal\Message -{ - /** - * How frequently data profiles can be updated when the template is modified. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; - */ - protected $frequency = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $frequency - * How frequently data profiles can be updated when the template is modified. - * Defaults to never. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * How frequently data profiles can be updated when the template is modified. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; - * @return int - */ - public function getFrequency() - { - return $this->frequency; - } - - /** - * How frequently data profiles can be updated when the template is modified. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; - * @param int $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); - $this->frequency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudConditions.php deleted file mode 100644 index 97818465b4f9..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudConditions.php +++ /dev/null @@ -1,124 +0,0 @@ -google.privacy.dlp.v2.DiscoveryOtherCloudConditions - */ -class DiscoveryOtherCloudConditions extends \Google\Protobuf\Internal\Message -{ - /** - * Minimum age a resource must be before Cloud DLP can profile it. Value must - * be 1 hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 1; - */ - protected $min_age = null; - protected $conditions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $min_age - * Minimum age a resource must be before Cloud DLP can profile it. Value must - * be 1 hour or greater. - * @type \Google\Cloud\Dlp\V2\AmazonS3BucketConditions $amazon_s3_bucket_conditions - * Amazon S3 bucket conditions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Minimum age a resource must be before Cloud DLP can profile it. Value must - * be 1 hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getMinAge() - { - return $this->min_age; - } - - public function hasMinAge() - { - return isset($this->min_age); - } - - public function clearMinAge() - { - unset($this->min_age); - } - - /** - * Minimum age a resource must be before Cloud DLP can profile it. Value must - * be 1 hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMinAge($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->min_age = $var; - - return $this; - } - - /** - * Amazon S3 bucket conditions. - * - * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3BucketConditions amazon_s3_bucket_conditions = 2; - * @return \Google\Cloud\Dlp\V2\AmazonS3BucketConditions|null - */ - public function getAmazonS3BucketConditions() - { - return $this->readOneof(2); - } - - public function hasAmazonS3BucketConditions() - { - return $this->hasOneof(2); - } - - /** - * Amazon S3 bucket conditions. - * - * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3BucketConditions amazon_s3_bucket_conditions = 2; - * @param \Google\Cloud\Dlp\V2\AmazonS3BucketConditions $var - * @return $this - */ - public function setAmazonS3BucketConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AmazonS3BucketConditions::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getConditions() - { - return $this->whichOneof("conditions"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudFilter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudFilter.php deleted file mode 100644 index 0d5a69fd792d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudFilter.php +++ /dev/null @@ -1,154 +0,0 @@ -google.privacy.dlp.v2.DiscoveryOtherCloudFilter - */ -class DiscoveryOtherCloudFilter extends \Google\Protobuf\Internal\Message -{ - protected $filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\OtherCloudResourceCollection $collection - * A collection of resources for this filter to apply to. - * @type \Google\Cloud\Dlp\V2\OtherCloudSingleResourceReference $single_resource - * The resource to scan. Configs using this filter can only have one target - * (the target with this single resource reference). - * @type \Google\Cloud\Dlp\V2\AllOtherResources $others - * Optional. Catch-all. This should always be the last target in the list - * because anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A collection of resources for this filter to apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudResourceCollection collection = 1; - * @return \Google\Cloud\Dlp\V2\OtherCloudResourceCollection|null - */ - public function getCollection() - { - return $this->readOneof(1); - } - - public function hasCollection() - { - return $this->hasOneof(1); - } - - /** - * A collection of resources for this filter to apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudResourceCollection collection = 1; - * @param \Google\Cloud\Dlp\V2\OtherCloudResourceCollection $var - * @return $this - */ - public function setCollection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudResourceCollection::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The resource to scan. Configs using this filter can only have one target - * (the target with this single resource reference). - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudSingleResourceReference single_resource = 2; - * @return \Google\Cloud\Dlp\V2\OtherCloudSingleResourceReference|null - */ - public function getSingleResource() - { - return $this->readOneof(2); - } - - public function hasSingleResource() - { - return $this->hasOneof(2); - } - - /** - * The resource to scan. Configs using this filter can only have one target - * (the target with this single resource reference). - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudSingleResourceReference single_resource = 2; - * @param \Google\Cloud\Dlp\V2\OtherCloudSingleResourceReference $var - * @return $this - */ - public function setSingleResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudSingleResourceReference::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Optional. Catch-all. This should always be the last target in the list - * because anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\AllOtherResources|null - */ - public function getOthers() - { - return $this->readOneof(100); - } - - public function hasOthers() - { - return $this->hasOneof(100); - } - - /** - * Optional. Catch-all. This should always be the last target in the list - * because anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\AllOtherResources $var - * @return $this - */ - public function setOthers($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AllOtherResources::class); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * @return string - */ - public function getFilter() - { - return $this->whichOneof("filter"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudGenerationCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudGenerationCadence.php deleted file mode 100644 index ddb252883134..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudGenerationCadence.php +++ /dev/null @@ -1,125 +0,0 @@ -google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence - */ -class DiscoveryOtherCloudGenerationCadence extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Frequency to update profiles regardless of whether the underlying - * resource has changes. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $refresh_frequency = 0; - /** - * Optional. Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $inspect_template_modified_cadence = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $refresh_frequency - * Optional. Frequency to update profiles regardless of whether the underlying - * resource has changes. Defaults to never. - * @type \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $inspect_template_modified_cadence - * Optional. Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Frequency to update profiles regardless of whether the underlying - * resource has changes. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getRefreshFrequency() - { - return $this->refresh_frequency; - } - - /** - * Optional. Frequency to update profiles regardless of whether the underlying - * resource has changes. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setRefreshFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); - $this->refresh_frequency = $var; - - return $this; - } - - /** - * Optional. Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence|null - */ - public function getInspectTemplateModifiedCadence() - { - return $this->inspect_template_modified_cadence; - } - - public function hasInspectTemplateModifiedCadence() - { - return isset($this->inspect_template_modified_cadence); - } - - public function clearInspectTemplateModifiedCadence() - { - unset($this->inspect_template_modified_cadence); - } - - /** - * Optional. Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $var - * @return $this - */ - public function setInspectTemplateModifiedCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence::class); - $this->inspect_template_modified_cadence = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoverySchemaModifiedCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoverySchemaModifiedCadence.php deleted file mode 100644 index 76859e84b2d7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoverySchemaModifiedCadence.php +++ /dev/null @@ -1,113 +0,0 @@ -google.privacy.dlp.v2.DiscoverySchemaModifiedCadence - */ -class DiscoverySchemaModifiedCadence extends \Google\Protobuf\Internal\Message -{ - /** - * The type of events to consider when deciding if the table's schema - * has been modified and should have the profile updated. Defaults to - * NEW_COLUMNS. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQuerySchemaModification types = 1; - */ - private $types; - /** - * How frequently profiles may be updated when schemas are - * modified. Defaults to monthly. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - */ - protected $frequency = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int[] $types - * The type of events to consider when deciding if the table's schema - * has been modified and should have the profile updated. Defaults to - * NEW_COLUMNS. - * @type int $frequency - * How frequently profiles may be updated when schemas are - * modified. Defaults to monthly. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The type of events to consider when deciding if the table's schema - * has been modified and should have the profile updated. Defaults to - * NEW_COLUMNS. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQuerySchemaModification types = 1; - * @return RepeatedField - */ - public function getTypes() - { - return $this->types; - } - - /** - * The type of events to consider when deciding if the table's schema - * has been modified and should have the profile updated. Defaults to - * NEW_COLUMNS. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQuerySchemaModification types = 1; - * @param int[] $var - * @return $this - */ - public function setTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\BigQuerySchemaModification::class); - $this->types = $arr; - - return $this; - } - - /** - * How frequently profiles may be updated when schemas are - * modified. Defaults to monthly. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - * @return int - */ - public function getFrequency() - { - return $this->frequency; - } - - /** - * How frequently profiles may be updated when schemas are - * modified. Defaults to monthly. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - * @param int $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); - $this->frequency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryStartingLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryStartingLocation.php deleted file mode 100644 index 42c48b52c042..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryStartingLocation.php +++ /dev/null @@ -1,109 +0,0 @@ -google.privacy.dlp.v2.DiscoveryStartingLocation - */ -class DiscoveryStartingLocation extends \Google\Protobuf\Internal\Message -{ - protected $location; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $organization_id - * The ID of an organization to scan. - * @type int|string $folder_id - * The ID of the folder within an organization to be scanned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The ID of an organization to scan. - * - * Generated from protobuf field int64 organization_id = 1; - * @return int|string - */ - public function getOrganizationId() - { - return $this->readOneof(1); - } - - public function hasOrganizationId() - { - return $this->hasOneof(1); - } - - /** - * The ID of an organization to scan. - * - * Generated from protobuf field int64 organization_id = 1; - * @param int|string $var - * @return $this - */ - public function setOrganizationId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The ID of the folder within an organization to be scanned. - * - * Generated from protobuf field int64 folder_id = 2; - * @return int|string - */ - public function getFolderId() - { - return $this->readOneof(2); - } - - public function hasFolderId() - { - return $this->hasOneof(2); - } - - /** - * The ID of the folder within an organization to be scanned. - * - * Generated from protobuf field int64 folder_id = 2; - * @param int|string $var - * @return $this - */ - public function setFolderId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getLocation() - { - return $this->whichOneof("location"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTableModifiedCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTableModifiedCadence.php deleted file mode 100644 index 4311065aab85..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTableModifiedCadence.php +++ /dev/null @@ -1,113 +0,0 @@ -google.privacy.dlp.v2.DiscoveryTableModifiedCadence - */ -class DiscoveryTableModifiedCadence extends \Google\Protobuf\Internal\Message -{ - /** - * The type of events to consider when deciding if the table has been - * modified and should have the profile updated. Defaults to - * MODIFIED_TIMESTAMP. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableModification types = 1; - */ - private $types; - /** - * How frequently data profiles can be updated when tables are modified. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - */ - protected $frequency = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int[] $types - * The type of events to consider when deciding if the table has been - * modified and should have the profile updated. Defaults to - * MODIFIED_TIMESTAMP. - * @type int $frequency - * How frequently data profiles can be updated when tables are modified. - * Defaults to never. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The type of events to consider when deciding if the table has been - * modified and should have the profile updated. Defaults to - * MODIFIED_TIMESTAMP. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableModification types = 1; - * @return RepeatedField - */ - public function getTypes() - { - return $this->types; - } - - /** - * The type of events to consider when deciding if the table has been - * modified and should have the profile updated. Defaults to - * MODIFIED_TIMESTAMP. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableModification types = 1; - * @param int[] $var - * @return $this - */ - public function setTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\BigQueryTableModification::class); - $this->types = $arr; - - return $this; - } - - /** - * How frequently data profiles can be updated when tables are modified. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - * @return int - */ - public function getFrequency() - { - return $this->frequency; - } - - /** - * How frequently data profiles can be updated when tables are modified. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - * @param int $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); - $this->frequency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTarget.php deleted file mode 100644 index 655db31a3139..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTarget.php +++ /dev/null @@ -1,279 +0,0 @@ -google.privacy.dlp.v2.DiscoveryTarget - */ -class DiscoveryTarget extends \Google\Protobuf\Internal\Message -{ - protected $target; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryDiscoveryTarget $big_query_target - * BigQuery target for Discovery. The first target to match a table will be - * the one applied. - * @type \Google\Cloud\Dlp\V2\CloudSqlDiscoveryTarget $cloud_sql_target - * Cloud SQL target for Discovery. The first target to match a table will be - * the one applied. - * @type \Google\Cloud\Dlp\V2\SecretsDiscoveryTarget $secrets_target - * Discovery target that looks for credentials and secrets stored in cloud - * resource metadata and reports them as vulnerabilities to Security Command - * Center. Only one target of this type is allowed. - * @type \Google\Cloud\Dlp\V2\CloudStorageDiscoveryTarget $cloud_storage_target - * Cloud Storage target for Discovery. The first target to match a table - * will be the one applied. - * @type \Google\Cloud\Dlp\V2\OtherCloudDiscoveryTarget $other_cloud_target - * Other clouds target for discovery. The first target to match a resource - * will be the one applied. - * @type \Google\Cloud\Dlp\V2\VertexDatasetDiscoveryTarget $vertex_dataset_target - * Vertex AI dataset target for Discovery. The first target to match a - * dataset will be the one applied. Note that discovery for Vertex AI can - * incur Cloud Storage Class B operation charges for storage.objects.get - * operations and retrieval fees. For more information, see [Cloud Storage - * pricing](https://cloud.google.com/storage/pricing#price-tables). - * Note that discovery for Vertex AI dataset will not be able to scan images - * unless DiscoveryConfig.processing_location.image_fallback_location has - * multi_region_processing or global_processing configured. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * BigQuery target for Discovery. The first target to match a table will be - * the one applied. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryDiscoveryTarget big_query_target = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryDiscoveryTarget|null - */ - public function getBigQueryTarget() - { - return $this->readOneof(1); - } - - public function hasBigQueryTarget() - { - return $this->hasOneof(1); - } - - /** - * BigQuery target for Discovery. The first target to match a table will be - * the one applied. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryDiscoveryTarget big_query_target = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryDiscoveryTarget $var - * @return $this - */ - public function setBigQueryTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryDiscoveryTarget::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Cloud SQL target for Discovery. The first target to match a table will be - * the one applied. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlDiscoveryTarget cloud_sql_target = 2; - * @return \Google\Cloud\Dlp\V2\CloudSqlDiscoveryTarget|null - */ - public function getCloudSqlTarget() - { - return $this->readOneof(2); - } - - public function hasCloudSqlTarget() - { - return $this->hasOneof(2); - } - - /** - * Cloud SQL target for Discovery. The first target to match a table will be - * the one applied. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlDiscoveryTarget cloud_sql_target = 2; - * @param \Google\Cloud\Dlp\V2\CloudSqlDiscoveryTarget $var - * @return $this - */ - public function setCloudSqlTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudSqlDiscoveryTarget::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Discovery target that looks for credentials and secrets stored in cloud - * resource metadata and reports them as vulnerabilities to Security Command - * Center. Only one target of this type is allowed. - * - * Generated from protobuf field .google.privacy.dlp.v2.SecretsDiscoveryTarget secrets_target = 3; - * @return \Google\Cloud\Dlp\V2\SecretsDiscoveryTarget|null - */ - public function getSecretsTarget() - { - return $this->readOneof(3); - } - - public function hasSecretsTarget() - { - return $this->hasOneof(3); - } - - /** - * Discovery target that looks for credentials and secrets stored in cloud - * resource metadata and reports them as vulnerabilities to Security Command - * Center. Only one target of this type is allowed. - * - * Generated from protobuf field .google.privacy.dlp.v2.SecretsDiscoveryTarget secrets_target = 3; - * @param \Google\Cloud\Dlp\V2\SecretsDiscoveryTarget $var - * @return $this - */ - public function setSecretsTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SecretsDiscoveryTarget::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Cloud Storage target for Discovery. The first target to match a table - * will be the one applied. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; - * @return \Google\Cloud\Dlp\V2\CloudStorageDiscoveryTarget|null - */ - public function getCloudStorageTarget() - { - return $this->readOneof(4); - } - - public function hasCloudStorageTarget() - { - return $this->hasOneof(4); - } - - /** - * Cloud Storage target for Discovery. The first target to match a table - * will be the one applied. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; - * @param \Google\Cloud\Dlp\V2\CloudStorageDiscoveryTarget $var - * @return $this - */ - public function setCloudStorageTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageDiscoveryTarget::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Other clouds target for discovery. The first target to match a resource - * will be the one applied. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryTarget other_cloud_target = 5; - * @return \Google\Cloud\Dlp\V2\OtherCloudDiscoveryTarget|null - */ - public function getOtherCloudTarget() - { - return $this->readOneof(5); - } - - public function hasOtherCloudTarget() - { - return $this->hasOneof(5); - } - - /** - * Other clouds target for discovery. The first target to match a resource - * will be the one applied. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryTarget other_cloud_target = 5; - * @param \Google\Cloud\Dlp\V2\OtherCloudDiscoveryTarget $var - * @return $this - */ - public function setOtherCloudTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudDiscoveryTarget::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Vertex AI dataset target for Discovery. The first target to match a - * dataset will be the one applied. Note that discovery for Vertex AI can - * incur Cloud Storage Class B operation charges for storage.objects.get - * operations and retrieval fees. For more information, see [Cloud Storage - * pricing](https://cloud.google.com/storage/pricing#price-tables). - * Note that discovery for Vertex AI dataset will not be able to scan images - * unless DiscoveryConfig.processing_location.image_fallback_location has - * multi_region_processing or global_processing configured. - * - * Generated from protobuf field .google.privacy.dlp.v2.VertexDatasetDiscoveryTarget vertex_dataset_target = 7; - * @return \Google\Cloud\Dlp\V2\VertexDatasetDiscoveryTarget|null - */ - public function getVertexDatasetTarget() - { - return $this->readOneof(7); - } - - public function hasVertexDatasetTarget() - { - return $this->hasOneof(7); - } - - /** - * Vertex AI dataset target for Discovery. The first target to match a - * dataset will be the one applied. Note that discovery for Vertex AI can - * incur Cloud Storage Class B operation charges for storage.objects.get - * operations and retrieval fees. For more information, see [Cloud Storage - * pricing](https://cloud.google.com/storage/pricing#price-tables). - * Note that discovery for Vertex AI dataset will not be able to scan images - * unless DiscoveryConfig.processing_location.image_fallback_location has - * multi_region_processing or global_processing configured. - * - * Generated from protobuf field .google.privacy.dlp.v2.VertexDatasetDiscoveryTarget vertex_dataset_target = 7; - * @param \Google\Cloud\Dlp\V2\VertexDatasetDiscoveryTarget $var - * @return $this - */ - public function setVertexDatasetTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\VertexDatasetDiscoveryTarget::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * @return string - */ - public function getTarget() - { - return $this->whichOneof("target"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetConditions.php deleted file mode 100644 index 98ea83a4a0d4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetConditions.php +++ /dev/null @@ -1,130 +0,0 @@ -google.privacy.dlp.v2.DiscoveryVertexDatasetConditions - */ -class DiscoveryVertexDatasetConditions extends \Google\Protobuf\Internal\Message -{ - /** - * Vertex AI dataset must have been created after this date. Used to avoid - * backfilling. - * - * Generated from protobuf field .google.protobuf.Timestamp created_after = 1; - */ - protected $created_after = null; - /** - * Minimum age a Vertex AI dataset must have. If set, the value must be 1 hour - * or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 2; - */ - protected $min_age = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $created_after - * Vertex AI dataset must have been created after this date. Used to avoid - * backfilling. - * @type \Google\Protobuf\Duration $min_age - * Minimum age a Vertex AI dataset must have. If set, the value must be 1 hour - * or greater. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Vertex AI dataset must have been created after this date. Used to avoid - * backfilling. - * - * Generated from protobuf field .google.protobuf.Timestamp created_after = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAfter() - { - return $this->created_after; - } - - public function hasCreatedAfter() - { - return isset($this->created_after); - } - - public function clearCreatedAfter() - { - unset($this->created_after); - } - - /** - * Vertex AI dataset must have been created after this date. Used to avoid - * backfilling. - * - * Generated from protobuf field .google.protobuf.Timestamp created_after = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAfter($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_after = $var; - - return $this; - } - - /** - * Minimum age a Vertex AI dataset must have. If set, the value must be 1 hour - * or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 2; - * @return \Google\Protobuf\Duration|null - */ - public function getMinAge() - { - return $this->min_age; - } - - public function hasMinAge() - { - return isset($this->min_age); - } - - public function clearMinAge() - { - unset($this->min_age); - } - - /** - * Minimum age a Vertex AI dataset must have. If set, the value must be 1 hour - * or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 2; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMinAge($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->min_age = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetFilter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetFilter.php deleted file mode 100644 index bfed65d02416..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetFilter.php +++ /dev/null @@ -1,155 +0,0 @@ -google.privacy.dlp.v2.DiscoveryVertexDatasetFilter - */ -class DiscoveryVertexDatasetFilter extends \Google\Protobuf\Internal\Message -{ - protected $filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\VertexDatasetCollection $collection - * A specific set of Vertex AI datasets for this filter to apply to. - * @type \Google\Cloud\Dlp\V2\VertexDatasetResourceReference $vertex_dataset_resource_reference - * The dataset resource to scan. Targets including this can only include - * one target (the target with this dataset resource reference). - * @type \Google\Cloud\Dlp\V2\AllOtherResources $others - * Catch-all. This should always be the last target in the list because - * anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A specific set of Vertex AI datasets for this filter to apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.VertexDatasetCollection collection = 1; - * @return \Google\Cloud\Dlp\V2\VertexDatasetCollection|null - */ - public function getCollection() - { - return $this->readOneof(1); - } - - public function hasCollection() - { - return $this->hasOneof(1); - } - - /** - * A specific set of Vertex AI datasets for this filter to apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.VertexDatasetCollection collection = 1; - * @param \Google\Cloud\Dlp\V2\VertexDatasetCollection $var - * @return $this - */ - public function setCollection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\VertexDatasetCollection::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The dataset resource to scan. Targets including this can only include - * one target (the target with this dataset resource reference). - * - * Generated from protobuf field .google.privacy.dlp.v2.VertexDatasetResourceReference vertex_dataset_resource_reference = 2; - * @return \Google\Cloud\Dlp\V2\VertexDatasetResourceReference|null - */ - public function getVertexDatasetResourceReference() - { - return $this->readOneof(2); - } - - public function hasVertexDatasetResourceReference() - { - return $this->hasOneof(2); - } - - /** - * The dataset resource to scan. Targets including this can only include - * one target (the target with this dataset resource reference). - * - * Generated from protobuf field .google.privacy.dlp.v2.VertexDatasetResourceReference vertex_dataset_resource_reference = 2; - * @param \Google\Cloud\Dlp\V2\VertexDatasetResourceReference $var - * @return $this - */ - public function setVertexDatasetResourceReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\VertexDatasetResourceReference::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Catch-all. This should always be the last target in the list because - * anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.AllOtherResources others = 100; - * @return \Google\Cloud\Dlp\V2\AllOtherResources|null - */ - public function getOthers() - { - return $this->readOneof(100); - } - - public function hasOthers() - { - return $this->hasOneof(100); - } - - /** - * Catch-all. This should always be the last target in the list because - * anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.AllOtherResources others = 100; - * @param \Google\Cloud\Dlp\V2\AllOtherResources $var - * @return $this - */ - public function setOthers($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AllOtherResources::class); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * @return string - */ - public function getFilter() - { - return $this->whichOneof("filter"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetGenerationCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetGenerationCadence.php deleted file mode 100644 index fae45ec8c974..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryVertexDatasetGenerationCadence.php +++ /dev/null @@ -1,133 +0,0 @@ -google.privacy.dlp.v2.DiscoveryVertexDatasetGenerationCadence - */ -class DiscoveryVertexDatasetGenerationCadence extends \Google\Protobuf\Internal\Message -{ - /** - * If you set this field, profiles are refreshed at this - * frequency regardless of whether the underlying datasets have changed. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1; - */ - protected $refresh_frequency = 0; - /** - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to be - * updated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2; - */ - protected $inspect_template_modified_cadence = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $refresh_frequency - * If you set this field, profiles are refreshed at this - * frequency regardless of whether the underlying datasets have changed. - * Defaults to never. - * @type \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $inspect_template_modified_cadence - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to be - * updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * If you set this field, profiles are refreshed at this - * frequency regardless of whether the underlying datasets have changed. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1; - * @return int - */ - public function getRefreshFrequency() - { - return $this->refresh_frequency; - } - - /** - * If you set this field, profiles are refreshed at this - * frequency regardless of whether the underlying datasets have changed. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1; - * @param int $var - * @return $this - */ - public function setRefreshFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); - $this->refresh_frequency = $var; - - return $this; - } - - /** - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to be - * updated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2; - * @return \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence|null - */ - public function getInspectTemplateModifiedCadence() - { - return $this->inspect_template_modified_cadence; - } - - public function hasInspectTemplateModifiedCadence() - { - return isset($this->inspect_template_modified_cadence); - } - - public function clearInspectTemplateModifiedCadence() - { - unset($this->inspect_template_modified_cadence); - } - - /** - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to be - * updated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2; - * @param \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $var - * @return $this - */ - public function setInspectTemplateModifiedCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence::class); - $this->inspect_template_modified_cadence = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob.php deleted file mode 100644 index 94b9b9ad6653..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob.php +++ /dev/null @@ -1,492 +0,0 @@ -google.privacy.dlp.v2.DlpJob - */ -class DlpJob extends \Google\Protobuf\Internal\Message -{ - /** - * The server-assigned name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The type of job. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 2; - */ - protected $type = 0; - /** - * State of a job. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJob.JobState state = 3; - */ - protected $state = 0; - /** - * Time when the job was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; - */ - protected $create_time = null; - /** - * Time when the job started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 7; - */ - protected $start_time = null; - /** - * Time when the job finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 8; - */ - protected $end_time = null; - /** - * Time when the job was last modified by the system. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified = 15; - */ - protected $last_modified = null; - /** - * If created by a job trigger, the resource name of the trigger that - * instantiated the job. - * - * Generated from protobuf field string job_trigger_name = 10; - */ - protected $job_trigger_name = ''; - /** - * A stream of errors encountered running the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 11; - */ - private $errors; - /** - * Events that should occur after the job has completed. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ActionDetails action_details = 12; - */ - private $action_details; - protected $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The server-assigned name. - * @type int $type - * The type of job. - * @type int $state - * State of a job. - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails $risk_details - * Results from analyzing risk of a data source. - * @type \Google\Cloud\Dlp\V2\InspectDataSourceDetails $inspect_details - * Results from inspecting a data source. - * @type \Google\Protobuf\Timestamp $create_time - * Time when the job was created. - * @type \Google\Protobuf\Timestamp $start_time - * Time when the job started. - * @type \Google\Protobuf\Timestamp $end_time - * Time when the job finished. - * @type \Google\Protobuf\Timestamp $last_modified - * Time when the job was last modified by the system. - * @type string $job_trigger_name - * If created by a job trigger, the resource name of the trigger that - * instantiated the job. - * @type \Google\Cloud\Dlp\V2\Error[] $errors - * A stream of errors encountered running the job. - * @type \Google\Cloud\Dlp\V2\ActionDetails[] $action_details - * Events that should occur after the job has completed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The server-assigned name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The server-assigned name. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The type of job. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of job. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DlpJobType::class); - $this->type = $var; - - return $this; - } - - /** - * State of a job. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJob.JobState state = 3; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * State of a job. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJob.JobState state = 3; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DlpJob\JobState::class); - $this->state = $var; - - return $this; - } - - /** - * Results from analyzing risk of a data source. - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails risk_details = 4; - * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails|null - */ - public function getRiskDetails() - { - return $this->readOneof(4); - } - - public function hasRiskDetails() - { - return $this->hasOneof(4); - } - - /** - * Results from analyzing risk of a data source. - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails risk_details = 4; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails $var - * @return $this - */ - public function setRiskDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Results from inspecting a data source. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails inspect_details = 5; - * @return \Google\Cloud\Dlp\V2\InspectDataSourceDetails|null - */ - public function getInspectDetails() - { - return $this->readOneof(5); - } - - public function hasInspectDetails() - { - return $this->hasOneof(5); - } - - /** - * Results from inspecting a data source. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails inspect_details = 5; - * @param \Google\Cloud\Dlp\V2\InspectDataSourceDetails $var - * @return $this - */ - public function setInspectDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectDataSourceDetails::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Time when the job was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Time when the job was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Time when the job started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Time when the job started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Time when the job finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 8; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Time when the job finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 8; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Time when the job was last modified by the system. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified = 15; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastModified() - { - return $this->last_modified; - } - - public function hasLastModified() - { - return isset($this->last_modified); - } - - public function clearLastModified() - { - unset($this->last_modified); - } - - /** - * Time when the job was last modified by the system. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified = 15; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastModified($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_modified = $var; - - return $this; - } - - /** - * If created by a job trigger, the resource name of the trigger that - * instantiated the job. - * - * Generated from protobuf field string job_trigger_name = 10; - * @return string - */ - public function getJobTriggerName() - { - return $this->job_trigger_name; - } - - /** - * If created by a job trigger, the resource name of the trigger that - * instantiated the job. - * - * Generated from protobuf field string job_trigger_name = 10; - * @param string $var - * @return $this - */ - public function setJobTriggerName($var) - { - GPBUtil::checkString($var, True); - $this->job_trigger_name = $var; - - return $this; - } - - /** - * A stream of errors encountered running the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 11; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Error> - */ - public function getErrors() - { - return $this->errors; - } - - /** - * A stream of errors encountered running the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 11; - * @param \Google\Cloud\Dlp\V2\Error[] $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); - $this->errors = $arr; - - return $this; - } - - /** - * Events that should occur after the job has completed. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ActionDetails action_details = 12; - * @return RepeatedField<\Google\Cloud\Dlp\V2\ActionDetails> - */ - public function getActionDetails() - { - return $this->action_details; - } - - /** - * Events that should occur after the job has completed. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ActionDetails action_details = 12; - * @param \Google\Cloud\Dlp\V2\ActionDetails[] $var - * @return $this - */ - public function setActionDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ActionDetails::class); - $this->action_details = $arr; - - return $this; - } - - /** - * @return string - */ - public function getDetails() - { - return $this->whichOneof("details"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob/JobState.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob/JobState.php deleted file mode 100644 index 069f4f896d3e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob/JobState.php +++ /dev/null @@ -1,93 +0,0 @@ -google.privacy.dlp.v2.DlpJob.JobState - */ -class JobState -{ - /** - * Unused. - * - * Generated from protobuf enum JOB_STATE_UNSPECIFIED = 0; - */ - const JOB_STATE_UNSPECIFIED = 0; - /** - * The job has not yet started. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * The job is currently running. Once a job has finished it will transition - * to FAILED or DONE. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The job is no longer running. - * - * Generated from protobuf enum DONE = 3; - */ - const DONE = 3; - /** - * The job was canceled before it could be completed. - * - * Generated from protobuf enum CANCELED = 4; - */ - const CANCELED = 4; - /** - * The job had an error and did not complete. - * - * Generated from protobuf enum FAILED = 5; - */ - const FAILED = 5; - /** - * The job is currently accepting findings via hybridInspect. - * A hybrid job in ACTIVE state may continue to have findings added to it - * through the calling of hybridInspect. After the job has finished no more - * calls to hybridInspect may be made. ACTIVE jobs can transition to DONE. - * - * Generated from protobuf enum ACTIVE = 6; - */ - const ACTIVE = 6; - - private static $valueToName = [ - self::JOB_STATE_UNSPECIFIED => 'JOB_STATE_UNSPECIFIED', - self::PENDING => 'PENDING', - self::RUNNING => 'RUNNING', - self::DONE => 'DONE', - self::CANCELED => 'CANCELED', - self::FAILED => 'FAILED', - self::ACTIVE => 'ACTIVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJobType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJobType.php deleted file mode 100644 index c34fc91f3d4f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJobType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.privacy.dlp.v2.DlpJobType - */ -class DlpJobType -{ - /** - * Defaults to INSPECT_JOB. - * - * Generated from protobuf enum DLP_JOB_TYPE_UNSPECIFIED = 0; - */ - const DLP_JOB_TYPE_UNSPECIFIED = 0; - /** - * The job inspected Google Cloud for sensitive data. - * - * Generated from protobuf enum INSPECT_JOB = 1; - */ - const INSPECT_JOB = 1; - /** - * The job executed a Risk Analysis computation. - * - * Generated from protobuf enum RISK_ANALYSIS_JOB = 2; - */ - const RISK_ANALYSIS_JOB = 2; - - private static $valueToName = [ - self::DLP_JOB_TYPE_UNSPECIFIED => 'DLP_JOB_TYPE_UNSPECIFIED', - self::INSPECT_JOB => 'INSPECT_JOB', - self::RISK_ANALYSIS_JOB => 'RISK_ANALYSIS_JOB', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DocumentLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DocumentLocation.php deleted file mode 100644 index 1e77bafe9ea3..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DocumentLocation.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.DocumentLocation - */ -class DocumentLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Offset of the line, from the beginning of the file, where the finding - * is located. - * - * Generated from protobuf field int64 file_offset = 1; - */ - protected $file_offset = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $file_offset - * Offset of the line, from the beginning of the file, where the finding - * is located. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Offset of the line, from the beginning of the file, where the finding - * is located. - * - * Generated from protobuf field int64 file_offset = 1; - * @return int|string - */ - public function getFileOffset() - { - return $this->file_offset; - } - - /** - * Offset of the line, from the beginning of the file, where the finding - * is located. - * - * Generated from protobuf field int64 file_offset = 1; - * @param int|string $var - * @return $this - */ - public function setFileOffset($var) - { - GPBUtil::checkInt64($var); - $this->file_offset = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain.php deleted file mode 100644 index 0d79d99e3b33..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.Domain - */ -class Domain extends \Google\Protobuf\Internal\Message -{ - /** - * A domain category that this profile is related to. - * - * Generated from protobuf field .google.privacy.dlp.v2.Domain.Category category = 1; - */ - protected $category = 0; - /** - * The collection of signals that influenced selection of the category. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; - */ - private $signals; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $category - * A domain category that this profile is related to. - * @type int[] $signals - * The collection of signals that influenced selection of the category. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A domain category that this profile is related to. - * - * Generated from protobuf field .google.privacy.dlp.v2.Domain.Category category = 1; - * @return int - */ - public function getCategory() - { - return $this->category; - } - - /** - * A domain category that this profile is related to. - * - * Generated from protobuf field .google.privacy.dlp.v2.Domain.Category category = 1; - * @param int $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Domain\Category::class); - $this->category = $var; - - return $this; - } - - /** - * The collection of signals that influenced selection of the category. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; - * @return RepeatedField - */ - public function getSignals() - { - return $this->signals; - } - - /** - * The collection of signals that influenced selection of the category. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain.Signal signals = 2; - * @param int[] $var - * @return $this - */ - public function setSignals($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\Domain\Signal::class); - $this->signals = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain/Category.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain/Category.php deleted file mode 100644 index f59c6bea1366..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain/Category.php +++ /dev/null @@ -1,64 +0,0 @@ -google.privacy.dlp.v2.Domain.Category - */ -class Category -{ - /** - * Category unspecified. - * - * Generated from protobuf enum CATEGORY_UNSPECIFIED = 0; - */ - const CATEGORY_UNSPECIFIED = 0; - /** - * Indicates that the data profile is related to artificial intelligence. - * When set, all findings stored to Security Command Center will set the - * corresponding AI domain field of `Finding` objects. - * - * Generated from protobuf enum AI = 1; - */ - const AI = 1; - /** - * Indicates that the data profile is related to code. - * - * Generated from protobuf enum CODE = 2; - */ - const CODE = 2; - - private static $valueToName = [ - self::CATEGORY_UNSPECIFIED => 'CATEGORY_UNSPECIFIED', - self::AI => 'AI', - self::CODE => 'CODE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain/Signal.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain/Signal.php deleted file mode 100644 index f4f8981eac3e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Domain/Signal.php +++ /dev/null @@ -1,104 +0,0 @@ -google.privacy.dlp.v2.Domain.Signal - */ -class Signal -{ - /** - * Unused. - * - * Generated from protobuf enum SIGNAL_UNSPECIFIED = 0; - */ - const SIGNAL_UNSPECIFIED = 0; - /** - * One or more machine learning models are present. - * - * Generated from protobuf enum MODEL = 1; - */ - const MODEL = 1; - /** - * A table appears to contain text embeddings. - * - * Generated from protobuf enum TEXT_EMBEDDING = 2; - */ - const TEXT_EMBEDDING = 2; - /** - * A table appears to contain embeddings of any type (for example, text, - * image, multimodal). The `TEXT_EMBEDDING` signal might also be present if - * the table contains text embeddings. - * - * Generated from protobuf enum EMBEDDING = 7; - */ - const EMBEDDING = 7; - /** - * The [Cloud SQL Vertex - * AI](https://cloud.google.com/sql/docs/postgres/integrate-cloud-sql-with-vertex-ai) - * plugin is installed on the database. - * - * Generated from protobuf enum VERTEX_PLUGIN = 3; - */ - const VERTEX_PLUGIN = 3; - /** - * Support for [Cloud SQL vector - * embeddings](https://cloud.google.com/sql/docs/mysql/enable-vector-search) - * is enabled on the database. - * - * Generated from protobuf enum VECTOR_PLUGIN = 4; - */ - const VECTOR_PLUGIN = 4; - /** - * Source code is present. - * - * Generated from protobuf enum SOURCE_CODE = 5; - */ - const SOURCE_CODE = 5; - /** - * If the service determines the category type. For example, Vertex AI - * assets would always have a `Category` of `AI`. - * - * Generated from protobuf enum SERVICE = 6; - */ - const SERVICE = 6; - - private static $valueToName = [ - self::SIGNAL_UNSPECIFIED => 'SIGNAL_UNSPECIFIED', - self::MODEL => 'MODEL', - self::TEXT_EMBEDDING => 'TEXT_EMBEDDING', - self::EMBEDDING => 'EMBEDDING', - self::VERTEX_PLUGIN => 'VERTEX_PLUGIN', - self::VECTOR_PLUGIN => 'VECTOR_PLUGIN', - self::SOURCE_CODE => 'SOURCE_CODE', - self::SERVICE => 'SERVICE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Encloses.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Encloses.php deleted file mode 100644 index 921de4403228..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Encloses.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.Encloses - */ -class Encloses extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EncryptionStatus.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EncryptionStatus.php deleted file mode 100644 index a21080206e59..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EncryptionStatus.php +++ /dev/null @@ -1,61 +0,0 @@ -google.privacy.dlp.v2.EncryptionStatus - */ -class EncryptionStatus -{ - /** - * Unused. - * - * Generated from protobuf enum ENCRYPTION_STATUS_UNSPECIFIED = 0; - */ - const ENCRYPTION_STATUS_UNSPECIFIED = 0; - /** - * Google manages server-side encryption keys on your behalf. - * - * Generated from protobuf enum ENCRYPTION_GOOGLE_MANAGED = 1; - */ - const ENCRYPTION_GOOGLE_MANAGED = 1; - /** - * Customer provides the key. - * - * Generated from protobuf enum ENCRYPTION_CUSTOMER_MANAGED = 2; - */ - const ENCRYPTION_CUSTOMER_MANAGED = 2; - - private static $valueToName = [ - self::ENCRYPTION_STATUS_UNSPECIFIED => 'ENCRYPTION_STATUS_UNSPECIFIED', - self::ENCRYPTION_GOOGLE_MANAGED => 'ENCRYPTION_GOOGLE_MANAGED', - self::ENCRYPTION_CUSTOMER_MANAGED => 'ENCRYPTION_CUSTOMER_MANAGED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EntityId.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EntityId.php deleted file mode 100644 index 6b426cfdb1c8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EntityId.php +++ /dev/null @@ -1,81 +0,0 @@ -google.privacy.dlp.v2.EntityId - */ -class EntityId extends \Google\Protobuf\Internal\Message -{ - /** - * Composite key indicating which field contains the entity identifier. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - */ - protected $field = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Composite key indicating which field contains the entity identifier. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Composite key indicating which field contains the entity identifier. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Composite key indicating which field contains the entity identifier. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error.php deleted file mode 100644 index 1ff418cf4ff2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error.php +++ /dev/null @@ -1,150 +0,0 @@ -google.privacy.dlp.v2.Error - */ -class Error extends \Google\Protobuf\Internal\Message -{ - /** - * Detailed error codes and messages. - * - * Generated from protobuf field .google.rpc.Status details = 1; - */ - protected $details = null; - /** - * The times the error occurred. List includes the oldest timestamp and the - * last 9 timestamps. - * - * Generated from protobuf field repeated .google.protobuf.Timestamp timestamps = 2; - */ - private $timestamps; - /** - * Additional information about the error. - * - * Generated from protobuf field .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; - */ - protected $extra_info = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Rpc\Status $details - * Detailed error codes and messages. - * @type \Google\Protobuf\Timestamp[] $timestamps - * The times the error occurred. List includes the oldest timestamp and the - * last 9 timestamps. - * @type int $extra_info - * Additional information about the error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Detailed error codes and messages. - * - * Generated from protobuf field .google.rpc.Status details = 1; - * @return \Google\Rpc\Status|null - */ - public function getDetails() - { - return $this->details; - } - - public function hasDetails() - { - return isset($this->details); - } - - public function clearDetails() - { - unset($this->details); - } - - /** - * Detailed error codes and messages. - * - * Generated from protobuf field .google.rpc.Status details = 1; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setDetails($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->details = $var; - - return $this; - } - - /** - * The times the error occurred. List includes the oldest timestamp and the - * last 9 timestamps. - * - * Generated from protobuf field repeated .google.protobuf.Timestamp timestamps = 2; - * @return RepeatedField<\Google\Protobuf\Timestamp> - */ - public function getTimestamps() - { - return $this->timestamps; - } - - /** - * The times the error occurred. List includes the oldest timestamp and the - * last 9 timestamps. - * - * Generated from protobuf field repeated .google.protobuf.Timestamp timestamps = 2; - * @param \Google\Protobuf\Timestamp[] $var - * @return $this - */ - public function setTimestamps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Timestamp::class); - $this->timestamps = $arr; - - return $this; - } - - /** - * Additional information about the error. - * - * Generated from protobuf field .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; - * @return int - */ - public function getExtraInfo() - { - return $this->extra_info; - } - - /** - * Additional information about the error. - * - * Generated from protobuf field .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; - * @param int $var - * @return $this - */ - public function setExtraInfo($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Error\ErrorExtraInfo::class); - $this->extra_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error/ErrorExtraInfo.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error/ErrorExtraInfo.php deleted file mode 100644 index 727edfbea8f6..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error/ErrorExtraInfo.php +++ /dev/null @@ -1,61 +0,0 @@ -google.privacy.dlp.v2.Error.ErrorExtraInfo - */ -class ErrorExtraInfo -{ - /** - * Unused. - * - * Generated from protobuf enum ERROR_INFO_UNSPECIFIED = 0; - */ - const ERROR_INFO_UNSPECIFIED = 0; - /** - * Image scan is not available in the region. - * - * Generated from protobuf enum IMAGE_SCAN_UNAVAILABLE_IN_REGION = 1; - */ - const IMAGE_SCAN_UNAVAILABLE_IN_REGION = 1; - /** - * File store cluster is not supported for profile generation. - * - * Generated from protobuf enum FILE_STORE_CLUSTER_UNSUPPORTED = 2; - */ - const FILE_STORE_CLUSTER_UNSUPPORTED = 2; - - private static $valueToName = [ - self::ERROR_INFO_UNSPECIFIED => 'ERROR_INFO_UNSPECIFIED', - self::IMAGE_SCAN_UNAVAILABLE_IN_REGION => 'IMAGE_SCAN_UNAVAILABLE_IN_REGION', - self::FILE_STORE_CLUSTER_UNSUPPORTED => 'FILE_STORE_CLUSTER_UNSUPPORTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByHotword.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByHotword.php deleted file mode 100644 index 05e0f9fdce5d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByHotword.php +++ /dev/null @@ -1,136 +0,0 @@ -google.privacy.dlp.v2.ExcludeByHotword - */ -class ExcludeByHotword extends \Google\Protobuf\Internal\Message -{ - /** - * Regular expression pattern defining what qualifies as a hotword. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; - */ - protected $hotword_regex = null; - /** - * Range of characters within which the entire hotword must reside. - * The total length of the window cannot exceed 1000 characters. - * The windowBefore property in proximity should be set to 1 if the hotword - * needs to be included in a column header. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; - */ - protected $proximity = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Regex $hotword_regex - * Regular expression pattern defining what qualifies as a hotword. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity $proximity - * Range of characters within which the entire hotword must reside. - * The total length of the window cannot exceed 1000 characters. - * The windowBefore property in proximity should be set to 1 if the hotword - * needs to be included in a column header. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Regular expression pattern defining what qualifies as a hotword. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Regex|null - */ - public function getHotwordRegex() - { - return $this->hotword_regex; - } - - public function hasHotwordRegex() - { - return isset($this->hotword_regex); - } - - public function clearHotwordRegex() - { - unset($this->hotword_regex); - } - - /** - * Regular expression pattern defining what qualifies as a hotword. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Regex $var - * @return $this - */ - public function setHotwordRegex($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Regex::class); - $this->hotword_regex = $var; - - return $this; - } - - /** - * Range of characters within which the entire hotword must reside. - * The total length of the window cannot exceed 1000 characters. - * The windowBefore property in proximity should be set to 1 if the hotword - * needs to be included in a column header. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity|null - */ - public function getProximity() - { - return $this->proximity; - } - - public function hasProximity() - { - return isset($this->proximity); - } - - public function clearProximity() - { - unset($this->proximity); - } - - /** - * Range of characters within which the entire hotword must reside. - * The total length of the window cannot exceed 1000 characters. - * The windowBefore property in proximity should be set to 1 if the hotword - * needs to be included in a column header. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity $var - * @return $this - */ - public function setProximity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity::class); - $this->proximity = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByImageFindings.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByImageFindings.php deleted file mode 100644 index 12562beaa474..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByImageFindings.php +++ /dev/null @@ -1,158 +0,0 @@ -google.privacy.dlp.v2.ExcludeByImageFindings - */ -class ExcludeByImageFindings extends \Google\Protobuf\Internal\Message -{ - /** - * A list of image-supported infoTypes—excluding [document - * infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to - * be used as context for the exclusion rule. A finding is excluded if - * its bounding box has the specified spatial relationship (defined by - * `image_containment_type`) with a finding of an infoType in this list. - * For example, if `InspectionRuleSet.info_types` includes - * `OBJECT_TYPE/PERSON` and this `exclusion_rule` specifies `info_types` as - * `OBJECT_TYPE/PERSON/PASSPORT` with `image_containment_type` set to - * `encloses`, then `OBJECT_TYPE/PERSON` findings will be excluded if they - * are fully contained within the bounding box of an - * `OBJECT_TYPE/PERSON/PASSPORT` finding. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - */ - private $info_types; - /** - * Specifies the required spatial relationship between the bounding boxes - * of the target finding and the context infoType findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageContainmentType image_containment_type = 2; - */ - protected $image_containment_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType[] $info_types - * A list of image-supported infoTypes—excluding [document - * infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to - * be used as context for the exclusion rule. A finding is excluded if - * its bounding box has the specified spatial relationship (defined by - * `image_containment_type`) with a finding of an infoType in this list. - * For example, if `InspectionRuleSet.info_types` includes - * `OBJECT_TYPE/PERSON` and this `exclusion_rule` specifies `info_types` as - * `OBJECT_TYPE/PERSON/PASSPORT` with `image_containment_type` set to - * `encloses`, then `OBJECT_TYPE/PERSON` findings will be excluded if they - * are fully contained within the bounding box of an - * `OBJECT_TYPE/PERSON/PASSPORT` finding. - * @type \Google\Cloud\Dlp\V2\ImageContainmentType $image_containment_type - * Specifies the required spatial relationship between the bounding boxes - * of the target finding and the context infoType findings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A list of image-supported infoTypes—excluding [document - * infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to - * be used as context for the exclusion rule. A finding is excluded if - * its bounding box has the specified spatial relationship (defined by - * `image_containment_type`) with a finding of an infoType in this list. - * For example, if `InspectionRuleSet.info_types` includes - * `OBJECT_TYPE/PERSON` and this `exclusion_rule` specifies `info_types` as - * `OBJECT_TYPE/PERSON/PASSPORT` with `image_containment_type` set to - * `encloses`, then `OBJECT_TYPE/PERSON` findings will be excluded if they - * are fully contained within the bounding box of an - * `OBJECT_TYPE/PERSON/PASSPORT` finding. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoType> - */ - public function getInfoTypes() - { - return $this->info_types; - } - - /** - * A list of image-supported infoTypes—excluding [document - * infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to - * be used as context for the exclusion rule. A finding is excluded if - * its bounding box has the specified spatial relationship (defined by - * `image_containment_type`) with a finding of an infoType in this list. - * For example, if `InspectionRuleSet.info_types` includes - * `OBJECT_TYPE/PERSON` and this `exclusion_rule` specifies `info_types` as - * `OBJECT_TYPE/PERSON/PASSPORT` with `image_containment_type` set to - * `encloses`, then `OBJECT_TYPE/PERSON` findings will be excluded if they - * are fully contained within the bounding box of an - * `OBJECT_TYPE/PERSON/PASSPORT` finding. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @param \Google\Cloud\Dlp\V2\InfoType[] $var - * @return $this - */ - public function setInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_types = $arr; - - return $this; - } - - /** - * Specifies the required spatial relationship between the bounding boxes - * of the target finding and the context infoType findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageContainmentType image_containment_type = 2; - * @return \Google\Cloud\Dlp\V2\ImageContainmentType|null - */ - public function getImageContainmentType() - { - return $this->image_containment_type; - } - - public function hasImageContainmentType() - { - return isset($this->image_containment_type); - } - - public function clearImageContainmentType() - { - unset($this->image_containment_type); - } - - /** - * Specifies the required spatial relationship between the bounding boxes - * of the target finding and the context infoType findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageContainmentType image_containment_type = 2; - * @param \Google\Cloud\Dlp\V2\ImageContainmentType $var - * @return $this - */ - public function setImageContainmentType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageContainmentType::class); - $this->image_containment_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeInfoTypes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeInfoTypes.php deleted file mode 100644 index 295ad4aae151..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeInfoTypes.php +++ /dev/null @@ -1,95 +0,0 @@ -google.privacy.dlp.v2.ExcludeInfoTypes - */ -class ExcludeInfoTypes extends \Google\Protobuf\Internal\Message -{ - /** - * InfoType list in ExclusionRule rule drops a finding when it overlaps or - * contained within with a finding of an infoType from this list. For - * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and - * `exclusion_rule` containing `exclude_info_types.info_types` with - * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap - * with EMAIL_ADDRESS finding. - * That leads to "555-222-2222\@example.org" to generate only a single - * finding, namely email address. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - */ - private $info_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType[] $info_types - * InfoType list in ExclusionRule rule drops a finding when it overlaps or - * contained within with a finding of an infoType from this list. For - * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and - * `exclusion_rule` containing `exclude_info_types.info_types` with - * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap - * with EMAIL_ADDRESS finding. - * That leads to "555-222-2222\@example.org" to generate only a single - * finding, namely email address. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * InfoType list in ExclusionRule rule drops a finding when it overlaps or - * contained within with a finding of an infoType from this list. For - * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and - * `exclusion_rule` containing `exclude_info_types.info_types` with - * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap - * with EMAIL_ADDRESS finding. - * That leads to "555-222-2222\@example.org" to generate only a single - * finding, namely email address. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoType> - */ - public function getInfoTypes() - { - return $this->info_types; - } - - /** - * InfoType list in ExclusionRule rule drops a finding when it overlaps or - * contained within with a finding of an infoType from this list. For - * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and - * `exclusion_rule` containing `exclude_info_types.info_types` with - * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap - * with EMAIL_ADDRESS finding. - * That leads to "555-222-2222\@example.org" to generate only a single - * finding, namely email address. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @param \Google\Cloud\Dlp\V2\InfoType[] $var - * @return $this - */ - public function setInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExclusionRule.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExclusionRule.php deleted file mode 100644 index 2a0ed6d113f6..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExclusionRule.php +++ /dev/null @@ -1,248 +0,0 @@ -google.privacy.dlp.v2.ExclusionRule - */ -class ExclusionRule extends \Google\Protobuf\Internal\Message -{ - /** - * How the rule is applied, see MatchingType documentation for details. - * - * Generated from protobuf field .google.privacy.dlp.v2.MatchingType matching_type = 4; - */ - protected $matching_type = 0; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $dictionary - * Dictionary which defines the rule. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Regex $regex - * Regular expression which defines the rule. - * @type \Google\Cloud\Dlp\V2\ExcludeInfoTypes $exclude_info_types - * Set of infoTypes for which findings would affect this rule. - * @type \Google\Cloud\Dlp\V2\ExcludeByHotword $exclude_by_hotword - * Drop if the hotword rule is contained in the proximate context. For - * tabular data, the context includes the column name. - * @type \Google\Cloud\Dlp\V2\ExcludeByImageFindings $exclude_by_image_findings - * Exclude findings based on image containment rules. For example, exclude - * an image finding if it overlaps with another image finding. - * @type int $matching_type - * How the rule is applied, see MatchingType documentation for details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Dictionary which defines the rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary|null - */ - public function getDictionary() - { - return $this->readOneof(1); - } - - public function hasDictionary() - { - return $this->hasOneof(1); - } - - /** - * Dictionary which defines the rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $var - * @return $this - */ - public function setDictionary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Regular expression which defines the rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Regex|null - */ - public function getRegex() - { - return $this->readOneof(2); - } - - public function hasRegex() - { - return $this->hasOneof(2); - } - - /** - * Regular expression which defines the rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Regex $var - * @return $this - */ - public function setRegex($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Regex::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Set of infoTypes for which findings would affect this rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; - * @return \Google\Cloud\Dlp\V2\ExcludeInfoTypes|null - */ - public function getExcludeInfoTypes() - { - return $this->readOneof(3); - } - - public function hasExcludeInfoTypes() - { - return $this->hasOneof(3); - } - - /** - * Set of infoTypes for which findings would affect this rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; - * @param \Google\Cloud\Dlp\V2\ExcludeInfoTypes $var - * @return $this - */ - public function setExcludeInfoTypes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ExcludeInfoTypes::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Drop if the hotword rule is contained in the proximate context. For - * tabular data, the context includes the column name. - * - * Generated from protobuf field .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5; - * @return \Google\Cloud\Dlp\V2\ExcludeByHotword|null - */ - public function getExcludeByHotword() - { - return $this->readOneof(5); - } - - public function hasExcludeByHotword() - { - return $this->hasOneof(5); - } - - /** - * Drop if the hotword rule is contained in the proximate context. For - * tabular data, the context includes the column name. - * - * Generated from protobuf field .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5; - * @param \Google\Cloud\Dlp\V2\ExcludeByHotword $var - * @return $this - */ - public function setExcludeByHotword($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ExcludeByHotword::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Exclude findings based on image containment rules. For example, exclude - * an image finding if it overlaps with another image finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6; - * @return \Google\Cloud\Dlp\V2\ExcludeByImageFindings|null - */ - public function getExcludeByImageFindings() - { - return $this->readOneof(6); - } - - public function hasExcludeByImageFindings() - { - return $this->hasOneof(6); - } - - /** - * Exclude findings based on image containment rules. For example, exclude - * an image finding if it overlaps with another image finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6; - * @param \Google\Cloud\Dlp\V2\ExcludeByImageFindings $var - * @return $this - */ - public function setExcludeByImageFindings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ExcludeByImageFindings::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * How the rule is applied, see MatchingType documentation for details. - * - * Generated from protobuf field .google.privacy.dlp.v2.MatchingType matching_type = 4; - * @return int - */ - public function getMatchingType() - { - return $this->matching_type; - } - - /** - * How the rule is applied, see MatchingType documentation for details. - * - * Generated from protobuf field .google.privacy.dlp.v2.MatchingType matching_type = 4; - * @param int $var - * @return $this - */ - public function setMatchingType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\MatchingType::class); - $this->matching_type = $var; - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldId.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldId.php deleted file mode 100644 index bb4628f46efa..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldId.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.FieldId - */ -class FieldId extends \Google\Protobuf\Internal\Message -{ - /** - * Name describing the field. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name describing the field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Name describing the field. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name describing the field. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldTransformation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldTransformation.php deleted file mode 100644 index 4a60eb679b4f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldTransformation.php +++ /dev/null @@ -1,225 +0,0 @@ -google.privacy.dlp.v2.FieldTransformation - */ -class FieldTransformation extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Input field(s) to apply the transformation to. - * When you have columns that reference their position within a list, - * omit the index from the FieldId. FieldId name matching ignores the index. - * For example, instead of "contact.nums[0].type", use "contact.nums.type". - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $fields; - /** - * Only apply the transformation if the condition evaluates to true for the - * given `RecordCondition`. The conditions are allowed to reference fields - * that are not used in the actual transformation. - * Example Use Cases: - * - Apply a different bucket transformation to an age column if the zip code - * column for the same record is within a specific range. - * - Redact a field if the date of birth field is greater than 85. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 3; - */ - protected $condition = null; - protected $transformation; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId[] $fields - * Required. Input field(s) to apply the transformation to. - * When you have columns that reference their position within a list, - * omit the index from the FieldId. FieldId name matching ignores the index. - * For example, instead of "contact.nums[0].type", use "contact.nums.type". - * @type \Google\Cloud\Dlp\V2\RecordCondition $condition - * Only apply the transformation if the condition evaluates to true for the - * given `RecordCondition`. The conditions are allowed to reference fields - * that are not used in the actual transformation. - * Example Use Cases: - * - Apply a different bucket transformation to an age column if the zip code - * column for the same record is within a specific range. - * - Redact a field if the date of birth field is greater than 85. - * @type \Google\Cloud\Dlp\V2\PrimitiveTransformation $primitive_transformation - * Apply the transformation to the entire field. - * @type \Google\Cloud\Dlp\V2\InfoTypeTransformations $info_type_transformations - * Treat the contents of the field as free text, and selectively - * transform content that matches an `InfoType`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Input field(s) to apply the transformation to. - * When you have columns that reference their position within a list, - * omit the index from the FieldId. FieldId name matching ignores the index. - * For example, instead of "contact.nums[0].type", use "contact.nums.type". - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldId> - */ - public function getFields() - { - return $this->fields; - } - - /** - * Required. Input field(s) to apply the transformation to. - * When you have columns that reference their position within a list, - * omit the index from the FieldId. FieldId name matching ignores the index. - * For example, instead of "contact.nums[0].type", use "contact.nums.type". - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\FieldId[] $var - * @return $this - */ - public function setFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); - $this->fields = $arr; - - return $this; - } - - /** - * Only apply the transformation if the condition evaluates to true for the - * given `RecordCondition`. The conditions are allowed to reference fields - * that are not used in the actual transformation. - * Example Use Cases: - * - Apply a different bucket transformation to an age column if the zip code - * column for the same record is within a specific range. - * - Redact a field if the date of birth field is greater than 85. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 3; - * @return \Google\Cloud\Dlp\V2\RecordCondition|null - */ - public function getCondition() - { - return $this->condition; - } - - public function hasCondition() - { - return isset($this->condition); - } - - public function clearCondition() - { - unset($this->condition); - } - - /** - * Only apply the transformation if the condition evaluates to true for the - * given `RecordCondition`. The conditions are allowed to reference fields - * that are not used in the actual transformation. - * Example Use Cases: - * - Apply a different bucket transformation to an age column if the zip code - * column for the same record is within a specific range. - * - Redact a field if the date of birth field is greater than 85. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 3; - * @param \Google\Cloud\Dlp\V2\RecordCondition $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordCondition::class); - $this->condition = $var; - - return $this; - } - - /** - * Apply the transformation to the entire field. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4; - * @return \Google\Cloud\Dlp\V2\PrimitiveTransformation|null - */ - public function getPrimitiveTransformation() - { - return $this->readOneof(4); - } - - public function hasPrimitiveTransformation() - { - return $this->hasOneof(4); - } - - /** - * Apply the transformation to the entire field. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4; - * @param \Google\Cloud\Dlp\V2\PrimitiveTransformation $var - * @return $this - */ - public function setPrimitiveTransformation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrimitiveTransformation::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Treat the contents of the field as free text, and selectively - * transform content that matches an `InfoType`. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5; - * @return \Google\Cloud\Dlp\V2\InfoTypeTransformations|null - */ - public function getInfoTypeTransformations() - { - return $this->readOneof(5); - } - - public function hasInfoTypeTransformations() - { - return $this->hasOneof(5); - } - - /** - * Treat the contents of the field as free text, and selectively - * transform content that matches an `InfoType`. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5; - * @param \Google\Cloud\Dlp\V2\InfoTypeTransformations $var - * @return $this - */ - public function setInfoTypeTransformations($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoTypeTransformations::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getTransformation() - { - return $this->whichOneof("transformation"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterSummary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterSummary.php deleted file mode 100644 index 52b324fb9fdf..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterSummary.php +++ /dev/null @@ -1,367 +0,0 @@ -google.privacy.dlp.v2.FileClusterSummary - */ -class FileClusterSummary extends \Google\Protobuf\Internal\Message -{ - /** - * The file cluster type. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; - */ - protected $file_cluster_type = null; - /** - * InfoTypes detected in this cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; - */ - private $file_store_info_type_summaries; - /** - * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW - * if nothing has been scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; - */ - protected $sensitivity_score = null; - /** - * The data risk level of this cluster. RISK_LOW if nothing has been - * scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; - */ - protected $data_risk_level = null; - /** - * A list of errors detected while scanning this cluster. The list is - * truncated to 10 per cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6; - */ - private $errors; - /** - * A sample of file types scanned in this cluster. Empty if no files were - * scanned. File extensions can be derived from the file name or the file - * content. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; - */ - private $file_extensions_scanned; - /** - * A sample of file types seen in this cluster. Empty if no files were seen. - * File extensions can be derived from the file name or the file content. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; - */ - private $file_extensions_seen; - /** - * True if no files exist in this cluster. If the file store had more files - * than could be listed, this will be false even if no files for this cluster - * were seen and file_extensions_seen is empty. - * - * Generated from protobuf field bool no_files_exist = 9; - */ - protected $no_files_exist = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FileClusterType $file_cluster_type - * The file cluster type. - * @type \Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary[] $file_store_info_type_summaries - * InfoTypes detected in this cluster. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW - * if nothing has been scanned. - * @type \Google\Cloud\Dlp\V2\DataRiskLevel $data_risk_level - * The data risk level of this cluster. RISK_LOW if nothing has been - * scanned. - * @type \Google\Cloud\Dlp\V2\Error[] $errors - * A list of errors detected while scanning this cluster. The list is - * truncated to 10 per cluster. - * @type \Google\Cloud\Dlp\V2\FileExtensionInfo[] $file_extensions_scanned - * A sample of file types scanned in this cluster. Empty if no files were - * scanned. File extensions can be derived from the file name or the file - * content. - * @type \Google\Cloud\Dlp\V2\FileExtensionInfo[] $file_extensions_seen - * A sample of file types seen in this cluster. Empty if no files were seen. - * File extensions can be derived from the file name or the file content. - * @type bool $no_files_exist - * True if no files exist in this cluster. If the file store had more files - * than could be listed, this will be false even if no files for this cluster - * were seen and file_extensions_seen is empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The file cluster type. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; - * @return \Google\Cloud\Dlp\V2\FileClusterType|null - */ - public function getFileClusterType() - { - return $this->file_cluster_type; - } - - public function hasFileClusterType() - { - return isset($this->file_cluster_type); - } - - public function clearFileClusterType() - { - unset($this->file_cluster_type); - } - - /** - * The file cluster type. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; - * @param \Google\Cloud\Dlp\V2\FileClusterType $var - * @return $this - */ - public function setFileClusterType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FileClusterType::class); - $this->file_cluster_type = $var; - - return $this; - } - - /** - * InfoTypes detected in this cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; - * @return RepeatedField<\Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary> - */ - public function getFileStoreInfoTypeSummaries() - { - return $this->file_store_info_type_summaries; - } - - /** - * InfoTypes detected in this cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; - * @param \Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary[] $var - * @return $this - */ - public function setFileStoreInfoTypeSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary::class); - $this->file_store_info_type_summaries = $arr; - - return $this; - } - - /** - * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW - * if nothing has been scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->sensitivity_score; - } - - public function hasSensitivityScore() - { - return isset($this->sensitivity_score); - } - - public function clearSensitivityScore() - { - unset($this->sensitivity_score); - } - - /** - * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW - * if nothing has been scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->sensitivity_score = $var; - - return $this; - } - - /** - * The data risk level of this cluster. RISK_LOW if nothing has been - * scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; - * @return \Google\Cloud\Dlp\V2\DataRiskLevel|null - */ - public function getDataRiskLevel() - { - return $this->data_risk_level; - } - - public function hasDataRiskLevel() - { - return isset($this->data_risk_level); - } - - public function clearDataRiskLevel() - { - unset($this->data_risk_level); - } - - /** - * The data risk level of this cluster. RISK_LOW if nothing has been - * scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; - * @param \Google\Cloud\Dlp\V2\DataRiskLevel $var - * @return $this - */ - public function setDataRiskLevel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataRiskLevel::class); - $this->data_risk_level = $var; - - return $this; - } - - /** - * A list of errors detected while scanning this cluster. The list is - * truncated to 10 per cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Error> - */ - public function getErrors() - { - return $this->errors; - } - - /** - * A list of errors detected while scanning this cluster. The list is - * truncated to 10 per cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6; - * @param \Google\Cloud\Dlp\V2\Error[] $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); - $this->errors = $arr; - - return $this; - } - - /** - * A sample of file types scanned in this cluster. Empty if no files were - * scanned. File extensions can be derived from the file name or the file - * content. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; - * @return RepeatedField<\Google\Cloud\Dlp\V2\FileExtensionInfo> - */ - public function getFileExtensionsScanned() - { - return $this->file_extensions_scanned; - } - - /** - * A sample of file types scanned in this cluster. Empty if no files were - * scanned. File extensions can be derived from the file name or the file - * content. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; - * @param \Google\Cloud\Dlp\V2\FileExtensionInfo[] $var - * @return $this - */ - public function setFileExtensionsScanned($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileExtensionInfo::class); - $this->file_extensions_scanned = $arr; - - return $this; - } - - /** - * A sample of file types seen in this cluster. Empty if no files were seen. - * File extensions can be derived from the file name or the file content. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; - * @return RepeatedField<\Google\Cloud\Dlp\V2\FileExtensionInfo> - */ - public function getFileExtensionsSeen() - { - return $this->file_extensions_seen; - } - - /** - * A sample of file types seen in this cluster. Empty if no files were seen. - * File extensions can be derived from the file name or the file content. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; - * @param \Google\Cloud\Dlp\V2\FileExtensionInfo[] $var - * @return $this - */ - public function setFileExtensionsSeen($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileExtensionInfo::class); - $this->file_extensions_seen = $arr; - - return $this; - } - - /** - * True if no files exist in this cluster. If the file store had more files - * than could be listed, this will be false even if no files for this cluster - * were seen and file_extensions_seen is empty. - * - * Generated from protobuf field bool no_files_exist = 9; - * @return bool - */ - public function getNoFilesExist() - { - return $this->no_files_exist; - } - - /** - * True if no files exist in this cluster. If the file store had more files - * than could be listed, this will be false even if no files for this cluster - * were seen and file_extensions_seen is empty. - * - * Generated from protobuf field bool no_files_exist = 9; - * @param bool $var - * @return $this - */ - public function setNoFilesExist($var) - { - GPBUtil::checkBool($var); - $this->no_files_exist = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType.php deleted file mode 100644 index efa4e6d367b2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.FileClusterType - */ -class FileClusterType extends \Google\Protobuf\Internal\Message -{ - protected $file_cluster_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $cluster - * Cluster type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Cluster type. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; - * @return int - */ - public function getCluster() - { - return $this->readOneof(1); - } - - public function hasCluster() - { - return $this->hasOneof(1); - } - - /** - * Cluster type. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; - * @param int $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\FileClusterType\Cluster::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getFileClusterType() - { - return $this->whichOneof("file_cluster_type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType/Cluster.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType/Cluster.php deleted file mode 100644 index 5dc8f9d8e7ea..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType/Cluster.php +++ /dev/null @@ -1,118 +0,0 @@ -google.privacy.dlp.v2.FileClusterType.Cluster - */ -class Cluster -{ - /** - * Unused. - * - * Generated from protobuf enum CLUSTER_UNSPECIFIED = 0; - */ - const CLUSTER_UNSPECIFIED = 0; - /** - * Unsupported files. - * - * Generated from protobuf enum CLUSTER_UNKNOWN = 1; - */ - const CLUSTER_UNKNOWN = 1; - /** - * Plain text. - * - * Generated from protobuf enum CLUSTER_TEXT = 2; - */ - const CLUSTER_TEXT = 2; - /** - * Structured data like CSV, TSV etc. - * - * Generated from protobuf enum CLUSTER_STRUCTURED_DATA = 3; - */ - const CLUSTER_STRUCTURED_DATA = 3; - /** - * Source code. - * - * Generated from protobuf enum CLUSTER_SOURCE_CODE = 4; - */ - const CLUSTER_SOURCE_CODE = 4; - /** - * Rich document like docx, xlsx etc. - * - * Generated from protobuf enum CLUSTER_RICH_DOCUMENT = 5; - */ - const CLUSTER_RICH_DOCUMENT = 5; - /** - * Images like jpeg, bmp. - * - * Generated from protobuf enum CLUSTER_IMAGE = 6; - */ - const CLUSTER_IMAGE = 6; - /** - * Archives and containers like .zip, .tar etc. - * - * Generated from protobuf enum CLUSTER_ARCHIVE = 7; - */ - const CLUSTER_ARCHIVE = 7; - /** - * Multimedia like .mp4, .avi etc. - * - * Generated from protobuf enum CLUSTER_MULTIMEDIA = 8; - */ - const CLUSTER_MULTIMEDIA = 8; - /** - * Executable files like .exe, .class, .apk etc. - * - * Generated from protobuf enum CLUSTER_EXECUTABLE = 9; - */ - const CLUSTER_EXECUTABLE = 9; - /** - * AI models like .tflite etc. - * - * Generated from protobuf enum CLUSTER_AI_MODEL = 10; - */ - const CLUSTER_AI_MODEL = 10; - - private static $valueToName = [ - self::CLUSTER_UNSPECIFIED => 'CLUSTER_UNSPECIFIED', - self::CLUSTER_UNKNOWN => 'CLUSTER_UNKNOWN', - self::CLUSTER_TEXT => 'CLUSTER_TEXT', - self::CLUSTER_STRUCTURED_DATA => 'CLUSTER_STRUCTURED_DATA', - self::CLUSTER_SOURCE_CODE => 'CLUSTER_SOURCE_CODE', - self::CLUSTER_RICH_DOCUMENT => 'CLUSTER_RICH_DOCUMENT', - self::CLUSTER_IMAGE => 'CLUSTER_IMAGE', - self::CLUSTER_ARCHIVE => 'CLUSTER_ARCHIVE', - self::CLUSTER_MULTIMEDIA => 'CLUSTER_MULTIMEDIA', - self::CLUSTER_EXECUTABLE => 'CLUSTER_EXECUTABLE', - self::CLUSTER_AI_MODEL => 'CLUSTER_AI_MODEL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileExtensionInfo.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileExtensionInfo.php deleted file mode 100644 index 54ffb06382e9..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileExtensionInfo.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.FileExtensionInfo - */ -class FileExtensionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The file extension if set. (aka .pdf, .jpg, .txt) - * - * Generated from protobuf field string file_extension = 1; - */ - protected $file_extension = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $file_extension - * The file extension if set. (aka .pdf, .jpg, .txt) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The file extension if set. (aka .pdf, .jpg, .txt) - * - * Generated from protobuf field string file_extension = 1; - * @return string - */ - public function getFileExtension() - { - return $this->file_extension; - } - - /** - * The file extension if set. (aka .pdf, .jpg, .txt) - * - * Generated from protobuf field string file_extension = 1; - * @param string $var - * @return $this - */ - public function setFileExtension($var) - { - GPBUtil::checkString($var, True); - $this->file_extension = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreCollection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreCollection.php deleted file mode 100644 index 85ac83d96d2f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreCollection.php +++ /dev/null @@ -1,150 +0,0 @@ -google.privacy.dlp.v2.FileStoreCollection - */ -class FileStoreCollection extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. To be included in the collection, a resource must meet all of the - * following requirements: - * - If tag filters are provided, match all provided tag filters. - * - If one or more patterns are specified, match at least one pattern. - * For a resource to match the tag filters, the resource must have all of the - * provided tags attached. Tags refer to Resource Manager tags bound to the - * resource or its ancestors. For more information, see [Manage - * schedules](https://cloud.google.com/sensitive-data-protection/docs/profile-project-cloud-storage#manage-schedules). - * - * Generated from protobuf field .google.privacy.dlp.v2.TagFilters include_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $include_tags = null; - protected $pattern; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FileStoreRegexes $include_regexes - * Optional. A collection of regular expressions to match a file store - * against. - * @type \Google\Cloud\Dlp\V2\TagFilters $include_tags - * Optional. To be included in the collection, a resource must meet all of the - * following requirements: - * - If tag filters are provided, match all provided tag filters. - * - If one or more patterns are specified, match at least one pattern. - * For a resource to match the tag filters, the resource must have all of the - * provided tags attached. Tags refer to Resource Manager tags bound to the - * resource or its ancestors. For more information, see [Manage - * schedules](https://cloud.google.com/sensitive-data-protection/docs/profile-project-cloud-storage#manage-schedules). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A collection of regular expressions to match a file store - * against. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\FileStoreRegexes|null - */ - public function getIncludeRegexes() - { - return $this->readOneof(1); - } - - public function hasIncludeRegexes() - { - return $this->hasOneof(1); - } - - /** - * Optional. A collection of regular expressions to match a file store - * against. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\FileStoreRegexes $var - * @return $this - */ - public function setIncludeRegexes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FileStoreRegexes::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Optional. To be included in the collection, a resource must meet all of the - * following requirements: - * - If tag filters are provided, match all provided tag filters. - * - If one or more patterns are specified, match at least one pattern. - * For a resource to match the tag filters, the resource must have all of the - * provided tags attached. Tags refer to Resource Manager tags bound to the - * resource or its ancestors. For more information, see [Manage - * schedules](https://cloud.google.com/sensitive-data-protection/docs/profile-project-cloud-storage#manage-schedules). - * - * Generated from protobuf field .google.privacy.dlp.v2.TagFilters include_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\TagFilters|null - */ - public function getIncludeTags() - { - return $this->include_tags; - } - - public function hasIncludeTags() - { - return isset($this->include_tags); - } - - public function clearIncludeTags() - { - unset($this->include_tags); - } - - /** - * Optional. To be included in the collection, a resource must meet all of the - * following requirements: - * - If tag filters are provided, match all provided tag filters. - * - If one or more patterns are specified, match at least one pattern. - * For a resource to match the tag filters, the resource must have all of the - * provided tags attached. Tags refer to Resource Manager tags bound to the - * resource or its ancestors. For more information, see [Manage - * schedules](https://cloud.google.com/sensitive-data-protection/docs/profile-project-cloud-storage#manage-schedules). - * - * Generated from protobuf field .google.privacy.dlp.v2.TagFilters include_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\TagFilters $var - * @return $this - */ - public function setIncludeTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TagFilters::class); - $this->include_tags = $var; - - return $this; - } - - /** - * @return string - */ - public function getPattern() - { - return $this->whichOneof("pattern"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile.php deleted file mode 100644 index a6d6fde184db..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile.php +++ /dev/null @@ -1,1143 +0,0 @@ -google.privacy.dlp.v2.FileStoreDataProfile - */ -class FileStoreDataProfile extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the profile. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The resource type that was profiled. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 2; - */ - protected $data_source_type = null; - /** - * The resource name of the project data profile for this file store. - * - * Generated from protobuf field string project_data_profile = 3; - */ - protected $project_data_profile = ''; - /** - * The Google Cloud project ID that owns the resource. - * For Amazon S3 buckets, this is the AWS Account Id. - * - * Generated from protobuf field string project_id = 4; - */ - protected $project_id = ''; - /** - * The location of the file store. - * * Cloud Storage: - * https://cloud.google.com/storage/docs/locations#available-locations - * * Amazon S3: - * https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints - * - * Generated from protobuf field string file_store_location = 5; - */ - protected $file_store_location = ''; - /** - * For resources that have multiple storage locations, these are those - * regions. For Cloud Storage this is the list of regions chosen for - * dual-region storage. `file_store_location` will normally be the - * corresponding multi-region for the list of individual locations. The first - * region is always picked as the processing and storage location for the data - * profile. - * - * Generated from protobuf field repeated string data_storage_locations = 19; - */ - private $data_storage_locations; - /** - * The location type of the file store (region, dual-region, multi-region, - * etc). If dual-region, expect data_storage_locations to be populated. - * - * Generated from protobuf field string location_type = 20; - */ - protected $location_type = ''; - /** - * The file store path. - * * Cloud Storage: `gs://{bucket}` - * * Amazon S3: `s3://{bucket}` - * * Vertex AI dataset: - * `projects/{project_number}/locations/{location}/datasets/{dataset_id}` - * - * Generated from protobuf field string file_store_path = 6; - */ - protected $file_store_path = ''; - /** - * The resource name of the resource profiled. - * https://cloud.google.com/apis/design/resource_names#full_resource_name - * Example format of an S3 bucket full resource name: - * `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}` - * - * Generated from protobuf field string full_resource = 24; - */ - protected $full_resource = ''; - /** - * The snapshot of the configurations used to generate the profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; - */ - protected $config_snapshot = null; - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 8; - */ - protected $profile_status = null; - /** - * State of a profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; - */ - protected $state = 0; - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 10; - */ - protected $profile_last_generated = null; - /** - * How broadly a resource has been shared. - * - * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; - */ - protected $resource_visibility = 0; - /** - * The sensitivity score of this resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; - */ - protected $sensitivity_score = null; - /** - * The data risk level of this resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; - */ - protected $data_risk_level = null; - /** - * The time the file store was first created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 14; - */ - protected $create_time = null; - /** - * The time the file store was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 15; - */ - protected $last_modified_time = null; - /** - * FileClusterSummary per each cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; - */ - private $file_cluster_summaries; - /** - * Attributes of the resource being profiled. - * Currently used attributes: - * * customer_managed_encryption: boolean - * - true: the resource is encrypted with a customer-managed key. - * - false: the resource is encrypted with a provider-managed key. - * - * Generated from protobuf field map resource_attributes = 17; - */ - private $resource_attributes; - /** - * The labels applied to the resource at the time the profile was generated. - * - * Generated from protobuf field map resource_labels = 18; - */ - private $resource_labels; - /** - * InfoTypes detected in this file store. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; - */ - private $file_store_info_type_summaries; - /** - * The BigQuery table to which the sample findings are written. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 22; - */ - protected $sample_findings_table = null; - /** - * The file store does not have any files. If the profiling operation failed, - * this is false. - * - * Generated from protobuf field bool file_store_is_empty = 23; - */ - protected $file_store_is_empty = false; - /** - * The tags attached to the resource, including any tags attached during - * profiling. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Tag tags = 25; - */ - private $tags; - /** - * Resources related to this profile. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RelatedResource related_resources = 26; - */ - private $related_resources; - /** - * Domains associated with the profile. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain domains = 27; - */ - private $domains; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the profile. - * @type \Google\Cloud\Dlp\V2\DataSourceType $data_source_type - * The resource type that was profiled. - * @type string $project_data_profile - * The resource name of the project data profile for this file store. - * @type string $project_id - * The Google Cloud project ID that owns the resource. - * For Amazon S3 buckets, this is the AWS Account Id. - * @type string $file_store_location - * The location of the file store. - * * Cloud Storage: - * https://cloud.google.com/storage/docs/locations#available-locations - * * Amazon S3: - * https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints - * @type string[] $data_storage_locations - * For resources that have multiple storage locations, these are those - * regions. For Cloud Storage this is the list of regions chosen for - * dual-region storage. `file_store_location` will normally be the - * corresponding multi-region for the list of individual locations. The first - * region is always picked as the processing and storage location for the data - * profile. - * @type string $location_type - * The location type of the file store (region, dual-region, multi-region, - * etc). If dual-region, expect data_storage_locations to be populated. - * @type string $file_store_path - * The file store path. - * * Cloud Storage: `gs://{bucket}` - * * Amazon S3: `s3://{bucket}` - * * Vertex AI dataset: - * `projects/{project_number}/locations/{location}/datasets/{dataset_id}` - * @type string $full_resource - * The resource name of the resource profiled. - * https://cloud.google.com/apis/design/resource_names#full_resource_name - * Example format of an S3 bucket full resource name: - * `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}` - * @type \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot $config_snapshot - * The snapshot of the configurations used to generate the profile. - * @type \Google\Cloud\Dlp\V2\ProfileStatus $profile_status - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * @type int $state - * State of a profile. - * @type \Google\Protobuf\Timestamp $profile_last_generated - * The last time the profile was generated. - * @type int $resource_visibility - * How broadly a resource has been shared. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * The sensitivity score of this resource. - * @type \Google\Cloud\Dlp\V2\DataRiskLevel $data_risk_level - * The data risk level of this resource. - * @type \Google\Protobuf\Timestamp $create_time - * The time the file store was first created. - * @type \Google\Protobuf\Timestamp $last_modified_time - * The time the file store was last modified. - * @type \Google\Cloud\Dlp\V2\FileClusterSummary[] $file_cluster_summaries - * FileClusterSummary per each cluster. - * @type array|\Google\Protobuf\Internal\MapField $resource_attributes - * Attributes of the resource being profiled. - * Currently used attributes: - * * customer_managed_encryption: boolean - * - true: the resource is encrypted with a customer-managed key. - * - false: the resource is encrypted with a provider-managed key. - * @type array|\Google\Protobuf\Internal\MapField $resource_labels - * The labels applied to the resource at the time the profile was generated. - * @type \Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary[] $file_store_info_type_summaries - * InfoTypes detected in this file store. - * @type \Google\Cloud\Dlp\V2\BigQueryTable $sample_findings_table - * The BigQuery table to which the sample findings are written. - * @type bool $file_store_is_empty - * The file store does not have any files. If the profiling operation failed, - * this is false. - * @type \Google\Cloud\Dlp\V2\Tag[] $tags - * The tags attached to the resource, including any tags attached during - * profiling. - * @type \Google\Cloud\Dlp\V2\RelatedResource[] $related_resources - * Resources related to this profile. - * @type \Google\Cloud\Dlp\V2\Domain[] $domains - * Domains associated with the profile. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The name of the profile. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the profile. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The resource type that was profiled. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 2; - * @return \Google\Cloud\Dlp\V2\DataSourceType|null - */ - public function getDataSourceType() - { - return $this->data_source_type; - } - - public function hasDataSourceType() - { - return isset($this->data_source_type); - } - - public function clearDataSourceType() - { - unset($this->data_source_type); - } - - /** - * The resource type that was profiled. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 2; - * @param \Google\Cloud\Dlp\V2\DataSourceType $var - * @return $this - */ - public function setDataSourceType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataSourceType::class); - $this->data_source_type = $var; - - return $this; - } - - /** - * The resource name of the project data profile for this file store. - * - * Generated from protobuf field string project_data_profile = 3; - * @return string - */ - public function getProjectDataProfile() - { - return $this->project_data_profile; - } - - /** - * The resource name of the project data profile for this file store. - * - * Generated from protobuf field string project_data_profile = 3; - * @param string $var - * @return $this - */ - public function setProjectDataProfile($var) - { - GPBUtil::checkString($var, True); - $this->project_data_profile = $var; - - return $this; - } - - /** - * The Google Cloud project ID that owns the resource. - * For Amazon S3 buckets, this is the AWS Account Id. - * - * Generated from protobuf field string project_id = 4; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The Google Cloud project ID that owns the resource. - * For Amazon S3 buckets, this is the AWS Account Id. - * - * Generated from protobuf field string project_id = 4; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The location of the file store. - * * Cloud Storage: - * https://cloud.google.com/storage/docs/locations#available-locations - * * Amazon S3: - * https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints - * - * Generated from protobuf field string file_store_location = 5; - * @return string - */ - public function getFileStoreLocation() - { - return $this->file_store_location; - } - - /** - * The location of the file store. - * * Cloud Storage: - * https://cloud.google.com/storage/docs/locations#available-locations - * * Amazon S3: - * https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints - * - * Generated from protobuf field string file_store_location = 5; - * @param string $var - * @return $this - */ - public function setFileStoreLocation($var) - { - GPBUtil::checkString($var, True); - $this->file_store_location = $var; - - return $this; - } - - /** - * For resources that have multiple storage locations, these are those - * regions. For Cloud Storage this is the list of regions chosen for - * dual-region storage. `file_store_location` will normally be the - * corresponding multi-region for the list of individual locations. The first - * region is always picked as the processing and storage location for the data - * profile. - * - * Generated from protobuf field repeated string data_storage_locations = 19; - * @return RepeatedField - */ - public function getDataStorageLocations() - { - return $this->data_storage_locations; - } - - /** - * For resources that have multiple storage locations, these are those - * regions. For Cloud Storage this is the list of regions chosen for - * dual-region storage. `file_store_location` will normally be the - * corresponding multi-region for the list of individual locations. The first - * region is always picked as the processing and storage location for the data - * profile. - * - * Generated from protobuf field repeated string data_storage_locations = 19; - * @param string[] $var - * @return $this - */ - public function setDataStorageLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->data_storage_locations = $arr; - - return $this; - } - - /** - * The location type of the file store (region, dual-region, multi-region, - * etc). If dual-region, expect data_storage_locations to be populated. - * - * Generated from protobuf field string location_type = 20; - * @return string - */ - public function getLocationType() - { - return $this->location_type; - } - - /** - * The location type of the file store (region, dual-region, multi-region, - * etc). If dual-region, expect data_storage_locations to be populated. - * - * Generated from protobuf field string location_type = 20; - * @param string $var - * @return $this - */ - public function setLocationType($var) - { - GPBUtil::checkString($var, True); - $this->location_type = $var; - - return $this; - } - - /** - * The file store path. - * * Cloud Storage: `gs://{bucket}` - * * Amazon S3: `s3://{bucket}` - * * Vertex AI dataset: - * `projects/{project_number}/locations/{location}/datasets/{dataset_id}` - * - * Generated from protobuf field string file_store_path = 6; - * @return string - */ - public function getFileStorePath() - { - return $this->file_store_path; - } - - /** - * The file store path. - * * Cloud Storage: `gs://{bucket}` - * * Amazon S3: `s3://{bucket}` - * * Vertex AI dataset: - * `projects/{project_number}/locations/{location}/datasets/{dataset_id}` - * - * Generated from protobuf field string file_store_path = 6; - * @param string $var - * @return $this - */ - public function setFileStorePath($var) - { - GPBUtil::checkString($var, True); - $this->file_store_path = $var; - - return $this; - } - - /** - * The resource name of the resource profiled. - * https://cloud.google.com/apis/design/resource_names#full_resource_name - * Example format of an S3 bucket full resource name: - * `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}` - * - * Generated from protobuf field string full_resource = 24; - * @return string - */ - public function getFullResource() - { - return $this->full_resource; - } - - /** - * The resource name of the resource profiled. - * https://cloud.google.com/apis/design/resource_names#full_resource_name - * Example format of an S3 bucket full resource name: - * `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}` - * - * Generated from protobuf field string full_resource = 24; - * @param string $var - * @return $this - */ - public function setFullResource($var) - { - GPBUtil::checkString($var, True); - $this->full_resource = $var; - - return $this; - } - - /** - * The snapshot of the configurations used to generate the profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; - * @return \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot|null - */ - public function getConfigSnapshot() - { - return $this->config_snapshot; - } - - public function hasConfigSnapshot() - { - return isset($this->config_snapshot); - } - - public function clearConfigSnapshot() - { - unset($this->config_snapshot); - } - - /** - * The snapshot of the configurations used to generate the profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; - * @param \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot $var - * @return $this - */ - public function setConfigSnapshot($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot::class); - $this->config_snapshot = $var; - - return $this; - } - - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 8; - * @return \Google\Cloud\Dlp\V2\ProfileStatus|null - */ - public function getProfileStatus() - { - return $this->profile_status; - } - - public function hasProfileStatus() - { - return isset($this->profile_status); - } - - public function clearProfileStatus() - { - unset($this->profile_status); - } - - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 8; - * @param \Google\Cloud\Dlp\V2\ProfileStatus $var - * @return $this - */ - public function setProfileStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProfileStatus::class); - $this->profile_status = $var; - - return $this; - } - - /** - * State of a profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * State of a profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\FileStoreDataProfile\State::class); - $this->state = $var; - - return $this; - } - - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 10; - * @return \Google\Protobuf\Timestamp|null - */ - public function getProfileLastGenerated() - { - return $this->profile_last_generated; - } - - public function hasProfileLastGenerated() - { - return isset($this->profile_last_generated); - } - - public function clearProfileLastGenerated() - { - unset($this->profile_last_generated); - } - - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 10; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setProfileLastGenerated($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->profile_last_generated = $var; - - return $this; - } - - /** - * How broadly a resource has been shared. - * - * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; - * @return int - */ - public function getResourceVisibility() - { - return $this->resource_visibility; - } - - /** - * How broadly a resource has been shared. - * - * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; - * @param int $var - * @return $this - */ - public function setResourceVisibility($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ResourceVisibility::class); - $this->resource_visibility = $var; - - return $this; - } - - /** - * The sensitivity score of this resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->sensitivity_score; - } - - public function hasSensitivityScore() - { - return isset($this->sensitivity_score); - } - - public function clearSensitivityScore() - { - unset($this->sensitivity_score); - } - - /** - * The sensitivity score of this resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->sensitivity_score = $var; - - return $this; - } - - /** - * The data risk level of this resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; - * @return \Google\Cloud\Dlp\V2\DataRiskLevel|null - */ - public function getDataRiskLevel() - { - return $this->data_risk_level; - } - - public function hasDataRiskLevel() - { - return isset($this->data_risk_level); - } - - public function clearDataRiskLevel() - { - unset($this->data_risk_level); - } - - /** - * The data risk level of this resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; - * @param \Google\Cloud\Dlp\V2\DataRiskLevel $var - * @return $this - */ - public function setDataRiskLevel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataRiskLevel::class); - $this->data_risk_level = $var; - - return $this; - } - - /** - * The time the file store was first created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 14; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * The time the file store was first created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 14; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The time the file store was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 15; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastModifiedTime() - { - return $this->last_modified_time; - } - - public function hasLastModifiedTime() - { - return isset($this->last_modified_time); - } - - public function clearLastModifiedTime() - { - unset($this->last_modified_time); - } - - /** - * The time the file store was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 15; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastModifiedTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_modified_time = $var; - - return $this; - } - - /** - * FileClusterSummary per each cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; - * @return RepeatedField<\Google\Cloud\Dlp\V2\FileClusterSummary> - */ - public function getFileClusterSummaries() - { - return $this->file_cluster_summaries; - } - - /** - * FileClusterSummary per each cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; - * @param \Google\Cloud\Dlp\V2\FileClusterSummary[] $var - * @return $this - */ - public function setFileClusterSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileClusterSummary::class); - $this->file_cluster_summaries = $arr; - - return $this; - } - - /** - * Attributes of the resource being profiled. - * Currently used attributes: - * * customer_managed_encryption: boolean - * - true: the resource is encrypted with a customer-managed key. - * - false: the resource is encrypted with a provider-managed key. - * - * Generated from protobuf field map resource_attributes = 17; - * @return \Google\Protobuf\Internal\MapField - */ - public function getResourceAttributes() - { - return $this->resource_attributes; - } - - /** - * Attributes of the resource being profiled. - * Currently used attributes: - * * customer_managed_encryption: boolean - * - true: the resource is encrypted with a customer-managed key. - * - false: the resource is encrypted with a provider-managed key. - * - * Generated from protobuf field map resource_attributes = 17; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setResourceAttributes($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); - $this->resource_attributes = $arr; - - return $this; - } - - /** - * The labels applied to the resource at the time the profile was generated. - * - * Generated from protobuf field map resource_labels = 18; - * @return \Google\Protobuf\Internal\MapField - */ - public function getResourceLabels() - { - return $this->resource_labels; - } - - /** - * The labels applied to the resource at the time the profile was generated. - * - * Generated from protobuf field map resource_labels = 18; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setResourceLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_labels = $arr; - - return $this; - } - - /** - * InfoTypes detected in this file store. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; - * @return RepeatedField<\Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary> - */ - public function getFileStoreInfoTypeSummaries() - { - return $this->file_store_info_type_summaries; - } - - /** - * InfoTypes detected in this file store. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; - * @param \Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary[] $var - * @return $this - */ - public function setFileStoreInfoTypeSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary::class); - $this->file_store_info_type_summaries = $arr; - - return $this; - } - - /** - * The BigQuery table to which the sample findings are written. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 22; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getSampleFindingsTable() - { - return $this->sample_findings_table; - } - - public function hasSampleFindingsTable() - { - return isset($this->sample_findings_table); - } - - public function clearSampleFindingsTable() - { - unset($this->sample_findings_table); - } - - /** - * The BigQuery table to which the sample findings are written. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 22; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setSampleFindingsTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->sample_findings_table = $var; - - return $this; - } - - /** - * The file store does not have any files. If the profiling operation failed, - * this is false. - * - * Generated from protobuf field bool file_store_is_empty = 23; - * @return bool - */ - public function getFileStoreIsEmpty() - { - return $this->file_store_is_empty; - } - - /** - * The file store does not have any files. If the profiling operation failed, - * this is false. - * - * Generated from protobuf field bool file_store_is_empty = 23; - * @param bool $var - * @return $this - */ - public function setFileStoreIsEmpty($var) - { - GPBUtil::checkBool($var); - $this->file_store_is_empty = $var; - - return $this; - } - - /** - * The tags attached to the resource, including any tags attached during - * profiling. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Tag tags = 25; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Tag> - */ - public function getTags() - { - return $this->tags; - } - - /** - * The tags attached to the resource, including any tags attached during - * profiling. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Tag tags = 25; - * @param \Google\Cloud\Dlp\V2\Tag[] $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Tag::class); - $this->tags = $arr; - - return $this; - } - - /** - * Resources related to this profile. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RelatedResource related_resources = 26; - * @return RepeatedField<\Google\Cloud\Dlp\V2\RelatedResource> - */ - public function getRelatedResources() - { - return $this->related_resources; - } - - /** - * Resources related to this profile. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RelatedResource related_resources = 26; - * @param \Google\Cloud\Dlp\V2\RelatedResource[] $var - * @return $this - */ - public function setRelatedResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\RelatedResource::class); - $this->related_resources = $arr; - - return $this; - } - - /** - * Domains associated with the profile. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain domains = 27; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Domain> - */ - public function getDomains() - { - return $this->domains; - } - - /** - * Domains associated with the profile. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain domains = 27; - * @param \Google\Cloud\Dlp\V2\Domain[] $var - * @return $this - */ - public function setDomains($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Domain::class); - $this->domains = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile/State.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile/State.php deleted file mode 100644 index d4daac73c392..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile/State.php +++ /dev/null @@ -1,64 +0,0 @@ -google.privacy.dlp.v2.FileStoreDataProfile.State - */ -class State -{ - /** - * Unused. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The profile is currently running. Once a profile has finished it will - * transition to DONE. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The profile is no longer generating. - * If profile_status.status.code is 0, the profile succeeded, otherwise, it - * failed. - * - * Generated from protobuf enum DONE = 2; - */ - const DONE = 2; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::DONE => 'DONE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreInfoTypeSummary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreInfoTypeSummary.php deleted file mode 100644 index 839dc72ac511..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreInfoTypeSummary.php +++ /dev/null @@ -1,77 +0,0 @@ -google.privacy.dlp.v2.FileStoreInfoTypeSummary - */ -class FileStoreInfoTypeSummary extends \Google\Protobuf\Internal\Message -{ - /** - * The InfoType seen. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - */ - protected $info_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * The InfoType seen. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The InfoType seen. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * The InfoType seen. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegex.php deleted file mode 100644 index 94a76625848c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegex.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.FileStoreRegex - */ -class FileStoreRegex extends \Google\Protobuf\Internal\Message -{ - protected $resource_regex; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CloudStorageRegex $cloud_storage_regex - * Optional. Regex for Cloud Storage. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Regex for Cloud Storage. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\CloudStorageRegex|null - */ - public function getCloudStorageRegex() - { - return $this->readOneof(1); - } - - public function hasCloudStorageRegex() - { - return $this->hasOneof(1); - } - - /** - * Optional. Regex for Cloud Storage. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\CloudStorageRegex $var - * @return $this - */ - public function setCloudStorageRegex($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageRegex::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getResourceRegex() - { - return $this->whichOneof("resource_regex"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegexes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegexes.php deleted file mode 100644 index 40b5e3bd5091..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegexes.php +++ /dev/null @@ -1,76 +0,0 @@ -google.privacy.dlp.v2.FileStoreRegexes - */ -class FileStoreRegexes extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The group of regular expression patterns to match against one or - * more file stores. Maximum of 100 entries. The sum of all regular - * expression's length can't exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $patterns; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FileStoreRegex[] $patterns - * Required. The group of regular expression patterns to match against one or - * more file stores. Maximum of 100 entries. The sum of all regular - * expression's length can't exceed 10 KiB. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The group of regular expression patterns to match against one or - * more file stores. Maximum of 100 entries. The sum of all regular - * expression's length can't exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Dlp\V2\FileStoreRegex> - */ - public function getPatterns() - { - return $this->patterns; - } - - /** - * Required. The group of regular expression patterns to match against one or - * more file stores. Maximum of 100 entries. The sum of all regular - * expression's length can't exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\FileStoreRegex[] $var - * @return $this - */ - public function setPatterns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileStoreRegex::class); - $this->patterns = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileType.php deleted file mode 100644 index 4cf2e8f31733..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileType.php +++ /dev/null @@ -1,150 +0,0 @@ -google.privacy.dlp.v2.FileType - */ -class FileType -{ - /** - * Includes all files. - * - * Generated from protobuf enum FILE_TYPE_UNSPECIFIED = 0; - */ - const FILE_TYPE_UNSPECIFIED = 0; - /** - * Includes all file extensions not covered by another entry. Binary - * scanning attempts to convert the content of the file to utf_8 to scan - * the file. - * If you wish to avoid this fall back, specify one or more of the other - * file types in your storage scan. - * - * Generated from protobuf enum BINARY_FILE = 1; - */ - const BINARY_FILE = 1; - /** - * Included file extensions: - * asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart, - * dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, - * mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, - * properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, - * shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml, - * ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, - * yml, yaml. - * - * Generated from protobuf enum TEXT_FILE = 2; - */ - const TEXT_FILE = 2; - /** - * Included file extensions: - * bmp, gif, jpg, jpeg, jpe, png. Setting - * [bytes_limit_per_file][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file] - * or - * [bytes_limit_per_file_percent][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file] - * has no effect on image files. Image inspection is restricted to the - * `global`, `us`, `asia`, and `europe` regions. - * - * Generated from protobuf enum IMAGE = 3; - */ - const IMAGE = 3; - /** - * Microsoft Word files larger than 30 MB will be scanned as binary files. - * Included file extensions: - * docx, dotx, docm, dotm. Setting `bytes_limit_per_file` or - * `bytes_limit_per_file_percent` has no effect on Word files. - * - * Generated from protobuf enum WORD = 5; - */ - const WORD = 5; - /** - * PDF files larger than 30 MB will be scanned as binary files. - * Included file extensions: - * pdf. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent` - * has no effect on PDF files. - * - * Generated from protobuf enum PDF = 6; - */ - const PDF = 6; - /** - * Included file extensions: - * avro - * - * Generated from protobuf enum AVRO = 7; - */ - const AVRO = 7; - /** - * Included file extensions: - * csv - * - * Generated from protobuf enum CSV = 8; - */ - const CSV = 8; - /** - * Included file extensions: - * tsv - * - * Generated from protobuf enum TSV = 9; - */ - const TSV = 9; - /** - * Microsoft PowerPoint files larger than 30 MB will be scanned as binary - * files. Included file extensions: - * pptx, pptm, potx, potm, pot. Setting `bytes_limit_per_file` or - * `bytes_limit_per_file_percent` has no effect on PowerPoint files. - * - * Generated from protobuf enum POWERPOINT = 11; - */ - const POWERPOINT = 11; - /** - * Microsoft Excel files larger than 30 MB will be scanned as binary files. - * Included file extensions: - * xlsx, xlsm, xltx, xltm. Setting `bytes_limit_per_file` or - * `bytes_limit_per_file_percent` has no effect on Excel files. - * - * Generated from protobuf enum EXCEL = 12; - */ - const EXCEL = 12; - - private static $valueToName = [ - self::FILE_TYPE_UNSPECIFIED => 'FILE_TYPE_UNSPECIFIED', - self::BINARY_FILE => 'BINARY_FILE', - self::TEXT_FILE => 'TEXT_FILE', - self::IMAGE => 'IMAGE', - self::WORD => 'WORD', - self::PDF => 'PDF', - self::AVRO => 'AVRO', - self::CSV => 'CSV', - self::TSV => 'TSV', - self::POWERPOINT => 'POWERPOINT', - self::EXCEL => 'EXCEL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Finding.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Finding.php deleted file mode 100644 index 56cd7de44e3d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Finding.php +++ /dev/null @@ -1,593 +0,0 @@ -google.privacy.dlp.v2.Finding - */ -class Finding extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name in format - * projects/{project}/locations/{location}/findings/{finding} Populated only - * when viewing persisted findings. - * - * Generated from protobuf field string name = 14; - */ - protected $name = ''; - /** - * The content that was found. Even if the content is not textual, it - * may be converted to a textual representation here. - * Provided if `include_quote` is true and the finding is - * less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes - * in length, the quote may be omitted. - * - * Generated from protobuf field string quote = 1; - */ - protected $quote = ''; - /** - * The type of content that might have been found. - * Provided if `excluded_types` is false. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; - */ - protected $info_type = null; - /** - * Confidence of how likely it is that the `info_type` is correct. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 3; - */ - protected $likelihood = 0; - /** - * Where the content was found. - * - * Generated from protobuf field .google.privacy.dlp.v2.Location location = 4; - */ - protected $location = null; - /** - * Timestamp when finding was detected. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; - */ - protected $create_time = null; - /** - * Contains data parsed from quotes. Only populated if include_quote was set - * to true and a supported infoType was requested. Currently supported - * infoTypes: DATE, DATE_OF_BIRTH and TIME. - * - * Generated from protobuf field .google.privacy.dlp.v2.QuoteInfo quote_info = 7; - */ - protected $quote_info = null; - /** - * The job that stored the finding. - * - * Generated from protobuf field string resource_name = 8 [(.google.api.resource_reference) = { - */ - protected $resource_name = ''; - /** - * Job trigger name, if applicable, for this finding. - * - * Generated from protobuf field string trigger_name = 9 [(.google.api.resource_reference) = { - */ - protected $trigger_name = ''; - /** - * The labels associated with this `Finding`. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 10; - */ - private $labels; - /** - * Time the job started that produced this finding. - * - * Generated from protobuf field .google.protobuf.Timestamp job_create_time = 11; - */ - protected $job_create_time = null; - /** - * The job that stored the finding. - * - * Generated from protobuf field string job_name = 13 [(.google.api.resource_reference) = { - */ - protected $job_name = ''; - /** - * The unique finding id. - * - * Generated from protobuf field string finding_id = 15; - */ - protected $finding_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name in format - * projects/{project}/locations/{location}/findings/{finding} Populated only - * when viewing persisted findings. - * @type string $quote - * The content that was found. Even if the content is not textual, it - * may be converted to a textual representation here. - * Provided if `include_quote` is true and the finding is - * less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes - * in length, the quote may be omitted. - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * The type of content that might have been found. - * Provided if `excluded_types` is false. - * @type int $likelihood - * Confidence of how likely it is that the `info_type` is correct. - * @type \Google\Cloud\Dlp\V2\Location $location - * Where the content was found. - * @type \Google\Protobuf\Timestamp $create_time - * Timestamp when finding was detected. - * @type \Google\Cloud\Dlp\V2\QuoteInfo $quote_info - * Contains data parsed from quotes. Only populated if include_quote was set - * to true and a supported infoType was requested. Currently supported - * infoTypes: DATE, DATE_OF_BIRTH and TIME. - * @type string $resource_name - * The job that stored the finding. - * @type string $trigger_name - * Job trigger name, if applicable, for this finding. - * @type array|\Google\Protobuf\Internal\MapField $labels - * The labels associated with this `Finding`. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * @type \Google\Protobuf\Timestamp $job_create_time - * Time the job started that produced this finding. - * @type string $job_name - * The job that stored the finding. - * @type string $finding_id - * The unique finding id. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Resource name in format - * projects/{project}/locations/{location}/findings/{finding} Populated only - * when viewing persisted findings. - * - * Generated from protobuf field string name = 14; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name in format - * projects/{project}/locations/{location}/findings/{finding} Populated only - * when viewing persisted findings. - * - * Generated from protobuf field string name = 14; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The content that was found. Even if the content is not textual, it - * may be converted to a textual representation here. - * Provided if `include_quote` is true and the finding is - * less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes - * in length, the quote may be omitted. - * - * Generated from protobuf field string quote = 1; - * @return string - */ - public function getQuote() - { - return $this->quote; - } - - /** - * The content that was found. Even if the content is not textual, it - * may be converted to a textual representation here. - * Provided if `include_quote` is true and the finding is - * less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes - * in length, the quote may be omitted. - * - * Generated from protobuf field string quote = 1; - * @param string $var - * @return $this - */ - public function setQuote($var) - { - GPBUtil::checkString($var, True); - $this->quote = $var; - - return $this; - } - - /** - * The type of content that might have been found. - * Provided if `excluded_types` is false. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * The type of content that might have been found. - * Provided if `excluded_types` is false. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - - /** - * Confidence of how likely it is that the `info_type` is correct. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 3; - * @return int - */ - public function getLikelihood() - { - return $this->likelihood; - } - - /** - * Confidence of how likely it is that the `info_type` is correct. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 3; - * @param int $var - * @return $this - */ - public function setLikelihood($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); - $this->likelihood = $var; - - return $this; - } - - /** - * Where the content was found. - * - * Generated from protobuf field .google.privacy.dlp.v2.Location location = 4; - * @return \Google\Cloud\Dlp\V2\Location|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * Where the content was found. - * - * Generated from protobuf field .google.privacy.dlp.v2.Location location = 4; - * @param \Google\Cloud\Dlp\V2\Location $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Location::class); - $this->location = $var; - - return $this; - } - - /** - * Timestamp when finding was detected. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Timestamp when finding was detected. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Contains data parsed from quotes. Only populated if include_quote was set - * to true and a supported infoType was requested. Currently supported - * infoTypes: DATE, DATE_OF_BIRTH and TIME. - * - * Generated from protobuf field .google.privacy.dlp.v2.QuoteInfo quote_info = 7; - * @return \Google\Cloud\Dlp\V2\QuoteInfo|null - */ - public function getQuoteInfo() - { - return $this->quote_info; - } - - public function hasQuoteInfo() - { - return isset($this->quote_info); - } - - public function clearQuoteInfo() - { - unset($this->quote_info); - } - - /** - * Contains data parsed from quotes. Only populated if include_quote was set - * to true and a supported infoType was requested. Currently supported - * infoTypes: DATE, DATE_OF_BIRTH and TIME. - * - * Generated from protobuf field .google.privacy.dlp.v2.QuoteInfo quote_info = 7; - * @param \Google\Cloud\Dlp\V2\QuoteInfo $var - * @return $this - */ - public function setQuoteInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\QuoteInfo::class); - $this->quote_info = $var; - - return $this; - } - - /** - * The job that stored the finding. - * - * Generated from protobuf field string resource_name = 8 [(.google.api.resource_reference) = { - * @return string - */ - public function getResourceName() - { - return $this->resource_name; - } - - /** - * The job that stored the finding. - * - * Generated from protobuf field string resource_name = 8 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setResourceName($var) - { - GPBUtil::checkString($var, True); - $this->resource_name = $var; - - return $this; - } - - /** - * Job trigger name, if applicable, for this finding. - * - * Generated from protobuf field string trigger_name = 9 [(.google.api.resource_reference) = { - * @return string - */ - public function getTriggerName() - { - return $this->trigger_name; - } - - /** - * Job trigger name, if applicable, for this finding. - * - * Generated from protobuf field string trigger_name = 9 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTriggerName($var) - { - GPBUtil::checkString($var, True); - $this->trigger_name = $var; - - return $this; - } - - /** - * The labels associated with this `Finding`. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 10; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * The labels associated with this `Finding`. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 10; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Time the job started that produced this finding. - * - * Generated from protobuf field .google.protobuf.Timestamp job_create_time = 11; - * @return \Google\Protobuf\Timestamp|null - */ - public function getJobCreateTime() - { - return $this->job_create_time; - } - - public function hasJobCreateTime() - { - return isset($this->job_create_time); - } - - public function clearJobCreateTime() - { - unset($this->job_create_time); - } - - /** - * Time the job started that produced this finding. - * - * Generated from protobuf field .google.protobuf.Timestamp job_create_time = 11; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setJobCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->job_create_time = $var; - - return $this; - } - - /** - * The job that stored the finding. - * - * Generated from protobuf field string job_name = 13 [(.google.api.resource_reference) = { - * @return string - */ - public function getJobName() - { - return $this->job_name; - } - - /** - * The job that stored the finding. - * - * Generated from protobuf field string job_name = 13 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setJobName($var) - { - GPBUtil::checkString($var, True); - $this->job_name = $var; - - return $this; - } - - /** - * The unique finding id. - * - * Generated from protobuf field string finding_id = 15; - * @return string - */ - public function getFindingId() - { - return $this->finding_id; - } - - /** - * The unique finding id. - * - * Generated from protobuf field string finding_id = 15; - * @param string $var - * @return $this - */ - public function setFindingId($var) - { - GPBUtil::checkString($var, True); - $this->finding_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FinishDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FinishDlpJobRequest.php deleted file mode 100644 index daf2d73ba3ea..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FinishDlpJobRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.FinishDlpJobRequest - */ -class FinishDlpJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DlpJob resource to be finished. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DlpJob resource to be finished. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DlpJob resource to be finished. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DlpJob resource to be finished. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FixedSizeBucketingConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FixedSizeBucketingConfig.php deleted file mode 100644 index 3b89b6708103..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FixedSizeBucketingConfig.php +++ /dev/null @@ -1,196 +0,0 @@ -google.privacy.dlp.v2.FixedSizeBucketingConfig - */ -class FixedSizeBucketingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Lower bound value of buckets. All values less than `lower_bound` - * are grouped together into a single bucket; for example if `lower_bound` = - * 10, then all values less than 10 are replaced with the value "-10". - * - * Generated from protobuf field .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $lower_bound = null; - /** - * Required. Upper bound value of buckets. All values greater than upper_bound - * are grouped together into a single bucket; for example if `upper_bound` = - * 89, then all values greater than 89 are replaced with the value "89+". - * - * Generated from protobuf field .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $upper_bound = null; - /** - * Required. Size of each bucket (except for minimum and maximum buckets). So - * if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the - * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, - * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. - * - * Generated from protobuf field double bucket_size = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $bucket_size = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Value $lower_bound - * Required. Lower bound value of buckets. All values less than `lower_bound` - * are grouped together into a single bucket; for example if `lower_bound` = - * 10, then all values less than 10 are replaced with the value "-10". - * @type \Google\Cloud\Dlp\V2\Value $upper_bound - * Required. Upper bound value of buckets. All values greater than upper_bound - * are grouped together into a single bucket; for example if `upper_bound` = - * 89, then all values greater than 89 are replaced with the value "89+". - * @type float $bucket_size - * Required. Size of each bucket (except for minimum and maximum buckets). So - * if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the - * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, - * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Lower bound value of buckets. All values less than `lower_bound` - * are grouped together into a single bucket; for example if `lower_bound` = - * 10, then all values less than 10 are replaced with the value "-10". - * - * Generated from protobuf field .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getLowerBound() - { - return $this->lower_bound; - } - - public function hasLowerBound() - { - return isset($this->lower_bound); - } - - public function clearLowerBound() - { - unset($this->lower_bound); - } - - /** - * Required. Lower bound value of buckets. All values less than `lower_bound` - * are grouped together into a single bucket; for example if `lower_bound` = - * 10, then all values less than 10 are replaced with the value "-10". - * - * Generated from protobuf field .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setLowerBound($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->lower_bound = $var; - - return $this; - } - - /** - * Required. Upper bound value of buckets. All values greater than upper_bound - * are grouped together into a single bucket; for example if `upper_bound` = - * 89, then all values greater than 89 are replaced with the value "89+". - * - * Generated from protobuf field .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getUpperBound() - { - return $this->upper_bound; - } - - public function hasUpperBound() - { - return isset($this->upper_bound); - } - - public function clearUpperBound() - { - unset($this->upper_bound); - } - - /** - * Required. Upper bound value of buckets. All values greater than upper_bound - * are grouped together into a single bucket; for example if `upper_bound` = - * 89, then all values greater than 89 are replaced with the value "89+". - * - * Generated from protobuf field .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setUpperBound($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->upper_bound = $var; - - return $this; - } - - /** - * Required. Size of each bucket (except for minimum and maximum buckets). So - * if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the - * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, - * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. - * - * Generated from protobuf field double bucket_size = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return float - */ - public function getBucketSize() - { - return $this->bucket_size; - } - - /** - * Required. Size of each bucket (except for minimum and maximum buckets). So - * if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the - * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, - * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. - * - * Generated from protobuf field double bucket_size = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param float $var - * @return $this - */ - public function setBucketSize($var) - { - GPBUtil::checkDouble($var); - $this->bucket_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FullyInside.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FullyInside.php deleted file mode 100644 index 2e6a6509f298..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FullyInside.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.FullyInside - */ -class FullyInside extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetColumnDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetColumnDataProfileRequest.php deleted file mode 100644 index d41efd70e51e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetColumnDataProfileRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.GetColumnDataProfileRequest - */ -class GetColumnDataProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/columnDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name, for example - * `organizations/12345/locations/us/columnDataProfiles/53234423`. Please see - * {@see DlpServiceClient::columnDataProfileName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetColumnDataProfileRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name, for example - * `organizations/12345/locations/us/columnDataProfiles/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/columnDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/columnDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetConnectionRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetConnectionRequest.php deleted file mode 100644 index 97af159f022b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetConnectionRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.GetConnectionRequest - */ -class GetConnectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. Please see - * {@see DlpServiceClient::connectionName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetConnectionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDeidentifyTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDeidentifyTemplateRequest.php deleted file mode 100644 index e5b3d4a6920a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDeidentifyTemplateRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.privacy.dlp.v2.GetDeidentifyTemplateRequest - */ -class GetDeidentifyTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization and deidentify template to be - * read, for example `organizations/433245324/deidentifyTemplates/432452342` - * or projects/project-id/deidentifyTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the organization and deidentify template to be - * read, for example `organizations/433245324/deidentifyTemplates/432452342` - * or projects/project-id/deidentifyTemplates/432452342. Please see - * {@see DlpServiceClient::deidentifyTemplateName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetDeidentifyTemplateRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the organization and deidentify template to be - * read, for example `organizations/433245324/deidentifyTemplates/432452342` - * or projects/project-id/deidentifyTemplates/432452342. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization and deidentify template to be - * read, for example `organizations/433245324/deidentifyTemplates/432452342` - * or projects/project-id/deidentifyTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the organization and deidentify template to be - * read, for example `organizations/433245324/deidentifyTemplates/432452342` - * or projects/project-id/deidentifyTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDiscoveryConfigRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDiscoveryConfigRequest.php deleted file mode 100644 index 3dcd4d11d37f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDiscoveryConfigRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.GetDiscoveryConfigRequest - */ -class GetDiscoveryConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. Please see - * {@see DlpServiceClient::discoveryConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetDiscoveryConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDlpJobRequest.php deleted file mode 100644 index e3d1980991ef..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDlpJobRequest.php +++ /dev/null @@ -1,82 +0,0 @@ -google.privacy.dlp.v2.GetDlpJobRequest - */ -class GetDlpJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DlpJob resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the DlpJob resource. Please see - * {@see DlpServiceClient::dlpJobName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetDlpJobRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DlpJob resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DlpJob resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DlpJob resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetFileStoreDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetFileStoreDataProfileRequest.php deleted file mode 100644 index 5f031358670c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetFileStoreDataProfileRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.GetFileStoreDataProfileRequest - */ -class GetFileStoreDataProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name, for example - * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. Please see - * {@see DlpServiceClient::projectDataProfileName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetFileStoreDataProfileRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name, for example - * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetInspectTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetInspectTemplateRequest.php deleted file mode 100644 index b98ec1b68c37..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetInspectTemplateRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.privacy.dlp.v2.GetInspectTemplateRequest - */ -class GetInspectTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization and inspectTemplate to be read, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the organization and inspectTemplate to be read, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. Please see - * {@see DlpServiceClient::inspectTemplateName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetInspectTemplateRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the organization and inspectTemplate to be read, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization and inspectTemplate to be read, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the organization and inspectTemplate to be read, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetJobTriggerRequest.php deleted file mode 100644 index 5d61062304dd..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetJobTriggerRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.GetJobTriggerRequest - */ -class GetJobTriggerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. Please see - * {@see DlpServiceClient::jobTriggerName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetJobTriggerRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetProjectDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetProjectDataProfileRequest.php deleted file mode 100644 index 0aed9e2aa1b6..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetProjectDataProfileRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.GetProjectDataProfileRequest - */ -class GetProjectDataProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/projectDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name, for example - * `organizations/12345/locations/us/projectDataProfiles/53234423`. Please see - * {@see DlpServiceClient::projectDataProfileName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetProjectDataProfileRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name, for example - * `organizations/12345/locations/us/projectDataProfiles/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/projectDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/projectDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetStoredInfoTypeRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetStoredInfoTypeRequest.php deleted file mode 100644 index 9493f904532f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetStoredInfoTypeRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.privacy.dlp.v2.GetStoredInfoTypeRequest - */ -class GetStoredInfoTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization and storedInfoType to be read, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name of the organization and storedInfoType to be read, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. Please see - * {@see DlpServiceClient::storedInfoTypeName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetStoredInfoTypeRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the organization and storedInfoType to be read, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization and storedInfoType to be read, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the organization and storedInfoType to be read, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetTableDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetTableDataProfileRequest.php deleted file mode 100644 index 9d7fb622fa5b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetTableDataProfileRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.GetTableDataProfileRequest - */ -class GetTableDataProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/tableDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name, for example - * `organizations/12345/locations/us/tableDataProfiles/53234423`. Please see - * {@see DlpServiceClient::tableDataProfileName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetTableDataProfileRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name, for example - * `organizations/12345/locations/us/tableDataProfiles/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/tableDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/tableDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridContentItem.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridContentItem.php deleted file mode 100644 index 7a84ecffd1cb..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridContentItem.php +++ /dev/null @@ -1,122 +0,0 @@ -google.privacy.dlp.v2.HybridContentItem - */ -class HybridContentItem extends \Google\Protobuf\Internal\Message -{ - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - */ - protected $item = null; - /** - * Supplementary information that will be added to each finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; - */ - protected $finding_details = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\ContentItem $item - * The item to inspect. - * @type \Google\Cloud\Dlp\V2\HybridFindingDetails $finding_details - * Supplementary information that will be added to each finding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - * @return \Google\Cloud\Dlp\V2\ContentItem|null - */ - public function getItem() - { - return $this->item; - } - - public function hasItem() - { - return isset($this->item); - } - - public function clearItem() - { - unset($this->item); - } - - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - * @param \Google\Cloud\Dlp\V2\ContentItem $var - * @return $this - */ - public function setItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); - $this->item = $var; - - return $this; - } - - /** - * Supplementary information that will be added to each finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; - * @return \Google\Cloud\Dlp\V2\HybridFindingDetails|null - */ - public function getFindingDetails() - { - return $this->finding_details; - } - - public function hasFindingDetails() - { - return isset($this->finding_details); - } - - public function clearFindingDetails() - { - unset($this->finding_details); - } - - /** - * Supplementary information that will be added to each finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; - * @param \Google\Cloud\Dlp\V2\HybridFindingDetails $var - * @return $this - */ - public function setFindingDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\HybridFindingDetails::class); - $this->finding_details = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridFindingDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridFindingDetails.php deleted file mode 100644 index 72c5d2714e4e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridFindingDetails.php +++ /dev/null @@ -1,303 +0,0 @@ -google.privacy.dlp.v2.HybridFindingDetails - */ -class HybridFindingDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Details about the container where the content being inspected is from. - * - * Generated from protobuf field .google.privacy.dlp.v2.Container container_details = 1; - */ - protected $container_details = null; - /** - * Offset in bytes of the line, from the beginning of the file, where the - * finding is located. Populate if the item being scanned is only part of a - * bigger item, such as a shard of a file and you want to track the absolute - * position of the finding. - * - * Generated from protobuf field int64 file_offset = 2; - */ - protected $file_offset = 0; - /** - * Offset of the row for tables. Populate if the row(s) being scanned are - * part of a bigger dataset and you want to keep track of their absolute - * position. - * - * Generated from protobuf field int64 row_offset = 3; - */ - protected $row_offset = 0; - /** - * If the container is a table, additional information to make findings - * meaningful such as the columns that are primary keys. If not known ahead - * of time, can also be set within each inspect hybrid call and the two - * will be merged. Note that identifying_fields will only be stored to - * BigQuery, and only if the BigQuery action has been included. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; - */ - protected $table_options = null; - /** - * Labels to represent user provided metadata about the data being inspected. - * If configured by the job, some key values may be required. - * The labels associated with `Finding`'s produced by hybrid - * inspection. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 5; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Container $container_details - * Details about the container where the content being inspected is from. - * @type int|string $file_offset - * Offset in bytes of the line, from the beginning of the file, where the - * finding is located. Populate if the item being scanned is only part of a - * bigger item, such as a shard of a file and you want to track the absolute - * position of the finding. - * @type int|string $row_offset - * Offset of the row for tables. Populate if the row(s) being scanned are - * part of a bigger dataset and you want to keep track of their absolute - * position. - * @type \Google\Cloud\Dlp\V2\TableOptions $table_options - * If the container is a table, additional information to make findings - * meaningful such as the columns that are primary keys. If not known ahead - * of time, can also be set within each inspect hybrid call and the two - * will be merged. Note that identifying_fields will only be stored to - * BigQuery, and only if the BigQuery action has been included. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels to represent user provided metadata about the data being inspected. - * If configured by the job, some key values may be required. - * The labels associated with `Finding`'s produced by hybrid - * inspection. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Details about the container where the content being inspected is from. - * - * Generated from protobuf field .google.privacy.dlp.v2.Container container_details = 1; - * @return \Google\Cloud\Dlp\V2\Container|null - */ - public function getContainerDetails() - { - return $this->container_details; - } - - public function hasContainerDetails() - { - return isset($this->container_details); - } - - public function clearContainerDetails() - { - unset($this->container_details); - } - - /** - * Details about the container where the content being inspected is from. - * - * Generated from protobuf field .google.privacy.dlp.v2.Container container_details = 1; - * @param \Google\Cloud\Dlp\V2\Container $var - * @return $this - */ - public function setContainerDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Container::class); - $this->container_details = $var; - - return $this; - } - - /** - * Offset in bytes of the line, from the beginning of the file, where the - * finding is located. Populate if the item being scanned is only part of a - * bigger item, such as a shard of a file and you want to track the absolute - * position of the finding. - * - * Generated from protobuf field int64 file_offset = 2; - * @return int|string - */ - public function getFileOffset() - { - return $this->file_offset; - } - - /** - * Offset in bytes of the line, from the beginning of the file, where the - * finding is located. Populate if the item being scanned is only part of a - * bigger item, such as a shard of a file and you want to track the absolute - * position of the finding. - * - * Generated from protobuf field int64 file_offset = 2; - * @param int|string $var - * @return $this - */ - public function setFileOffset($var) - { - GPBUtil::checkInt64($var); - $this->file_offset = $var; - - return $this; - } - - /** - * Offset of the row for tables. Populate if the row(s) being scanned are - * part of a bigger dataset and you want to keep track of their absolute - * position. - * - * Generated from protobuf field int64 row_offset = 3; - * @return int|string - */ - public function getRowOffset() - { - return $this->row_offset; - } - - /** - * Offset of the row for tables. Populate if the row(s) being scanned are - * part of a bigger dataset and you want to keep track of their absolute - * position. - * - * Generated from protobuf field int64 row_offset = 3; - * @param int|string $var - * @return $this - */ - public function setRowOffset($var) - { - GPBUtil::checkInt64($var); - $this->row_offset = $var; - - return $this; - } - - /** - * If the container is a table, additional information to make findings - * meaningful such as the columns that are primary keys. If not known ahead - * of time, can also be set within each inspect hybrid call and the two - * will be merged. Note that identifying_fields will only be stored to - * BigQuery, and only if the BigQuery action has been included. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; - * @return \Google\Cloud\Dlp\V2\TableOptions|null - */ - public function getTableOptions() - { - return $this->table_options; - } - - public function hasTableOptions() - { - return isset($this->table_options); - } - - public function clearTableOptions() - { - unset($this->table_options); - } - - /** - * If the container is a table, additional information to make findings - * meaningful such as the columns that are primary keys. If not known ahead - * of time, can also be set within each inspect hybrid call and the two - * will be merged. Note that identifying_fields will only be stored to - * BigQuery, and only if the BigQuery action has been included. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; - * @param \Google\Cloud\Dlp\V2\TableOptions $var - * @return $this - */ - public function setTableOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableOptions::class); - $this->table_options = $var; - - return $this; - } - - /** - * Labels to represent user provided metadata about the data being inspected. - * If configured by the job, some key values may be required. - * The labels associated with `Finding`'s produced by hybrid - * inspection. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels to represent user provided metadata about the data being inspected. - * If configured by the job, some key values may be required. - * The labels associated with `Finding`'s produced by hybrid - * inspection. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectDlpJobRequest.php deleted file mode 100644 index 6ce3951321ec..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectDlpJobRequest.php +++ /dev/null @@ -1,130 +0,0 @@ -google.privacy.dlp.v2.HybridInspectDlpJobRequest - */ -class HybridInspectDlpJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the job to execute a hybrid inspect on, for - * example `projects/dlp-test-project/dlpJob/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; - */ - protected $hybrid_item = null; - - /** - * @param string $name Required. Resource name of the job to execute a hybrid inspect on, for - * example `projects/dlp-test-project/dlpJob/53234423`. Please see - * {@see DlpServiceClient::dlpJobName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\HybridInspectDlpJobRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the job to execute a hybrid inspect on, for - * example `projects/dlp-test-project/dlpJob/53234423`. - * @type \Google\Cloud\Dlp\V2\HybridContentItem $hybrid_item - * The item to inspect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the job to execute a hybrid inspect on, for - * example `projects/dlp-test-project/dlpJob/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the job to execute a hybrid inspect on, for - * example `projects/dlp-test-project/dlpJob/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; - * @return \Google\Cloud\Dlp\V2\HybridContentItem|null - */ - public function getHybridItem() - { - return $this->hybrid_item; - } - - public function hasHybridItem() - { - return isset($this->hybrid_item); - } - - public function clearHybridItem() - { - unset($this->hybrid_item); - } - - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; - * @param \Google\Cloud\Dlp\V2\HybridContentItem $var - * @return $this - */ - public function setHybridItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\HybridContentItem::class); - $this->hybrid_item = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectJobTriggerRequest.php deleted file mode 100644 index 0f26f95c98e5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectJobTriggerRequest.php +++ /dev/null @@ -1,130 +0,0 @@ -google.privacy.dlp.v2.HybridInspectJobTriggerRequest - */ -class HybridInspectJobTriggerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the trigger to execute a hybrid inspect on, for - * example `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; - */ - protected $hybrid_item = null; - - /** - * @param string $name Required. Resource name of the trigger to execute a hybrid inspect on, for - * example `projects/dlp-test-project/jobTriggers/53234423`. Please see - * {@see DlpServiceClient::jobTriggerName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\HybridInspectJobTriggerRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the trigger to execute a hybrid inspect on, for - * example `projects/dlp-test-project/jobTriggers/53234423`. - * @type \Google\Cloud\Dlp\V2\HybridContentItem $hybrid_item - * The item to inspect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the trigger to execute a hybrid inspect on, for - * example `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the trigger to execute a hybrid inspect on, for - * example `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; - * @return \Google\Cloud\Dlp\V2\HybridContentItem|null - */ - public function getHybridItem() - { - return $this->hybrid_item; - } - - public function hasHybridItem() - { - return isset($this->hybrid_item); - } - - public function clearHybridItem() - { - unset($this->hybrid_item); - } - - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; - * @param \Google\Cloud\Dlp\V2\HybridContentItem $var - * @return $this - */ - public function setHybridItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\HybridContentItem::class); - $this->hybrid_item = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectResponse.php deleted file mode 100644 index ba79c75528a9..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.HybridInspectResponse - */ -class HybridInspectResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectStatistics.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectStatistics.php deleted file mode 100644 index f5c4b6be8337..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectStatistics.php +++ /dev/null @@ -1,155 +0,0 @@ -google.privacy.dlp.v2.HybridInspectStatistics - */ -class HybridInspectStatistics extends \Google\Protobuf\Internal\Message -{ - /** - * The number of hybrid inspection requests processed within this job. - * - * Generated from protobuf field int64 processed_count = 1; - */ - protected $processed_count = 0; - /** - * The number of hybrid inspection requests aborted because the job ran - * out of quota or was ended before they could be processed. - * - * Generated from protobuf field int64 aborted_count = 2; - */ - protected $aborted_count = 0; - /** - * The number of hybrid requests currently being processed. Only populated - * when called via method `getDlpJob`. - * A burst of traffic may cause hybrid inspect requests to be enqueued. - * Processing will take place as quickly as possible, but resource limitations - * may impact how long a request is enqueued for. - * - * Generated from protobuf field int64 pending_count = 3; - */ - protected $pending_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $processed_count - * The number of hybrid inspection requests processed within this job. - * @type int|string $aborted_count - * The number of hybrid inspection requests aborted because the job ran - * out of quota or was ended before they could be processed. - * @type int|string $pending_count - * The number of hybrid requests currently being processed. Only populated - * when called via method `getDlpJob`. - * A burst of traffic may cause hybrid inspect requests to be enqueued. - * Processing will take place as quickly as possible, but resource limitations - * may impact how long a request is enqueued for. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The number of hybrid inspection requests processed within this job. - * - * Generated from protobuf field int64 processed_count = 1; - * @return int|string - */ - public function getProcessedCount() - { - return $this->processed_count; - } - - /** - * The number of hybrid inspection requests processed within this job. - * - * Generated from protobuf field int64 processed_count = 1; - * @param int|string $var - * @return $this - */ - public function setProcessedCount($var) - { - GPBUtil::checkInt64($var); - $this->processed_count = $var; - - return $this; - } - - /** - * The number of hybrid inspection requests aborted because the job ran - * out of quota or was ended before they could be processed. - * - * Generated from protobuf field int64 aborted_count = 2; - * @return int|string - */ - public function getAbortedCount() - { - return $this->aborted_count; - } - - /** - * The number of hybrid inspection requests aborted because the job ran - * out of quota or was ended before they could be processed. - * - * Generated from protobuf field int64 aborted_count = 2; - * @param int|string $var - * @return $this - */ - public function setAbortedCount($var) - { - GPBUtil::checkInt64($var); - $this->aborted_count = $var; - - return $this; - } - - /** - * The number of hybrid requests currently being processed. Only populated - * when called via method `getDlpJob`. - * A burst of traffic may cause hybrid inspect requests to be enqueued. - * Processing will take place as quickly as possible, but resource limitations - * may impact how long a request is enqueued for. - * - * Generated from protobuf field int64 pending_count = 3; - * @return int|string - */ - public function getPendingCount() - { - return $this->pending_count; - } - - /** - * The number of hybrid requests currently being processed. Only populated - * when called via method `getDlpJob`. - * A burst of traffic may cause hybrid inspect requests to be enqueued. - * Processing will take place as quickly as possible, but resource limitations - * may impact how long a request is enqueued for. - * - * Generated from protobuf field int64 pending_count = 3; - * @param int|string $var - * @return $this - */ - public function setPendingCount($var) - { - GPBUtil::checkInt64($var); - $this->pending_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridOptions.php deleted file mode 100644 index c95cd147a029..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridOptions.php +++ /dev/null @@ -1,240 +0,0 @@ -google.privacy.dlp.v2.HybridOptions - */ -class HybridOptions extends \Google\Protobuf\Internal\Message -{ - /** - * A short description of where the data is coming from. Will be stored once - * in the job. 256 max length. - * - * Generated from protobuf field string description = 1; - */ - protected $description = ''; - /** - * These are labels that each inspection request must include within their - * 'finding_labels' map. Request may contain others, but any missing one of - * these will be rejected. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * No more than 10 keys can be required. - * - * Generated from protobuf field repeated string required_finding_label_keys = 2; - */ - private $required_finding_label_keys; - /** - * To organize findings, these labels will be added to each finding. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 3; - */ - private $labels; - /** - * If the container is a table, additional information to make findings - * meaningful such as the columns that are primary keys. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; - */ - protected $table_options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $description - * A short description of where the data is coming from. Will be stored once - * in the job. 256 max length. - * @type string[] $required_finding_label_keys - * These are labels that each inspection request must include within their - * 'finding_labels' map. Request may contain others, but any missing one of - * these will be rejected. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * No more than 10 keys can be required. - * @type array|\Google\Protobuf\Internal\MapField $labels - * To organize findings, these labels will be added to each finding. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * @type \Google\Cloud\Dlp\V2\TableOptions $table_options - * If the container is a table, additional information to make findings - * meaningful such as the columns that are primary keys. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * A short description of where the data is coming from. Will be stored once - * in the job. 256 max length. - * - * Generated from protobuf field string description = 1; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A short description of where the data is coming from. Will be stored once - * in the job. 256 max length. - * - * Generated from protobuf field string description = 1; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * These are labels that each inspection request must include within their - * 'finding_labels' map. Request may contain others, but any missing one of - * these will be rejected. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * No more than 10 keys can be required. - * - * Generated from protobuf field repeated string required_finding_label_keys = 2; - * @return RepeatedField - */ - public function getRequiredFindingLabelKeys() - { - return $this->required_finding_label_keys; - } - - /** - * These are labels that each inspection request must include within their - * 'finding_labels' map. Request may contain others, but any missing one of - * these will be rejected. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * No more than 10 keys can be required. - * - * Generated from protobuf field repeated string required_finding_label_keys = 2; - * @param string[] $var - * @return $this - */ - public function setRequiredFindingLabelKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->required_finding_label_keys = $arr; - - return $this; - } - - /** - * To organize findings, these labels will be added to each finding. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * To organize findings, these labels will be added to each finding. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * If the container is a table, additional information to make findings - * meaningful such as the columns that are primary keys. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; - * @return \Google\Cloud\Dlp\V2\TableOptions|null - */ - public function getTableOptions() - { - return $this->table_options; - } - - public function hasTableOptions() - { - return isset($this->table_options); - } - - public function clearTableOptions() - { - unset($this->table_options); - } - - /** - * If the container is a table, additional information to make findings - * meaningful such as the columns that are primary keys. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; - * @param \Google\Cloud\Dlp\V2\TableOptions $var - * @return $this - */ - public function setTableOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableOptions::class); - $this->table_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageContainmentType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageContainmentType.php deleted file mode 100644 index 46e5f958183d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageContainmentType.php +++ /dev/null @@ -1,150 +0,0 @@ -google.privacy.dlp.v2.ImageContainmentType - */ -class ImageContainmentType extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Encloses $encloses - * The context finding's bounding box must fully contain the target - * finding's bounding box. - * @type \Google\Cloud\Dlp\V2\FullyInside $fully_inside - * The context finding's bounding box must be fully inside the target - * finding's bounding box. - * @type \Google\Cloud\Dlp\V2\Overlap $overlaps - * The context finding's bounding box and the target finding's bounding box - * must have a non-zero intersection. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The context finding's bounding box must fully contain the target - * finding's bounding box. - * - * Generated from protobuf field .google.privacy.dlp.v2.Encloses encloses = 1; - * @return \Google\Cloud\Dlp\V2\Encloses|null - */ - public function getEncloses() - { - return $this->readOneof(1); - } - - public function hasEncloses() - { - return $this->hasOneof(1); - } - - /** - * The context finding's bounding box must fully contain the target - * finding's bounding box. - * - * Generated from protobuf field .google.privacy.dlp.v2.Encloses encloses = 1; - * @param \Google\Cloud\Dlp\V2\Encloses $var - * @return $this - */ - public function setEncloses($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Encloses::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The context finding's bounding box must be fully inside the target - * finding's bounding box. - * - * Generated from protobuf field .google.privacy.dlp.v2.FullyInside fully_inside = 2; - * @return \Google\Cloud\Dlp\V2\FullyInside|null - */ - public function getFullyInside() - { - return $this->readOneof(2); - } - - public function hasFullyInside() - { - return $this->hasOneof(2); - } - - /** - * The context finding's bounding box must be fully inside the target - * finding's bounding box. - * - * Generated from protobuf field .google.privacy.dlp.v2.FullyInside fully_inside = 2; - * @param \Google\Cloud\Dlp\V2\FullyInside $var - * @return $this - */ - public function setFullyInside($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FullyInside::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The context finding's bounding box and the target finding's bounding box - * must have a non-zero intersection. - * - * Generated from protobuf field .google.privacy.dlp.v2.Overlap overlaps = 3; - * @return \Google\Cloud\Dlp\V2\Overlap|null - */ - public function getOverlaps() - { - return $this->readOneof(3); - } - - public function hasOverlaps() - { - return $this->hasOneof(3); - } - - /** - * The context finding's bounding box and the target finding's bounding box - * must have a non-zero intersection. - * - * Generated from protobuf field .google.privacy.dlp.v2.Overlap overlaps = 3; - * @param \Google\Cloud\Dlp\V2\Overlap $var - * @return $this - */ - public function setOverlaps($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Overlap::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageLocation.php deleted file mode 100644 index 434d080d67de..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageLocation.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.ImageLocation - */ -class ImageLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Bounding boxes locating the pixels within the image containing the finding. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1; - */ - private $bounding_boxes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BoundingBox[] $bounding_boxes - * Bounding boxes locating the pixels within the image containing the finding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Bounding boxes locating the pixels within the image containing the finding. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\BoundingBox> - */ - public function getBoundingBoxes() - { - return $this->bounding_boxes; - } - - /** - * Bounding boxes locating the pixels within the image containing the finding. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1; - * @param \Google\Cloud\Dlp\V2\BoundingBox[] $var - * @return $this - */ - public function setBoundingBoxes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\BoundingBox::class); - $this->bounding_boxes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations.php deleted file mode 100644 index a3cf7209d6fb..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.ImageTransformations - */ -class ImageTransformations extends \Google\Protobuf\Internal\Message -{ - /** - * List of transforms to make. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; - */ - private $transforms; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation[] $transforms - * List of transforms to make. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of transforms to make. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; - * @return RepeatedField<\Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation> - */ - public function getTransforms() - { - return $this->transforms; - } - - /** - * List of transforms to make. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; - * @param \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation[] $var - * @return $this - */ - public function setTransforms($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation::class); - $this->transforms = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation.php deleted file mode 100644 index 9f4d62ec5879..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation.php +++ /dev/null @@ -1,198 +0,0 @@ -google.privacy.dlp.v2.ImageTransformations.ImageTransformation - */ -class ImageTransformation extends \Google\Protobuf\Internal\Message -{ - /** - * The color to use when redacting content from an image. If not - * specified, the default is black. - * - * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; - */ - protected $redaction_color = null; - protected $target; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\SelectedInfoTypes $selected_info_types - * Apply transformation to the selected info_types. - * @type \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllInfoTypes $all_info_types - * Apply transformation to all findings not specified in other - * ImageTransformation's selected_info_types. Only one instance is allowed - * within the ImageTransformations message. - * @type \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllText $all_text - * Apply transformation to all text that doesn't match an infoType. Only - * one instance is allowed within the ImageTransformations message. - * @type \Google\Cloud\Dlp\V2\Color $redaction_color - * The color to use when redacting content from an image. If not - * specified, the default is black. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Apply transformation to the selected info_types. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4; - * @return \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\SelectedInfoTypes|null - */ - public function getSelectedInfoTypes() - { - return $this->readOneof(4); - } - - public function hasSelectedInfoTypes() - { - return $this->hasOneof(4); - } - - /** - * Apply transformation to the selected info_types. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4; - * @param \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\SelectedInfoTypes $var - * @return $this - */ - public function setSelectedInfoTypes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\SelectedInfoTypes::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Apply transformation to all findings not specified in other - * ImageTransformation's selected_info_types. Only one instance is allowed - * within the ImageTransformations message. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5; - * @return \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllInfoTypes|null - */ - public function getAllInfoTypes() - { - return $this->readOneof(5); - } - - public function hasAllInfoTypes() - { - return $this->hasOneof(5); - } - - /** - * Apply transformation to all findings not specified in other - * ImageTransformation's selected_info_types. Only one instance is allowed - * within the ImageTransformations message. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5; - * @param \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllInfoTypes $var - * @return $this - */ - public function setAllInfoTypes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllInfoTypes::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Apply transformation to all text that doesn't match an infoType. Only - * one instance is allowed within the ImageTransformations message. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6; - * @return \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllText|null - */ - public function getAllText() - { - return $this->readOneof(6); - } - - public function hasAllText() - { - return $this->hasOneof(6); - } - - /** - * Apply transformation to all text that doesn't match an infoType. Only - * one instance is allowed within the ImageTransformations message. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6; - * @param \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllText $var - * @return $this - */ - public function setAllText($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllText::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The color to use when redacting content from an image. If not - * specified, the default is black. - * - * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; - * @return \Google\Cloud\Dlp\V2\Color|null - */ - public function getRedactionColor() - { - return $this->redaction_color; - } - - public function hasRedactionColor() - { - return isset($this->redaction_color); - } - - public function clearRedactionColor() - { - unset($this->redaction_color); - } - - /** - * The color to use when redacting content from an image. If not - * specified, the default is black. - * - * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; - * @param \Google\Cloud\Dlp\V2\Color $var - * @return $this - */ - public function setRedactionColor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Color::class); - $this->redaction_color = $var; - - return $this; - } - - /** - * @return string - */ - public function getTarget() - { - return $this->whichOneof("target"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllInfoTypes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllInfoTypes.php deleted file mode 100644 index 2e5db4af91e2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllInfoTypes.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes - */ -class AllInfoTypes extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllText.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllText.php deleted file mode 100644 index 341ff5aaa6f3..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllText.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText - */ -class AllText extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/SelectedInfoTypes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/SelectedInfoTypes.php deleted file mode 100644 index 2c59bc1e9bcb..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/SelectedInfoTypes.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes - */ -class SelectedInfoTypes extends \Google\Protobuf\Internal\Message -{ - /** - * Required. InfoTypes to apply the transformation to. Required. Provided - * InfoType must be unique within the ImageTransformations message. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - private $info_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType[] $info_types - * Required. InfoTypes to apply the transformation to. Required. Provided - * InfoType must be unique within the ImageTransformations message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. InfoTypes to apply the transformation to. Required. Provided - * InfoType must be unique within the ImageTransformations message. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoType> - */ - public function getInfoTypes() - { - return $this->info_types; - } - - /** - * Required. InfoTypes to apply the transformation to. Required. Provided - * InfoType must be unique within the ImageTransformations message. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\InfoType[] $var - * @return $this - */ - public function setInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoType.php deleted file mode 100644 index eae50fcd3a2d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoType.php +++ /dev/null @@ -1,173 +0,0 @@ -google.privacy.dlp.v2.InfoType - */ -class InfoType extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the information type. Either a name of your choosing when - * creating a CustomInfoType, or one of the names listed - * at - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference - * when specifying a built-in type. When sending Cloud DLP results to Data - * Catalog, infoType names should conform to the pattern - * `[A-Za-z0-9$_-]{1,64}`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Optional version name for this InfoType. - * - * Generated from protobuf field string version = 2; - */ - protected $version = ''; - /** - * Optional custom sensitivity for this InfoType. - * This only applies to data profiling. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; - */ - protected $sensitivity_score = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the information type. Either a name of your choosing when - * creating a CustomInfoType, or one of the names listed - * at - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference - * when specifying a built-in type. When sending Cloud DLP results to Data - * Catalog, infoType names should conform to the pattern - * `[A-Za-z0-9$_-]{1,64}`. - * @type string $version - * Optional version name for this InfoType. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * Optional custom sensitivity for this InfoType. - * This only applies to data profiling. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Name of the information type. Either a name of your choosing when - * creating a CustomInfoType, or one of the names listed - * at - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference - * when specifying a built-in type. When sending Cloud DLP results to Data - * Catalog, infoType names should conform to the pattern - * `[A-Za-z0-9$_-]{1,64}`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the information type. Either a name of your choosing when - * creating a CustomInfoType, or one of the names listed - * at - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference - * when specifying a built-in type. When sending Cloud DLP results to Data - * Catalog, infoType names should conform to the pattern - * `[A-Za-z0-9$_-]{1,64}`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional version name for this InfoType. - * - * Generated from protobuf field string version = 2; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Optional version name for this InfoType. - * - * Generated from protobuf field string version = 2; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Optional custom sensitivity for this InfoType. - * This only applies to data profiling. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->sensitivity_score; - } - - public function hasSensitivityScore() - { - return isset($this->sensitivity_score); - } - - public function clearSensitivityScore() - { - unset($this->sensitivity_score); - } - - /** - * Optional custom sensitivity for this InfoType. - * This only applies to data profiling. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->sensitivity_score = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory.php deleted file mode 100644 index bcc094a2381f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory.php +++ /dev/null @@ -1,145 +0,0 @@ -google.privacy.dlp.v2.InfoTypeCategory - */ -class InfoTypeCategory extends \Google\Protobuf\Internal\Message -{ - protected $category; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $location_category - * The region or country that issued the ID or document represented by the - * infoType. - * @type int $industry_category - * The group of relevant businesses where this infoType is commonly used - * @type int $type_category - * The class of identifiers where this infoType belongs - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The region or country that issued the ID or document represented by the - * infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1; - * @return int - */ - public function getLocationCategory() - { - return $this->readOneof(1); - } - - public function hasLocationCategory() - { - return $this->hasOneof(1); - } - - /** - * The region or country that issued the ID or document represented by the - * infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1; - * @param int $var - * @return $this - */ - public function setLocationCategory($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\InfoTypeCategory\LocationCategory::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The group of relevant businesses where this infoType is commonly used - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2; - * @return int - */ - public function getIndustryCategory() - { - return $this->readOneof(2); - } - - public function hasIndustryCategory() - { - return $this->hasOneof(2); - } - - /** - * The group of relevant businesses where this infoType is commonly used - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2; - * @param int $var - * @return $this - */ - public function setIndustryCategory($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\InfoTypeCategory\IndustryCategory::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The class of identifiers where this infoType belongs - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3; - * @return int - */ - public function getTypeCategory() - { - return $this->readOneof(3); - } - - public function hasTypeCategory() - { - return $this->hasOneof(3); - } - - /** - * The class of identifiers where this infoType belongs - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3; - * @param int $var - * @return $this - */ - public function setTypeCategory($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\InfoTypeCategory\TypeCategory::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getCategory() - { - return $this->whichOneof("category"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/IndustryCategory.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/IndustryCategory.php deleted file mode 100644 index d4d1a59601bf..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/IndustryCategory.php +++ /dev/null @@ -1,69 +0,0 @@ -google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory - */ -class IndustryCategory -{ - /** - * Unused industry - * - * Generated from protobuf enum INDUSTRY_UNSPECIFIED = 0; - */ - const INDUSTRY_UNSPECIFIED = 0; - /** - * The infoType is typically used in the finance industry. - * - * Generated from protobuf enum FINANCE = 1; - */ - const FINANCE = 1; - /** - * The infoType is typically used in the health industry. - * - * Generated from protobuf enum HEALTH = 2; - */ - const HEALTH = 2; - /** - * The infoType is typically used in the telecommunications industry. - * - * Generated from protobuf enum TELECOMMUNICATIONS = 3; - */ - const TELECOMMUNICATIONS = 3; - - private static $valueToName = [ - self::INDUSTRY_UNSPECIFIED => 'INDUSTRY_UNSPECIFIED', - self::FINANCE => 'FINANCE', - self::HEALTH => 'HEALTH', - self::TELECOMMUNICATIONS => 'TELECOMMUNICATIONS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/LocationCategory.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/LocationCategory.php deleted file mode 100644 index e1ab9fd06e88..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/LocationCategory.php +++ /dev/null @@ -1,417 +0,0 @@ -google.privacy.dlp.v2.InfoTypeCategory.LocationCategory - */ -class LocationCategory -{ - /** - * Unused location - * - * Generated from protobuf enum LOCATION_UNSPECIFIED = 0; - */ - const LOCATION_UNSPECIFIED = 0; - /** - * The infoType is not issued by or tied to a specific region, but is used - * almost everywhere. - * - * Generated from protobuf enum GLOBAL = 1; - */ - const PBGLOBAL = 1; - /** - * The infoType is typically used in Argentina. - * - * Generated from protobuf enum ARGENTINA = 2; - */ - const ARGENTINA = 2; - /** - * The infoType is typically used in Armenia. - * - * Generated from protobuf enum ARMENIA = 51; - */ - const ARMENIA = 51; - /** - * The infoType is typically used in Australia. - * - * Generated from protobuf enum AUSTRALIA = 3; - */ - const AUSTRALIA = 3; - /** - * The infoType is typically used in Austria. - * - * Generated from protobuf enum AUSTRIA = 53; - */ - const AUSTRIA = 53; - /** - * The infoType is typically used in Azerbaijan. - * - * Generated from protobuf enum AZERBAIJAN = 48; - */ - const AZERBAIJAN = 48; - /** - * The infoType is typically used in Belarus. - * - * Generated from protobuf enum BELARUS = 50; - */ - const BELARUS = 50; - /** - * The infoType is typically used in Belgium. - * - * Generated from protobuf enum BELGIUM = 4; - */ - const BELGIUM = 4; - /** - * The infoType is typically used in Brazil. - * - * Generated from protobuf enum BRAZIL = 5; - */ - const BRAZIL = 5; - /** - * The infoType is typically used in Canada. - * - * Generated from protobuf enum CANADA = 6; - */ - const CANADA = 6; - /** - * The infoType is typically used in Chile. - * - * Generated from protobuf enum CHILE = 7; - */ - const CHILE = 7; - /** - * The infoType is typically used in China. - * - * Generated from protobuf enum CHINA = 8; - */ - const CHINA = 8; - /** - * The infoType is typically used in Colombia. - * - * Generated from protobuf enum COLOMBIA = 9; - */ - const COLOMBIA = 9; - /** - * The infoType is typically used in Croatia. - * - * Generated from protobuf enum CROATIA = 42; - */ - const CROATIA = 42; - /** - * The infoType is typically used in Czechia. - * - * Generated from protobuf enum CZECHIA = 52; - */ - const CZECHIA = 52; - /** - * The infoType is typically used in Denmark. - * - * Generated from protobuf enum DENMARK = 10; - */ - const DENMARK = 10; - /** - * The infoType is typically used in France. - * - * Generated from protobuf enum FRANCE = 11; - */ - const FRANCE = 11; - /** - * The infoType is typically used in Finland. - * - * Generated from protobuf enum FINLAND = 12; - */ - const FINLAND = 12; - /** - * The infoType is typically used in Germany. - * - * Generated from protobuf enum GERMANY = 13; - */ - const GERMANY = 13; - /** - * The infoType is typically used in Hong Kong. - * - * Generated from protobuf enum HONG_KONG = 14; - */ - const HONG_KONG = 14; - /** - * The infoType is typically used in India. - * - * Generated from protobuf enum INDIA = 15; - */ - const INDIA = 15; - /** - * The infoType is typically used in Indonesia. - * - * Generated from protobuf enum INDONESIA = 16; - */ - const INDONESIA = 16; - /** - * The infoType is typically used in Ireland. - * - * Generated from protobuf enum IRELAND = 17; - */ - const IRELAND = 17; - /** - * The infoType is typically used in Israel. - * - * Generated from protobuf enum ISRAEL = 18; - */ - const ISRAEL = 18; - /** - * The infoType is typically used in Italy. - * - * Generated from protobuf enum ITALY = 19; - */ - const ITALY = 19; - /** - * The infoType is typically used in Japan. - * - * Generated from protobuf enum JAPAN = 20; - */ - const JAPAN = 20; - /** - * The infoType is typically used in Kazakhstan. - * - * Generated from protobuf enum KAZAKHSTAN = 47; - */ - const KAZAKHSTAN = 47; - /** - * The infoType is typically used in Korea. - * - * Generated from protobuf enum KOREA = 21; - */ - const KOREA = 21; - /** - * The infoType is typically used in Mexico. - * - * Generated from protobuf enum MEXICO = 22; - */ - const MEXICO = 22; - /** - * The infoType is typically used in the Netherlands. - * - * Generated from protobuf enum THE_NETHERLANDS = 23; - */ - const THE_NETHERLANDS = 23; - /** - * The infoType is typically used in New Zealand. - * - * Generated from protobuf enum NEW_ZEALAND = 41; - */ - const NEW_ZEALAND = 41; - /** - * The infoType is typically used in Norway. - * - * Generated from protobuf enum NORWAY = 24; - */ - const NORWAY = 24; - /** - * The infoType is typically used in Paraguay. - * - * Generated from protobuf enum PARAGUAY = 25; - */ - const PARAGUAY = 25; - /** - * The infoType is typically used in Peru. - * - * Generated from protobuf enum PERU = 26; - */ - const PERU = 26; - /** - * The infoType is typically used in Poland. - * - * Generated from protobuf enum POLAND = 27; - */ - const POLAND = 27; - /** - * The infoType is typically used in Portugal. - * - * Generated from protobuf enum PORTUGAL = 28; - */ - const PORTUGAL = 28; - /** - * The infoType is typically used in Russia. - * - * Generated from protobuf enum RUSSIA = 44; - */ - const RUSSIA = 44; - /** - * The infoType is typically used in Singapore. - * - * Generated from protobuf enum SINGAPORE = 29; - */ - const SINGAPORE = 29; - /** - * The infoType is typically used in South Africa. - * - * Generated from protobuf enum SOUTH_AFRICA = 30; - */ - const SOUTH_AFRICA = 30; - /** - * The infoType is typically used in Spain. - * - * Generated from protobuf enum SPAIN = 31; - */ - const SPAIN = 31; - /** - * The infoType is typically used in Sweden. - * - * Generated from protobuf enum SWEDEN = 32; - */ - const SWEDEN = 32; - /** - * The infoType is typically used in Switzerland. - * - * Generated from protobuf enum SWITZERLAND = 43; - */ - const SWITZERLAND = 43; - /** - * The infoType is typically used in Taiwan. - * - * Generated from protobuf enum TAIWAN = 33; - */ - const TAIWAN = 33; - /** - * The infoType is typically used in Thailand. - * - * Generated from protobuf enum THAILAND = 34; - */ - const THAILAND = 34; - /** - * The infoType is typically used in Turkey. - * - * Generated from protobuf enum TURKEY = 35; - */ - const TURKEY = 35; - /** - * The infoType is typically used in Ukraine. - * - * Generated from protobuf enum UKRAINE = 45; - */ - const UKRAINE = 45; - /** - * The infoType is typically used in the United Kingdom. - * - * Generated from protobuf enum UNITED_KINGDOM = 36; - */ - const UNITED_KINGDOM = 36; - /** - * The infoType is typically used in the United States. - * - * Generated from protobuf enum UNITED_STATES = 37; - */ - const UNITED_STATES = 37; - /** - * The infoType is typically used in Uruguay. - * - * Generated from protobuf enum URUGUAY = 38; - */ - const URUGUAY = 38; - /** - * The infoType is typically used in Uzbekistan. - * - * Generated from protobuf enum UZBEKISTAN = 46; - */ - const UZBEKISTAN = 46; - /** - * The infoType is typically used in Venezuela. - * - * Generated from protobuf enum VENEZUELA = 39; - */ - const VENEZUELA = 39; - /** - * The infoType is typically used in Google internally. - * - * Generated from protobuf enum INTERNAL = 40; - */ - const INTERNAL = 40; - - private static $valueToName = [ - self::LOCATION_UNSPECIFIED => 'LOCATION_UNSPECIFIED', - self::PBGLOBAL => 'GLOBAL', - self::ARGENTINA => 'ARGENTINA', - self::ARMENIA => 'ARMENIA', - self::AUSTRALIA => 'AUSTRALIA', - self::AUSTRIA => 'AUSTRIA', - self::AZERBAIJAN => 'AZERBAIJAN', - self::BELARUS => 'BELARUS', - self::BELGIUM => 'BELGIUM', - self::BRAZIL => 'BRAZIL', - self::CANADA => 'CANADA', - self::CHILE => 'CHILE', - self::CHINA => 'CHINA', - self::COLOMBIA => 'COLOMBIA', - self::CROATIA => 'CROATIA', - self::CZECHIA => 'CZECHIA', - self::DENMARK => 'DENMARK', - self::FRANCE => 'FRANCE', - self::FINLAND => 'FINLAND', - self::GERMANY => 'GERMANY', - self::HONG_KONG => 'HONG_KONG', - self::INDIA => 'INDIA', - self::INDONESIA => 'INDONESIA', - self::IRELAND => 'IRELAND', - self::ISRAEL => 'ISRAEL', - self::ITALY => 'ITALY', - self::JAPAN => 'JAPAN', - self::KAZAKHSTAN => 'KAZAKHSTAN', - self::KOREA => 'KOREA', - self::MEXICO => 'MEXICO', - self::THE_NETHERLANDS => 'THE_NETHERLANDS', - self::NEW_ZEALAND => 'NEW_ZEALAND', - self::NORWAY => 'NORWAY', - self::PARAGUAY => 'PARAGUAY', - self::PERU => 'PERU', - self::POLAND => 'POLAND', - self::PORTUGAL => 'PORTUGAL', - self::RUSSIA => 'RUSSIA', - self::SINGAPORE => 'SINGAPORE', - self::SOUTH_AFRICA => 'SOUTH_AFRICA', - self::SPAIN => 'SPAIN', - self::SWEDEN => 'SWEDEN', - self::SWITZERLAND => 'SWITZERLAND', - self::TAIWAN => 'TAIWAN', - self::THAILAND => 'THAILAND', - self::TURKEY => 'TURKEY', - self::UKRAINE => 'UKRAINE', - self::UNITED_KINGDOM => 'UNITED_KINGDOM', - self::UNITED_STATES => 'UNITED_STATES', - self::URUGUAY => 'URUGUAY', - self::UZBEKISTAN => 'UZBEKISTAN', - self::VENEZUELA => 'VENEZUELA', - self::INTERNAL => 'INTERNAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/TypeCategory.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/TypeCategory.php deleted file mode 100644 index f1bf5652db54..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/TypeCategory.php +++ /dev/null @@ -1,108 +0,0 @@ -google.privacy.dlp.v2.InfoTypeCategory.TypeCategory - */ -class TypeCategory -{ - /** - * Unused type - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Personally identifiable information, for example, a - * name or phone number - * - * Generated from protobuf enum PII = 1; - */ - const PII = 1; - /** - * Personally identifiable information that is especially sensitive, for - * example, a passport number. - * - * Generated from protobuf enum SPII = 2; - */ - const SPII = 2; - /** - * Attributes that can partially identify someone, especially in - * combination with other attributes, like age, height, and gender. - * - * Generated from protobuf enum DEMOGRAPHIC = 3; - */ - const DEMOGRAPHIC = 3; - /** - * Confidential or secret information, for example, a password. - * - * Generated from protobuf enum CREDENTIAL = 4; - */ - const CREDENTIAL = 4; - /** - * An identification document issued by a government. - * - * Generated from protobuf enum GOVERNMENT_ID = 5; - */ - const GOVERNMENT_ID = 5; - /** - * A document, for example, a resume or source code. - * - * Generated from protobuf enum DOCUMENT = 6; - */ - const DOCUMENT = 6; - /** - * Information that is not sensitive on its own, but provides details about - * the circumstances surrounding an entity or an event. - * - * Generated from protobuf enum CONTEXTUAL_INFORMATION = 7; - */ - const CONTEXTUAL_INFORMATION = 7; - /** - * Category for `CustomInfoType` types. - * - * Generated from protobuf enum CUSTOM = 8; - */ - const CUSTOM = 8; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::PII => 'PII', - self::SPII => 'SPII', - self::DEMOGRAPHIC => 'DEMOGRAPHIC', - self::CREDENTIAL => 'CREDENTIAL', - self::GOVERNMENT_ID => 'GOVERNMENT_ID', - self::DOCUMENT => 'DOCUMENT', - self::CONTEXTUAL_INFORMATION => 'CONTEXTUAL_INFORMATION', - self::CUSTOM => 'CUSTOM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription.php deleted file mode 100644 index ec4567a89117..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription.php +++ /dev/null @@ -1,447 +0,0 @@ -google.privacy.dlp.v2.InfoTypeDescription - */ -class InfoTypeDescription extends \Google\Protobuf\Internal\Message -{ - /** - * Internal name of the infoType. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Human readable form of the infoType name. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * Which parts of the API supports this InfoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3; - */ - private $supported_by; - /** - * Description of the infotype. Translated when language is provided in the - * request. - * - * Generated from protobuf field string description = 4; - */ - protected $description = ''; - /** - * Locations at which this feature can be used. May change over time. - * - * Generated from protobuf field .google.privacy.dlp.v2.LocationSupport location_support = 6; - */ - protected $location_support = null; - /** - * A sample that is a true positive for this infoType. - * - * Generated from protobuf field string example = 8; - */ - protected $example = ''; - /** - * A list of available versions for the infotype. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.VersionDescription versions = 9; - */ - private $versions; - /** - * The category of the infoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10; - */ - private $categories; - /** - * The default sensitivity of the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 11; - */ - protected $sensitivity_score = null; - /** - * If this field is set, this infoType is a general infoType and these - * specific infoTypes are contained within it. - * General infoTypes are infoTypes that encompass multiple specific infoTypes. - * For example, the "GEOGRAPHIC_DATA" general infoType would have set for this - * field "LOCATION", "LOCATION_COORDINATES", and "STREET_ADDRESS". - * - * Generated from protobuf field repeated string specific_info_types = 12; - */ - private $specific_info_types; - /** - * The launch status of the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeDescription.InfoTypeLaunchStatus launch_status = 13; - */ - protected $launch_status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Internal name of the infoType. - * @type string $display_name - * Human readable form of the infoType name. - * @type int[] $supported_by - * Which parts of the API supports this InfoType. - * @type string $description - * Description of the infotype. Translated when language is provided in the - * request. - * @type \Google\Cloud\Dlp\V2\LocationSupport $location_support - * Locations at which this feature can be used. May change over time. - * @type string $example - * A sample that is a true positive for this infoType. - * @type \Google\Cloud\Dlp\V2\VersionDescription[] $versions - * A list of available versions for the infotype. - * @type \Google\Cloud\Dlp\V2\InfoTypeCategory[] $categories - * The category of the infoType. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * The default sensitivity of the infoType. - * @type string[] $specific_info_types - * If this field is set, this infoType is a general infoType and these - * specific infoTypes are contained within it. - * General infoTypes are infoTypes that encompass multiple specific infoTypes. - * For example, the "GEOGRAPHIC_DATA" general infoType would have set for this - * field "LOCATION", "LOCATION_COORDINATES", and "STREET_ADDRESS". - * @type int $launch_status - * The launch status of the infoType. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Internal name of the infoType. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Internal name of the infoType. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Human readable form of the infoType name. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Human readable form of the infoType name. - * - * Generated from protobuf field string display_name = 2; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Which parts of the API supports this InfoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3; - * @return RepeatedField - */ - public function getSupportedBy() - { - return $this->supported_by; - } - - /** - * Which parts of the API supports this InfoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3; - * @param int[] $var - * @return $this - */ - public function setSupportedBy($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\InfoTypeSupportedBy::class); - $this->supported_by = $arr; - - return $this; - } - - /** - * Description of the infotype. Translated when language is provided in the - * request. - * - * Generated from protobuf field string description = 4; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of the infotype. Translated when language is provided in the - * request. - * - * Generated from protobuf field string description = 4; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Locations at which this feature can be used. May change over time. - * - * Generated from protobuf field .google.privacy.dlp.v2.LocationSupport location_support = 6; - * @return \Google\Cloud\Dlp\V2\LocationSupport|null - */ - public function getLocationSupport() - { - return $this->location_support; - } - - public function hasLocationSupport() - { - return isset($this->location_support); - } - - public function clearLocationSupport() - { - unset($this->location_support); - } - - /** - * Locations at which this feature can be used. May change over time. - * - * Generated from protobuf field .google.privacy.dlp.v2.LocationSupport location_support = 6; - * @param \Google\Cloud\Dlp\V2\LocationSupport $var - * @return $this - */ - public function setLocationSupport($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\LocationSupport::class); - $this->location_support = $var; - - return $this; - } - - /** - * A sample that is a true positive for this infoType. - * - * Generated from protobuf field string example = 8; - * @return string - */ - public function getExample() - { - return $this->example; - } - - /** - * A sample that is a true positive for this infoType. - * - * Generated from protobuf field string example = 8; - * @param string $var - * @return $this - */ - public function setExample($var) - { - GPBUtil::checkString($var, True); - $this->example = $var; - - return $this; - } - - /** - * A list of available versions for the infotype. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.VersionDescription versions = 9; - * @return RepeatedField<\Google\Cloud\Dlp\V2\VersionDescription> - */ - public function getVersions() - { - return $this->versions; - } - - /** - * A list of available versions for the infotype. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.VersionDescription versions = 9; - * @param \Google\Cloud\Dlp\V2\VersionDescription[] $var - * @return $this - */ - public function setVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\VersionDescription::class); - $this->versions = $arr; - - return $this; - } - - /** - * The category of the infoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoTypeCategory> - */ - public function getCategories() - { - return $this->categories; - } - - /** - * The category of the infoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10; - * @param \Google\Cloud\Dlp\V2\InfoTypeCategory[] $var - * @return $this - */ - public function setCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoTypeCategory::class); - $this->categories = $arr; - - return $this; - } - - /** - * The default sensitivity of the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 11; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->sensitivity_score; - } - - public function hasSensitivityScore() - { - return isset($this->sensitivity_score); - } - - public function clearSensitivityScore() - { - unset($this->sensitivity_score); - } - - /** - * The default sensitivity of the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 11; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->sensitivity_score = $var; - - return $this; - } - - /** - * If this field is set, this infoType is a general infoType and these - * specific infoTypes are contained within it. - * General infoTypes are infoTypes that encompass multiple specific infoTypes. - * For example, the "GEOGRAPHIC_DATA" general infoType would have set for this - * field "LOCATION", "LOCATION_COORDINATES", and "STREET_ADDRESS". - * - * Generated from protobuf field repeated string specific_info_types = 12; - * @return RepeatedField - */ - public function getSpecificInfoTypes() - { - return $this->specific_info_types; - } - - /** - * If this field is set, this infoType is a general infoType and these - * specific infoTypes are contained within it. - * General infoTypes are infoTypes that encompass multiple specific infoTypes. - * For example, the "GEOGRAPHIC_DATA" general infoType would have set for this - * field "LOCATION", "LOCATION_COORDINATES", and "STREET_ADDRESS". - * - * Generated from protobuf field repeated string specific_info_types = 12; - * @param string[] $var - * @return $this - */ - public function setSpecificInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->specific_info_types = $arr; - - return $this; - } - - /** - * The launch status of the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeDescription.InfoTypeLaunchStatus launch_status = 13; - * @return int - */ - public function getLaunchStatus() - { - return $this->launch_status; - } - - /** - * The launch status of the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeDescription.InfoTypeLaunchStatus launch_status = 13; - * @param int $var - * @return $this - */ - public function setLaunchStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\InfoTypeDescription\InfoTypeLaunchStatus::class); - $this->launch_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription/InfoTypeLaunchStatus.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription/InfoTypeLaunchStatus.php deleted file mode 100644 index 910deab3419c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription/InfoTypeLaunchStatus.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.InfoTypeDescription.InfoTypeLaunchStatus - */ -class InfoTypeLaunchStatus -{ - /** - * Unspecified. - * - * Generated from protobuf enum INFO_TYPE_LAUNCH_STATUS_UNSPECIFIED = 0; - */ - const INFO_TYPE_LAUNCH_STATUS_UNSPECIFIED = 0; - /** - * InfoType is generally available. - * - * Generated from protobuf enum GENERAL_AVAILABILITY = 1; - */ - const GENERAL_AVAILABILITY = 1; - /** - * InfoType is in public preview. - * - * Generated from protobuf enum PUBLIC_PREVIEW = 2; - */ - const PUBLIC_PREVIEW = 2; - /** - * InfoType is in private preview. - * - * Generated from protobuf enum PRIVATE_PREVIEW = 3; - */ - const PRIVATE_PREVIEW = 3; - - private static $valueToName = [ - self::INFO_TYPE_LAUNCH_STATUS_UNSPECIFIED => 'INFO_TYPE_LAUNCH_STATUS_UNSPECIFIED', - self::GENERAL_AVAILABILITY => 'GENERAL_AVAILABILITY', - self::PUBLIC_PREVIEW => 'PUBLIC_PREVIEW', - self::PRIVATE_PREVIEW => 'PRIVATE_PREVIEW', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeStats.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeStats.php deleted file mode 100644 index 7b49cdfb6a77..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeStats.php +++ /dev/null @@ -1,111 +0,0 @@ -google.privacy.dlp.v2.InfoTypeStats - */ -class InfoTypeStats extends \Google\Protobuf\Internal\Message -{ - /** - * The type of finding this stat is for. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - */ - protected $info_type = null; - /** - * Number of findings for this infoType. - * - * Generated from protobuf field int64 count = 2; - */ - protected $count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * The type of finding this stat is for. - * @type int|string $count - * Number of findings for this infoType. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The type of finding this stat is for. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * The type of finding this stat is for. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - - /** - * Number of findings for this infoType. - * - * Generated from protobuf field int64 count = 2; - * @return int|string - */ - public function getCount() - { - return $this->count; - } - - /** - * Number of findings for this infoType. - * - * Generated from protobuf field int64 count = 2; - * @param int|string $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkInt64($var); - $this->count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSummary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSummary.php deleted file mode 100644 index e32d358bb1f7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSummary.php +++ /dev/null @@ -1,118 +0,0 @@ -google.privacy.dlp.v2.InfoTypeSummary - */ -class InfoTypeSummary extends \Google\Protobuf\Internal\Message -{ - /** - * The infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - */ - protected $info_type = null; - /** - * Not populated for predicted infotypes. - * - * Generated from protobuf field int32 estimated_prevalence = 2 [deprecated = true]; - * @deprecated - */ - protected $estimated_prevalence = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * The infoType. - * @type int $estimated_prevalence - * Not populated for predicted infotypes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * The infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - - /** - * Not populated for predicted infotypes. - * - * Generated from protobuf field int32 estimated_prevalence = 2 [deprecated = true]; - * @return int - * @deprecated - */ - public function getEstimatedPrevalence() - { - if ($this->estimated_prevalence !== 0) { - @trigger_error('estimated_prevalence is deprecated.', E_USER_DEPRECATED); - } - return $this->estimated_prevalence; - } - - /** - * Not populated for predicted infotypes. - * - * Generated from protobuf field int32 estimated_prevalence = 2 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setEstimatedPrevalence($var) - { - @trigger_error('estimated_prevalence is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkInt32($var); - $this->estimated_prevalence = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSupportedBy.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSupportedBy.php deleted file mode 100644 index 57ea0fb34dad..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSupportedBy.php +++ /dev/null @@ -1,61 +0,0 @@ -google.privacy.dlp.v2.InfoTypeSupportedBy - */ -class InfoTypeSupportedBy -{ - /** - * Unused. - * - * Generated from protobuf enum ENUM_TYPE_UNSPECIFIED = 0; - */ - const ENUM_TYPE_UNSPECIFIED = 0; - /** - * Supported by the inspect operations. - * - * Generated from protobuf enum INSPECT = 1; - */ - const INSPECT = 1; - /** - * Supported by the risk analysis operations. - * - * Generated from protobuf enum RISK_ANALYSIS = 2; - */ - const RISK_ANALYSIS = 2; - - private static $valueToName = [ - self::ENUM_TYPE_UNSPECIFIED => 'ENUM_TYPE_UNSPECIFIED', - self::INSPECT => 'INSPECT', - self::RISK_ANALYSIS => 'RISK_ANALYSIS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations.php deleted file mode 100644 index 785baf9262c6..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations.php +++ /dev/null @@ -1,74 +0,0 @@ -google.privacy.dlp.v2.InfoTypeTransformations - */ -class InfoTypeTransformations extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Transformation for each infoType. Cannot specify more than one - * for a given infoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $transformations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoTypeTransformations\InfoTypeTransformation[] $transformations - * Required. Transformation for each infoType. Cannot specify more than one - * for a given infoType. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Transformation for each infoType. Cannot specify more than one - * for a given infoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoTypeTransformations\InfoTypeTransformation> - */ - public function getTransformations() - { - return $this->transformations; - } - - /** - * Required. Transformation for each infoType. Cannot specify more than one - * for a given infoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\InfoTypeTransformations\InfoTypeTransformation[] $var - * @return $this - */ - public function setTransformations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoTypeTransformations\InfoTypeTransformation::class); - $this->transformations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations/InfoTypeTransformation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations/InfoTypeTransformation.php deleted file mode 100644 index 04421d169dd5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations/InfoTypeTransformation.php +++ /dev/null @@ -1,120 +0,0 @@ -google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation - */ -class InfoTypeTransformation extends \Google\Protobuf\Internal\Message -{ - /** - * InfoTypes to apply the transformation to. An empty list will cause - * this transformation to apply to all findings that correspond to - * infoTypes that were requested in `InspectConfig`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - */ - private $info_types; - /** - * Required. Primitive transformation to apply to the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $primitive_transformation = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType[] $info_types - * InfoTypes to apply the transformation to. An empty list will cause - * this transformation to apply to all findings that correspond to - * infoTypes that were requested in `InspectConfig`. - * @type \Google\Cloud\Dlp\V2\PrimitiveTransformation $primitive_transformation - * Required. Primitive transformation to apply to the infoType. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * InfoTypes to apply the transformation to. An empty list will cause - * this transformation to apply to all findings that correspond to - * infoTypes that were requested in `InspectConfig`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoType> - */ - public function getInfoTypes() - { - return $this->info_types; - } - - /** - * InfoTypes to apply the transformation to. An empty list will cause - * this transformation to apply to all findings that correspond to - * infoTypes that were requested in `InspectConfig`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @param \Google\Cloud\Dlp\V2\InfoType[] $var - * @return $this - */ - public function setInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_types = $arr; - - return $this; - } - - /** - * Required. Primitive transformation to apply to the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\PrimitiveTransformation|null - */ - public function getPrimitiveTransformation() - { - return $this->primitive_transformation; - } - - public function hasPrimitiveTransformation() - { - return isset($this->primitive_transformation); - } - - public function clearPrimitiveTransformation() - { - unset($this->primitive_transformation); - } - - /** - * Required. Primitive transformation to apply to the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\PrimitiveTransformation $var - * @return $this - */ - public function setPrimitiveTransformation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrimitiveTransformation::class); - $this->primitive_transformation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig.php deleted file mode 100644 index 7be20a09f418..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig.php +++ /dev/null @@ -1,499 +0,0 @@ -google.privacy.dlp.v2.InspectConfig - */ -class InspectConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Restricts what info_types to look for. The values must correspond to - * InfoType values returned by ListInfoTypes or listed at - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference. - * When no InfoTypes or CustomInfoTypes are specified in a request, the - * system may automatically choose a default list of detectors to run, which - * may change over time. - * If you need precise control and predictability as to what detectors are - * run you should specify specific InfoTypes listed in the reference, - * otherwise a default list will be used, which may change over time. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - */ - private $info_types; - /** - * Only returns findings equal to or above this threshold. The default is - * POSSIBLE. - * In general, the highest likelihood setting yields the fewest findings in - * results and the lowest chance of a false positive. For more information, - * see [Match - * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - */ - protected $min_likelihood = 0; - /** - * Minimum likelihood per infotype. For each infotype, a user can specify a - * minimum likelihood. The system only returns a finding if its likelihood is - * above this threshold. If this field is not set, the system uses the - * InspectConfig min_likelihood. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood min_likelihood_per_info_type = 11; - */ - private $min_likelihood_per_info_type; - /** - * Configuration to control the number of findings returned. - * This is not used for data profiling. - * When redacting sensitive data from images, finding limits don't apply. They - * can cause unexpected or inconsistent results, where only some data is - * redacted. Don't include finding limits in - * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage] - * requests. Otherwise, Cloud DLP returns an error. - * When set within an - * [InspectJobConfig][google.privacy.dlp.v2.InspectJobConfig], the specified - * maximum values aren't hard limits. If an inspection job reaches these - * limits, the job ends gradually, not abruptly. Therefore, the actual number - * of findings that Cloud DLP returns can be multiple times higher than these - * maximum values. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3; - */ - protected $limits = null; - /** - * When true, a contextual quote from the data that triggered a finding is - * included in the response; see - * [Finding.quote][google.privacy.dlp.v2.Finding.quote]. This is not used for - * data profiling. - * - * Generated from protobuf field bool include_quote = 4; - */ - protected $include_quote = false; - /** - * When true, excludes type information of the findings. - * This is not used for data profiling. - * - * Generated from protobuf field bool exclude_info_types = 5; - */ - protected $exclude_info_types = false; - /** - * CustomInfoTypes provided by the user. See - * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes - * to learn more. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; - */ - private $custom_info_types; - /** - * Deprecated and unused. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentOption content_options = 8; - */ - private $content_options; - /** - * Set of rules to apply to the findings for this InspectConfig. - * Exclusion rules, contained in the set are executed in the end, other - * rules are executed in the order they are specified for each info type. Not - * supported for the `metadata_key_value_expression` CustomInfoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; - */ - private $rule_set; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType[] $info_types - * Restricts what info_types to look for. The values must correspond to - * InfoType values returned by ListInfoTypes or listed at - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference. - * When no InfoTypes or CustomInfoTypes are specified in a request, the - * system may automatically choose a default list of detectors to run, which - * may change over time. - * If you need precise control and predictability as to what detectors are - * run you should specify specific InfoTypes listed in the reference, - * otherwise a default list will be used, which may change over time. - * @type int $min_likelihood - * Only returns findings equal to or above this threshold. The default is - * POSSIBLE. - * In general, the highest likelihood setting yields the fewest findings in - * results and the lowest chance of a false positive. For more information, - * see [Match - * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). - * @type \Google\Cloud\Dlp\V2\InspectConfig\InfoTypeLikelihood[] $min_likelihood_per_info_type - * Minimum likelihood per infotype. For each infotype, a user can specify a - * minimum likelihood. The system only returns a finding if its likelihood is - * above this threshold. If this field is not set, the system uses the - * InspectConfig min_likelihood. - * @type \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits $limits - * Configuration to control the number of findings returned. - * This is not used for data profiling. - * When redacting sensitive data from images, finding limits don't apply. They - * can cause unexpected or inconsistent results, where only some data is - * redacted. Don't include finding limits in - * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage] - * requests. Otherwise, Cloud DLP returns an error. - * When set within an - * [InspectJobConfig][google.privacy.dlp.v2.InspectJobConfig], the specified - * maximum values aren't hard limits. If an inspection job reaches these - * limits, the job ends gradually, not abruptly. Therefore, the actual number - * of findings that Cloud DLP returns can be multiple times higher than these - * maximum values. - * @type bool $include_quote - * When true, a contextual quote from the data that triggered a finding is - * included in the response; see - * [Finding.quote][google.privacy.dlp.v2.Finding.quote]. This is not used for - * data profiling. - * @type bool $exclude_info_types - * When true, excludes type information of the findings. - * This is not used for data profiling. - * @type \Google\Cloud\Dlp\V2\CustomInfoType[] $custom_info_types - * CustomInfoTypes provided by the user. See - * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes - * to learn more. - * @type int[] $content_options - * Deprecated and unused. - * @type \Google\Cloud\Dlp\V2\InspectionRuleSet[] $rule_set - * Set of rules to apply to the findings for this InspectConfig. - * Exclusion rules, contained in the set are executed in the end, other - * rules are executed in the order they are specified for each info type. Not - * supported for the `metadata_key_value_expression` CustomInfoType. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Restricts what info_types to look for. The values must correspond to - * InfoType values returned by ListInfoTypes or listed at - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference. - * When no InfoTypes or CustomInfoTypes are specified in a request, the - * system may automatically choose a default list of detectors to run, which - * may change over time. - * If you need precise control and predictability as to what detectors are - * run you should specify specific InfoTypes listed in the reference, - * otherwise a default list will be used, which may change over time. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoType> - */ - public function getInfoTypes() - { - return $this->info_types; - } - - /** - * Restricts what info_types to look for. The values must correspond to - * InfoType values returned by ListInfoTypes or listed at - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference. - * When no InfoTypes or CustomInfoTypes are specified in a request, the - * system may automatically choose a default list of detectors to run, which - * may change over time. - * If you need precise control and predictability as to what detectors are - * run you should specify specific InfoTypes listed in the reference, - * otherwise a default list will be used, which may change over time. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @param \Google\Cloud\Dlp\V2\InfoType[] $var - * @return $this - */ - public function setInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_types = $arr; - - return $this; - } - - /** - * Only returns findings equal to or above this threshold. The default is - * POSSIBLE. - * In general, the highest likelihood setting yields the fewest findings in - * results and the lowest chance of a false positive. For more information, - * see [Match - * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - * @return int - */ - public function getMinLikelihood() - { - return $this->min_likelihood; - } - - /** - * Only returns findings equal to or above this threshold. The default is - * POSSIBLE. - * In general, the highest likelihood setting yields the fewest findings in - * results and the lowest chance of a false positive. For more information, - * see [Match - * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - * @param int $var - * @return $this - */ - public function setMinLikelihood($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); - $this->min_likelihood = $var; - - return $this; - } - - /** - * Minimum likelihood per infotype. For each infotype, a user can specify a - * minimum likelihood. The system only returns a finding if its likelihood is - * above this threshold. If this field is not set, the system uses the - * InspectConfig min_likelihood. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood min_likelihood_per_info_type = 11; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InspectConfig\InfoTypeLikelihood> - */ - public function getMinLikelihoodPerInfoType() - { - return $this->min_likelihood_per_info_type; - } - - /** - * Minimum likelihood per infotype. For each infotype, a user can specify a - * minimum likelihood. The system only returns a finding if its likelihood is - * above this threshold. If this field is not set, the system uses the - * InspectConfig min_likelihood. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood min_likelihood_per_info_type = 11; - * @param \Google\Cloud\Dlp\V2\InspectConfig\InfoTypeLikelihood[] $var - * @return $this - */ - public function setMinLikelihoodPerInfoType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InspectConfig\InfoTypeLikelihood::class); - $this->min_likelihood_per_info_type = $arr; - - return $this; - } - - /** - * Configuration to control the number of findings returned. - * This is not used for data profiling. - * When redacting sensitive data from images, finding limits don't apply. They - * can cause unexpected or inconsistent results, where only some data is - * redacted. Don't include finding limits in - * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage] - * requests. Otherwise, Cloud DLP returns an error. - * When set within an - * [InspectJobConfig][google.privacy.dlp.v2.InspectJobConfig], the specified - * maximum values aren't hard limits. If an inspection job reaches these - * limits, the job ends gradually, not abruptly. Therefore, the actual number - * of findings that Cloud DLP returns can be multiple times higher than these - * maximum values. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3; - * @return \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits|null - */ - public function getLimits() - { - return $this->limits; - } - - public function hasLimits() - { - return isset($this->limits); - } - - public function clearLimits() - { - unset($this->limits); - } - - /** - * Configuration to control the number of findings returned. - * This is not used for data profiling. - * When redacting sensitive data from images, finding limits don't apply. They - * can cause unexpected or inconsistent results, where only some data is - * redacted. Don't include finding limits in - * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage] - * requests. Otherwise, Cloud DLP returns an error. - * When set within an - * [InspectJobConfig][google.privacy.dlp.v2.InspectJobConfig], the specified - * maximum values aren't hard limits. If an inspection job reaches these - * limits, the job ends gradually, not abruptly. Therefore, the actual number - * of findings that Cloud DLP returns can be multiple times higher than these - * maximum values. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3; - * @param \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits $var - * @return $this - */ - public function setLimits($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits::class); - $this->limits = $var; - - return $this; - } - - /** - * When true, a contextual quote from the data that triggered a finding is - * included in the response; see - * [Finding.quote][google.privacy.dlp.v2.Finding.quote]. This is not used for - * data profiling. - * - * Generated from protobuf field bool include_quote = 4; - * @return bool - */ - public function getIncludeQuote() - { - return $this->include_quote; - } - - /** - * When true, a contextual quote from the data that triggered a finding is - * included in the response; see - * [Finding.quote][google.privacy.dlp.v2.Finding.quote]. This is not used for - * data profiling. - * - * Generated from protobuf field bool include_quote = 4; - * @param bool $var - * @return $this - */ - public function setIncludeQuote($var) - { - GPBUtil::checkBool($var); - $this->include_quote = $var; - - return $this; - } - - /** - * When true, excludes type information of the findings. - * This is not used for data profiling. - * - * Generated from protobuf field bool exclude_info_types = 5; - * @return bool - */ - public function getExcludeInfoTypes() - { - return $this->exclude_info_types; - } - - /** - * When true, excludes type information of the findings. - * This is not used for data profiling. - * - * Generated from protobuf field bool exclude_info_types = 5; - * @param bool $var - * @return $this - */ - public function setExcludeInfoTypes($var) - { - GPBUtil::checkBool($var); - $this->exclude_info_types = $var; - - return $this; - } - - /** - * CustomInfoTypes provided by the user. See - * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes - * to learn more. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; - * @return RepeatedField<\Google\Cloud\Dlp\V2\CustomInfoType> - */ - public function getCustomInfoTypes() - { - return $this->custom_info_types; - } - - /** - * CustomInfoTypes provided by the user. See - * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes - * to learn more. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; - * @param \Google\Cloud\Dlp\V2\CustomInfoType[] $var - * @return $this - */ - public function setCustomInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\CustomInfoType::class); - $this->custom_info_types = $arr; - - return $this; - } - - /** - * Deprecated and unused. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentOption content_options = 8; - * @return RepeatedField - */ - public function getContentOptions() - { - return $this->content_options; - } - - /** - * Deprecated and unused. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentOption content_options = 8; - * @param int[] $var - * @return $this - */ - public function setContentOptions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\ContentOption::class); - $this->content_options = $arr; - - return $this; - } - - /** - * Set of rules to apply to the findings for this InspectConfig. - * Exclusion rules, contained in the set are executed in the end, other - * rules are executed in the order they are specified for each info type. Not - * supported for the `metadata_key_value_expression` CustomInfoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InspectionRuleSet> - */ - public function getRuleSet() - { - return $this->rule_set; - } - - /** - * Set of rules to apply to the findings for this InspectConfig. - * Exclusion rules, contained in the set are executed in the end, other - * rules are executed in the order they are specified for each info type. Not - * supported for the `metadata_key_value_expression` CustomInfoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; - * @param \Google\Cloud\Dlp\V2\InspectionRuleSet[] $var - * @return $this - */ - public function setRuleSet($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InspectionRuleSet::class); - $this->rule_set = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits.php deleted file mode 100644 index ebb1ffccff90..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits.php +++ /dev/null @@ -1,201 +0,0 @@ -google.privacy.dlp.v2.InspectConfig.FindingLimits - */ -class FindingLimits extends \Google\Protobuf\Internal\Message -{ - /** - * Max number of findings that are returned for each item scanned. - * When set within an - * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], - * this field is ignored. - * This value isn't a hard limit. If the number of findings for an item - * reaches this limit, the inspection of that item ends gradually, not - * abruptly. Therefore, the actual number of findings that Cloud DLP returns - * for the item can be multiple times higher than this value. - * - * Generated from protobuf field int32 max_findings_per_item = 1; - */ - protected $max_findings_per_item = 0; - /** - * Max number of findings that are returned per request or job. - * If you set this field in an - * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], the - * resulting maximum value is the value that you set or 3,000, whichever is - * lower. - * This value isn't a hard limit. If an inspection reaches this limit, the - * inspection ends gradually, not abruptly. Therefore, the actual number of - * findings that Cloud DLP returns can be multiple times higher than this - * value. - * - * Generated from protobuf field int32 max_findings_per_request = 2; - */ - protected $max_findings_per_request = 0; - /** - * Configuration of findings limit given for specified infoTypes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3; - */ - private $max_findings_per_info_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $max_findings_per_item - * Max number of findings that are returned for each item scanned. - * When set within an - * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], - * this field is ignored. - * This value isn't a hard limit. If the number of findings for an item - * reaches this limit, the inspection of that item ends gradually, not - * abruptly. Therefore, the actual number of findings that Cloud DLP returns - * for the item can be multiple times higher than this value. - * @type int $max_findings_per_request - * Max number of findings that are returned per request or job. - * If you set this field in an - * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], the - * resulting maximum value is the value that you set or 3,000, whichever is - * lower. - * This value isn't a hard limit. If an inspection reaches this limit, the - * inspection ends gradually, not abruptly. Therefore, the actual number of - * findings that Cloud DLP returns can be multiple times higher than this - * value. - * @type \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits\InfoTypeLimit[] $max_findings_per_info_type - * Configuration of findings limit given for specified infoTypes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Max number of findings that are returned for each item scanned. - * When set within an - * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], - * this field is ignored. - * This value isn't a hard limit. If the number of findings for an item - * reaches this limit, the inspection of that item ends gradually, not - * abruptly. Therefore, the actual number of findings that Cloud DLP returns - * for the item can be multiple times higher than this value. - * - * Generated from protobuf field int32 max_findings_per_item = 1; - * @return int - */ - public function getMaxFindingsPerItem() - { - return $this->max_findings_per_item; - } - - /** - * Max number of findings that are returned for each item scanned. - * When set within an - * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], - * this field is ignored. - * This value isn't a hard limit. If the number of findings for an item - * reaches this limit, the inspection of that item ends gradually, not - * abruptly. Therefore, the actual number of findings that Cloud DLP returns - * for the item can be multiple times higher than this value. - * - * Generated from protobuf field int32 max_findings_per_item = 1; - * @param int $var - * @return $this - */ - public function setMaxFindingsPerItem($var) - { - GPBUtil::checkInt32($var); - $this->max_findings_per_item = $var; - - return $this; - } - - /** - * Max number of findings that are returned per request or job. - * If you set this field in an - * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], the - * resulting maximum value is the value that you set or 3,000, whichever is - * lower. - * This value isn't a hard limit. If an inspection reaches this limit, the - * inspection ends gradually, not abruptly. Therefore, the actual number of - * findings that Cloud DLP returns can be multiple times higher than this - * value. - * - * Generated from protobuf field int32 max_findings_per_request = 2; - * @return int - */ - public function getMaxFindingsPerRequest() - { - return $this->max_findings_per_request; - } - - /** - * Max number of findings that are returned per request or job. - * If you set this field in an - * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], the - * resulting maximum value is the value that you set or 3,000, whichever is - * lower. - * This value isn't a hard limit. If an inspection reaches this limit, the - * inspection ends gradually, not abruptly. Therefore, the actual number of - * findings that Cloud DLP returns can be multiple times higher than this - * value. - * - * Generated from protobuf field int32 max_findings_per_request = 2; - * @param int $var - * @return $this - */ - public function setMaxFindingsPerRequest($var) - { - GPBUtil::checkInt32($var); - $this->max_findings_per_request = $var; - - return $this; - } - - /** - * Configuration of findings limit given for specified infoTypes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InspectConfig\FindingLimits\InfoTypeLimit> - */ - public function getMaxFindingsPerInfoType() - { - return $this->max_findings_per_info_type; - } - - /** - * Configuration of findings limit given for specified infoTypes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3; - * @param \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits\InfoTypeLimit[] $var - * @return $this - */ - public function setMaxFindingsPerInfoType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits\InfoTypeLimit::class); - $this->max_findings_per_info_type = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits/InfoTypeLimit.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits/InfoTypeLimit.php deleted file mode 100644 index 4349f38de931..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits/InfoTypeLimit.php +++ /dev/null @@ -1,124 +0,0 @@ -google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit - */ -class InfoTypeLimit extends \Google\Protobuf\Internal\Message -{ - /** - * Type of information the findings limit applies to. Only one limit per - * info_type should be provided. If InfoTypeLimit does not have an - * info_type, the DLP API applies the limit against all info_types that - * are found but not specified in another InfoTypeLimit. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - */ - protected $info_type = null; - /** - * Max findings limit for the given infoType. - * - * Generated from protobuf field int32 max_findings = 2; - */ - protected $max_findings = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * Type of information the findings limit applies to. Only one limit per - * info_type should be provided. If InfoTypeLimit does not have an - * info_type, the DLP API applies the limit against all info_types that - * are found but not specified in another InfoTypeLimit. - * @type int $max_findings - * Max findings limit for the given infoType. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Type of information the findings limit applies to. Only one limit per - * info_type should be provided. If InfoTypeLimit does not have an - * info_type, the DLP API applies the limit against all info_types that - * are found but not specified in another InfoTypeLimit. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * Type of information the findings limit applies to. Only one limit per - * info_type should be provided. If InfoTypeLimit does not have an - * info_type, the DLP API applies the limit against all info_types that - * are found but not specified in another InfoTypeLimit. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - - /** - * Max findings limit for the given infoType. - * - * Generated from protobuf field int32 max_findings = 2; - * @return int - */ - public function getMaxFindings() - { - return $this->max_findings; - } - - /** - * Max findings limit for the given infoType. - * - * Generated from protobuf field int32 max_findings = 2; - * @param int $var - * @return $this - */ - public function setMaxFindings($var) - { - GPBUtil::checkInt32($var); - $this->max_findings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/InfoTypeLikelihood.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/InfoTypeLikelihood.php deleted file mode 100644 index 71e9f1caa1cc..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/InfoTypeLikelihood.php +++ /dev/null @@ -1,127 +0,0 @@ -google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood - */ -class InfoTypeLikelihood extends \Google\Protobuf\Internal\Message -{ - /** - * Type of information the likelihood threshold applies to. Only one - * likelihood per info_type should be provided. If InfoTypeLikelihood does - * not have an info_type, the configuration fails. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - */ - protected $info_type = null; - /** - * Only returns findings equal to or above this threshold. This field is - * required or else the configuration fails. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - */ - protected $min_likelihood = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * Type of information the likelihood threshold applies to. Only one - * likelihood per info_type should be provided. If InfoTypeLikelihood does - * not have an info_type, the configuration fails. - * @type int $min_likelihood - * Only returns findings equal to or above this threshold. This field is - * required or else the configuration fails. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Type of information the likelihood threshold applies to. Only one - * likelihood per info_type should be provided. If InfoTypeLikelihood does - * not have an info_type, the configuration fails. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * Type of information the likelihood threshold applies to. Only one - * likelihood per info_type should be provided. If InfoTypeLikelihood does - * not have an info_type, the configuration fails. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - - /** - * Only returns findings equal to or above this threshold. This field is - * required or else the configuration fails. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - * @return int - */ - public function getMinLikelihood() - { - return $this->min_likelihood; - } - - /** - * Only returns findings equal to or above this threshold. This field is - * required or else the configuration fails. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - * @param int $var - * @return $this - */ - public function setMinLikelihood($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); - $this->min_likelihood = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentRequest.php deleted file mode 100644 index 01aef2fd1287..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentRequest.php +++ /dev/null @@ -1,287 +0,0 @@ -google.privacy.dlp.v2.InspectContentRequest - */ -class InspectContentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Configuration for the inspector. What specified here will override - * the template referenced by the inspect_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - */ - protected $inspect_config = null; - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 3; - */ - protected $item = null; - /** - * Template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 4; - */ - protected $inspect_template_name = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - */ - protected $location_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config - * Configuration for the inspector. What specified here will override - * the template referenced by the inspect_template_name argument. - * @type \Google\Cloud\Dlp\V2\ContentItem $item - * The item to inspect. - * @type string $inspect_template_name - * Template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Configuration for the inspector. What specified here will override - * the template referenced by the inspect_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - * @return \Google\Cloud\Dlp\V2\InspectConfig|null - */ - public function getInspectConfig() - { - return $this->inspect_config; - } - - public function hasInspectConfig() - { - return isset($this->inspect_config); - } - - public function clearInspectConfig() - { - unset($this->inspect_config); - } - - /** - * Configuration for the inspector. What specified here will override - * the template referenced by the inspect_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - * @param \Google\Cloud\Dlp\V2\InspectConfig $var - * @return $this - */ - public function setInspectConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); - $this->inspect_config = $var; - - return $this; - } - - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 3; - * @return \Google\Cloud\Dlp\V2\ContentItem|null - */ - public function getItem() - { - return $this->item; - } - - public function hasItem() - { - return isset($this->item); - } - - public function clearItem() - { - unset($this->item); - } - - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 3; - * @param \Google\Cloud\Dlp\V2\ContentItem $var - * @return $this - */ - public function setItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); - $this->item = $var; - - return $this; - } - - /** - * Template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 4; - * @return string - */ - public function getInspectTemplateName() - { - return $this->inspect_template_name; - } - - /** - * Template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 4; - * @param string $var - * @return $this - */ - public function setInspectTemplateName($var) - { - GPBUtil::checkString($var, True); - $this->inspect_template_name = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentResponse.php deleted file mode 100644 index 024e0e2dd5dd..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.privacy.dlp.v2.InspectContentResponse - */ -class InspectContentResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectResult result = 1; - */ - protected $result = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InspectResult $result - * The findings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectResult result = 1; - * @return \Google\Cloud\Dlp\V2\InspectResult|null - */ - public function getResult() - { - return $this->result; - } - - public function hasResult() - { - return isset($this->result); - } - - public function clearResult() - { - unset($this->result); - } - - /** - * The findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectResult result = 1; - * @param \Google\Cloud\Dlp\V2\InspectResult $var - * @return $this - */ - public function setResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectResult::class); - $this->result = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails.php deleted file mode 100644 index 3584411c48ec..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails.php +++ /dev/null @@ -1,121 +0,0 @@ -google.privacy.dlp.v2.InspectDataSourceDetails - */ -class InspectDataSourceDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The configuration used for this job. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2; - */ - protected $requested_options = null; - /** - * A summary of the outcome of this inspection job. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3; - */ - protected $result = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InspectDataSourceDetails\RequestedOptions $requested_options - * The configuration used for this job. - * @type \Google\Cloud\Dlp\V2\InspectDataSourceDetails\Result $result - * A summary of the outcome of this inspection job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The configuration used for this job. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2; - * @return \Google\Cloud\Dlp\V2\InspectDataSourceDetails\RequestedOptions|null - */ - public function getRequestedOptions() - { - return $this->requested_options; - } - - public function hasRequestedOptions() - { - return isset($this->requested_options); - } - - public function clearRequestedOptions() - { - unset($this->requested_options); - } - - /** - * The configuration used for this job. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2; - * @param \Google\Cloud\Dlp\V2\InspectDataSourceDetails\RequestedOptions $var - * @return $this - */ - public function setRequestedOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectDataSourceDetails\RequestedOptions::class); - $this->requested_options = $var; - - return $this; - } - - /** - * A summary of the outcome of this inspection job. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3; - * @return \Google\Cloud\Dlp\V2\InspectDataSourceDetails\Result|null - */ - public function getResult() - { - return $this->result; - } - - public function hasResult() - { - return isset($this->result); - } - - public function clearResult() - { - unset($this->result); - } - - /** - * A summary of the outcome of this inspection job. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3; - * @param \Google\Cloud\Dlp\V2\InspectDataSourceDetails\Result $var - * @return $this - */ - public function setResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectDataSourceDetails\Result::class); - $this->result = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/RequestedOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/RequestedOptions.php deleted file mode 100644 index 5c42f0049879..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/RequestedOptions.php +++ /dev/null @@ -1,125 +0,0 @@ -google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions - */ -class RequestedOptions extends \Google\Protobuf\Internal\Message -{ - /** - * If run with an InspectTemplate, a snapshot of its state at the time of - * this run. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1; - */ - protected $snapshot_inspect_template = null; - /** - * Inspect config. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig job_config = 3; - */ - protected $job_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InspectTemplate $snapshot_inspect_template - * If run with an InspectTemplate, a snapshot of its state at the time of - * this run. - * @type \Google\Cloud\Dlp\V2\InspectJobConfig $job_config - * Inspect config. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * If run with an InspectTemplate, a snapshot of its state at the time of - * this run. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1; - * @return \Google\Cloud\Dlp\V2\InspectTemplate|null - */ - public function getSnapshotInspectTemplate() - { - return $this->snapshot_inspect_template; - } - - public function hasSnapshotInspectTemplate() - { - return isset($this->snapshot_inspect_template); - } - - public function clearSnapshotInspectTemplate() - { - unset($this->snapshot_inspect_template); - } - - /** - * If run with an InspectTemplate, a snapshot of its state at the time of - * this run. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1; - * @param \Google\Cloud\Dlp\V2\InspectTemplate $var - * @return $this - */ - public function setSnapshotInspectTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectTemplate::class); - $this->snapshot_inspect_template = $var; - - return $this; - } - - /** - * Inspect config. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig job_config = 3; - * @return \Google\Cloud\Dlp\V2\InspectJobConfig|null - */ - public function getJobConfig() - { - return $this->job_config; - } - - public function hasJobConfig() - { - return isset($this->job_config); - } - - public function clearJobConfig() - { - unset($this->job_config); - } - - /** - * Inspect config. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig job_config = 3; - * @param \Google\Cloud\Dlp\V2\InspectJobConfig $var - * @return $this - */ - public function setJobConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectJobConfig::class); - $this->job_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/Result.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/Result.php deleted file mode 100644 index f4df1c64a02d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/Result.php +++ /dev/null @@ -1,221 +0,0 @@ -google.privacy.dlp.v2.InspectDataSourceDetails.Result - */ -class Result extends \Google\Protobuf\Internal\Message -{ - /** - * Total size in bytes that were processed. - * - * Generated from protobuf field int64 processed_bytes = 1; - */ - protected $processed_bytes = 0; - /** - * Estimate of the number of bytes to process. - * - * Generated from protobuf field int64 total_estimated_bytes = 2; - */ - protected $total_estimated_bytes = 0; - /** - * Statistics of how many instances of each info type were found during - * inspect job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3; - */ - private $info_type_stats; - /** - * Number of rows scanned after sampling and time filtering (applicable for - * row based stores such as BigQuery). - * - * Generated from protobuf field int64 num_rows_processed = 5; - */ - protected $num_rows_processed = 0; - /** - * Statistics related to the processing of hybrid inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; - */ - protected $hybrid_stats = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $processed_bytes - * Total size in bytes that were processed. - * @type int|string $total_estimated_bytes - * Estimate of the number of bytes to process. - * @type \Google\Cloud\Dlp\V2\InfoTypeStats[] $info_type_stats - * Statistics of how many instances of each info type were found during - * inspect job. - * @type int|string $num_rows_processed - * Number of rows scanned after sampling and time filtering (applicable for - * row based stores such as BigQuery). - * @type \Google\Cloud\Dlp\V2\HybridInspectStatistics $hybrid_stats - * Statistics related to the processing of hybrid inspect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Total size in bytes that were processed. - * - * Generated from protobuf field int64 processed_bytes = 1; - * @return int|string - */ - public function getProcessedBytes() - { - return $this->processed_bytes; - } - - /** - * Total size in bytes that were processed. - * - * Generated from protobuf field int64 processed_bytes = 1; - * @param int|string $var - * @return $this - */ - public function setProcessedBytes($var) - { - GPBUtil::checkInt64($var); - $this->processed_bytes = $var; - - return $this; - } - - /** - * Estimate of the number of bytes to process. - * - * Generated from protobuf field int64 total_estimated_bytes = 2; - * @return int|string - */ - public function getTotalEstimatedBytes() - { - return $this->total_estimated_bytes; - } - - /** - * Estimate of the number of bytes to process. - * - * Generated from protobuf field int64 total_estimated_bytes = 2; - * @param int|string $var - * @return $this - */ - public function setTotalEstimatedBytes($var) - { - GPBUtil::checkInt64($var); - $this->total_estimated_bytes = $var; - - return $this; - } - - /** - * Statistics of how many instances of each info type were found during - * inspect job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoTypeStats> - */ - public function getInfoTypeStats() - { - return $this->info_type_stats; - } - - /** - * Statistics of how many instances of each info type were found during - * inspect job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3; - * @param \Google\Cloud\Dlp\V2\InfoTypeStats[] $var - * @return $this - */ - public function setInfoTypeStats($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoTypeStats::class); - $this->info_type_stats = $arr; - - return $this; - } - - /** - * Number of rows scanned after sampling and time filtering (applicable for - * row based stores such as BigQuery). - * - * Generated from protobuf field int64 num_rows_processed = 5; - * @return int|string - */ - public function getNumRowsProcessed() - { - return $this->num_rows_processed; - } - - /** - * Number of rows scanned after sampling and time filtering (applicable for - * row based stores such as BigQuery). - * - * Generated from protobuf field int64 num_rows_processed = 5; - * @param int|string $var - * @return $this - */ - public function setNumRowsProcessed($var) - { - GPBUtil::checkInt64($var); - $this->num_rows_processed = $var; - - return $this; - } - - /** - * Statistics related to the processing of hybrid inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; - * @return \Google\Cloud\Dlp\V2\HybridInspectStatistics|null - */ - public function getHybridStats() - { - return $this->hybrid_stats; - } - - public function hasHybridStats() - { - return isset($this->hybrid_stats); - } - - public function clearHybridStats() - { - unset($this->hybrid_stats); - } - - /** - * Statistics related to the processing of hybrid inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; - * @param \Google\Cloud\Dlp\V2\HybridInspectStatistics $var - * @return $this - */ - public function setHybridStats($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\HybridInspectStatistics::class); - $this->hybrid_stats = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectJobConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectJobConfig.php deleted file mode 100644 index e43d5a4c785f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectJobConfig.php +++ /dev/null @@ -1,197 +0,0 @@ -google.privacy.dlp.v2.InspectJobConfig - */ -class InspectJobConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The data to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig storage_config = 1; - */ - protected $storage_config = null; - /** - * How and what to scan for. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - */ - protected $inspect_config = null; - /** - * If provided, will be used as the default for all values in InspectConfig. - * `inspect_config` will be merged into the values persisted as part of the - * template. - * - * Generated from protobuf field string inspect_template_name = 3; - */ - protected $inspect_template_name = ''; - /** - * Actions to execute at the completion of the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 4; - */ - private $actions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\StorageConfig $storage_config - * The data to scan. - * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config - * How and what to scan for. - * @type string $inspect_template_name - * If provided, will be used as the default for all values in InspectConfig. - * `inspect_config` will be merged into the values persisted as part of the - * template. - * @type \Google\Cloud\Dlp\V2\Action[] $actions - * Actions to execute at the completion of the job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The data to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig storage_config = 1; - * @return \Google\Cloud\Dlp\V2\StorageConfig|null - */ - public function getStorageConfig() - { - return $this->storage_config; - } - - public function hasStorageConfig() - { - return isset($this->storage_config); - } - - public function clearStorageConfig() - { - unset($this->storage_config); - } - - /** - * The data to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig storage_config = 1; - * @param \Google\Cloud\Dlp\V2\StorageConfig $var - * @return $this - */ - public function setStorageConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StorageConfig::class); - $this->storage_config = $var; - - return $this; - } - - /** - * How and what to scan for. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - * @return \Google\Cloud\Dlp\V2\InspectConfig|null - */ - public function getInspectConfig() - { - return $this->inspect_config; - } - - public function hasInspectConfig() - { - return isset($this->inspect_config); - } - - public function clearInspectConfig() - { - unset($this->inspect_config); - } - - /** - * How and what to scan for. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - * @param \Google\Cloud\Dlp\V2\InspectConfig $var - * @return $this - */ - public function setInspectConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); - $this->inspect_config = $var; - - return $this; - } - - /** - * If provided, will be used as the default for all values in InspectConfig. - * `inspect_config` will be merged into the values persisted as part of the - * template. - * - * Generated from protobuf field string inspect_template_name = 3; - * @return string - */ - public function getInspectTemplateName() - { - return $this->inspect_template_name; - } - - /** - * If provided, will be used as the default for all values in InspectConfig. - * `inspect_config` will be merged into the values persisted as part of the - * template. - * - * Generated from protobuf field string inspect_template_name = 3; - * @param string $var - * @return $this - */ - public function setInspectTemplateName($var) - { - GPBUtil::checkString($var, True); - $this->inspect_template_name = $var; - - return $this; - } - - /** - * Actions to execute at the completion of the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 4; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Action> - */ - public function getActions() - { - return $this->actions; - } - - /** - * Actions to execute at the completion of the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 4; - * @param \Google\Cloud\Dlp\V2\Action[] $var - * @return $this - */ - public function setActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Action::class); - $this->actions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectResult.php deleted file mode 100644 index 3369666563f0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectResult.php +++ /dev/null @@ -1,121 +0,0 @@ -google.privacy.dlp.v2.InspectResult - */ -class InspectResult extends \Google\Protobuf\Internal\Message -{ - /** - * List of findings for an item. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Finding findings = 1; - */ - private $findings; - /** - * If true, then this item might have more findings than were returned, - * and the findings returned are an arbitrary subset of all findings. - * The findings list might be truncated because the input items were too - * large, or because the server reached the maximum amount of resources - * allowed for a single API call. For best results, divide the input into - * smaller batches. - * - * Generated from protobuf field bool findings_truncated = 2; - */ - protected $findings_truncated = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Finding[] $findings - * List of findings for an item. - * @type bool $findings_truncated - * If true, then this item might have more findings than were returned, - * and the findings returned are an arbitrary subset of all findings. - * The findings list might be truncated because the input items were too - * large, or because the server reached the maximum amount of resources - * allowed for a single API call. For best results, divide the input into - * smaller batches. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of findings for an item. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Finding findings = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Finding> - */ - public function getFindings() - { - return $this->findings; - } - - /** - * List of findings for an item. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Finding findings = 1; - * @param \Google\Cloud\Dlp\V2\Finding[] $var - * @return $this - */ - public function setFindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Finding::class); - $this->findings = $arr; - - return $this; - } - - /** - * If true, then this item might have more findings than were returned, - * and the findings returned are an arbitrary subset of all findings. - * The findings list might be truncated because the input items were too - * large, or because the server reached the maximum amount of resources - * allowed for a single API call. For best results, divide the input into - * smaller batches. - * - * Generated from protobuf field bool findings_truncated = 2; - * @return bool - */ - public function getFindingsTruncated() - { - return $this->findings_truncated; - } - - /** - * If true, then this item might have more findings than were returned, - * and the findings returned are an arbitrary subset of all findings. - * The findings list might be truncated because the input items were too - * large, or because the server reached the maximum amount of resources - * allowed for a single API call. For best results, divide the input into - * smaller batches. - * - * Generated from protobuf field bool findings_truncated = 2; - * @param bool $var - * @return $this - */ - public function setFindingsTruncated($var) - { - GPBUtil::checkBool($var); - $this->findings_truncated = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectTemplate.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectTemplate.php deleted file mode 100644 index 0abb529e309c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectTemplate.php +++ /dev/null @@ -1,283 +0,0 @@ -google.privacy.dlp.v2.InspectTemplate - */ -class InspectTemplate extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The template name. - * The template will have one of the following formats: - * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`; - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Display name (max 256 chars). - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * Short description (max 256 chars). - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Output only. The creation timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The last update timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * The core content of the template. Configuration of the scanning process. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 6; - */ - protected $inspect_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The template name. - * The template will have one of the following formats: - * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`; - * @type string $display_name - * Display name (max 256 chars). - * @type string $description - * Short description (max 256 chars). - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation timestamp of an inspectTemplate. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last update timestamp of an inspectTemplate. - * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config - * The core content of the template. Configuration of the scanning process. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The template name. - * The template will have one of the following formats: - * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`; - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The template name. - * The template will have one of the following formats: - * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`; - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Display name (max 256 chars). - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name (max 256 chars). - * - * Generated from protobuf field string display_name = 2; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Short description (max 256 chars). - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Short description (max 256 chars). - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. The creation timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The creation timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The last update timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The last update timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * The core content of the template. Configuration of the scanning process. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 6; - * @return \Google\Cloud\Dlp\V2\InspectConfig|null - */ - public function getInspectConfig() - { - return $this->inspect_config; - } - - public function hasInspectConfig() - { - return isset($this->inspect_config); - } - - public function clearInspectConfig() - { - unset($this->inspect_config); - } - - /** - * The core content of the template. Configuration of the scanning process. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 6; - * @param \Google\Cloud\Dlp\V2\InspectConfig $var - * @return $this - */ - public function setInspectConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); - $this->inspect_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRule.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRule.php deleted file mode 100644 index 25e76c6bfd43..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRule.php +++ /dev/null @@ -1,142 +0,0 @@ -google.privacy.dlp.v2.InspectionRule - */ -class InspectionRule extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule $hotword_rule - * Hotword-based detection rule. - * @type \Google\Cloud\Dlp\V2\ExclusionRule $exclusion_rule - * Exclusion rule. - * @type \Google\Cloud\Dlp\V2\AdjustmentRule $adjustment_rule - * Adjustment rule. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Hotword-based detection rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule|null - */ - public function getHotwordRule() - { - return $this->readOneof(1); - } - - public function hasHotwordRule() - { - return $this->hasOneof(1); - } - - /** - * Hotword-based detection rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule $var - * @return $this - */ - public function setHotwordRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Exclusion rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; - * @return \Google\Cloud\Dlp\V2\ExclusionRule|null - */ - public function getExclusionRule() - { - return $this->readOneof(2); - } - - public function hasExclusionRule() - { - return $this->hasOneof(2); - } - - /** - * Exclusion rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; - * @param \Google\Cloud\Dlp\V2\ExclusionRule $var - * @return $this - */ - public function setExclusionRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ExclusionRule::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Adjustment rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.AdjustmentRule adjustment_rule = 3; - * @return \Google\Cloud\Dlp\V2\AdjustmentRule|null - */ - public function getAdjustmentRule() - { - return $this->readOneof(3); - } - - public function hasAdjustmentRule() - { - return $this->hasOneof(3); - } - - /** - * Adjustment rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.AdjustmentRule adjustment_rule = 3; - * @param \Google\Cloud\Dlp\V2\AdjustmentRule $var - * @return $this - */ - public function setAdjustmentRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AdjustmentRule::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRuleSet.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRuleSet.php deleted file mode 100644 index 91bbef517e18..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRuleSet.php +++ /dev/null @@ -1,102 +0,0 @@ -google.privacy.dlp.v2.InspectionRuleSet - */ -class InspectionRuleSet extends \Google\Protobuf\Internal\Message -{ - /** - * List of infoTypes this rule set is applied to. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - */ - private $info_types; - /** - * Set of rules to be applied to infoTypes. The rules are applied in order. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRule rules = 2; - */ - private $rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType[] $info_types - * List of infoTypes this rule set is applied to. - * @type \Google\Cloud\Dlp\V2\InspectionRule[] $rules - * Set of rules to be applied to infoTypes. The rules are applied in order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of infoTypes this rule set is applied to. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoType> - */ - public function getInfoTypes() - { - return $this->info_types; - } - - /** - * List of infoTypes this rule set is applied to. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @param \Google\Cloud\Dlp\V2\InfoType[] $var - * @return $this - */ - public function setInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_types = $arr; - - return $this; - } - - /** - * Set of rules to be applied to infoTypes. The rules are applied in order. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRule rules = 2; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InspectionRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * Set of rules to be applied to infoTypes. The rules are applied in order. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRule rules = 2; - * @param \Google\Cloud\Dlp\V2\InspectionRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InspectionRule::class); - $this->rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger.php deleted file mode 100644 index de723336c34c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger.php +++ /dev/null @@ -1,442 +0,0 @@ -google.privacy.dlp.v2.JobTrigger - */ -class JobTrigger extends \Google\Protobuf\Internal\Message -{ - /** - * Unique resource name for the triggeredJob, assigned by the service when the - * triggeredJob is created, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Display name (max 100 chars) - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * User provided description (max 256 chars) - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * A list of triggers which will be OR'ed together. Only one in the list - * needs to trigger for a job to be started. The list may contain only - * a single Schedule trigger and must have at least one object. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5; - */ - private $triggers; - /** - * Output only. A stream of errors encountered when the trigger was activated. - * Repeated errors may result in the JobTrigger automatically being paused. - * Will return the last 100 errors. Whenever the JobTrigger is modified - * this list will be cleared. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $errors; - /** - * Output only. The creation timestamp of a triggeredJob. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The last update timestamp of a triggeredJob. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The timestamp of the last time this trigger executed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_run_time = null; - /** - * Required. A status for this trigger. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $status = 0; - protected $job; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Unique resource name for the triggeredJob, assigned by the service when the - * triggeredJob is created, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * @type string $display_name - * Display name (max 100 chars) - * @type string $description - * User provided description (max 256 chars) - * @type \Google\Cloud\Dlp\V2\InspectJobConfig $inspect_job - * For inspect jobs, a snapshot of the configuration. - * @type \Google\Cloud\Dlp\V2\JobTrigger\Trigger[] $triggers - * A list of triggers which will be OR'ed together. Only one in the list - * needs to trigger for a job to be started. The list may contain only - * a single Schedule trigger and must have at least one object. - * @type \Google\Cloud\Dlp\V2\Error[] $errors - * Output only. A stream of errors encountered when the trigger was activated. - * Repeated errors may result in the JobTrigger automatically being paused. - * Will return the last 100 errors. Whenever the JobTrigger is modified - * this list will be cleared. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation timestamp of a triggeredJob. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last update timestamp of a triggeredJob. - * @type \Google\Protobuf\Timestamp $last_run_time - * Output only. The timestamp of the last time this trigger executed. - * @type int $status - * Required. A status for this trigger. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Unique resource name for the triggeredJob, assigned by the service when the - * triggeredJob is created, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Unique resource name for the triggeredJob, assigned by the service when the - * triggeredJob is created, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Display name (max 100 chars) - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name (max 100 chars) - * - * Generated from protobuf field string display_name = 2; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * User provided description (max 256 chars) - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * User provided description (max 256 chars) - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * For inspect jobs, a snapshot of the configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig inspect_job = 4; - * @return \Google\Cloud\Dlp\V2\InspectJobConfig|null - */ - public function getInspectJob() - { - return $this->readOneof(4); - } - - public function hasInspectJob() - { - return $this->hasOneof(4); - } - - /** - * For inspect jobs, a snapshot of the configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig inspect_job = 4; - * @param \Google\Cloud\Dlp\V2\InspectJobConfig $var - * @return $this - */ - public function setInspectJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectJobConfig::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A list of triggers which will be OR'ed together. Only one in the list - * needs to trigger for a job to be started. The list may contain only - * a single Schedule trigger and must have at least one object. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5; - * @return RepeatedField<\Google\Cloud\Dlp\V2\JobTrigger\Trigger> - */ - public function getTriggers() - { - return $this->triggers; - } - - /** - * A list of triggers which will be OR'ed together. Only one in the list - * needs to trigger for a job to be started. The list may contain only - * a single Schedule trigger and must have at least one object. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5; - * @param \Google\Cloud\Dlp\V2\JobTrigger\Trigger[] $var - * @return $this - */ - public function setTriggers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\JobTrigger\Trigger::class); - $this->triggers = $arr; - - return $this; - } - - /** - * Output only. A stream of errors encountered when the trigger was activated. - * Repeated errors may result in the JobTrigger automatically being paused. - * Will return the last 100 errors. Whenever the JobTrigger is modified - * this list will be cleared. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Error> - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Output only. A stream of errors encountered when the trigger was activated. - * Repeated errors may result in the JobTrigger automatically being paused. - * Will return the last 100 errors. Whenever the JobTrigger is modified - * this list will be cleared. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dlp\V2\Error[] $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); - $this->errors = $arr; - - return $this; - } - - /** - * Output only. The creation timestamp of a triggeredJob. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The creation timestamp of a triggeredJob. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The last update timestamp of a triggeredJob. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The last update timestamp of a triggeredJob. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The timestamp of the last time this trigger executed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastRunTime() - { - return $this->last_run_time; - } - - public function hasLastRunTime() - { - return isset($this->last_run_time); - } - - public function clearLastRunTime() - { - unset($this->last_run_time); - } - - /** - * Output only. The timestamp of the last time this trigger executed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastRunTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_run_time = $var; - - return $this; - } - - /** - * Required. A status for this trigger. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Required. A status for this trigger. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\JobTrigger\Status::class); - $this->status = $var; - - return $this; - } - - /** - * @return string - */ - public function getJob() - { - return $this->whichOneof("job"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Status.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Status.php deleted file mode 100644 index 92ccd8bad2ca..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Status.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.JobTrigger.Status - */ -class Status -{ - /** - * Unused. - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * Trigger is healthy. - * - * Generated from protobuf enum HEALTHY = 1; - */ - const HEALTHY = 1; - /** - * Trigger is temporarily paused. - * - * Generated from protobuf enum PAUSED = 2; - */ - const PAUSED = 2; - /** - * Trigger is cancelled and can not be resumed. - * - * Generated from protobuf enum CANCELLED = 3; - */ - const CANCELLED = 3; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::HEALTHY => 'HEALTHY', - self::PAUSED => 'PAUSED', - self::CANCELLED => 'CANCELLED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Trigger.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Trigger.php deleted file mode 100644 index 0e0783a00d6a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Trigger.php +++ /dev/null @@ -1,108 +0,0 @@ -google.privacy.dlp.v2.JobTrigger.Trigger - */ -class Trigger extends \Google\Protobuf\Internal\Message -{ - protected $trigger; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Schedule $schedule - * Create a job on a repeating basis based on the elapse of time. - * @type \Google\Cloud\Dlp\V2\Manual $manual - * For use with hybrid jobs. Jobs must be manually created and finished. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Create a job on a repeating basis based on the elapse of time. - * - * Generated from protobuf field .google.privacy.dlp.v2.Schedule schedule = 1; - * @return \Google\Cloud\Dlp\V2\Schedule|null - */ - public function getSchedule() - { - return $this->readOneof(1); - } - - public function hasSchedule() - { - return $this->hasOneof(1); - } - - /** - * Create a job on a repeating basis based on the elapse of time. - * - * Generated from protobuf field .google.privacy.dlp.v2.Schedule schedule = 1; - * @param \Google\Cloud\Dlp\V2\Schedule $var - * @return $this - */ - public function setSchedule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Schedule::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * For use with hybrid jobs. Jobs must be manually created and finished. - * - * Generated from protobuf field .google.privacy.dlp.v2.Manual manual = 2; - * @return \Google\Cloud\Dlp\V2\Manual|null - */ - public function getManual() - { - return $this->readOneof(2); - } - - public function hasManual() - { - return $this->hasOneof(2); - } - - /** - * For use with hybrid jobs. Jobs must be manually created and finished. - * - * Generated from protobuf field .google.privacy.dlp.v2.Manual manual = 2; - * @param \Google\Cloud\Dlp\V2\Manual $var - * @return $this - */ - public function setManual($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Manual::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getTrigger() - { - return $this->whichOneof("trigger"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key.php deleted file mode 100644 index bf72efd727ad..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key.php +++ /dev/null @@ -1,150 +0,0 @@ -google.privacy.dlp.v2.Key - */ -class Key extends \Google\Protobuf\Internal\Message -{ - /** - * Entities are partitioned into subsets, currently identified by a project - * ID and namespace ID. - * Queries are scoped to a single partition. - * - * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; - */ - protected $partition_id = null; - /** - * The entity path. - * An entity path consists of one or more elements composed of a kind and a - * string or numerical identifier, which identify entities. The first - * element identifies a _root entity_, the second element identifies - * a _child_ of the root entity, the third element identifies a child of the - * second entity, and so forth. The entities identified by all prefixes of - * the path are called the element's _ancestors_. - * A path can never be empty, and a path can have at most 100 elements. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Key.PathElement path = 2; - */ - private $path; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\PartitionId $partition_id - * Entities are partitioned into subsets, currently identified by a project - * ID and namespace ID. - * Queries are scoped to a single partition. - * @type \Google\Cloud\Dlp\V2\Key\PathElement[] $path - * The entity path. - * An entity path consists of one or more elements composed of a kind and a - * string or numerical identifier, which identify entities. The first - * element identifies a _root entity_, the second element identifies - * a _child_ of the root entity, the third element identifies a child of the - * second entity, and so forth. The entities identified by all prefixes of - * the path are called the element's _ancestors_. - * A path can never be empty, and a path can have at most 100 elements. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Entities are partitioned into subsets, currently identified by a project - * ID and namespace ID. - * Queries are scoped to a single partition. - * - * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; - * @return \Google\Cloud\Dlp\V2\PartitionId|null - */ - public function getPartitionId() - { - return $this->partition_id; - } - - public function hasPartitionId() - { - return isset($this->partition_id); - } - - public function clearPartitionId() - { - unset($this->partition_id); - } - - /** - * Entities are partitioned into subsets, currently identified by a project - * ID and namespace ID. - * Queries are scoped to a single partition. - * - * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; - * @param \Google\Cloud\Dlp\V2\PartitionId $var - * @return $this - */ - public function setPartitionId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PartitionId::class); - $this->partition_id = $var; - - return $this; - } - - /** - * The entity path. - * An entity path consists of one or more elements composed of a kind and a - * string or numerical identifier, which identify entities. The first - * element identifies a _root entity_, the second element identifies - * a _child_ of the root entity, the third element identifies a child of the - * second entity, and so forth. The entities identified by all prefixes of - * the path are called the element's _ancestors_. - * A path can never be empty, and a path can have at most 100 elements. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Key.PathElement path = 2; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Key\PathElement> - */ - public function getPath() - { - return $this->path; - } - - /** - * The entity path. - * An entity path consists of one or more elements composed of a kind and a - * string or numerical identifier, which identify entities. The first - * element identifies a _root entity_, the second element identifies - * a _child_ of the root entity, the third element identifies a child of the - * second entity, and so forth. The entities identified by all prefixes of - * the path are called the element's _ancestors_. - * A path can never be empty, and a path can have at most 100 elements. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Key.PathElement path = 2; - * @param \Google\Cloud\Dlp\V2\Key\PathElement[] $var - * @return $this - */ - public function setPath($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Key\PathElement::class); - $this->path = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key/PathElement.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key/PathElement.php deleted file mode 100644 index 04e329570047..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key/PathElement.php +++ /dev/null @@ -1,171 +0,0 @@ -google.privacy.dlp.v2.Key.PathElement - */ -class PathElement extends \Google\Protobuf\Internal\Message -{ - /** - * The kind of the entity. - * A kind matching regex `__.*__` is reserved/read-only. - * A kind must not contain more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * - * Generated from protobuf field string kind = 1; - */ - protected $kind = ''; - protected $id_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kind - * The kind of the entity. - * A kind matching regex `__.*__` is reserved/read-only. - * A kind must not contain more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * @type int|string $id - * The auto-allocated ID of the entity. - * Never equal to zero. Values less than zero are discouraged and may not - * be supported in the future. - * @type string $name - * The name of the entity. - * A name matching regex `__.*__` is reserved/read-only. - * A name must not be more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The kind of the entity. - * A kind matching regex `__.*__` is reserved/read-only. - * A kind must not contain more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * - * Generated from protobuf field string kind = 1; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * The kind of the entity. - * A kind matching regex `__.*__` is reserved/read-only. - * A kind must not contain more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * - * Generated from protobuf field string kind = 1; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - - /** - * The auto-allocated ID of the entity. - * Never equal to zero. Values less than zero are discouraged and may not - * be supported in the future. - * - * Generated from protobuf field int64 id = 2; - * @return int|string - */ - public function getId() - { - return $this->readOneof(2); - } - - public function hasId() - { - return $this->hasOneof(2); - } - - /** - * The auto-allocated ID of the entity. - * Never equal to zero. Values less than zero are discouraged and may not - * be supported in the future. - * - * Generated from protobuf field int64 id = 2; - * @param int|string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The name of the entity. - * A name matching regex `__.*__` is reserved/read-only. - * A name must not be more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->readOneof(3); - } - - public function hasName() - { - return $this->hasOneof(3); - } - - /** - * The name of the entity. - * A name matching regex `__.*__` is reserved/read-only. - * A name must not be more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getIdType() - { - return $this->whichOneof("id_type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KeyValueMetadataLabel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KeyValueMetadataLabel.php deleted file mode 100644 index bf93ff9fe86d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KeyValueMetadataLabel.php +++ /dev/null @@ -1,79 +0,0 @@ -google.privacy.dlp.v2.KeyValueMetadataLabel - */ -class KeyValueMetadataLabel extends \Google\Protobuf\Internal\Message -{ - /** - * The metadata key. The format depends on the source of the metadata. - * Example: - * - `MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Enabled` (a Microsoft - * Purview Information Protection key example) - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * The metadata key. The format depends on the source of the metadata. - * Example: - * - `MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Enabled` (a Microsoft - * Purview Information Protection key example) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The metadata key. The format depends on the source of the metadata. - * Example: - * - `MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Enabled` (a Microsoft - * Purview Information Protection key example) - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * The metadata key. The format depends on the source of the metadata. - * Example: - * - `MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Enabled` (a Microsoft - * Purview Information Protection key example) - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KindExpression.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KindExpression.php deleted file mode 100644 index a4b579f423f6..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KindExpression.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.KindExpression - */ -class KindExpression extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the kind. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the kind. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The name of the kind. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the kind. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KmsWrappedCryptoKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KmsWrappedCryptoKey.php deleted file mode 100644 index c4c3a214c8fa..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KmsWrappedCryptoKey.php +++ /dev/null @@ -1,109 +0,0 @@ -google.privacy.dlp.v2.KmsWrappedCryptoKey - */ -class KmsWrappedCryptoKey extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The wrapped data crypto key. - * - * Generated from protobuf field bytes wrapped_key = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $wrapped_key = ''; - /** - * Required. The resource name of the KMS CryptoKey to use for unwrapping. - * - * Generated from protobuf field string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $crypto_key_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $wrapped_key - * Required. The wrapped data crypto key. - * @type string $crypto_key_name - * Required. The resource name of the KMS CryptoKey to use for unwrapping. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The wrapped data crypto key. - * - * Generated from protobuf field bytes wrapped_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getWrappedKey() - { - return $this->wrapped_key; - } - - /** - * Required. The wrapped data crypto key. - * - * Generated from protobuf field bytes wrapped_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setWrappedKey($var) - { - GPBUtil::checkString($var, False); - $this->wrapped_key = $var; - - return $this; - } - - /** - * Required. The resource name of the KMS CryptoKey to use for unwrapping. - * - * Generated from protobuf field string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCryptoKeyName() - { - return $this->crypto_key_name; - } - - /** - * Required. The resource name of the KMS CryptoKey to use for unwrapping. - * - * Generated from protobuf field string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCryptoKeyName($var) - { - GPBUtil::checkString($var, True); - $this->crypto_key_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryConfig.php deleted file mode 100644 index 879cca85822d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryConfig.php +++ /dev/null @@ -1,169 +0,0 @@ -google.privacy.dlp.v2.LargeCustomDictionaryConfig - */ -class LargeCustomDictionaryConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Location to store dictionary artifacts in Cloud Storage. These files - * will only be accessible by project owners and the DLP API. If any of these - * artifacts are modified, the dictionary is considered invalid and can no - * longer be used. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath output_path = 1; - */ - protected $output_path = null; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CloudStoragePath $output_path - * Location to store dictionary artifacts in Cloud Storage. These files - * will only be accessible by project owners and the DLP API. If any of these - * artifacts are modified, the dictionary is considered invalid and can no - * longer be used. - * @type \Google\Cloud\Dlp\V2\CloudStorageFileSet $cloud_storage_file_set - * Set of files containing newline-delimited lists of dictionary phrases. - * @type \Google\Cloud\Dlp\V2\BigQueryField $big_query_field - * Field in a BigQuery table where each cell represents a dictionary phrase. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Location to store dictionary artifacts in Cloud Storage. These files - * will only be accessible by project owners and the DLP API. If any of these - * artifacts are modified, the dictionary is considered invalid and can no - * longer be used. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath output_path = 1; - * @return \Google\Cloud\Dlp\V2\CloudStoragePath|null - */ - public function getOutputPath() - { - return $this->output_path; - } - - public function hasOutputPath() - { - return isset($this->output_path); - } - - public function clearOutputPath() - { - unset($this->output_path); - } - - /** - * Location to store dictionary artifacts in Cloud Storage. These files - * will only be accessible by project owners and the DLP API. If any of these - * artifacts are modified, the dictionary is considered invalid and can no - * longer be used. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath output_path = 1; - * @param \Google\Cloud\Dlp\V2\CloudStoragePath $var - * @return $this - */ - public function setOutputPath($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStoragePath::class); - $this->output_path = $var; - - return $this; - } - - /** - * Set of files containing newline-delimited lists of dictionary phrases. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageFileSet cloud_storage_file_set = 2; - * @return \Google\Cloud\Dlp\V2\CloudStorageFileSet|null - */ - public function getCloudStorageFileSet() - { - return $this->readOneof(2); - } - - public function hasCloudStorageFileSet() - { - return $this->hasOneof(2); - } - - /** - * Set of files containing newline-delimited lists of dictionary phrases. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageFileSet cloud_storage_file_set = 2; - * @param \Google\Cloud\Dlp\V2\CloudStorageFileSet $var - * @return $this - */ - public function setCloudStorageFileSet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageFileSet::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Field in a BigQuery table where each cell represents a dictionary phrase. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryField big_query_field = 3; - * @return \Google\Cloud\Dlp\V2\BigQueryField|null - */ - public function getBigQueryField() - { - return $this->readOneof(3); - } - - public function hasBigQueryField() - { - return $this->hasOneof(3); - } - - /** - * Field in a BigQuery table where each cell represents a dictionary phrase. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryField big_query_field = 3; - * @param \Google\Cloud\Dlp\V2\BigQueryField $var - * @return $this - */ - public function setBigQueryField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryField::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryStats.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryStats.php deleted file mode 100644 index 6b0fbf5c861c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryStats.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.LargeCustomDictionaryStats - */ -class LargeCustomDictionaryStats extends \Google\Protobuf\Internal\Message -{ - /** - * Approximate number of distinct phrases in the dictionary. - * - * Generated from protobuf field int64 approx_num_phrases = 1; - */ - protected $approx_num_phrases = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $approx_num_phrases - * Approximate number of distinct phrases in the dictionary. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Approximate number of distinct phrases in the dictionary. - * - * Generated from protobuf field int64 approx_num_phrases = 1; - * @return int|string - */ - public function getApproxNumPhrases() - { - return $this->approx_num_phrases; - } - - /** - * Approximate number of distinct phrases in the dictionary. - * - * Generated from protobuf field int64 approx_num_phrases = 1; - * @param int|string $var - * @return $this - */ - public function setApproxNumPhrases($var) - { - GPBUtil::checkInt64($var); - $this->approx_num_phrases = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Likelihood.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Likelihood.php deleted file mode 100644 index 9f064b078f50..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Likelihood.php +++ /dev/null @@ -1,93 +0,0 @@ -google.privacy.dlp.v2.Likelihood - */ -class Likelihood -{ - /** - * Default value; same as POSSIBLE. - * - * Generated from protobuf enum LIKELIHOOD_UNSPECIFIED = 0; - */ - const LIKELIHOOD_UNSPECIFIED = 0; - /** - * Highest chance of a false positive. - * - * Generated from protobuf enum VERY_UNLIKELY = 1; - */ - const VERY_UNLIKELY = 1; - /** - * High chance of a false positive. - * - * Generated from protobuf enum UNLIKELY = 2; - */ - const UNLIKELY = 2; - /** - * Some matching signals. The default value. - * - * Generated from protobuf enum POSSIBLE = 3; - */ - const POSSIBLE = 3; - /** - * Low chance of a false positive. - * - * Generated from protobuf enum LIKELY = 4; - */ - const LIKELY = 4; - /** - * Confidence level is high. Lowest chance of a false positive. - * - * Generated from protobuf enum VERY_LIKELY = 5; - */ - const VERY_LIKELY = 5; - - private static $valueToName = [ - self::LIKELIHOOD_UNSPECIFIED => 'LIKELIHOOD_UNSPECIFIED', - self::VERY_UNLIKELY => 'VERY_UNLIKELY', - self::UNLIKELY => 'UNLIKELY', - self::POSSIBLE => 'POSSIBLE', - self::LIKELY => 'LIKELY', - self::VERY_LIKELY => 'VERY_LIKELY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesRequest.php deleted file mode 100644 index d32335b6b6c0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesRequest.php +++ /dev/null @@ -1,407 +0,0 @@ -google.privacy.dlp.v2.ListColumnDataProfilesRequest - */ -class ListColumnDataProfilesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `table_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `dataset_id`: The ID of a BigQuery dataset. - * - `table_id`: The ID of a BigQuery table. - * - `sensitivity_level`: How sensitive the data in a column is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields: - * - `table_data_profile_name`: The name of the related table data - * profile - * - `project_id`: The Google Cloud project ID (REQUIRED) - * - `dataset_id`: The BigQuery dataset ID (REQUIRED) - * - `table_id`: The BigQuery table ID (REQUIRED) - * - `field_id`: The ID of the BigQuery field - * - `info_type`: The infotype detected in the resource - * - `sensitivity_level`: HIGH|MEDIUM|LOW - * - `data_risk_level`: How much risk is associated with this data - * - `status_code`: An RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * - `profile_last_generated`: Date and time the profile was last - * generated - * * The operator must be `=` for project_id, dataset_id, and table_id. Other - * filters also support `!=`. The `profile_last_generated` filter also - * supports `<` and `>`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * project_id = 12345 AND status_code = 1 - * * project_id = 12345 AND sensitivity_level = HIGH - * * project_id = 12345 AND info_type = STREET_ADDRESS - * * profile_last_generated < "2025-01-01T00:00:00.000Z" - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. Please see - * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListColumnDataProfilesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * @type string $page_token - * Page token to continue retrieval. - * @type int $page_size - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * @type string $order_by - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `table_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `dataset_id`: The ID of a BigQuery dataset. - * - `table_id`: The ID of a BigQuery table. - * - `sensitivity_level`: How sensitive the data in a column is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * @type string $filter - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields: - * - `table_data_profile_name`: The name of the related table data - * profile - * - `project_id`: The Google Cloud project ID (REQUIRED) - * - `dataset_id`: The BigQuery dataset ID (REQUIRED) - * - `table_id`: The BigQuery table ID (REQUIRED) - * - `field_id`: The ID of the BigQuery field - * - `info_type`: The infotype detected in the resource - * - `sensitivity_level`: HIGH|MEDIUM|LOW - * - `data_risk_level`: How much risk is associated with this data - * - `status_code`: An RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * - `profile_last_generated`: Date and time the profile was last - * generated - * * The operator must be `=` for project_id, dataset_id, and table_id. Other - * filters also support `!=`. The `profile_last_generated` filter also - * supports `<` and `>`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * project_id = 12345 AND status_code = 1 - * * project_id = 12345 AND sensitivity_level = HIGH - * * project_id = 12345 AND info_type = STREET_ADDRESS - * * profile_last_generated < "2025-01-01T00:00:00.000Z" - * The length of this field should be no more than 500 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `table_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `dataset_id`: The ID of a BigQuery dataset. - * - `table_id`: The ID of a BigQuery table. - * - `sensitivity_level`: How sensitive the data in a column is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `table_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `dataset_id`: The ID of a BigQuery dataset. - * - `table_id`: The ID of a BigQuery table. - * - `sensitivity_level`: How sensitive the data in a column is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields: - * - `table_data_profile_name`: The name of the related table data - * profile - * - `project_id`: The Google Cloud project ID (REQUIRED) - * - `dataset_id`: The BigQuery dataset ID (REQUIRED) - * - `table_id`: The BigQuery table ID (REQUIRED) - * - `field_id`: The ID of the BigQuery field - * - `info_type`: The infotype detected in the resource - * - `sensitivity_level`: HIGH|MEDIUM|LOW - * - `data_risk_level`: How much risk is associated with this data - * - `status_code`: An RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * - `profile_last_generated`: Date and time the profile was last - * generated - * * The operator must be `=` for project_id, dataset_id, and table_id. Other - * filters also support `!=`. The `profile_last_generated` filter also - * supports `<` and `>`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * project_id = 12345 AND status_code = 1 - * * project_id = 12345 AND sensitivity_level = HIGH - * * project_id = 12345 AND info_type = STREET_ADDRESS - * * profile_last_generated < "2025-01-01T00:00:00.000Z" - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields: - * - `table_data_profile_name`: The name of the related table data - * profile - * - `project_id`: The Google Cloud project ID (REQUIRED) - * - `dataset_id`: The BigQuery dataset ID (REQUIRED) - * - `table_id`: The BigQuery table ID (REQUIRED) - * - `field_id`: The ID of the BigQuery field - * - `info_type`: The infotype detected in the resource - * - `sensitivity_level`: HIGH|MEDIUM|LOW - * - `data_risk_level`: How much risk is associated with this data - * - `status_code`: An RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * - `profile_last_generated`: Date and time the profile was last - * generated - * * The operator must be `=` for project_id, dataset_id, and table_id. Other - * filters also support `!=`. The `profile_last_generated` filter also - * supports `<` and `>`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * project_id = 12345 AND status_code = 1 - * * project_id = 12345 AND sensitivity_level = HIGH - * * project_id = 12345 AND info_type = STREET_ADDRESS - * * profile_last_generated < "2025-01-01T00:00:00.000Z" - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesResponse.php deleted file mode 100644 index c2fb4d91833f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.ListColumnDataProfilesResponse - */ -class ListColumnDataProfilesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; - */ - private $column_data_profiles; - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\ColumnDataProfile[] $column_data_profiles - * List of data profiles. - * @type string $next_page_token - * The next page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\ColumnDataProfile> - */ - public function getColumnDataProfiles() - { - return $this->column_data_profiles; - } - - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; - * @param \Google\Cloud\Dlp\V2\ColumnDataProfile[] $var - * @return $this - */ - public function setColumnDataProfiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ColumnDataProfile::class); - $this->column_data_profiles = $arr; - - return $this; - } - - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsRequest.php deleted file mode 100644 index fe556f4be6d4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -google.privacy.dlp.v2.ListConnectionsRequest - */ -class ListConnectionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization or project, for - * example, `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Number of results per page, max 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token from a previous page to return the next set of - * results. If set, all other request fields must match the original request. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR - * The syntax is based on https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Resource name of the organization or project, for - * example, `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. Please see - * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListConnectionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the organization or project, for - * example, `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * @type int $page_size - * Optional. Number of results per page, max 1000. - * @type string $page_token - * Optional. Page token from a previous page to return the next set of - * results. If set, all other request fields must match the original request. - * @type string $filter - * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR - * The syntax is based on https://google.aip.dev/160. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization or project, for - * example, `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Resource name of the organization or project, for - * example, `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. Number of results per page, max 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Number of results per page, max 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. Page token from a previous page to return the next set of - * results. If set, all other request fields must match the original request. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Page token from a previous page to return the next set of - * results. If set, all other request fields must match the original request. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR - * The syntax is based on https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR - * The syntax is based on https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsResponse.php deleted file mode 100644 index 1079f61d2fa2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.privacy.dlp.v2.ListConnectionsResponse - */ -class ListConnectionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of connections. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; - */ - private $connections; - /** - * Token to retrieve the next page of results. An empty value means there are - * no more results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Connection[] $connections - * List of connections. - * @type string $next_page_token - * Token to retrieve the next page of results. An empty value means there are - * no more results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of connections. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Connection> - */ - public function getConnections() - { - return $this->connections; - } - - /** - * List of connections. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; - * @param \Google\Cloud\Dlp\V2\Connection[] $var - * @return $this - */ - public function setConnections($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Connection::class); - $this->connections = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results. An empty value means there are - * no more results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results. An empty value means there are - * no more results. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesRequest.php deleted file mode 100644 index 1aa04e29cd88..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesRequest.php +++ /dev/null @@ -1,340 +0,0 @@ -google.privacy.dlp.v2.ListDeidentifyTemplatesRequest - */ -class ListDeidentifyTemplatesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListDeidentifyTemplates`. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the template was created. - * - `update_time`: corresponds to the time the template was last updated. - * - `name`: corresponds to the template's name. - * - `display_name`: corresponds to the template's display name. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListDeidentifyTemplatesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type string $page_token - * Page token to continue retrieval. Comes from the previous call - * to `ListDeidentifyTemplates`. - * @type int $page_size - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * @type string $order_by - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the template was created. - * - `update_time`: corresponds to the time the template was last updated. - * - `name`: corresponds to the template's name. - * - `display_name`: corresponds to the template's display name. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListDeidentifyTemplates`. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListDeidentifyTemplates`. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the template was created. - * - `update_time`: corresponds to the time the template was last updated. - * - `name`: corresponds to the template's name. - * - `display_name`: corresponds to the template's display name. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the template was created. - * - `update_time`: corresponds to the time the template was last updated. - * - `name`: corresponds to the template's name. - * - `display_name`: corresponds to the template's display name. - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesResponse.php deleted file mode 100644 index 9658d3643e65..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.privacy.dlp.v2.ListDeidentifyTemplatesResponse - */ -class ListDeidentifyTemplatesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of deidentify templates, up to page_size in - * ListDeidentifyTemplatesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DeidentifyTemplate deidentify_templates = 1; - */ - private $deidentify_templates; - /** - * If the next page is available then the next page token to be used in the - * following ListDeidentifyTemplates request. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate[] $deidentify_templates - * List of deidentify templates, up to page_size in - * ListDeidentifyTemplatesRequest. - * @type string $next_page_token - * If the next page is available then the next page token to be used in the - * following ListDeidentifyTemplates request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of deidentify templates, up to page_size in - * ListDeidentifyTemplatesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DeidentifyTemplate deidentify_templates = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\DeidentifyTemplate> - */ - public function getDeidentifyTemplates() - { - return $this->deidentify_templates; - } - - /** - * List of deidentify templates, up to page_size in - * ListDeidentifyTemplatesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DeidentifyTemplate deidentify_templates = 1; - * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate[] $var - * @return $this - */ - public function setDeidentifyTemplates($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); - $this->deidentify_templates = $arr; - - return $this; - } - - /** - * If the next page is available then the next page token to be used in the - * following ListDeidentifyTemplates request. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * If the next page is available then the next page token to be used in the - * following ListDeidentifyTemplates request. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsRequest.php deleted file mode 100644 index daad7f9fe2d6..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsRequest.php +++ /dev/null @@ -1,256 +0,0 @@ -google.privacy.dlp.v2.ListDiscoveryConfigsRequest - */ -class ListDiscoveryConfigsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value is as follows: - * `projects/{project_id}/locations/{location_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page token to continue retrieval. Comes from the previous call - * to ListDiscoveryConfigs. `order_by` field must not - * change for subsequent calls. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Size of the page. This value can be limited by a server. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Comma-separated list of config fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - * - `name`: corresponds to the DiscoveryConfig's name. - * - `status`: corresponds to DiscoveryConfig's status. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value is as follows: - * `projects/{project_id}/locations/{location_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListDiscoveryConfigsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value is as follows: - * `projects/{project_id}/locations/{location_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type string $page_token - * Page token to continue retrieval. Comes from the previous call - * to ListDiscoveryConfigs. `order_by` field must not - * change for subsequent calls. - * @type int $page_size - * Size of the page. This value can be limited by a server. - * @type string $order_by - * Comma-separated list of config fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - * - `name`: corresponds to the DiscoveryConfig's name. - * - `status`: corresponds to DiscoveryConfig's status. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value is as follows: - * `projects/{project_id}/locations/{location_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource name. - * The format of this value is as follows: - * `projects/{project_id}/locations/{location_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to ListDiscoveryConfigs. `order_by` field must not - * change for subsequent calls. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to ListDiscoveryConfigs. `order_by` field must not - * change for subsequent calls. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Size of the page. This value can be limited by a server. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Size of the page. This value can be limited by a server. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Comma-separated list of config fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - * - `name`: corresponds to the DiscoveryConfig's name. - * - `status`: corresponds to DiscoveryConfig's status. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of config fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - * - `name`: corresponds to the DiscoveryConfig's name. - * - `status`: corresponds to DiscoveryConfig's status. - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsResponse.php deleted file mode 100644 index e354cb2657fe..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.privacy.dlp.v2.ListDiscoveryConfigsResponse - */ -class ListDiscoveryConfigsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of configs, up to page_size in ListDiscoveryConfigsRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryConfig discovery_configs = 1; - */ - private $discovery_configs; - /** - * If the next page is available then this value is the next page token to be - * used in the following ListDiscoveryConfigs request. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DiscoveryConfig[] $discovery_configs - * List of configs, up to page_size in ListDiscoveryConfigsRequest. - * @type string $next_page_token - * If the next page is available then this value is the next page token to be - * used in the following ListDiscoveryConfigs request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of configs, up to page_size in ListDiscoveryConfigsRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryConfig discovery_configs = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\DiscoveryConfig> - */ - public function getDiscoveryConfigs() - { - return $this->discovery_configs; - } - - /** - * List of configs, up to page_size in ListDiscoveryConfigsRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryConfig discovery_configs = 1; - * @param \Google\Cloud\Dlp\V2\DiscoveryConfig[] $var - * @return $this - */ - public function setDiscoveryConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DiscoveryConfig::class); - $this->discovery_configs = $arr; - - return $this; - } - - /** - * If the next page is available then this value is the next page token to be - * used in the following ListDiscoveryConfigs request. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * If the next page is available then this value is the next page token to be - * used in the following ListDiscoveryConfigs request. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsRequest.php deleted file mode 100644 index 8c7680e036ee..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsRequest.php +++ /dev/null @@ -1,472 +0,0 @@ -google.privacy.dlp.v2.ListDlpJobsRequest - */ -class ListDlpJobsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values for inspect jobs: - * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - * - `trigger_name` - The name of the trigger that created the job. - * - 'end_time` - Corresponds to the time the job finished. - * - 'start_time` - Corresponds to the time the job finished. - * * Supported fields for risk analysis jobs: - * - `state` - RUNNING|CANCELED|FINISHED|FAILED - * - 'end_time` - Corresponds to the time the job finished. - * - 'start_time` - Corresponds to the time the job finished. - * * The operator must be `=` or `!=`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * inspected_storage = cloud_storage AND state = done - * * inspected_storage = cloud_storage OR inspected_storage = bigquery - * * inspected_storage = cloud_storage AND (state = done OR state = canceled) - * * end_time > \"2017-12-12T00:00:00+00:00\" - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 1; - */ - protected $filter = ''; - /** - * The standard list page size. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The standard list page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * The type of job. Defaults to `DlpJobType.INSPECT` - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 5; - */ - protected $type = 0; - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc, end_time asc, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the job was created. - * - `end_time`: corresponds to the time the job ended. - * - `name`: corresponds to the job's name. - * - `state`: corresponds to `state` - * - * Generated from protobuf field string order_by = 6; - */ - protected $order_by = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::projectName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListDlpJobsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type string $filter - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values for inspect jobs: - * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - * - `trigger_name` - The name of the trigger that created the job. - * - 'end_time` - Corresponds to the time the job finished. - * - 'start_time` - Corresponds to the time the job finished. - * * Supported fields for risk analysis jobs: - * - `state` - RUNNING|CANCELED|FINISHED|FAILED - * - 'end_time` - Corresponds to the time the job finished. - * - 'start_time` - Corresponds to the time the job finished. - * * The operator must be `=` or `!=`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * inspected_storage = cloud_storage AND state = done - * * inspected_storage = cloud_storage OR inspected_storage = bigquery - * * inspected_storage = cloud_storage AND (state = done OR state = canceled) - * * end_time > \"2017-12-12T00:00:00+00:00\" - * The length of this field should be no more than 500 characters. - * @type int $page_size - * The standard list page size. - * @type string $page_token - * The standard list page token. - * @type int $type - * The type of job. Defaults to `DlpJobType.INSPECT` - * @type string $order_by - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc, end_time asc, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the job was created. - * - `end_time`: corresponds to the time the job ended. - * - `name`: corresponds to the job's name. - * - `state`: corresponds to `state` - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values for inspect jobs: - * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - * - `trigger_name` - The name of the trigger that created the job. - * - 'end_time` - Corresponds to the time the job finished. - * - 'start_time` - Corresponds to the time the job finished. - * * Supported fields for risk analysis jobs: - * - `state` - RUNNING|CANCELED|FINISHED|FAILED - * - 'end_time` - Corresponds to the time the job finished. - * - 'start_time` - Corresponds to the time the job finished. - * * The operator must be `=` or `!=`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * inspected_storage = cloud_storage AND state = done - * * inspected_storage = cloud_storage OR inspected_storage = bigquery - * * inspected_storage = cloud_storage AND (state = done OR state = canceled) - * * end_time > \"2017-12-12T00:00:00+00:00\" - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 1; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values for inspect jobs: - * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - * - `trigger_name` - The name of the trigger that created the job. - * - 'end_time` - Corresponds to the time the job finished. - * - 'start_time` - Corresponds to the time the job finished. - * * Supported fields for risk analysis jobs: - * - `state` - RUNNING|CANCELED|FINISHED|FAILED - * - 'end_time` - Corresponds to the time the job finished. - * - 'start_time` - Corresponds to the time the job finished. - * * The operator must be `=` or `!=`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * inspected_storage = cloud_storage AND state = done - * * inspected_storage = cloud_storage OR inspected_storage = bigquery - * * inspected_storage = cloud_storage AND (state = done OR state = canceled) - * * end_time > \"2017-12-12T00:00:00+00:00\" - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 1; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The standard list page size. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The standard list page size. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The standard list page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The standard list page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * The type of job. Defaults to `DlpJobType.INSPECT` - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 5; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of job. Defaults to `DlpJobType.INSPECT` - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 5; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DlpJobType::class); - $this->type = $var; - - return $this; - } - - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc, end_time asc, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the job was created. - * - `end_time`: corresponds to the time the job ended. - * - `name`: corresponds to the job's name. - * - `state`: corresponds to `state` - * - * Generated from protobuf field string order_by = 6; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc, end_time asc, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the job was created. - * - `end_time`: corresponds to the time the job ended. - * - `name`: corresponds to the job's name. - * - `state`: corresponds to `state` - * - * Generated from protobuf field string order_by = 6; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsResponse.php deleted file mode 100644 index f5d7a556a866..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.ListDlpJobsResponse - */ -class ListDlpJobsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of DlpJobs that matches the specified filter in the request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DlpJob jobs = 1; - */ - private $jobs; - /** - * The standard List next-page token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DlpJob[] $jobs - * A list of DlpJobs that matches the specified filter in the request. - * @type string $next_page_token - * The standard List next-page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A list of DlpJobs that matches the specified filter in the request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DlpJob jobs = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\DlpJob> - */ - public function getJobs() - { - return $this->jobs; - } - - /** - * A list of DlpJobs that matches the specified filter in the request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DlpJob jobs = 1; - * @param \Google\Cloud\Dlp\V2\DlpJob[] $var - * @return $this - */ - public function setJobs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DlpJob::class); - $this->jobs = $arr; - - return $this; - } - - /** - * The standard List next-page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The standard List next-page token. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesRequest.php deleted file mode 100644 index 71099bd16d2a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesRequest.php +++ /dev/null @@ -1,420 +0,0 @@ -google.privacy.dlp.v2.ListFileStoreDataProfilesRequest - */ -class ListFileStoreDataProfilesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Size of the page. This value can be limited by the server. If - * zero, server returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Comma-separated list of fields to order by, followed by `asc` or - * `desc` postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `name` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `sensitivity_level`: How sensitive the data in a table is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - `last_modified`: The last time the resource was modified. - * - `resource_visibility`: Visibility restriction for this resource. - * - `name`: The name of the profile. - * - `create_time`: The time the file store was first created. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields: - * - `project_id`: The Google Cloud project ID - * - `account_id`: The AWS account ID - * - `file_store_path`: The path like "gs://bucket" - * - `data_source_type`: The profile's data source type, like - * "google/storage/bucket" - * - `data_storage_location`: The location where the file store's data is - * stored, like "us-central1" - * - `sensitivity_level`: HIGH|MODERATE|LOW - * - `data_risk_level`: HIGH|MODERATE|LOW - * - `resource_visibility`: PUBLIC|RESTRICTED - * - `status_code`: an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * - `profile_last_generated`: Date and time the profile was last - * generated - * * The operator must be `=` or `!=`. The `profile_last_generated` filter - * also supports `<` and `>`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `project_id = 12345 AND resource_visibility = PUBLIC` - * * `file_store_path = "gs://mybucket"` - * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. Please see - * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListFileStoreDataProfilesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * @type string $page_token - * Optional. Page token to continue retrieval. - * @type int $page_size - * Optional. Size of the page. This value can be limited by the server. If - * zero, server returns a page of max size 100. - * @type string $order_by - * Optional. Comma-separated list of fields to order by, followed by `asc` or - * `desc` postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `name` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `sensitivity_level`: How sensitive the data in a table is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - `last_modified`: The last time the resource was modified. - * - `resource_visibility`: Visibility restriction for this resource. - * - `name`: The name of the profile. - * - `create_time`: The time the file store was first created. - * @type string $filter - * Optional. Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields: - * - `project_id`: The Google Cloud project ID - * - `account_id`: The AWS account ID - * - `file_store_path`: The path like "gs://bucket" - * - `data_source_type`: The profile's data source type, like - * "google/storage/bucket" - * - `data_storage_location`: The location where the file store's data is - * stored, like "us-central1" - * - `sensitivity_level`: HIGH|MODERATE|LOW - * - `data_risk_level`: HIGH|MODERATE|LOW - * - `resource_visibility`: PUBLIC|RESTRICTED - * - `status_code`: an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * - `profile_last_generated`: Date and time the profile was last - * generated - * * The operator must be `=` or `!=`. The `profile_last_generated` filter - * also supports `<` and `>`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `project_id = 12345 AND resource_visibility = PUBLIC` - * * `file_store_path = "gs://mybucket"` - * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` - * The length of this field should be no more than 500 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Size of the page. This value can be limited by the server. If - * zero, server returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Size of the page. This value can be limited by the server. If - * zero, server returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. Comma-separated list of fields to order by, followed by `asc` or - * `desc` postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `name` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `sensitivity_level`: How sensitive the data in a table is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - `last_modified`: The last time the resource was modified. - * - `resource_visibility`: Visibility restriction for this resource. - * - `name`: The name of the profile. - * - `create_time`: The time the file store was first created. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Comma-separated list of fields to order by, followed by `asc` or - * `desc` postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `name` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `sensitivity_level`: How sensitive the data in a table is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - `last_modified`: The last time the resource was modified. - * - `resource_visibility`: Visibility restriction for this resource. - * - `name`: The name of the profile. - * - `create_time`: The time the file store was first created. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields: - * - `project_id`: The Google Cloud project ID - * - `account_id`: The AWS account ID - * - `file_store_path`: The path like "gs://bucket" - * - `data_source_type`: The profile's data source type, like - * "google/storage/bucket" - * - `data_storage_location`: The location where the file store's data is - * stored, like "us-central1" - * - `sensitivity_level`: HIGH|MODERATE|LOW - * - `data_risk_level`: HIGH|MODERATE|LOW - * - `resource_visibility`: PUBLIC|RESTRICTED - * - `status_code`: an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * - `profile_last_generated`: Date and time the profile was last - * generated - * * The operator must be `=` or `!=`. The `profile_last_generated` filter - * also supports `<` and `>`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `project_id = 12345 AND resource_visibility = PUBLIC` - * * `file_store_path = "gs://mybucket"` - * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields: - * - `project_id`: The Google Cloud project ID - * - `account_id`: The AWS account ID - * - `file_store_path`: The path like "gs://bucket" - * - `data_source_type`: The profile's data source type, like - * "google/storage/bucket" - * - `data_storage_location`: The location where the file store's data is - * stored, like "us-central1" - * - `sensitivity_level`: HIGH|MODERATE|LOW - * - `data_risk_level`: HIGH|MODERATE|LOW - * - `resource_visibility`: PUBLIC|RESTRICTED - * - `status_code`: an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * - `profile_last_generated`: Date and time the profile was last - * generated - * * The operator must be `=` or `!=`. The `profile_last_generated` filter - * also supports `<` and `>`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `project_id = 12345 AND resource_visibility = PUBLIC` - * * `file_store_path = "gs://mybucket"` - * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesResponse.php deleted file mode 100644 index 1b5719f5930a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesResponse.php +++ /dev/null @@ -1,102 +0,0 @@ -google.privacy.dlp.v2.ListFileStoreDataProfilesResponse - */ -class ListFileStoreDataProfilesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; - */ - private $file_store_data_profiles; - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FileStoreDataProfile[] $file_store_data_profiles - * List of data profiles. - * @type string $next_page_token - * The next page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\FileStoreDataProfile> - */ - public function getFileStoreDataProfiles() - { - return $this->file_store_data_profiles; - } - - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; - * @param \Google\Cloud\Dlp\V2\FileStoreDataProfile[] $var - * @return $this - */ - public function setFileStoreDataProfiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileStoreDataProfile::class); - $this->file_store_data_profiles = $arr; - - return $this; - } - - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesRequest.php deleted file mode 100644 index 58798ceac798..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesRequest.php +++ /dev/null @@ -1,206 +0,0 @@ -google.privacy.dlp.v2.ListInfoTypesRequest - */ -class ListInfoTypesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The parent resource name. - * The format of this value is as follows: - * `locations/{location_id}` - * - * Generated from protobuf field string parent = 4; - */ - protected $parent = ''; - /** - * BCP-47 language code for localized infoType friendly - * names. If omitted, or if localized strings are not available, - * en-US strings will be returned. - * - * Generated from protobuf field string language_code = 1; - */ - protected $language_code = ''; - /** - * filter to only return infoTypes supported by certain parts of the - * API. Defaults to supported_by=INSPECT. - * - * Generated from protobuf field string filter = 2; - */ - protected $filter = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 3; - */ - protected $location_id = ''; - - /** - * @param string $parent The parent resource name. - * - * The format of this value is as follows: - * - * `locations/{location_id}` - * - * @return \Google\Cloud\Dlp\V2\ListInfoTypesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The parent resource name. - * The format of this value is as follows: - * `locations/{location_id}` - * @type string $language_code - * BCP-47 language code for localized infoType friendly - * names. If omitted, or if localized strings are not available, - * en-US strings will be returned. - * @type string $filter - * filter to only return infoTypes supported by certain parts of the - * API. Defaults to supported_by=INSPECT. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The parent resource name. - * The format of this value is as follows: - * `locations/{location_id}` - * - * Generated from protobuf field string parent = 4; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent resource name. - * The format of this value is as follows: - * `locations/{location_id}` - * - * Generated from protobuf field string parent = 4; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * BCP-47 language code for localized infoType friendly - * names. If omitted, or if localized strings are not available, - * en-US strings will be returned. - * - * Generated from protobuf field string language_code = 1; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * BCP-47 language code for localized infoType friendly - * names. If omitted, or if localized strings are not available, - * en-US strings will be returned. - * - * Generated from protobuf field string language_code = 1; - * @param string $var - * @return $this - */ - public function setLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->language_code = $var; - - return $this; - } - - /** - * filter to only return infoTypes supported by certain parts of the - * API. Defaults to supported_by=INSPECT. - * - * Generated from protobuf field string filter = 2; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * filter to only return infoTypes supported by certain parts of the - * API. Defaults to supported_by=INSPECT. - * - * Generated from protobuf field string filter = 2; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 3; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 3; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesResponse.php deleted file mode 100644 index 0b152efe8d50..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.ListInfoTypesResponse - */ -class ListInfoTypesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Set of sensitive infoTypes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeDescription info_types = 1; - */ - private $info_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoTypeDescription[] $info_types - * Set of sensitive infoTypes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Set of sensitive infoTypes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeDescription info_types = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoTypeDescription> - */ - public function getInfoTypes() - { - return $this->info_types; - } - - /** - * Set of sensitive infoTypes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeDescription info_types = 1; - * @param \Google\Cloud\Dlp\V2\InfoTypeDescription[] $var - * @return $this - */ - public function setInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoTypeDescription::class); - $this->info_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesRequest.php deleted file mode 100644 index 564f71a69674..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesRequest.php +++ /dev/null @@ -1,340 +0,0 @@ -google.privacy.dlp.v2.ListInspectTemplatesRequest - */ -class ListInspectTemplatesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListInspectTemplates`. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the template was created. - * - `update_time`: corresponds to the time the template was last updated. - * - `name`: corresponds to the template's name. - * - `display_name`: corresponds to the template's display name. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListInspectTemplatesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type string $page_token - * Page token to continue retrieval. Comes from the previous call - * to `ListInspectTemplates`. - * @type int $page_size - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * @type string $order_by - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the template was created. - * - `update_time`: corresponds to the time the template was last updated. - * - `name`: corresponds to the template's name. - * - `display_name`: corresponds to the template's display name. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListInspectTemplates`. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListInspectTemplates`. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the template was created. - * - `update_time`: corresponds to the time the template was last updated. - * - `name`: corresponds to the template's name. - * - `display_name`: corresponds to the template's display name. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the template was created. - * - `update_time`: corresponds to the time the template was last updated. - * - `name`: corresponds to the template's name. - * - `display_name`: corresponds to the template's display name. - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesResponse.php deleted file mode 100644 index eaee73fe1770..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.privacy.dlp.v2.ListInspectTemplatesResponse - */ -class ListInspectTemplatesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of inspectTemplates, up to page_size in ListInspectTemplatesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectTemplate inspect_templates = 1; - */ - private $inspect_templates; - /** - * If the next page is available then the next page token to be used in the - * following ListInspectTemplates request. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InspectTemplate[] $inspect_templates - * List of inspectTemplates, up to page_size in ListInspectTemplatesRequest. - * @type string $next_page_token - * If the next page is available then the next page token to be used in the - * following ListInspectTemplates request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of inspectTemplates, up to page_size in ListInspectTemplatesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectTemplate inspect_templates = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InspectTemplate> - */ - public function getInspectTemplates() - { - return $this->inspect_templates; - } - - /** - * List of inspectTemplates, up to page_size in ListInspectTemplatesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectTemplate inspect_templates = 1; - * @param \Google\Cloud\Dlp\V2\InspectTemplate[] $var - * @return $this - */ - public function setInspectTemplates($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InspectTemplate::class); - $this->inspect_templates = $arr; - - return $this; - } - - /** - * If the next page is available then the next page token to be used in the - * following ListInspectTemplates request. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * If the next page is available then the next page token to be used in the - * following ListInspectTemplates request. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersRequest.php deleted file mode 100644 index 6992b36bba7a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersRequest.php +++ /dev/null @@ -1,472 +0,0 @@ -google.privacy.dlp.v2.ListJobTriggersRequest - */ -class ListJobTriggersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page token to continue retrieval. Comes from the previous call - * to ListJobTriggers. `order_by` field must not - * change for subsequent calls. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Size of the page. This value can be limited by a server. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Comma-separated list of triggeredJob fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the JobTrigger was created. - * - `update_time`: corresponds to the time the JobTrigger was last updated. - * - `last_run_time`: corresponds to the last time the JobTrigger ran. - * - `name`: corresponds to the JobTrigger's name. - * - `display_name`: corresponds to the JobTrigger's display name. - * - `status`: corresponds to JobTrigger's status. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values for inspect triggers: - * - `status` - HEALTHY|PAUSED|CANCELLED - * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - * - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by - * quotation marks. Nanoseconds are ignored. - * - 'error_count' - Number of errors that have occurred while running. - * * The operator must be `=` or `!=` for status and inspected_storage. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * inspected_storage = cloud_storage AND status = HEALTHY - * * inspected_storage = cloud_storage OR inspected_storage = bigquery - * * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) - * * last_run_time > \"2017-12-12T00:00:00+00:00\" - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - */ - protected $filter = ''; - /** - * The type of jobs. Will use `DlpJobType.INSPECT` if not set. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 6; - */ - protected $type = 0; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::projectName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListJobTriggersRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type string $page_token - * Page token to continue retrieval. Comes from the previous call - * to ListJobTriggers. `order_by` field must not - * change for subsequent calls. - * @type int $page_size - * Size of the page. This value can be limited by a server. - * @type string $order_by - * Comma-separated list of triggeredJob fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the JobTrigger was created. - * - `update_time`: corresponds to the time the JobTrigger was last updated. - * - `last_run_time`: corresponds to the last time the JobTrigger ran. - * - `name`: corresponds to the JobTrigger's name. - * - `display_name`: corresponds to the JobTrigger's display name. - * - `status`: corresponds to JobTrigger's status. - * @type string $filter - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values for inspect triggers: - * - `status` - HEALTHY|PAUSED|CANCELLED - * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - * - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by - * quotation marks. Nanoseconds are ignored. - * - 'error_count' - Number of errors that have occurred while running. - * * The operator must be `=` or `!=` for status and inspected_storage. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * inspected_storage = cloud_storage AND status = HEALTHY - * * inspected_storage = cloud_storage OR inspected_storage = bigquery - * * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) - * * last_run_time > \"2017-12-12T00:00:00+00:00\" - * The length of this field should be no more than 500 characters. - * @type int $type - * The type of jobs. Will use `DlpJobType.INSPECT` if not set. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to ListJobTriggers. `order_by` field must not - * change for subsequent calls. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to ListJobTriggers. `order_by` field must not - * change for subsequent calls. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Size of the page. This value can be limited by a server. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Size of the page. This value can be limited by a server. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Comma-separated list of triggeredJob fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the JobTrigger was created. - * - `update_time`: corresponds to the time the JobTrigger was last updated. - * - `last_run_time`: corresponds to the last time the JobTrigger ran. - * - `name`: corresponds to the JobTrigger's name. - * - `display_name`: corresponds to the JobTrigger's display name. - * - `status`: corresponds to JobTrigger's status. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of triggeredJob fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the JobTrigger was created. - * - `update_time`: corresponds to the time the JobTrigger was last updated. - * - `last_run_time`: corresponds to the last time the JobTrigger ran. - * - `name`: corresponds to the JobTrigger's name. - * - `display_name`: corresponds to the JobTrigger's display name. - * - `status`: corresponds to JobTrigger's status. - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values for inspect triggers: - * - `status` - HEALTHY|PAUSED|CANCELLED - * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - * - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by - * quotation marks. Nanoseconds are ignored. - * - 'error_count' - Number of errors that have occurred while running. - * * The operator must be `=` or `!=` for status and inspected_storage. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * inspected_storage = cloud_storage AND status = HEALTHY - * * inspected_storage = cloud_storage OR inspected_storage = bigquery - * * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) - * * last_run_time > \"2017-12-12T00:00:00+00:00\" - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values for inspect triggers: - * - `status` - HEALTHY|PAUSED|CANCELLED - * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - * - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by - * quotation marks. Nanoseconds are ignored. - * - 'error_count' - Number of errors that have occurred while running. - * * The operator must be `=` or `!=` for status and inspected_storage. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * inspected_storage = cloud_storage AND status = HEALTHY - * * inspected_storage = cloud_storage OR inspected_storage = bigquery - * * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) - * * last_run_time > \"2017-12-12T00:00:00+00:00\" - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The type of jobs. Will use `DlpJobType.INSPECT` if not set. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 6; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of jobs. Will use `DlpJobType.INSPECT` if not set. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 6; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DlpJobType::class); - $this->type = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersResponse.php deleted file mode 100644 index 835380961f88..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.privacy.dlp.v2.ListJobTriggersResponse - */ -class ListJobTriggersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of triggeredJobs, up to page_size in ListJobTriggersRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger job_triggers = 1; - */ - private $job_triggers; - /** - * If the next page is available then this value is the next page token to be - * used in the following ListJobTriggers request. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\JobTrigger[] $job_triggers - * List of triggeredJobs, up to page_size in ListJobTriggersRequest. - * @type string $next_page_token - * If the next page is available then this value is the next page token to be - * used in the following ListJobTriggers request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of triggeredJobs, up to page_size in ListJobTriggersRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger job_triggers = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\JobTrigger> - */ - public function getJobTriggers() - { - return $this->job_triggers; - } - - /** - * List of triggeredJobs, up to page_size in ListJobTriggersRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger job_triggers = 1; - * @param \Google\Cloud\Dlp\V2\JobTrigger[] $var - * @return $this - */ - public function setJobTriggers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\JobTrigger::class); - $this->job_triggers = $arr; - - return $this; - } - - /** - * If the next page is available then this value is the next page token to be - * used in the following ListJobTriggers request. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * If the next page is available then this value is the next page token to be - * used in the following ListJobTriggers request. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesRequest.php deleted file mode 100644 index 19424895f0a4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesRequest.php +++ /dev/null @@ -1,353 +0,0 @@ -google.privacy.dlp.v2.ListProjectDataProfilesRequest - */ -class ListProjectDataProfilesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. organizations/{org_id}/locations/{loc_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id` - * * `sensitivity_level desc` - * Supported fields: - * - `project_id`: Google Cloud project ID - * - `sensitivity_level`: How sensitive the data in a project is, at most - * - `data_risk_level`: How much risk is associated with this data - * - `profile_last_generated`: Date and time (in epoch seconds) the profile - * was last generated - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields: - * - `project_id`: the Google Cloud project ID - * - `sensitivity_level`: HIGH|MODERATE|LOW - * - `data_risk_level`: HIGH|MODERATE|LOW - * - `status_code`: an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * - `profile_last_generated`: Date and time the profile was last - * generated - * * The operator must be `=` or `!=`. The `profile_last_generated` filter - * also supports `<` and `>`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - */ - protected $filter = ''; - - /** - * @param string $parent Required. organizations/{org_id}/locations/{loc_id} - * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListProjectDataProfilesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. organizations/{org_id}/locations/{loc_id} - * @type string $page_token - * Page token to continue retrieval. - * @type int $page_size - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * @type string $order_by - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id` - * * `sensitivity_level desc` - * Supported fields: - * - `project_id`: Google Cloud project ID - * - `sensitivity_level`: How sensitive the data in a project is, at most - * - `data_risk_level`: How much risk is associated with this data - * - `profile_last_generated`: Date and time (in epoch seconds) the profile - * was last generated - * @type string $filter - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields: - * - `project_id`: the Google Cloud project ID - * - `sensitivity_level`: HIGH|MODERATE|LOW - * - `data_risk_level`: HIGH|MODERATE|LOW - * - `status_code`: an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * - `profile_last_generated`: Date and time the profile was last - * generated - * * The operator must be `=` or `!=`. The `profile_last_generated` filter - * also supports `<` and `>`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` - * The length of this field should be no more than 500 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. organizations/{org_id}/locations/{loc_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. organizations/{org_id}/locations/{loc_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id` - * * `sensitivity_level desc` - * Supported fields: - * - `project_id`: Google Cloud project ID - * - `sensitivity_level`: How sensitive the data in a project is, at most - * - `data_risk_level`: How much risk is associated with this data - * - `profile_last_generated`: Date and time (in epoch seconds) the profile - * was last generated - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id` - * * `sensitivity_level desc` - * Supported fields: - * - `project_id`: Google Cloud project ID - * - `sensitivity_level`: How sensitive the data in a project is, at most - * - `data_risk_level`: How much risk is associated with this data - * - `profile_last_generated`: Date and time (in epoch seconds) the profile - * was last generated - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields: - * - `project_id`: the Google Cloud project ID - * - `sensitivity_level`: HIGH|MODERATE|LOW - * - `data_risk_level`: HIGH|MODERATE|LOW - * - `status_code`: an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * - `profile_last_generated`: Date and time the profile was last - * generated - * * The operator must be `=` or `!=`. The `profile_last_generated` filter - * also supports `<` and `>`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields: - * - `project_id`: the Google Cloud project ID - * - `sensitivity_level`: HIGH|MODERATE|LOW - * - `data_risk_level`: HIGH|MODERATE|LOW - * - `status_code`: an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * - `profile_last_generated`: Date and time the profile was last - * generated - * * The operator must be `=` or `!=`. The `profile_last_generated` filter - * also supports `<` and `>`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesResponse.php deleted file mode 100644 index 9b6a614941c2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.ListProjectDataProfilesResponse - */ -class ListProjectDataProfilesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; - */ - private $project_data_profiles; - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\ProjectDataProfile[] $project_data_profiles - * List of data profiles. - * @type string $next_page_token - * The next page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\ProjectDataProfile> - */ - public function getProjectDataProfiles() - { - return $this->project_data_profiles; - } - - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; - * @param \Google\Cloud\Dlp\V2\ProjectDataProfile[] $var - * @return $this - */ - public function setProjectDataProfiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ProjectDataProfile::class); - $this->project_data_profiles = $arr; - - return $this; - } - - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesRequest.php deleted file mode 100644 index a3980c1c2404..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesRequest.php +++ /dev/null @@ -1,324 +0,0 @@ -google.privacy.dlp.v2.ListStoredInfoTypesRequest - */ -class ListStoredInfoTypesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListStoredInfoTypes`. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc, display_name, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the most recent version of the - * resource was created. - * - `state`: corresponds to the state of the resource. - * - `name`: corresponds to resource name. - * - `display_name`: corresponds to info type's display name. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListStoredInfoTypesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type string $page_token - * Page token to continue retrieval. Comes from the previous call - * to `ListStoredInfoTypes`. - * @type int $page_size - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * @type string $order_by - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc, display_name, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the most recent version of the - * resource was created. - * - `state`: corresponds to the state of the resource. - * - `name`: corresponds to resource name. - * - `display_name`: corresponds to info type's display name. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListStoredInfoTypes`. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListStoredInfoTypes`. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc, display_name, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the most recent version of the - * resource was created. - * - `state`: corresponds to the state of the resource. - * - `name`: corresponds to resource name. - * - `display_name`: corresponds to info type's display name. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc, display_name, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the most recent version of the - * resource was created. - * - `state`: corresponds to the state of the resource. - * - `name`: corresponds to resource name. - * - `display_name`: corresponds to info type's display name. - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesResponse.php deleted file mode 100644 index b39e6027aa3e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.privacy.dlp.v2.ListStoredInfoTypesResponse - */ -class ListStoredInfoTypesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoType stored_info_types = 1; - */ - private $stored_info_types; - /** - * If the next page is available then the next page token to be used - * in the following ListStoredInfoTypes request. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\StoredInfoType[] $stored_info_types - * List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest. - * @type string $next_page_token - * If the next page is available then the next page token to be used - * in the following ListStoredInfoTypes request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoType stored_info_types = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\StoredInfoType> - */ - public function getStoredInfoTypes() - { - return $this->stored_info_types; - } - - /** - * List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoType stored_info_types = 1; - * @param \Google\Cloud\Dlp\V2\StoredInfoType[] $var - * @return $this - */ - public function setStoredInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\StoredInfoType::class); - $this->stored_info_types = $arr; - - return $this; - } - - /** - * If the next page is available then the next page token to be used - * in the following ListStoredInfoTypes request. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * If the next page is available then the next page token to be used - * in the following ListStoredInfoTypes request. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesRequest.php deleted file mode 100644 index 8c470f32e6ba..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesRequest.php +++ /dev/null @@ -1,403 +0,0 @@ -google.privacy.dlp.v2.ListTableDataProfilesRequest - */ -class ListTableDataProfilesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `table_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `dataset_id`: The ID of a BigQuery dataset. - * - `table_id`: The ID of a BigQuery table. - * - `sensitivity_level`: How sensitive the data in a table is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - `last_modified`: The last time the resource was modified. - * - `resource_visibility`: Visibility restriction for this resource. - * - `row_count`: Number of rows in this resource. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields: - * - `project_id`: The Google Cloud project ID - * - `dataset_id`: The BigQuery dataset ID - * - `table_id`: The ID of the BigQuery table - * - `sensitivity_level`: HIGH|MODERATE|LOW - * - `data_risk_level`: HIGH|MODERATE|LOW - * - `resource_visibility`: PUBLIC|RESTRICTED - * - `status_code`: an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * - `profile_last_generated`: Date and time the profile was last - * generated - * * The operator must be `=` or `!=`. The `profile_last_generated` filter - * also supports `<` and `>`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `project_id = 12345 AND resource_visibility = PUBLIC` - * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. Please see - * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListTableDataProfilesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * @type string $page_token - * Page token to continue retrieval. - * @type int $page_size - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * @type string $order_by - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `table_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `dataset_id`: The ID of a BigQuery dataset. - * - `table_id`: The ID of a BigQuery table. - * - `sensitivity_level`: How sensitive the data in a table is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - `last_modified`: The last time the resource was modified. - * - `resource_visibility`: Visibility restriction for this resource. - * - `row_count`: Number of rows in this resource. - * @type string $filter - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields: - * - `project_id`: The Google Cloud project ID - * - `dataset_id`: The BigQuery dataset ID - * - `table_id`: The ID of the BigQuery table - * - `sensitivity_level`: HIGH|MODERATE|LOW - * - `data_risk_level`: HIGH|MODERATE|LOW - * - `resource_visibility`: PUBLIC|RESTRICTED - * - `status_code`: an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * - `profile_last_generated`: Date and time the profile was last - * generated - * * The operator must be `=` or `!=`. The `profile_last_generated` filter - * also supports `<` and `>`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `project_id = 12345 AND resource_visibility = PUBLIC` - * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` - * The length of this field should be no more than 500 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `table_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `dataset_id`: The ID of a BigQuery dataset. - * - `table_id`: The ID of a BigQuery table. - * - `sensitivity_level`: How sensitive the data in a table is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - `last_modified`: The last time the resource was modified. - * - `resource_visibility`: Visibility restriction for this resource. - * - `row_count`: Number of rows in this resource. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `table_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `dataset_id`: The ID of a BigQuery dataset. - * - `table_id`: The ID of a BigQuery table. - * - `sensitivity_level`: How sensitive the data in a table is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - `last_modified`: The last time the resource was modified. - * - `resource_visibility`: Visibility restriction for this resource. - * - `row_count`: Number of rows in this resource. - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields: - * - `project_id`: The Google Cloud project ID - * - `dataset_id`: The BigQuery dataset ID - * - `table_id`: The ID of the BigQuery table - * - `sensitivity_level`: HIGH|MODERATE|LOW - * - `data_risk_level`: HIGH|MODERATE|LOW - * - `resource_visibility`: PUBLIC|RESTRICTED - * - `status_code`: an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * - `profile_last_generated`: Date and time the profile was last - * generated - * * The operator must be `=` or `!=`. The `profile_last_generated` filter - * also supports `<` and `>`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `project_id = 12345 AND resource_visibility = PUBLIC` - * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields: - * - `project_id`: The Google Cloud project ID - * - `dataset_id`: The BigQuery dataset ID - * - `table_id`: The ID of the BigQuery table - * - `sensitivity_level`: HIGH|MODERATE|LOW - * - `data_risk_level`: HIGH|MODERATE|LOW - * - `resource_visibility`: PUBLIC|RESTRICTED - * - `status_code`: an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * - `profile_last_generated`: Date and time the profile was last - * generated - * * The operator must be `=` or `!=`. The `profile_last_generated` filter - * also supports `<` and `>`. - * The syntax is based on https://google.aip.dev/160. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `project_id = 12345 AND resource_visibility = PUBLIC` - * * `profile_last_generated < "2025-01-01T00:00:00.000Z"` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesResponse.php deleted file mode 100644 index 9729219525c2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.ListTableDataProfilesResponse - */ -class ListTableDataProfilesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; - */ - private $table_data_profiles; - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\TableDataProfile[] $table_data_profiles - * List of data profiles. - * @type string $next_page_token - * The next page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\TableDataProfile> - */ - public function getTableDataProfiles() - { - return $this->table_data_profiles; - } - - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; - * @param \Google\Cloud\Dlp\V2\TableDataProfile[] $var - * @return $this - */ - public function setTableDataProfiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\TableDataProfile::class); - $this->table_data_profiles = $arr; - - return $this; - } - - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Location.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Location.php deleted file mode 100644 index f487ed0ecc74..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Location.php +++ /dev/null @@ -1,227 +0,0 @@ -google.privacy.dlp.v2.Location - */ -class Location extends \Google\Protobuf\Internal\Message -{ - /** - * Zero-based byte offsets delimiting the finding. - * These are relative to the finding's containing element. - * Note that when the content is not textual, this references - * the UTF-8 encoded textual representation of the content. - * Omitted if content is an image. - * - * Generated from protobuf field .google.privacy.dlp.v2.Range byte_range = 1; - */ - protected $byte_range = null; - /** - * Unicode character offsets delimiting the finding. - * These are relative to the finding's containing element. - * Provided when the content is text. - * - * Generated from protobuf field .google.privacy.dlp.v2.Range codepoint_range = 2; - */ - protected $codepoint_range = null; - /** - * List of nested objects pointing to the precise location of the finding - * within the file or record. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7; - */ - private $content_locations; - /** - * Information about the container where this finding occurred, if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.Container container = 8; - */ - protected $container = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Range $byte_range - * Zero-based byte offsets delimiting the finding. - * These are relative to the finding's containing element. - * Note that when the content is not textual, this references - * the UTF-8 encoded textual representation of the content. - * Omitted if content is an image. - * @type \Google\Cloud\Dlp\V2\Range $codepoint_range - * Unicode character offsets delimiting the finding. - * These are relative to the finding's containing element. - * Provided when the content is text. - * @type \Google\Cloud\Dlp\V2\ContentLocation[] $content_locations - * List of nested objects pointing to the precise location of the finding - * within the file or record. - * @type \Google\Cloud\Dlp\V2\Container $container - * Information about the container where this finding occurred, if available. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Zero-based byte offsets delimiting the finding. - * These are relative to the finding's containing element. - * Note that when the content is not textual, this references - * the UTF-8 encoded textual representation of the content. - * Omitted if content is an image. - * - * Generated from protobuf field .google.privacy.dlp.v2.Range byte_range = 1; - * @return \Google\Cloud\Dlp\V2\Range|null - */ - public function getByteRange() - { - return $this->byte_range; - } - - public function hasByteRange() - { - return isset($this->byte_range); - } - - public function clearByteRange() - { - unset($this->byte_range); - } - - /** - * Zero-based byte offsets delimiting the finding. - * These are relative to the finding's containing element. - * Note that when the content is not textual, this references - * the UTF-8 encoded textual representation of the content. - * Omitted if content is an image. - * - * Generated from protobuf field .google.privacy.dlp.v2.Range byte_range = 1; - * @param \Google\Cloud\Dlp\V2\Range $var - * @return $this - */ - public function setByteRange($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Range::class); - $this->byte_range = $var; - - return $this; - } - - /** - * Unicode character offsets delimiting the finding. - * These are relative to the finding's containing element. - * Provided when the content is text. - * - * Generated from protobuf field .google.privacy.dlp.v2.Range codepoint_range = 2; - * @return \Google\Cloud\Dlp\V2\Range|null - */ - public function getCodepointRange() - { - return $this->codepoint_range; - } - - public function hasCodepointRange() - { - return isset($this->codepoint_range); - } - - public function clearCodepointRange() - { - unset($this->codepoint_range); - } - - /** - * Unicode character offsets delimiting the finding. - * These are relative to the finding's containing element. - * Provided when the content is text. - * - * Generated from protobuf field .google.privacy.dlp.v2.Range codepoint_range = 2; - * @param \Google\Cloud\Dlp\V2\Range $var - * @return $this - */ - public function setCodepointRange($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Range::class); - $this->codepoint_range = $var; - - return $this; - } - - /** - * List of nested objects pointing to the precise location of the finding - * within the file or record. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7; - * @return RepeatedField<\Google\Cloud\Dlp\V2\ContentLocation> - */ - public function getContentLocations() - { - return $this->content_locations; - } - - /** - * List of nested objects pointing to the precise location of the finding - * within the file or record. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7; - * @param \Google\Cloud\Dlp\V2\ContentLocation[] $var - * @return $this - */ - public function setContentLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ContentLocation::class); - $this->content_locations = $arr; - - return $this; - } - - /** - * Information about the container where this finding occurred, if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.Container container = 8; - * @return \Google\Cloud\Dlp\V2\Container|null - */ - public function getContainer() - { - return $this->container; - } - - public function hasContainer() - { - return isset($this->container); - } - - public function clearContainer() - { - unset($this->container); - } - - /** - * Information about the container where this finding occurred, if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.Container container = 8; - * @param \Google\Cloud\Dlp\V2\Container $var - * @return $this - */ - public function setContainer($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Container::class); - $this->container = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LocationSupport.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LocationSupport.php deleted file mode 100644 index 651e5f4aaac8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LocationSupport.php +++ /dev/null @@ -1,109 +0,0 @@ -google.privacy.dlp.v2.LocationSupport - */ -class LocationSupport extends \Google\Protobuf\Internal\Message -{ - /** - * The current scope for location on this feature. This may expand over time. - * - * Generated from protobuf field .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1; - */ - protected $regionalization_scope = 0; - /** - * Specific locations where the feature may be used. - * Examples: us-central1, us, asia, global - * If scope is ANY_LOCATION, no regions will be listed. - * - * Generated from protobuf field repeated string locations = 2; - */ - private $locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $regionalization_scope - * The current scope for location on this feature. This may expand over time. - * @type string[] $locations - * Specific locations where the feature may be used. - * Examples: us-central1, us, asia, global - * If scope is ANY_LOCATION, no regions will be listed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The current scope for location on this feature. This may expand over time. - * - * Generated from protobuf field .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1; - * @return int - */ - public function getRegionalizationScope() - { - return $this->regionalization_scope; - } - - /** - * The current scope for location on this feature. This may expand over time. - * - * Generated from protobuf field .google.privacy.dlp.v2.LocationSupport.RegionalizationScope regionalization_scope = 1; - * @param int $var - * @return $this - */ - public function setRegionalizationScope($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\LocationSupport\RegionalizationScope::class); - $this->regionalization_scope = $var; - - return $this; - } - - /** - * Specific locations where the feature may be used. - * Examples: us-central1, us, asia, global - * If scope is ANY_LOCATION, no regions will be listed. - * - * Generated from protobuf field repeated string locations = 2; - * @return RepeatedField - */ - public function getLocations() - { - return $this->locations; - } - - /** - * Specific locations where the feature may be used. - * Examples: us-central1, us, asia, global - * If scope is ANY_LOCATION, no regions will be listed. - * - * Generated from protobuf field repeated string locations = 2; - * @param string[] $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LocationSupport/RegionalizationScope.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LocationSupport/RegionalizationScope.php deleted file mode 100644 index 384cf404a06c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LocationSupport/RegionalizationScope.php +++ /dev/null @@ -1,61 +0,0 @@ -google.privacy.dlp.v2.LocationSupport.RegionalizationScope - */ -class RegionalizationScope -{ - /** - * Invalid. - * - * Generated from protobuf enum REGIONALIZATION_SCOPE_UNSPECIFIED = 0; - */ - const REGIONALIZATION_SCOPE_UNSPECIFIED = 0; - /** - * Feature may be used with one or more regions. See locations for details. - * - * Generated from protobuf enum REGIONAL = 1; - */ - const REGIONAL = 1; - /** - * Feature may be used anywhere. Default value. - * - * Generated from protobuf enum ANY_LOCATION = 2; - */ - const ANY_LOCATION = 2; - - private static $valueToName = [ - self::REGIONALIZATION_SCOPE_UNSPECIFIED => 'REGIONALIZATION_SCOPE_UNSPECIFIED', - self::REGIONAL => 'REGIONAL', - self::ANY_LOCATION => 'ANY_LOCATION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Manual.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Manual.php deleted file mode 100644 index 885487152c04..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Manual.php +++ /dev/null @@ -1,34 +0,0 @@ -google.privacy.dlp.v2.Manual - */ -class Manual extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MatchingType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MatchingType.php deleted file mode 100644 index 038fc392d990..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MatchingType.php +++ /dev/null @@ -1,93 +0,0 @@ -google.privacy.dlp.v2.MatchingType - */ -class MatchingType -{ - /** - * Invalid. - * - * Generated from protobuf enum MATCHING_TYPE_UNSPECIFIED = 0; - */ - const MATCHING_TYPE_UNSPECIFIED = 0; - /** - * Full match. - * - Dictionary: join of Dictionary results matched the complete finding quote - * - Regex: all regex matches fill a finding quote from start to end - * - Exclude infoType: completely inside affecting infoTypes findings - * - * Generated from protobuf enum MATCHING_TYPE_FULL_MATCH = 1; - */ - const MATCHING_TYPE_FULL_MATCH = 1; - /** - * Partial match. - * - Dictionary: at least one of the tokens in the finding matches - * - Regex: substring of the finding matches - * - Exclude infoType: intersects with affecting infoTypes findings - * - * Generated from protobuf enum MATCHING_TYPE_PARTIAL_MATCH = 2; - */ - const MATCHING_TYPE_PARTIAL_MATCH = 2; - /** - * Inverse match. - * - Dictionary: no tokens in the finding match the dictionary - * - Regex: finding doesn't match the regex - * - Exclude infoType: no intersection with affecting infoTypes findings - * - * Generated from protobuf enum MATCHING_TYPE_INVERSE_MATCH = 3; - */ - const MATCHING_TYPE_INVERSE_MATCH = 3; - /** - * Rule-specific match. - * The matching logic is based on the specific rule being used. This is - * required for rules where the matching behavior is not a simple string - * comparison (e.g., image containment). This matching type can only be - * used with the `ExcludeByImageFindings` rule. - * - Exclude by image findings: The matching logic is defined within - * `ExcludeByImageFindings` based on spatial relationships between bounding - * boxes. - * - * Generated from protobuf enum MATCHING_TYPE_RULE_SPECIFIC = 4; - */ - const MATCHING_TYPE_RULE_SPECIFIC = 4; - - private static $valueToName = [ - self::MATCHING_TYPE_UNSPECIFIED => 'MATCHING_TYPE_UNSPECIFIED', - self::MATCHING_TYPE_FULL_MATCH => 'MATCHING_TYPE_FULL_MATCH', - self::MATCHING_TYPE_PARTIAL_MATCH => 'MATCHING_TYPE_PARTIAL_MATCH', - self::MATCHING_TYPE_INVERSE_MATCH => 'MATCHING_TYPE_INVERSE_MATCH', - self::MATCHING_TYPE_RULE_SPECIFIC => 'MATCHING_TYPE_RULE_SPECIFIC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataLocation.php deleted file mode 100644 index 938fe16fa259..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataLocation.php +++ /dev/null @@ -1,142 +0,0 @@ -google.privacy.dlp.v2.MetadataLocation - */ -class MetadataLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Type of metadata containing the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.MetadataType type = 1; - */ - protected $type = 0; - protected $label; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Type of metadata containing the finding. - * @type \Google\Cloud\Dlp\V2\StorageMetadataLabel $storage_label - * Storage metadata. - * @type \Google\Cloud\Dlp\V2\KeyValueMetadataLabel $key_value_metadata_label - * Metadata key that contains the finding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Type of metadata containing the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.MetadataType type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of metadata containing the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.MetadataType type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\MetadataType::class); - $this->type = $var; - - return $this; - } - - /** - * Storage metadata. - * - * Generated from protobuf field .google.privacy.dlp.v2.StorageMetadataLabel storage_label = 3; - * @return \Google\Cloud\Dlp\V2\StorageMetadataLabel|null - */ - public function getStorageLabel() - { - return $this->readOneof(3); - } - - public function hasStorageLabel() - { - return $this->hasOneof(3); - } - - /** - * Storage metadata. - * - * Generated from protobuf field .google.privacy.dlp.v2.StorageMetadataLabel storage_label = 3; - * @param \Google\Cloud\Dlp\V2\StorageMetadataLabel $var - * @return $this - */ - public function setStorageLabel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StorageMetadataLabel::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Metadata key that contains the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.KeyValueMetadataLabel key_value_metadata_label = 4; - * @return \Google\Cloud\Dlp\V2\KeyValueMetadataLabel|null - */ - public function getKeyValueMetadataLabel() - { - return $this->readOneof(4); - } - - public function hasKeyValueMetadataLabel() - { - return $this->hasOneof(4); - } - - /** - * Metadata key that contains the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.KeyValueMetadataLabel key_value_metadata_label = 4; - * @param \Google\Cloud\Dlp\V2\KeyValueMetadataLabel $var - * @return $this - */ - public function setKeyValueMetadataLabel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\KeyValueMetadataLabel::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getLabel() - { - return $this->whichOneof("label"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataType.php deleted file mode 100644 index c734f4da48df..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.MetadataType - */ -class MetadataType -{ - /** - * Unused - * - * Generated from protobuf enum METADATATYPE_UNSPECIFIED = 0; - */ - const METADATATYPE_UNSPECIFIED = 0; - /** - * General file metadata provided by Cloud Storage. - * - * Generated from protobuf enum STORAGE_METADATA = 2; - */ - const STORAGE_METADATA = 2; - /** - * Metadata extracted from the files. - * - * Generated from protobuf enum CONTENT_METADATA = 3; - */ - const CONTENT_METADATA = 3; - /** - * Metadata provided by the client. - * - * Generated from protobuf enum CLIENT_PROVIDED_METADATA = 4; - */ - const CLIENT_PROVIDED_METADATA = 4; - - private static $valueToName = [ - self::METADATATYPE_UNSPECIFIED => 'METADATATYPE_UNSPECIFIED', - self::STORAGE_METADATA => 'STORAGE_METADATA', - self::CONTENT_METADATA => 'CONTENT_METADATA', - self::CLIENT_PROVIDED_METADATA => 'CLIENT_PROVIDED_METADATA', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/NullPercentageLevel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/NullPercentageLevel.php deleted file mode 100644 index bcd45432e06a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/NullPercentageLevel.php +++ /dev/null @@ -1,76 +0,0 @@ -google.privacy.dlp.v2.NullPercentageLevel - */ -class NullPercentageLevel -{ - /** - * Unused. - * - * Generated from protobuf enum NULL_PERCENTAGE_LEVEL_UNSPECIFIED = 0; - */ - const NULL_PERCENTAGE_LEVEL_UNSPECIFIED = 0; - /** - * Very few null entries. - * - * Generated from protobuf enum NULL_PERCENTAGE_VERY_LOW = 1; - */ - const NULL_PERCENTAGE_VERY_LOW = 1; - /** - * Some null entries. - * - * Generated from protobuf enum NULL_PERCENTAGE_LOW = 2; - */ - const NULL_PERCENTAGE_LOW = 2; - /** - * A few null entries. - * - * Generated from protobuf enum NULL_PERCENTAGE_MEDIUM = 3; - */ - const NULL_PERCENTAGE_MEDIUM = 3; - /** - * A lot of null entries. - * - * Generated from protobuf enum NULL_PERCENTAGE_HIGH = 4; - */ - const NULL_PERCENTAGE_HIGH = 4; - - private static $valueToName = [ - self::NULL_PERCENTAGE_LEVEL_UNSPECIFIED => 'NULL_PERCENTAGE_LEVEL_UNSPECIFIED', - self::NULL_PERCENTAGE_VERY_LOW => 'NULL_PERCENTAGE_VERY_LOW', - self::NULL_PERCENTAGE_LOW => 'NULL_PERCENTAGE_LOW', - self::NULL_PERCENTAGE_MEDIUM => 'NULL_PERCENTAGE_MEDIUM', - self::NULL_PERCENTAGE_HIGH => 'NULL_PERCENTAGE_HIGH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation.php deleted file mode 100644 index a05c00ee19ba..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation - */ -class OtherCloudDiscoveryStartingLocation extends \Google\Protobuf\Internal\Message -{ - protected $location; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation\AwsDiscoveryStartingLocation $aws_location - * The AWS starting location for discovery. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The AWS starting location for discovery. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation.AwsDiscoveryStartingLocation aws_location = 1; - * @return \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation\AwsDiscoveryStartingLocation|null - */ - public function getAwsLocation() - { - return $this->readOneof(1); - } - - public function hasAwsLocation() - { - return $this->hasOneof(1); - } - - /** - * The AWS starting location for discovery. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation.AwsDiscoveryStartingLocation aws_location = 1; - * @param \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation\AwsDiscoveryStartingLocation $var - * @return $this - */ - public function setAwsLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation\AwsDiscoveryStartingLocation::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getLocation() - { - return $this->whichOneof("location"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation/AwsDiscoveryStartingLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation/AwsDiscoveryStartingLocation.php deleted file mode 100644 index 893aa4b137ca..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation/AwsDiscoveryStartingLocation.php +++ /dev/null @@ -1,120 +0,0 @@ -google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation.AwsDiscoveryStartingLocation - */ -class AwsDiscoveryStartingLocation extends \Google\Protobuf\Internal\Message -{ - protected $scope; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $account_id - * The AWS account ID that this discovery config applies to. - * Within an AWS organization, you can find the AWS account ID inside an - * AWS account ARN. Example: - * arn:{partition}:organizations::{management_account_id}:account/{org_id}/{account_id} - * @type bool $all_asset_inventory_assets - * All AWS assets stored in Asset Inventory that didn't match other AWS - * discovery configs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The AWS account ID that this discovery config applies to. - * Within an AWS organization, you can find the AWS account ID inside an - * AWS account ARN. Example: - * arn:{partition}:organizations::{management_account_id}:account/{org_id}/{account_id} - * - * Generated from protobuf field string account_id = 2; - * @return string - */ - public function getAccountId() - { - return $this->readOneof(2); - } - - public function hasAccountId() - { - return $this->hasOneof(2); - } - - /** - * The AWS account ID that this discovery config applies to. - * Within an AWS organization, you can find the AWS account ID inside an - * AWS account ARN. Example: - * arn:{partition}:organizations::{management_account_id}:account/{org_id}/{account_id} - * - * Generated from protobuf field string account_id = 2; - * @param string $var - * @return $this - */ - public function setAccountId($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * All AWS assets stored in Asset Inventory that didn't match other AWS - * discovery configs. - * - * Generated from protobuf field bool all_asset_inventory_assets = 3; - * @return bool - */ - public function getAllAssetInventoryAssets() - { - return $this->readOneof(3); - } - - public function hasAllAssetInventoryAssets() - { - return $this->hasOneof(3); - } - - /** - * All AWS assets stored in Asset Inventory that didn't match other AWS - * discovery configs. - * - * Generated from protobuf field bool all_asset_inventory_assets = 3; - * @param bool $var - * @return $this - */ - public function setAllAssetInventoryAssets($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getScope() - { - return $this->whichOneof("scope"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryTarget.php deleted file mode 100644 index 8e82622922b5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryTarget.php +++ /dev/null @@ -1,265 +0,0 @@ -google.privacy.dlp.v2.OtherCloudDiscoveryTarget - */ -class OtherCloudDiscoveryTarget extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The type of data profiles generated by this discovery target. - * Supported values are: - * * aws/s3/bucket - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_source_type = null; - /** - * Required. The resources that the discovery cadence applies to. The - * first target with a matching filter will be the one to apply to a resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = null; - /** - * Optional. In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $conditions = null; - protected $cadence; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DataSourceType $data_source_type - * Required. The type of data profiles generated by this discovery target. - * Supported values are: - * * aws/s3/bucket - * @type \Google\Cloud\Dlp\V2\DiscoveryOtherCloudFilter $filter - * Required. The resources that the discovery cadence applies to. The - * first target with a matching filter will be the one to apply to a resource. - * @type \Google\Cloud\Dlp\V2\DiscoveryOtherCloudConditions $conditions - * Optional. In addition to matching the filter, these conditions must be true - * before a profile is generated. - * @type \Google\Cloud\Dlp\V2\DiscoveryOtherCloudGenerationCadence $generation_cadence - * How often and when to update data profiles. New resources that match both - * the filter and conditions are scanned as quickly as possible depending on - * system capacity. - * @type \Google\Cloud\Dlp\V2\Disabled $disabled - * Disable profiling for resources that match this filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The type of data profiles generated by this discovery target. - * Supported values are: - * * aws/s3/bucket - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\DataSourceType|null - */ - public function getDataSourceType() - { - return $this->data_source_type; - } - - public function hasDataSourceType() - { - return isset($this->data_source_type); - } - - public function clearDataSourceType() - { - unset($this->data_source_type); - } - - /** - * Required. The type of data profiles generated by this discovery target. - * Supported values are: - * * aws/s3/bucket - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\DataSourceType $var - * @return $this - */ - public function setDataSourceType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataSourceType::class); - $this->data_source_type = $var; - - return $this; - } - - /** - * Required. The resources that the discovery cadence applies to. The - * first target with a matching filter will be the one to apply to a resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\DiscoveryOtherCloudFilter|null - */ - public function getFilter() - { - return $this->filter; - } - - public function hasFilter() - { - return isset($this->filter); - } - - public function clearFilter() - { - unset($this->filter); - } - - /** - * Required. The resources that the discovery cadence applies to. The - * first target with a matching filter will be the one to apply to a resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\DiscoveryOtherCloudFilter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryOtherCloudFilter::class); - $this->filter = $var; - - return $this; - } - - /** - * Optional. In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\DiscoveryOtherCloudConditions|null - */ - public function getConditions() - { - return $this->conditions; - } - - public function hasConditions() - { - return isset($this->conditions); - } - - public function clearConditions() - { - unset($this->conditions); - } - - /** - * Optional. In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\DiscoveryOtherCloudConditions $var - * @return $this - */ - public function setConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryOtherCloudConditions::class); - $this->conditions = $var; - - return $this; - } - - /** - * How often and when to update data profiles. New resources that match both - * the filter and conditions are scanned as quickly as possible depending on - * system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4; - * @return \Google\Cloud\Dlp\V2\DiscoveryOtherCloudGenerationCadence|null - */ - public function getGenerationCadence() - { - return $this->readOneof(4); - } - - public function hasGenerationCadence() - { - return $this->hasOneof(4); - } - - /** - * How often and when to update data profiles. New resources that match both - * the filter and conditions are scanned as quickly as possible depending on - * system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4; - * @param \Google\Cloud\Dlp\V2\DiscoveryOtherCloudGenerationCadence $var - * @return $this - */ - public function setGenerationCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryOtherCloudGenerationCadence::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Disable profiling for resources that match this filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 5; - * @return \Google\Cloud\Dlp\V2\Disabled|null - */ - public function getDisabled() - { - return $this->readOneof(5); - } - - public function hasDisabled() - { - return $this->hasOneof(5); - } - - /** - * Disable profiling for resources that match this filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 5; - * @param \Google\Cloud\Dlp\V2\Disabled $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Disabled::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getCadence() - { - return $this->whichOneof("cadence"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceCollection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceCollection.php deleted file mode 100644 index d8fbf11aebb5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceCollection.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.OtherCloudResourceCollection - */ -class OtherCloudResourceCollection extends \Google\Protobuf\Internal\Message -{ - protected $pattern; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\OtherCloudResourceRegexes $include_regexes - * A collection of regular expressions to match a resource against. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A collection of regular expressions to match a resource against. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudResourceRegexes include_regexes = 1; - * @return \Google\Cloud\Dlp\V2\OtherCloudResourceRegexes|null - */ - public function getIncludeRegexes() - { - return $this->readOneof(1); - } - - public function hasIncludeRegexes() - { - return $this->hasOneof(1); - } - - /** - * A collection of regular expressions to match a resource against. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudResourceRegexes include_regexes = 1; - * @param \Google\Cloud\Dlp\V2\OtherCloudResourceRegexes $var - * @return $this - */ - public function setIncludeRegexes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudResourceRegexes::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getPattern() - { - return $this->whichOneof("pattern"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegex.php deleted file mode 100644 index 93024201f072..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegex.php +++ /dev/null @@ -1,78 +0,0 @@ -google.privacy.dlp.v2.OtherCloudResourceRegex - */ -class OtherCloudResourceRegex extends \Google\Protobuf\Internal\Message -{ - protected $resource_regex; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\AmazonS3BucketRegex $amazon_s3_bucket_regex - * Regex for Amazon S3 buckets. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Regex for Amazon S3 buckets. - * - * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3BucketRegex amazon_s3_bucket_regex = 1; - * @return \Google\Cloud\Dlp\V2\AmazonS3BucketRegex|null - */ - public function getAmazonS3BucketRegex() - { - return $this->readOneof(1); - } - - public function hasAmazonS3BucketRegex() - { - return $this->hasOneof(1); - } - - /** - * Regex for Amazon S3 buckets. - * - * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3BucketRegex amazon_s3_bucket_regex = 1; - * @param \Google\Cloud\Dlp\V2\AmazonS3BucketRegex $var - * @return $this - */ - public function setAmazonS3BucketRegex($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AmazonS3BucketRegex::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getResourceRegex() - { - return $this->whichOneof("resource_regex"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegexes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegexes.php deleted file mode 100644 index b87170293ebd..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegexes.php +++ /dev/null @@ -1,80 +0,0 @@ -google.privacy.dlp.v2.OtherCloudResourceRegexes - */ -class OtherCloudResourceRegexes extends \Google\Protobuf\Internal\Message -{ - /** - * A group of regular expression patterns to match against one or more - * resources. - * Maximum of 100 entries. The sum of all regular expression's length can't - * exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherCloudResourceRegex patterns = 1; - */ - private $patterns; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\OtherCloudResourceRegex[] $patterns - * A group of regular expression patterns to match against one or more - * resources. - * Maximum of 100 entries. The sum of all regular expression's length can't - * exceed 10 KiB. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A group of regular expression patterns to match against one or more - * resources. - * Maximum of 100 entries. The sum of all regular expression's length can't - * exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherCloudResourceRegex patterns = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\OtherCloudResourceRegex> - */ - public function getPatterns() - { - return $this->patterns; - } - - /** - * A group of regular expression patterns to match against one or more - * resources. - * Maximum of 100 entries. The sum of all regular expression's length can't - * exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherCloudResourceRegex patterns = 1; - * @param \Google\Cloud\Dlp\V2\OtherCloudResourceRegex[] $var - * @return $this - */ - public function setPatterns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\OtherCloudResourceRegex::class); - $this->patterns = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudSingleResourceReference.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudSingleResourceReference.php deleted file mode 100644 index 8fa4e0e062a6..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudSingleResourceReference.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.OtherCloudSingleResourceReference - */ -class OtherCloudSingleResourceReference extends \Google\Protobuf\Internal\Message -{ - protected $resource; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\AmazonS3Bucket $amazon_s3_bucket - * Amazon S3 bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Amazon S3 bucket. - * - * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3Bucket amazon_s3_bucket = 1; - * @return \Google\Cloud\Dlp\V2\AmazonS3Bucket|null - */ - public function getAmazonS3Bucket() - { - return $this->readOneof(1); - } - - public function hasAmazonS3Bucket() - { - return $this->hasOneof(1); - } - - /** - * Amazon S3 bucket. - * - * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3Bucket amazon_s3_bucket = 1; - * @param \Google\Cloud\Dlp\V2\AmazonS3Bucket $var - * @return $this - */ - public function setAmazonS3Bucket($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AmazonS3Bucket::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getResource() - { - return $this->whichOneof("resource"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherInfoTypeSummary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherInfoTypeSummary.php deleted file mode 100644 index 221e371249db..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherInfoTypeSummary.php +++ /dev/null @@ -1,153 +0,0 @@ -google.privacy.dlp.v2.OtherInfoTypeSummary - */ -class OtherInfoTypeSummary extends \Google\Protobuf\Internal\Message -{ - /** - * The other infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - */ - protected $info_type = null; - /** - * Approximate percentage of non-null rows that contained data detected by - * this infotype. - * - * Generated from protobuf field int32 estimated_prevalence = 2; - */ - protected $estimated_prevalence = 0; - /** - * Whether this infoType was excluded from sensitivity and risk analysis due - * to factors such as low prevalence (subject to change). - * - * Generated from protobuf field bool excluded_from_analysis = 3; - */ - protected $excluded_from_analysis = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * The other infoType. - * @type int $estimated_prevalence - * Approximate percentage of non-null rows that contained data detected by - * this infotype. - * @type bool $excluded_from_analysis - * Whether this infoType was excluded from sensitivity and risk analysis due - * to factors such as low prevalence (subject to change). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The other infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * The other infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - - /** - * Approximate percentage of non-null rows that contained data detected by - * this infotype. - * - * Generated from protobuf field int32 estimated_prevalence = 2; - * @return int - */ - public function getEstimatedPrevalence() - { - return $this->estimated_prevalence; - } - - /** - * Approximate percentage of non-null rows that contained data detected by - * this infotype. - * - * Generated from protobuf field int32 estimated_prevalence = 2; - * @param int $var - * @return $this - */ - public function setEstimatedPrevalence($var) - { - GPBUtil::checkInt32($var); - $this->estimated_prevalence = $var; - - return $this; - } - - /** - * Whether this infoType was excluded from sensitivity and risk analysis due - * to factors such as low prevalence (subject to change). - * - * Generated from protobuf field bool excluded_from_analysis = 3; - * @return bool - */ - public function getExcludedFromAnalysis() - { - return $this->excluded_from_analysis; - } - - /** - * Whether this infoType was excluded from sensitivity and risk analysis due - * to factors such as low prevalence (subject to change). - * - * Generated from protobuf field bool excluded_from_analysis = 3; - * @param bool $var - * @return $this - */ - public function setExcludedFromAnalysis($var) - { - GPBUtil::checkBool($var); - $this->excluded_from_analysis = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig.php deleted file mode 100644 index 5fc1d4a1d785..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig.php +++ /dev/null @@ -1,234 +0,0 @@ -google.privacy.dlp.v2.OutputStorageConfig - */ -class OutputStorageConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Schema used for writing the findings for Inspect jobs. This field is only - * used for Inspect and must be unspecified for Risk jobs. Columns are derived - * from the `Finding` object. If appending to an existing table, any columns - * from the predefined schema that are missing will be added. No columns in - * the existing table will be deleted. - * If unspecified, then all available columns will be used for a new table or - * an (existing) table with no schema, and no changes will be made to an - * existing table that has a schema. - * Only for use with external storage. - * - * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; - */ - protected $output_schema = 0; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTable $table - * Store findings in an existing table or a new table in an existing - * dataset. If table_id is not set a new one will be generated - * for you with the following format: - * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used - * for generating the date details. - * For Inspect, each column in an existing output table must have the same - * name, type, and mode of a field in the `Finding` object. - * For Risk, an existing output table should be the output of a previous - * Risk analysis job run on the same source table, with the same privacy - * metric and quasi-identifiers. Risk jobs that analyze the same table but - * compute a different privacy metric, or use different sets of - * quasi-identifiers, cannot store their results in the same table. - * @type \Google\Cloud\Dlp\V2\CloudStoragePath $storage_path - * Store findings in an existing Cloud Storage bucket. Files will be - * generated with the job ID and file part number as the filename and will - * contain findings in textproto format as - * [SaveToGcsFindingsOutput][google.privacy.dlp.v2.SaveToGcsFindingsOutput]. - * The filename will follow the naming convention `-`. - * Example: `my-job-id-2`. - * Supported for [Inspect jobs][google.privacy.dlp.v2.InspectJobConfig]. The - * bucket must not be the same as the bucket being inspected. If storing - * findings to Cloud Storage, the output schema field should not be set. If - * set, it will be ignored. - * @type int $output_schema - * Schema used for writing the findings for Inspect jobs. This field is only - * used for Inspect and must be unspecified for Risk jobs. Columns are derived - * from the `Finding` object. If appending to an existing table, any columns - * from the predefined schema that are missing will be added. No columns in - * the existing table will be deleted. - * If unspecified, then all available columns will be used for a new table or - * an (existing) table with no schema, and no changes will be made to an - * existing table that has a schema. - * Only for use with external storage. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Store findings in an existing table or a new table in an existing - * dataset. If table_id is not set a new one will be generated - * for you with the following format: - * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used - * for generating the date details. - * For Inspect, each column in an existing output table must have the same - * name, type, and mode of a field in the `Finding` object. - * For Risk, an existing output table should be the output of a previous - * Risk analysis job run on the same source table, with the same privacy - * metric and quasi-identifiers. Risk jobs that analyze the same table but - * compute a different privacy metric, or use different sets of - * quasi-identifiers, cannot store their results in the same table. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getTable() - { - return $this->readOneof(1); - } - - public function hasTable() - { - return $this->hasOneof(1); - } - - /** - * Store findings in an existing table or a new table in an existing - * dataset. If table_id is not set a new one will be generated - * for you with the following format: - * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used - * for generating the date details. - * For Inspect, each column in an existing output table must have the same - * name, type, and mode of a field in the `Finding` object. - * For Risk, an existing output table should be the output of a previous - * Risk analysis job run on the same source table, with the same privacy - * metric and quasi-identifiers. Risk jobs that analyze the same table but - * compute a different privacy metric, or use different sets of - * quasi-identifiers, cannot store their results in the same table. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Store findings in an existing Cloud Storage bucket. Files will be - * generated with the job ID and file part number as the filename and will - * contain findings in textproto format as - * [SaveToGcsFindingsOutput][google.privacy.dlp.v2.SaveToGcsFindingsOutput]. - * The filename will follow the naming convention `-`. - * Example: `my-job-id-2`. - * Supported for [Inspect jobs][google.privacy.dlp.v2.InspectJobConfig]. The - * bucket must not be the same as the bucket being inspected. If storing - * findings to Cloud Storage, the output schema field should not be set. If - * set, it will be ignored. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath storage_path = 5; - * @return \Google\Cloud\Dlp\V2\CloudStoragePath|null - */ - public function getStoragePath() - { - return $this->readOneof(5); - } - - public function hasStoragePath() - { - return $this->hasOneof(5); - } - - /** - * Store findings in an existing Cloud Storage bucket. Files will be - * generated with the job ID and file part number as the filename and will - * contain findings in textproto format as - * [SaveToGcsFindingsOutput][google.privacy.dlp.v2.SaveToGcsFindingsOutput]. - * The filename will follow the naming convention `-`. - * Example: `my-job-id-2`. - * Supported for [Inspect jobs][google.privacy.dlp.v2.InspectJobConfig]. The - * bucket must not be the same as the bucket being inspected. If storing - * findings to Cloud Storage, the output schema field should not be set. If - * set, it will be ignored. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath storage_path = 5; - * @param \Google\Cloud\Dlp\V2\CloudStoragePath $var - * @return $this - */ - public function setStoragePath($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStoragePath::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Schema used for writing the findings for Inspect jobs. This field is only - * used for Inspect and must be unspecified for Risk jobs. Columns are derived - * from the `Finding` object. If appending to an existing table, any columns - * from the predefined schema that are missing will be added. No columns in - * the existing table will be deleted. - * If unspecified, then all available columns will be used for a new table or - * an (existing) table with no schema, and no changes will be made to an - * existing table that has a schema. - * Only for use with external storage. - * - * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; - * @return int - */ - public function getOutputSchema() - { - return $this->output_schema; - } - - /** - * Schema used for writing the findings for Inspect jobs. This field is only - * used for Inspect and must be unspecified for Risk jobs. Columns are derived - * from the `Finding` object. If appending to an existing table, any columns - * from the predefined schema that are missing will be added. No columns in - * the existing table will be deleted. - * If unspecified, then all available columns will be used for a new table or - * an (existing) table with no schema, and no changes will be made to an - * existing table that has a schema. - * Only for use with external storage. - * - * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; - * @param int $var - * @return $this - */ - public function setOutputSchema($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\OutputStorageConfig\OutputSchema::class); - $this->output_schema = $var; - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig/OutputSchema.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig/OutputSchema.php deleted file mode 100644 index 334f12b74344..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig/OutputSchema.php +++ /dev/null @@ -1,84 +0,0 @@ -google.privacy.dlp.v2.OutputStorageConfig.OutputSchema - */ -class OutputSchema -{ - /** - * Unused. - * - * Generated from protobuf enum OUTPUT_SCHEMA_UNSPECIFIED = 0; - */ - const OUTPUT_SCHEMA_UNSPECIFIED = 0; - /** - * Basic schema including only `info_type`, `quote`, `certainty`, and - * `timestamp`. - * - * Generated from protobuf enum BASIC_COLUMNS = 1; - */ - const BASIC_COLUMNS = 1; - /** - * Schema tailored to findings from scanning Cloud Storage. - * - * Generated from protobuf enum GCS_COLUMNS = 2; - */ - const GCS_COLUMNS = 2; - /** - * Schema tailored to findings from scanning Google Datastore. - * - * Generated from protobuf enum DATASTORE_COLUMNS = 3; - */ - const DATASTORE_COLUMNS = 3; - /** - * Schema tailored to findings from scanning Google BigQuery. - * - * Generated from protobuf enum BIG_QUERY_COLUMNS = 4; - */ - const BIG_QUERY_COLUMNS = 4; - /** - * Schema containing all columns. - * - * Generated from protobuf enum ALL_COLUMNS = 5; - */ - const ALL_COLUMNS = 5; - - private static $valueToName = [ - self::OUTPUT_SCHEMA_UNSPECIFIED => 'OUTPUT_SCHEMA_UNSPECIFIED', - self::BASIC_COLUMNS => 'BASIC_COLUMNS', - self::GCS_COLUMNS => 'GCS_COLUMNS', - self::DATASTORE_COLUMNS => 'DATASTORE_COLUMNS', - self::BIG_QUERY_COLUMNS => 'BIG_QUERY_COLUMNS', - self::ALL_COLUMNS => 'ALL_COLUMNS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Overlap.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Overlap.php deleted file mode 100644 index 12d87bbeb655..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Overlap.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.Overlap - */ -class Overlap extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PartitionId.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PartitionId.php deleted file mode 100644 index cf292beaad9b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PartitionId.php +++ /dev/null @@ -1,105 +0,0 @@ -google.privacy.dlp.v2.PartitionId - */ -class PartitionId extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the project to which the entities belong. - * - * Generated from protobuf field string project_id = 2; - */ - protected $project_id = ''; - /** - * If not empty, the ID of the namespace to which the entities belong. - * - * Generated from protobuf field string namespace_id = 4; - */ - protected $namespace_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The ID of the project to which the entities belong. - * @type string $namespace_id - * If not empty, the ID of the namespace to which the entities belong. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the project to which the entities belong. - * - * Generated from protobuf field string project_id = 2; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The ID of the project to which the entities belong. - * - * Generated from protobuf field string project_id = 2; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * If not empty, the ID of the namespace to which the entities belong. - * - * Generated from protobuf field string namespace_id = 4; - * @return string - */ - public function getNamespaceId() - { - return $this->namespace_id; - } - - /** - * If not empty, the ID of the namespace to which the entities belong. - * - * Generated from protobuf field string namespace_id = 4; - * @param string $var - * @return $this - */ - public function setNamespaceId($var) - { - GPBUtil::checkString($var, True); - $this->namespace_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrimitiveTransformation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrimitiveTransformation.php deleted file mode 100644 index 348a6e392b62..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrimitiveTransformation.php +++ /dev/null @@ -1,441 +0,0 @@ -google.privacy.dlp.v2.PrimitiveTransformation - */ -class PrimitiveTransformation extends \Google\Protobuf\Internal\Message -{ - protected $transformation; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\ReplaceValueConfig $replace_config - * Replace with a specified value. - * @type \Google\Cloud\Dlp\V2\RedactConfig $redact_config - * Redact - * @type \Google\Cloud\Dlp\V2\CharacterMaskConfig $character_mask_config - * Mask - * @type \Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig $crypto_replace_ffx_fpe_config - * Ffx-Fpe. Strongly discouraged, consider using CryptoDeterministicConfig - * instead. Fpe is computationally expensive incurring latency costs. - * @type \Google\Cloud\Dlp\V2\FixedSizeBucketingConfig $fixed_size_bucketing_config - * Fixed size bucketing - * @type \Google\Cloud\Dlp\V2\BucketingConfig $bucketing_config - * Bucketing - * @type \Google\Cloud\Dlp\V2\ReplaceWithInfoTypeConfig $replace_with_info_type_config - * Replace with infotype - * @type \Google\Cloud\Dlp\V2\TimePartConfig $time_part_config - * Time extraction - * @type \Google\Cloud\Dlp\V2\CryptoHashConfig $crypto_hash_config - * Crypto - * @type \Google\Cloud\Dlp\V2\DateShiftConfig $date_shift_config - * Date Shift - * @type \Google\Cloud\Dlp\V2\CryptoDeterministicConfig $crypto_deterministic_config - * Deterministic Crypto - * @type \Google\Cloud\Dlp\V2\ReplaceDictionaryConfig $replace_dictionary_config - * Replace with a value randomly drawn (with replacement) from a dictionary. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Replace with a specified value. - * - * Generated from protobuf field .google.privacy.dlp.v2.ReplaceValueConfig replace_config = 1; - * @return \Google\Cloud\Dlp\V2\ReplaceValueConfig|null - */ - public function getReplaceConfig() - { - return $this->readOneof(1); - } - - public function hasReplaceConfig() - { - return $this->hasOneof(1); - } - - /** - * Replace with a specified value. - * - * Generated from protobuf field .google.privacy.dlp.v2.ReplaceValueConfig replace_config = 1; - * @param \Google\Cloud\Dlp\V2\ReplaceValueConfig $var - * @return $this - */ - public function setReplaceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ReplaceValueConfig::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Redact - * - * Generated from protobuf field .google.privacy.dlp.v2.RedactConfig redact_config = 2; - * @return \Google\Cloud\Dlp\V2\RedactConfig|null - */ - public function getRedactConfig() - { - return $this->readOneof(2); - } - - public function hasRedactConfig() - { - return $this->hasOneof(2); - } - - /** - * Redact - * - * Generated from protobuf field .google.privacy.dlp.v2.RedactConfig redact_config = 2; - * @param \Google\Cloud\Dlp\V2\RedactConfig $var - * @return $this - */ - public function setRedactConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RedactConfig::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Mask - * - * Generated from protobuf field .google.privacy.dlp.v2.CharacterMaskConfig character_mask_config = 3; - * @return \Google\Cloud\Dlp\V2\CharacterMaskConfig|null - */ - public function getCharacterMaskConfig() - { - return $this->readOneof(3); - } - - public function hasCharacterMaskConfig() - { - return $this->hasOneof(3); - } - - /** - * Mask - * - * Generated from protobuf field .google.privacy.dlp.v2.CharacterMaskConfig character_mask_config = 3; - * @param \Google\Cloud\Dlp\V2\CharacterMaskConfig $var - * @return $this - */ - public function setCharacterMaskConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CharacterMaskConfig::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Ffx-Fpe. Strongly discouraged, consider using CryptoDeterministicConfig - * instead. Fpe is computationally expensive incurring latency costs. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4; - * @return \Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig|null - */ - public function getCryptoReplaceFfxFpeConfig() - { - return $this->readOneof(4); - } - - public function hasCryptoReplaceFfxFpeConfig() - { - return $this->hasOneof(4); - } - - /** - * Ffx-Fpe. Strongly discouraged, consider using CryptoDeterministicConfig - * instead. Fpe is computationally expensive incurring latency costs. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4; - * @param \Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig $var - * @return $this - */ - public function setCryptoReplaceFfxFpeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Fixed size bucketing - * - * Generated from protobuf field .google.privacy.dlp.v2.FixedSizeBucketingConfig fixed_size_bucketing_config = 5; - * @return \Google\Cloud\Dlp\V2\FixedSizeBucketingConfig|null - */ - public function getFixedSizeBucketingConfig() - { - return $this->readOneof(5); - } - - public function hasFixedSizeBucketingConfig() - { - return $this->hasOneof(5); - } - - /** - * Fixed size bucketing - * - * Generated from protobuf field .google.privacy.dlp.v2.FixedSizeBucketingConfig fixed_size_bucketing_config = 5; - * @param \Google\Cloud\Dlp\V2\FixedSizeBucketingConfig $var - * @return $this - */ - public function setFixedSizeBucketingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FixedSizeBucketingConfig::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Bucketing - * - * Generated from protobuf field .google.privacy.dlp.v2.BucketingConfig bucketing_config = 6; - * @return \Google\Cloud\Dlp\V2\BucketingConfig|null - */ - public function getBucketingConfig() - { - return $this->readOneof(6); - } - - public function hasBucketingConfig() - { - return $this->hasOneof(6); - } - - /** - * Bucketing - * - * Generated from protobuf field .google.privacy.dlp.v2.BucketingConfig bucketing_config = 6; - * @param \Google\Cloud\Dlp\V2\BucketingConfig $var - * @return $this - */ - public function setBucketingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BucketingConfig::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Replace with infotype - * - * Generated from protobuf field .google.privacy.dlp.v2.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7; - * @return \Google\Cloud\Dlp\V2\ReplaceWithInfoTypeConfig|null - */ - public function getReplaceWithInfoTypeConfig() - { - return $this->readOneof(7); - } - - public function hasReplaceWithInfoTypeConfig() - { - return $this->hasOneof(7); - } - - /** - * Replace with infotype - * - * Generated from protobuf field .google.privacy.dlp.v2.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7; - * @param \Google\Cloud\Dlp\V2\ReplaceWithInfoTypeConfig $var - * @return $this - */ - public function setReplaceWithInfoTypeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ReplaceWithInfoTypeConfig::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Time extraction - * - * Generated from protobuf field .google.privacy.dlp.v2.TimePartConfig time_part_config = 8; - * @return \Google\Cloud\Dlp\V2\TimePartConfig|null - */ - public function getTimePartConfig() - { - return $this->readOneof(8); - } - - public function hasTimePartConfig() - { - return $this->hasOneof(8); - } - - /** - * Time extraction - * - * Generated from protobuf field .google.privacy.dlp.v2.TimePartConfig time_part_config = 8; - * @param \Google\Cloud\Dlp\V2\TimePartConfig $var - * @return $this - */ - public function setTimePartConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TimePartConfig::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Crypto - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoHashConfig crypto_hash_config = 9; - * @return \Google\Cloud\Dlp\V2\CryptoHashConfig|null - */ - public function getCryptoHashConfig() - { - return $this->readOneof(9); - } - - public function hasCryptoHashConfig() - { - return $this->hasOneof(9); - } - - /** - * Crypto - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoHashConfig crypto_hash_config = 9; - * @param \Google\Cloud\Dlp\V2\CryptoHashConfig $var - * @return $this - */ - public function setCryptoHashConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoHashConfig::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Date Shift - * - * Generated from protobuf field .google.privacy.dlp.v2.DateShiftConfig date_shift_config = 11; - * @return \Google\Cloud\Dlp\V2\DateShiftConfig|null - */ - public function getDateShiftConfig() - { - return $this->readOneof(11); - } - - public function hasDateShiftConfig() - { - return $this->hasOneof(11); - } - - /** - * Date Shift - * - * Generated from protobuf field .google.privacy.dlp.v2.DateShiftConfig date_shift_config = 11; - * @param \Google\Cloud\Dlp\V2\DateShiftConfig $var - * @return $this - */ - public function setDateShiftConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DateShiftConfig::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Deterministic Crypto - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoDeterministicConfig crypto_deterministic_config = 12; - * @return \Google\Cloud\Dlp\V2\CryptoDeterministicConfig|null - */ - public function getCryptoDeterministicConfig() - { - return $this->readOneof(12); - } - - public function hasCryptoDeterministicConfig() - { - return $this->hasOneof(12); - } - - /** - * Deterministic Crypto - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoDeterministicConfig crypto_deterministic_config = 12; - * @param \Google\Cloud\Dlp\V2\CryptoDeterministicConfig $var - * @return $this - */ - public function setCryptoDeterministicConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoDeterministicConfig::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Replace with a value randomly drawn (with replacement) from a dictionary. - * - * Generated from protobuf field .google.privacy.dlp.v2.ReplaceDictionaryConfig replace_dictionary_config = 13; - * @return \Google\Cloud\Dlp\V2\ReplaceDictionaryConfig|null - */ - public function getReplaceDictionaryConfig() - { - return $this->readOneof(13); - } - - public function hasReplaceDictionaryConfig() - { - return $this->hasOneof(13); - } - - /** - * Replace with a value randomly drawn (with replacement) from a dictionary. - * - * Generated from protobuf field .google.privacy.dlp.v2.ReplaceDictionaryConfig replace_dictionary_config = 13; - * @param \Google\Cloud\Dlp\V2\ReplaceDictionaryConfig $var - * @return $this - */ - public function setReplaceDictionaryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ReplaceDictionaryConfig::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * @return string - */ - public function getTransformation() - { - return $this->whichOneof("transformation"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric.php deleted file mode 100644 index fe2781849587..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric.php +++ /dev/null @@ -1,240 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric - */ -class PrivacyMetric extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\PrivacyMetric\NumericalStatsConfig $numerical_stats_config - * Numerical stats - * @type \Google\Cloud\Dlp\V2\PrivacyMetric\CategoricalStatsConfig $categorical_stats_config - * Categorical stats - * @type \Google\Cloud\Dlp\V2\PrivacyMetric\KAnonymityConfig $k_anonymity_config - * K-anonymity - * @type \Google\Cloud\Dlp\V2\PrivacyMetric\LDiversityConfig $l_diversity_config - * l-diversity - * @type \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig $k_map_estimation_config - * k-map - * @type \Google\Cloud\Dlp\V2\PrivacyMetric\DeltaPresenceEstimationConfig $delta_presence_estimation_config - * delta-presence - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Numerical stats - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig numerical_stats_config = 1; - * @return \Google\Cloud\Dlp\V2\PrivacyMetric\NumericalStatsConfig|null - */ - public function getNumericalStatsConfig() - { - return $this->readOneof(1); - } - - public function hasNumericalStatsConfig() - { - return $this->hasOneof(1); - } - - /** - * Numerical stats - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig numerical_stats_config = 1; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric\NumericalStatsConfig $var - * @return $this - */ - public function setNumericalStatsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\NumericalStatsConfig::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Categorical stats - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig categorical_stats_config = 2; - * @return \Google\Cloud\Dlp\V2\PrivacyMetric\CategoricalStatsConfig|null - */ - public function getCategoricalStatsConfig() - { - return $this->readOneof(2); - } - - public function hasCategoricalStatsConfig() - { - return $this->hasOneof(2); - } - - /** - * Categorical stats - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig categorical_stats_config = 2; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric\CategoricalStatsConfig $var - * @return $this - */ - public function setCategoricalStatsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\CategoricalStatsConfig::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * K-anonymity - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig k_anonymity_config = 3; - * @return \Google\Cloud\Dlp\V2\PrivacyMetric\KAnonymityConfig|null - */ - public function getKAnonymityConfig() - { - return $this->readOneof(3); - } - - public function hasKAnonymityConfig() - { - return $this->hasOneof(3); - } - - /** - * K-anonymity - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig k_anonymity_config = 3; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric\KAnonymityConfig $var - * @return $this - */ - public function setKAnonymityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\KAnonymityConfig::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * l-diversity - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig l_diversity_config = 4; - * @return \Google\Cloud\Dlp\V2\PrivacyMetric\LDiversityConfig|null - */ - public function getLDiversityConfig() - { - return $this->readOneof(4); - } - - public function hasLDiversityConfig() - { - return $this->hasOneof(4); - } - - /** - * l-diversity - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig l_diversity_config = 4; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric\LDiversityConfig $var - * @return $this - */ - public function setLDiversityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\LDiversityConfig::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * k-map - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig k_map_estimation_config = 5; - * @return \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig|null - */ - public function getKMapEstimationConfig() - { - return $this->readOneof(5); - } - - public function hasKMapEstimationConfig() - { - return $this->hasOneof(5); - } - - /** - * k-map - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig k_map_estimation_config = 5; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig $var - * @return $this - */ - public function setKMapEstimationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * delta-presence - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig delta_presence_estimation_config = 6; - * @return \Google\Cloud\Dlp\V2\PrivacyMetric\DeltaPresenceEstimationConfig|null - */ - public function getDeltaPresenceEstimationConfig() - { - return $this->readOneof(6); - } - - public function hasDeltaPresenceEstimationConfig() - { - return $this->hasOneof(6); - } - - /** - * delta-presence - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig delta_presence_estimation_config = 6; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric\DeltaPresenceEstimationConfig $var - * @return $this - */ - public function setDeltaPresenceEstimationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\DeltaPresenceEstimationConfig::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/CategoricalStatsConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/CategoricalStatsConfig.php deleted file mode 100644 index 734b9433784a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/CategoricalStatsConfig.php +++ /dev/null @@ -1,90 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig - */ -class CategoricalStatsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Field to compute categorical stats on. All column types are - * supported except for arrays and structs. However, it may be more - * informative to use NumericalStats when the field type is supported, - * depending on the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - */ - protected $field = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Field to compute categorical stats on. All column types are - * supported except for arrays and structs. However, it may be more - * informative to use NumericalStats when the field type is supported, - * depending on the data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Field to compute categorical stats on. All column types are - * supported except for arrays and structs. However, it may be more - * informative to use NumericalStats when the field type is supported, - * depending on the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Field to compute categorical stats on. All column types are - * supported except for arrays and structs. However, it may be more - * informative to use NumericalStats when the field type is supported, - * depending on the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php deleted file mode 100644 index 5e3ead953eb9..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php +++ /dev/null @@ -1,158 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig - */ -class DeltaPresenceEstimationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fields considered to be quasi-identifiers. No two fields can - * have the same tag. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $quasi_ids; - /** - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Set if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - * - * Generated from protobuf field string region_code = 2; - */ - protected $region_code = ''; - /** - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers field must appear in exactly one - * field of one auxiliary table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3; - */ - private $auxiliary_tables; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\QuasiId[] $quasi_ids - * Required. Fields considered to be quasi-identifiers. No two fields can - * have the same tag. - * @type string $region_code - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Set if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - * @type \Google\Cloud\Dlp\V2\StatisticalTable[] $auxiliary_tables - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers field must appear in exactly one - * field of one auxiliary table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fields considered to be quasi-identifiers. No two fields can - * have the same tag. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Dlp\V2\QuasiId> - */ - public function getQuasiIds() - { - return $this->quasi_ids; - } - - /** - * Required. Fields considered to be quasi-identifiers. No two fields can - * have the same tag. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\QuasiId[] $var - * @return $this - */ - public function setQuasiIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\QuasiId::class); - $this->quasi_ids = $arr; - - return $this; - } - - /** - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Set if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - * - * Generated from protobuf field string region_code = 2; - * @return string - */ - public function getRegionCode() - { - return $this->region_code; - } - - /** - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Set if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - * - * Generated from protobuf field string region_code = 2; - * @param string $var - * @return $this - */ - public function setRegionCode($var) - { - GPBUtil::checkString($var, True); - $this->region_code = $var; - - return $this; - } - - /** - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers field must appear in exactly one - * field of one auxiliary table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3; - * @return RepeatedField<\Google\Cloud\Dlp\V2\StatisticalTable> - */ - public function getAuxiliaryTables() - { - return $this->auxiliary_tables; - } - - /** - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers field must appear in exactly one - * field of one auxiliary table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3; - * @param \Google\Cloud\Dlp\V2\StatisticalTable[] $var - * @return $this - */ - public function setAuxiliaryTables($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\StatisticalTable::class); - $this->auxiliary_tables = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KAnonymityConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KAnonymityConfig.php deleted file mode 100644 index 6e4353dc0d91..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KAnonymityConfig.php +++ /dev/null @@ -1,159 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig - */ -class KAnonymityConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Set of fields to compute k-anonymity over. When multiple fields are - * specified, they are considered a single composite key. Structs and - * repeated data types are not supported; however, nested fields are - * supported so long as they are not structs themselves or nested within - * a repeated field. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; - */ - private $quasi_ids; - /** - * Message indicating that multiple rows might be associated to a - * single individual. If the same entity_id is associated to multiple - * quasi-identifier tuples over distinct rows, we consider the entire - * collection of tuples as the composite quasi-identifier. This collection - * is a multiset: the order in which the different tuples appear in the - * dataset is ignored, but their frequency is taken into account. - * Important note: a maximum of 1000 rows can be associated to a single - * entity ID. If more rows are associated with the same entity ID, some - * might be ignored. - * - * Generated from protobuf field .google.privacy.dlp.v2.EntityId entity_id = 2; - */ - protected $entity_id = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId[] $quasi_ids - * Set of fields to compute k-anonymity over. When multiple fields are - * specified, they are considered a single composite key. Structs and - * repeated data types are not supported; however, nested fields are - * supported so long as they are not structs themselves or nested within - * a repeated field. - * @type \Google\Cloud\Dlp\V2\EntityId $entity_id - * Message indicating that multiple rows might be associated to a - * single individual. If the same entity_id is associated to multiple - * quasi-identifier tuples over distinct rows, we consider the entire - * collection of tuples as the composite quasi-identifier. This collection - * is a multiset: the order in which the different tuples appear in the - * dataset is ignored, but their frequency is taken into account. - * Important note: a maximum of 1000 rows can be associated to a single - * entity ID. If more rows are associated with the same entity ID, some - * might be ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Set of fields to compute k-anonymity over. When multiple fields are - * specified, they are considered a single composite key. Structs and - * repeated data types are not supported; however, nested fields are - * supported so long as they are not structs themselves or nested within - * a repeated field. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldId> - */ - public function getQuasiIds() - { - return $this->quasi_ids; - } - - /** - * Set of fields to compute k-anonymity over. When multiple fields are - * specified, they are considered a single composite key. Structs and - * repeated data types are not supported; however, nested fields are - * supported so long as they are not structs themselves or nested within - * a repeated field. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; - * @param \Google\Cloud\Dlp\V2\FieldId[] $var - * @return $this - */ - public function setQuasiIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); - $this->quasi_ids = $arr; - - return $this; - } - - /** - * Message indicating that multiple rows might be associated to a - * single individual. If the same entity_id is associated to multiple - * quasi-identifier tuples over distinct rows, we consider the entire - * collection of tuples as the composite quasi-identifier. This collection - * is a multiset: the order in which the different tuples appear in the - * dataset is ignored, but their frequency is taken into account. - * Important note: a maximum of 1000 rows can be associated to a single - * entity ID. If more rows are associated with the same entity ID, some - * might be ignored. - * - * Generated from protobuf field .google.privacy.dlp.v2.EntityId entity_id = 2; - * @return \Google\Cloud\Dlp\V2\EntityId|null - */ - public function getEntityId() - { - return $this->entity_id; - } - - public function hasEntityId() - { - return isset($this->entity_id); - } - - public function clearEntityId() - { - unset($this->entity_id); - } - - /** - * Message indicating that multiple rows might be associated to a - * single individual. If the same entity_id is associated to multiple - * quasi-identifier tuples over distinct rows, we consider the entire - * collection of tuples as the composite quasi-identifier. This collection - * is a multiset: the order in which the different tuples appear in the - * dataset is ignored, but their frequency is taken into account. - * Important note: a maximum of 1000 rows can be associated to a single - * entity ID. If more rows are associated with the same entity ID, some - * might be ignored. - * - * Generated from protobuf field .google.privacy.dlp.v2.EntityId entity_id = 2; - * @param \Google\Cloud\Dlp\V2\EntityId $var - * @return $this - */ - public function setEntityId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\EntityId::class); - $this->entity_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig.php deleted file mode 100644 index 13ad669fa370..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig.php +++ /dev/null @@ -1,160 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig - */ -class KMapEstimationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fields considered to be quasi-identifiers. No two columns can - * have the same tag. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $quasi_ids; - /** - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Set if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - * - * Generated from protobuf field string region_code = 2; - */ - protected $region_code = ''; - /** - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers column must appear in exactly one column - * of one auxiliary table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable auxiliary_tables = 3; - */ - private $auxiliary_tables; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\TaggedField[] $quasi_ids - * Required. Fields considered to be quasi-identifiers. No two columns can - * have the same tag. - * @type string $region_code - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Set if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - * @type \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable[] $auxiliary_tables - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers column must appear in exactly one column - * of one auxiliary table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fields considered to be quasi-identifiers. No two columns can - * have the same tag. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\TaggedField> - */ - public function getQuasiIds() - { - return $this->quasi_ids; - } - - /** - * Required. Fields considered to be quasi-identifiers. No two columns can - * have the same tag. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\TaggedField[] $var - * @return $this - */ - public function setQuasiIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\TaggedField::class); - $this->quasi_ids = $arr; - - return $this; - } - - /** - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Set if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - * - * Generated from protobuf field string region_code = 2; - * @return string - */ - public function getRegionCode() - { - return $this->region_code; - } - - /** - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Set if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - * - * Generated from protobuf field string region_code = 2; - * @param string $var - * @return $this - */ - public function setRegionCode($var) - { - GPBUtil::checkString($var, True); - $this->region_code = $var; - - return $this; - } - - /** - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers column must appear in exactly one column - * of one auxiliary table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable auxiliary_tables = 3; - * @return RepeatedField<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable> - */ - public function getAuxiliaryTables() - { - return $this->auxiliary_tables; - } - - /** - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers column must appear in exactly one column - * of one auxiliary table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable auxiliary_tables = 3; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable[] $var - * @return $this - */ - public function setAuxiliaryTables($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable::class); - $this->auxiliary_tables = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable.php deleted file mode 100644 index 65534e5b754c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable.php +++ /dev/null @@ -1,165 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable - */ -class AuxiliaryTable extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Auxiliary table location. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table = null; - /** - * Required. Quasi-identifier columns. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $quasi_ids; - /** - * Required. The relative frequency column must contain a floating-point - * number between 0 and 1 (inclusive). Null values are assumed to be zero. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $relative_frequency = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTable $table - * Required. Auxiliary table location. - * @type \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable\QuasiIdField[] $quasi_ids - * Required. Quasi-identifier columns. - * @type \Google\Cloud\Dlp\V2\FieldId $relative_frequency - * Required. The relative frequency column must contain a floating-point - * number between 0 and 1 (inclusive). Null values are assumed to be zero. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Auxiliary table location. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getTable() - { - return $this->table; - } - - public function hasTable() - { - return isset($this->table); - } - - public function clearTable() - { - unset($this->table); - } - - /** - * Required. Auxiliary table location. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->table = $var; - - return $this; - } - - /** - * Required. Quasi-identifier columns. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable\QuasiIdField> - */ - public function getQuasiIds() - { - return $this->quasi_ids; - } - - /** - * Required. Quasi-identifier columns. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable\QuasiIdField[] $var - * @return $this - */ - public function setQuasiIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable\QuasiIdField::class); - $this->quasi_ids = $arr; - - return $this; - } - - /** - * Required. The relative frequency column must contain a floating-point - * number between 0 and 1 (inclusive). Null values are assumed to be zero. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getRelativeFrequency() - { - return $this->relative_frequency; - } - - public function hasRelativeFrequency() - { - return isset($this->relative_frequency); - } - - public function clearRelativeFrequency() - { - unset($this->relative_frequency); - } - - /** - * Required. The relative frequency column must contain a floating-point - * number between 0 and 1 (inclusive). Null values are assumed to be zero. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setRelativeFrequency($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->relative_frequency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable/QuasiIdField.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable/QuasiIdField.php deleted file mode 100644 index 88a9b4f71af7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable/QuasiIdField.php +++ /dev/null @@ -1,112 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField - */ -class QuasiIdField extends \Google\Protobuf\Internal\Message -{ - /** - * Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - */ - protected $field = null; - /** - * A auxiliary field. - * - * Generated from protobuf field string custom_tag = 2; - */ - protected $custom_tag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Identifies the column. - * @type string $custom_tag - * A auxiliary field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - - /** - * A auxiliary field. - * - * Generated from protobuf field string custom_tag = 2; - * @return string - */ - public function getCustomTag() - { - return $this->custom_tag; - } - - /** - * A auxiliary field. - * - * Generated from protobuf field string custom_tag = 2; - * @param string $var - * @return $this - */ - public function setCustomTag($var) - { - GPBUtil::checkString($var, True); - $this->custom_tag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/TaggedField.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/TaggedField.php deleted file mode 100644 index 76f06e94f265..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/TaggedField.php +++ /dev/null @@ -1,206 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField - */ -class TaggedField extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $field = null; - protected $tag; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Required. Identifies the column. - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * A column can be tagged with a InfoType to use the relevant public - * dataset as a statistical model of population, if available. We - * currently support US ZIP codes, region codes, ages and genders. - * To programmatically obtain the list of supported InfoTypes, use - * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. - * @type string $custom_tag - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column. - * @type \Google\Protobuf\GPBEmpty $inferred - * If no semantic tag is indicated, we infer the statistical model from - * the distribution of values in the input data - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Required. Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - - /** - * A column can be tagged with a InfoType to use the relevant public - * dataset as a statistical model of population, if available. We - * currently support US ZIP codes, region codes, ages and genders. - * To programmatically obtain the list of supported InfoTypes, use - * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->readOneof(2); - } - - public function hasInfoType() - { - return $this->hasOneof(2); - } - - /** - * A column can be tagged with a InfoType to use the relevant public - * dataset as a statistical model of population, if available. We - * currently support US ZIP codes, region codes, ages and genders. - * To programmatically obtain the list of supported InfoTypes, use - * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column. - * - * Generated from protobuf field string custom_tag = 3; - * @return string - */ - public function getCustomTag() - { - return $this->readOneof(3); - } - - public function hasCustomTag() - { - return $this->hasOneof(3); - } - - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column. - * - * Generated from protobuf field string custom_tag = 3; - * @param string $var - * @return $this - */ - public function setCustomTag($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * If no semantic tag is indicated, we infer the statistical model from - * the distribution of values in the input data - * - * Generated from protobuf field .google.protobuf.Empty inferred = 4; - * @return \Google\Protobuf\GPBEmpty|null - */ - public function getInferred() - { - return $this->readOneof(4); - } - - public function hasInferred() - { - return $this->hasOneof(4); - } - - /** - * If no semantic tag is indicated, we infer the statistical model from - * the distribution of values in the input data - * - * Generated from protobuf field .google.protobuf.Empty inferred = 4; - * @param \Google\Protobuf\GPBEmpty $var - * @return $this - */ - public function setInferred($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\GPBEmpty::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getTag() - { - return $this->whichOneof("tag"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/LDiversityConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/LDiversityConfig.php deleted file mode 100644 index 3d6ee61112cd..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/LDiversityConfig.php +++ /dev/null @@ -1,119 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig - */ -class LDiversityConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Set of quasi-identifiers indicating how equivalence classes are - * defined for the l-diversity computation. When multiple fields are - * specified, they are considered a single composite key. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; - */ - private $quasi_ids; - /** - * Sensitive field for computing the l-value. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId sensitive_attribute = 2; - */ - protected $sensitive_attribute = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId[] $quasi_ids - * Set of quasi-identifiers indicating how equivalence classes are - * defined for the l-diversity computation. When multiple fields are - * specified, they are considered a single composite key. - * @type \Google\Cloud\Dlp\V2\FieldId $sensitive_attribute - * Sensitive field for computing the l-value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Set of quasi-identifiers indicating how equivalence classes are - * defined for the l-diversity computation. When multiple fields are - * specified, they are considered a single composite key. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldId> - */ - public function getQuasiIds() - { - return $this->quasi_ids; - } - - /** - * Set of quasi-identifiers indicating how equivalence classes are - * defined for the l-diversity computation. When multiple fields are - * specified, they are considered a single composite key. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; - * @param \Google\Cloud\Dlp\V2\FieldId[] $var - * @return $this - */ - public function setQuasiIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); - $this->quasi_ids = $arr; - - return $this; - } - - /** - * Sensitive field for computing the l-value. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId sensitive_attribute = 2; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getSensitiveAttribute() - { - return $this->sensitive_attribute; - } - - public function hasSensitiveAttribute() - { - return isset($this->sensitive_attribute); - } - - public function clearSensitiveAttribute() - { - unset($this->sensitive_attribute); - } - - /** - * Sensitive field for computing the l-value. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId sensitive_attribute = 2; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setSensitiveAttribute($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->sensitive_attribute = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/NumericalStatsConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/NumericalStatsConfig.php deleted file mode 100644 index 446b795d6619..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/NumericalStatsConfig.php +++ /dev/null @@ -1,82 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig - */ -class NumericalStatsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Field to compute numerical stats on. Supported types are - * integer, float, date, datetime, timestamp, time. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - */ - protected $field = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Field to compute numerical stats on. Supported types are - * integer, float, date, datetime, timestamp, time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Field to compute numerical stats on. Supported types are - * integer, float, date, datetime, timestamp, time. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Field to compute numerical stats on. Supported types are - * integer, float, date, datetime, timestamp, time. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation.php deleted file mode 100644 index 01d4b548dee4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation.php +++ /dev/null @@ -1,123 +0,0 @@ -google.privacy.dlp.v2.ProcessingLocation - */ -class ProcessingLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Image processing falls back using this configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation image_fallback_location = 1; - */ - protected $image_fallback_location = null; - /** - * Document processing falls back using this configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; - */ - protected $document_fallback_location = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\ProcessingLocation\ImageFallbackLocation $image_fallback_location - * Image processing falls back using this configuration. - * @type \Google\Cloud\Dlp\V2\ProcessingLocation\DocumentFallbackLocation $document_fallback_location - * Document processing falls back using this configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Image processing falls back using this configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation image_fallback_location = 1; - * @return \Google\Cloud\Dlp\V2\ProcessingLocation\ImageFallbackLocation|null - */ - public function getImageFallbackLocation() - { - return $this->image_fallback_location; - } - - public function hasImageFallbackLocation() - { - return isset($this->image_fallback_location); - } - - public function clearImageFallbackLocation() - { - unset($this->image_fallback_location); - } - - /** - * Image processing falls back using this configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation image_fallback_location = 1; - * @param \Google\Cloud\Dlp\V2\ProcessingLocation\ImageFallbackLocation $var - * @return $this - */ - public function setImageFallbackLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProcessingLocation\ImageFallbackLocation::class); - $this->image_fallback_location = $var; - - return $this; - } - - /** - * Document processing falls back using this configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; - * @return \Google\Cloud\Dlp\V2\ProcessingLocation\DocumentFallbackLocation|null - */ - public function getDocumentFallbackLocation() - { - return $this->document_fallback_location; - } - - public function hasDocumentFallbackLocation() - { - return isset($this->document_fallback_location); - } - - public function clearDocumentFallbackLocation() - { - unset($this->document_fallback_location); - } - - /** - * Document processing falls back using this configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation document_fallback_location = 2; - * @param \Google\Cloud\Dlp\V2\ProcessingLocation\DocumentFallbackLocation $var - * @return $this - */ - public function setDocumentFallbackLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProcessingLocation\DocumentFallbackLocation::class); - $this->document_fallback_location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/DocumentFallbackLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/DocumentFallbackLocation.php deleted file mode 100644 index 1a4ec8afa555..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/DocumentFallbackLocation.php +++ /dev/null @@ -1,127 +0,0 @@ -google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation - */ -class DocumentFallbackLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Processing occurs in a multi-region that contains the current region - * if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; - */ - protected $multi_region_processing = null; - /** - * Processing occurs in the global region. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; - */ - protected $global_processing = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\ProcessingLocation\MultiRegionProcessing $multi_region_processing - * Processing occurs in a multi-region that contains the current region - * if available. - * @type \Google\Cloud\Dlp\V2\ProcessingLocation\GlobalProcessing $global_processing - * Processing occurs in the global region. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Processing occurs in a multi-region that contains the current region - * if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; - * @return \Google\Cloud\Dlp\V2\ProcessingLocation\MultiRegionProcessing|null - */ - public function getMultiRegionProcessing() - { - return $this->multi_region_processing; - } - - public function hasMultiRegionProcessing() - { - return isset($this->multi_region_processing); - } - - public function clearMultiRegionProcessing() - { - unset($this->multi_region_processing); - } - - /** - * Processing occurs in a multi-region that contains the current region - * if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; - * @param \Google\Cloud\Dlp\V2\ProcessingLocation\MultiRegionProcessing $var - * @return $this - */ - public function setMultiRegionProcessing($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProcessingLocation\MultiRegionProcessing::class); - $this->multi_region_processing = $var; - - return $this; - } - - /** - * Processing occurs in the global region. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; - * @return \Google\Cloud\Dlp\V2\ProcessingLocation\GlobalProcessing|null - */ - public function getGlobalProcessing() - { - return $this->global_processing; - } - - public function hasGlobalProcessing() - { - return isset($this->global_processing); - } - - public function clearGlobalProcessing() - { - unset($this->global_processing); - } - - /** - * Processing occurs in the global region. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; - * @param \Google\Cloud\Dlp\V2\ProcessingLocation\GlobalProcessing $var - * @return $this - */ - public function setGlobalProcessing($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProcessingLocation\GlobalProcessing::class); - $this->global_processing = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/GlobalProcessing.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/GlobalProcessing.php deleted file mode 100644 index c038a87a9c36..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/GlobalProcessing.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing - */ -class GlobalProcessing extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/ImageFallbackLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/ImageFallbackLocation.php deleted file mode 100644 index 5cf7489f75f3..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/ImageFallbackLocation.php +++ /dev/null @@ -1,127 +0,0 @@ -google.privacy.dlp.v2.ProcessingLocation.ImageFallbackLocation - */ -class ImageFallbackLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Processing occurs in a multi-region that contains the current region - * if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; - */ - protected $multi_region_processing = null; - /** - * Processing occurs in the global region. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; - */ - protected $global_processing = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\ProcessingLocation\MultiRegionProcessing $multi_region_processing - * Processing occurs in a multi-region that contains the current region - * if available. - * @type \Google\Cloud\Dlp\V2\ProcessingLocation\GlobalProcessing $global_processing - * Processing occurs in the global region. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Processing occurs in a multi-region that contains the current region - * if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; - * @return \Google\Cloud\Dlp\V2\ProcessingLocation\MultiRegionProcessing|null - */ - public function getMultiRegionProcessing() - { - return $this->multi_region_processing; - } - - public function hasMultiRegionProcessing() - { - return isset($this->multi_region_processing); - } - - public function clearMultiRegionProcessing() - { - unset($this->multi_region_processing); - } - - /** - * Processing occurs in a multi-region that contains the current region - * if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing multi_region_processing = 100; - * @param \Google\Cloud\Dlp\V2\ProcessingLocation\MultiRegionProcessing $var - * @return $this - */ - public function setMultiRegionProcessing($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProcessingLocation\MultiRegionProcessing::class); - $this->multi_region_processing = $var; - - return $this; - } - - /** - * Processing occurs in the global region. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; - * @return \Google\Cloud\Dlp\V2\ProcessingLocation\GlobalProcessing|null - */ - public function getGlobalProcessing() - { - return $this->global_processing; - } - - public function hasGlobalProcessing() - { - return isset($this->global_processing); - } - - public function clearGlobalProcessing() - { - unset($this->global_processing); - } - - /** - * Processing occurs in the global region. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing global_processing = 200; - * @param \Google\Cloud\Dlp\V2\ProcessingLocation\GlobalProcessing $var - * @return $this - */ - public function setGlobalProcessing($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProcessingLocation\GlobalProcessing::class); - $this->global_processing = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/MultiRegionProcessing.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/MultiRegionProcessing.php deleted file mode 100644 index 58bc8210ce03..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProcessingLocation/MultiRegionProcessing.php +++ /dev/null @@ -1,34 +0,0 @@ -google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing - */ -class MultiRegionProcessing extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileGeneration.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileGeneration.php deleted file mode 100644 index 73cc6d4dd013..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileGeneration.php +++ /dev/null @@ -1,61 +0,0 @@ -google.privacy.dlp.v2.ProfileGeneration - */ -class ProfileGeneration -{ - /** - * Unused. - * - * Generated from protobuf enum PROFILE_GENERATION_UNSPECIFIED = 0; - */ - const PROFILE_GENERATION_UNSPECIFIED = 0; - /** - * The profile is the first profile for the resource. - * - * Generated from protobuf enum PROFILE_GENERATION_NEW = 1; - */ - const PROFILE_GENERATION_NEW = 1; - /** - * The profile is an update to a previous profile. - * - * Generated from protobuf enum PROFILE_GENERATION_UPDATE = 2; - */ - const PROFILE_GENERATION_UPDATE = 2; - - private static $valueToName = [ - self::PROFILE_GENERATION_UNSPECIFIED => 'PROFILE_GENERATION_UNSPECIFIED', - self::PROFILE_GENERATION_NEW => 'PROFILE_GENERATION_NEW', - self::PROFILE_GENERATION_UPDATE => 'PROFILE_GENERATION_UPDATE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileStatus.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileStatus.php deleted file mode 100644 index 3f3fb88a51ba..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileStatus.php +++ /dev/null @@ -1,125 +0,0 @@ -google.privacy.dlp.v2.ProfileStatus - */ -class ProfileStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Profiling status code and optional message. The `status.code` value is 0 - * (default value) for OK. - * - * Generated from protobuf field .google.rpc.Status status = 1; - */ - protected $status = null; - /** - * Time when the profile generation status was updated - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; - */ - protected $timestamp = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Rpc\Status $status - * Profiling status code and optional message. The `status.code` value is 0 - * (default value) for OK. - * @type \Google\Protobuf\Timestamp $timestamp - * Time when the profile generation status was updated - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Profiling status code and optional message. The `status.code` value is 0 - * (default value) for OK. - * - * Generated from protobuf field .google.rpc.Status status = 1; - * @return \Google\Rpc\Status|null - */ - public function getStatus() - { - return $this->status; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Profiling status code and optional message. The `status.code` value is 0 - * (default value) for OK. - * - * Generated from protobuf field .google.rpc.Status status = 1; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->status = $var; - - return $this; - } - - /** - * Time when the profile generation status was updated - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestamp() - { - return $this->timestamp; - } - - public function hasTimestamp() - { - return isset($this->timestamp); - } - - public function clearTimestamp() - { - unset($this->timestamp); - } - - /** - * Time when the profile generation status was updated - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->timestamp = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProjectDataProfile.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProjectDataProfile.php deleted file mode 100644 index b5134d8b5b4c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProjectDataProfile.php +++ /dev/null @@ -1,346 +0,0 @@ -google.privacy.dlp.v2.ProjectDataProfile - */ -class ProjectDataProfile extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the profile. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Project ID or account that was profiled. - * - * Generated from protobuf field string project_id = 2; - */ - protected $project_id = ''; - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; - */ - protected $profile_last_generated = null; - /** - * The sensitivity score of this project. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; - */ - protected $sensitivity_score = null; - /** - * The data risk level of this project. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; - */ - protected $data_risk_level = null; - /** - * Success or error status of the last attempt to profile the project. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 7; - */ - protected $profile_status = null; - /** - * The number of table data profiles generated for this project. - * - * Generated from protobuf field int64 table_data_profile_count = 9; - */ - protected $table_data_profile_count = 0; - /** - * The number of file store data profiles generated for this project. - * - * Generated from protobuf field int64 file_store_data_profile_count = 10; - */ - protected $file_store_data_profile_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource name of the profile. - * @type string $project_id - * Project ID or account that was profiled. - * @type \Google\Protobuf\Timestamp $profile_last_generated - * The last time the profile was generated. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * The sensitivity score of this project. - * @type \Google\Cloud\Dlp\V2\DataRiskLevel $data_risk_level - * The data risk level of this project. - * @type \Google\Cloud\Dlp\V2\ProfileStatus $profile_status - * Success or error status of the last attempt to profile the project. - * @type int|string $table_data_profile_count - * The number of table data profiles generated for this project. - * @type int|string $file_store_data_profile_count - * The number of file store data profiles generated for this project. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the profile. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the profile. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Project ID or account that was profiled. - * - * Generated from protobuf field string project_id = 2; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Project ID or account that was profiled. - * - * Generated from protobuf field string project_id = 2; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getProfileLastGenerated() - { - return $this->profile_last_generated; - } - - public function hasProfileLastGenerated() - { - return isset($this->profile_last_generated); - } - - public function clearProfileLastGenerated() - { - unset($this->profile_last_generated); - } - - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setProfileLastGenerated($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->profile_last_generated = $var; - - return $this; - } - - /** - * The sensitivity score of this project. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->sensitivity_score; - } - - public function hasSensitivityScore() - { - return isset($this->sensitivity_score); - } - - public function clearSensitivityScore() - { - unset($this->sensitivity_score); - } - - /** - * The sensitivity score of this project. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->sensitivity_score = $var; - - return $this; - } - - /** - * The data risk level of this project. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; - * @return \Google\Cloud\Dlp\V2\DataRiskLevel|null - */ - public function getDataRiskLevel() - { - return $this->data_risk_level; - } - - public function hasDataRiskLevel() - { - return isset($this->data_risk_level); - } - - public function clearDataRiskLevel() - { - unset($this->data_risk_level); - } - - /** - * The data risk level of this project. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; - * @param \Google\Cloud\Dlp\V2\DataRiskLevel $var - * @return $this - */ - public function setDataRiskLevel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataRiskLevel::class); - $this->data_risk_level = $var; - - return $this; - } - - /** - * Success or error status of the last attempt to profile the project. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 7; - * @return \Google\Cloud\Dlp\V2\ProfileStatus|null - */ - public function getProfileStatus() - { - return $this->profile_status; - } - - public function hasProfileStatus() - { - return isset($this->profile_status); - } - - public function clearProfileStatus() - { - unset($this->profile_status); - } - - /** - * Success or error status of the last attempt to profile the project. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 7; - * @param \Google\Cloud\Dlp\V2\ProfileStatus $var - * @return $this - */ - public function setProfileStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProfileStatus::class); - $this->profile_status = $var; - - return $this; - } - - /** - * The number of table data profiles generated for this project. - * - * Generated from protobuf field int64 table_data_profile_count = 9; - * @return int|string - */ - public function getTableDataProfileCount() - { - return $this->table_data_profile_count; - } - - /** - * The number of table data profiles generated for this project. - * - * Generated from protobuf field int64 table_data_profile_count = 9; - * @param int|string $var - * @return $this - */ - public function setTableDataProfileCount($var) - { - GPBUtil::checkInt64($var); - $this->table_data_profile_count = $var; - - return $this; - } - - /** - * The number of file store data profiles generated for this project. - * - * Generated from protobuf field int64 file_store_data_profile_count = 10; - * @return int|string - */ - public function getFileStoreDataProfileCount() - { - return $this->file_store_data_profile_count; - } - - /** - * The number of file store data profiles generated for this project. - * - * Generated from protobuf field int64 file_store_data_profile_count = 10; - * @param int|string $var - * @return $this - */ - public function setFileStoreDataProfileCount($var) - { - GPBUtil::checkInt64($var); - $this->file_store_data_profile_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuasiId.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuasiId.php deleted file mode 100644 index 4c710e04001b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuasiId.php +++ /dev/null @@ -1,206 +0,0 @@ -google.privacy.dlp.v2.QuasiId - */ -class QuasiId extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $field = null; - protected $tag; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Required. Identifies the column. - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * A column can be tagged with a InfoType to use the relevant public - * dataset as a statistical model of population, if available. We - * currently support US ZIP codes, region codes, ages and genders. - * To programmatically obtain the list of supported InfoTypes, use - * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. - * @type string $custom_tag - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column. - * @type \Google\Protobuf\GPBEmpty $inferred - * If no semantic tag is indicated, we infer the statistical model from - * the distribution of values in the input data - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Required. Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - - /** - * A column can be tagged with a InfoType to use the relevant public - * dataset as a statistical model of population, if available. We - * currently support US ZIP codes, region codes, ages and genders. - * To programmatically obtain the list of supported InfoTypes, use - * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->readOneof(2); - } - - public function hasInfoType() - { - return $this->hasOneof(2); - } - - /** - * A column can be tagged with a InfoType to use the relevant public - * dataset as a statistical model of population, if available. We - * currently support US ZIP codes, region codes, ages and genders. - * To programmatically obtain the list of supported InfoTypes, use - * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column. - * - * Generated from protobuf field string custom_tag = 3; - * @return string - */ - public function getCustomTag() - { - return $this->readOneof(3); - } - - public function hasCustomTag() - { - return $this->hasOneof(3); - } - - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column. - * - * Generated from protobuf field string custom_tag = 3; - * @param string $var - * @return $this - */ - public function setCustomTag($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * If no semantic tag is indicated, we infer the statistical model from - * the distribution of values in the input data - * - * Generated from protobuf field .google.protobuf.Empty inferred = 4; - * @return \Google\Protobuf\GPBEmpty|null - */ - public function getInferred() - { - return $this->readOneof(4); - } - - public function hasInferred() - { - return $this->hasOneof(4); - } - - /** - * If no semantic tag is indicated, we infer the statistical model from - * the distribution of values in the input data - * - * Generated from protobuf field .google.protobuf.Empty inferred = 4; - * @param \Google\Protobuf\GPBEmpty $var - * @return $this - */ - public function setInferred($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\GPBEmpty::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getTag() - { - return $this->whichOneof("tag"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuoteInfo.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuoteInfo.php deleted file mode 100644 index 4db881152c2b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuoteInfo.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.QuoteInfo - */ -class QuoteInfo extends \Google\Protobuf\Internal\Message -{ - protected $parsed_quote; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DateTime $date_time - * The date time indicated by the quote. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The date time indicated by the quote. - * - * Generated from protobuf field .google.privacy.dlp.v2.DateTime date_time = 2; - * @return \Google\Cloud\Dlp\V2\DateTime|null - */ - public function getDateTime() - { - return $this->readOneof(2); - } - - public function hasDateTime() - { - return $this->hasOneof(2); - } - - /** - * The date time indicated by the quote. - * - * Generated from protobuf field .google.privacy.dlp.v2.DateTime date_time = 2; - * @param \Google\Cloud\Dlp\V2\DateTime $var - * @return $this - */ - public function setDateTime($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DateTime::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getParsedQuote() - { - return $this->whichOneof("parsed_quote"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Range.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Range.php deleted file mode 100644 index bd2b530c27d9..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Range.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.Range - */ -class Range extends \Google\Protobuf\Internal\Message -{ - /** - * Index of the first character of the range (inclusive). - * - * Generated from protobuf field int64 start = 1; - */ - protected $start = 0; - /** - * Index of the last character of the range (exclusive). - * - * Generated from protobuf field int64 end = 2; - */ - protected $end = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $start - * Index of the first character of the range (inclusive). - * @type int|string $end - * Index of the last character of the range (exclusive). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Index of the first character of the range (inclusive). - * - * Generated from protobuf field int64 start = 1; - * @return int|string - */ - public function getStart() - { - return $this->start; - } - - /** - * Index of the first character of the range (inclusive). - * - * Generated from protobuf field int64 start = 1; - * @param int|string $var - * @return $this - */ - public function setStart($var) - { - GPBUtil::checkInt64($var); - $this->start = $var; - - return $this; - } - - /** - * Index of the last character of the range (exclusive). - * - * Generated from protobuf field int64 end = 2; - * @return int|string - */ - public function getEnd() - { - return $this->end; - } - - /** - * Index of the last character of the range (exclusive). - * - * Generated from protobuf field int64 end = 2; - * @param int|string $var - * @return $this - */ - public function setEnd($var) - { - GPBUtil::checkInt64($var); - $this->end = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition.php deleted file mode 100644 index 737e51d6915a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition.php +++ /dev/null @@ -1,78 +0,0 @@ -google.privacy.dlp.v2.RecordCondition - */ -class RecordCondition extends \Google\Protobuf\Internal\Message -{ - /** - * An expression. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions expressions = 3; - */ - protected $expressions = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\RecordCondition\Expressions $expressions - * An expression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * An expression. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions expressions = 3; - * @return \Google\Cloud\Dlp\V2\RecordCondition\Expressions|null - */ - public function getExpressions() - { - return $this->expressions; - } - - public function hasExpressions() - { - return isset($this->expressions); - } - - public function clearExpressions() - { - unset($this->expressions); - } - - /** - * An expression. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions expressions = 3; - * @param \Google\Cloud\Dlp\V2\RecordCondition\Expressions $var - * @return $this - */ - public function setExpressions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordCondition\Expressions::class); - $this->expressions = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Condition.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Condition.php deleted file mode 100644 index 432321d0d7db..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Condition.php +++ /dev/null @@ -1,171 +0,0 @@ -google.privacy.dlp.v2.RecordCondition.Condition - */ -class Condition extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Field within the record this condition is evaluated against. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $field = null; - /** - * Required. Operator used to compare the field or infoType to the value. - * - * Generated from protobuf field .google.privacy.dlp.v2.RelationalOperator operator = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $operator = 0; - /** - * Value to compare against. [Mandatory, except for `EXISTS` tests.] - * - * Generated from protobuf field .google.privacy.dlp.v2.Value value = 4; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Required. Field within the record this condition is evaluated against. - * @type int $operator - * Required. Operator used to compare the field or infoType to the value. - * @type \Google\Cloud\Dlp\V2\Value $value - * Value to compare against. [Mandatory, except for `EXISTS` tests.] - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Field within the record this condition is evaluated against. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Required. Field within the record this condition is evaluated against. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - - /** - * Required. Operator used to compare the field or infoType to the value. - * - * Generated from protobuf field .google.privacy.dlp.v2.RelationalOperator operator = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getOperator() - { - return $this->operator; - } - - /** - * Required. Operator used to compare the field or infoType to the value. - * - * Generated from protobuf field .google.privacy.dlp.v2.RelationalOperator operator = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setOperator($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\RelationalOperator::class); - $this->operator = $var; - - return $this; - } - - /** - * Value to compare against. [Mandatory, except for `EXISTS` tests.] - * - * Generated from protobuf field .google.privacy.dlp.v2.Value value = 4; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * Value to compare against. [Mandatory, except for `EXISTS` tests.] - * - * Generated from protobuf field .google.privacy.dlp.v2.Value value = 4; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Conditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Conditions.php deleted file mode 100644 index 03ed948e0526..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Conditions.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.RecordCondition.Conditions - */ -class Conditions extends \Google\Protobuf\Internal\Message -{ - /** - * A collection of conditions. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordCondition.Condition conditions = 1; - */ - private $conditions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\RecordCondition\Condition[] $conditions - * A collection of conditions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A collection of conditions. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordCondition.Condition conditions = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\RecordCondition\Condition> - */ - public function getConditions() - { - return $this->conditions; - } - - /** - * A collection of conditions. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordCondition.Condition conditions = 1; - * @param \Google\Cloud\Dlp\V2\RecordCondition\Condition[] $var - * @return $this - */ - public function setConditions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\RecordCondition\Condition::class); - $this->conditions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions.php deleted file mode 100644 index fe3353f5e09f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions.php +++ /dev/null @@ -1,113 +0,0 @@ -google.privacy.dlp.v2.RecordCondition.Expressions - */ -class Expressions extends \Google\Protobuf\Internal\Message -{ - /** - * The operator to apply to the result of conditions. Default and currently - * only supported value is `AND`. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator logical_operator = 1; - */ - protected $logical_operator = 0; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $logical_operator - * The operator to apply to the result of conditions. Default and currently - * only supported value is `AND`. - * @type \Google\Cloud\Dlp\V2\RecordCondition\Conditions $conditions - * Conditions to apply to the expression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The operator to apply to the result of conditions. Default and currently - * only supported value is `AND`. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator logical_operator = 1; - * @return int - */ - public function getLogicalOperator() - { - return $this->logical_operator; - } - - /** - * The operator to apply to the result of conditions. Default and currently - * only supported value is `AND`. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator logical_operator = 1; - * @param int $var - * @return $this - */ - public function setLogicalOperator($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\RecordCondition\Expressions\LogicalOperator::class); - $this->logical_operator = $var; - - return $this; - } - - /** - * Conditions to apply to the expression. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Conditions conditions = 3; - * @return \Google\Cloud\Dlp\V2\RecordCondition\Conditions|null - */ - public function getConditions() - { - return $this->readOneof(3); - } - - public function hasConditions() - { - return $this->hasOneof(3); - } - - /** - * Conditions to apply to the expression. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Conditions conditions = 3; - * @param \Google\Cloud\Dlp\V2\RecordCondition\Conditions $var - * @return $this - */ - public function setConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordCondition\Conditions::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions/LogicalOperator.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions/LogicalOperator.php deleted file mode 100644 index 2903e2afa727..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions/LogicalOperator.php +++ /dev/null @@ -1,58 +0,0 @@ -google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator - */ -class LogicalOperator -{ - /** - * Unused - * - * Generated from protobuf enum LOGICAL_OPERATOR_UNSPECIFIED = 0; - */ - const LOGICAL_OPERATOR_UNSPECIFIED = 0; - /** - * Conditional AND - * - * Generated from protobuf enum AND = 1; - */ - const PBAND = 1; - - private static $valueToName = [ - self::LOGICAL_OPERATOR_UNSPECIFIED => 'LOGICAL_OPERATOR_UNSPECIFIED', - self::PBAND => 'AND', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordKey.php deleted file mode 100644 index faeb7eca393e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordKey.php +++ /dev/null @@ -1,146 +0,0 @@ -google.privacy.dlp.v2.RecordKey - */ -class RecordKey extends \Google\Protobuf\Internal\Message -{ - /** - * Values of identifying columns in the given row. Order of values matches - * the order of `identifying_fields` specified in the scanning request. - * - * Generated from protobuf field repeated string id_values = 5; - */ - private $id_values; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DatastoreKey $datastore_key - * BigQuery key - * @type \Google\Cloud\Dlp\V2\BigQueryKey $big_query_key - * Datastore key - * @type string[] $id_values - * Values of identifying columns in the given row. Order of values matches - * the order of `identifying_fields` specified in the scanning request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * BigQuery key - * - * Generated from protobuf field .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; - * @return \Google\Cloud\Dlp\V2\DatastoreKey|null - */ - public function getDatastoreKey() - { - return $this->readOneof(2); - } - - public function hasDatastoreKey() - { - return $this->hasOneof(2); - } - - /** - * BigQuery key - * - * Generated from protobuf field .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; - * @param \Google\Cloud\Dlp\V2\DatastoreKey $var - * @return $this - */ - public function setDatastoreKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DatastoreKey::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Datastore key - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; - * @return \Google\Cloud\Dlp\V2\BigQueryKey|null - */ - public function getBigQueryKey() - { - return $this->readOneof(3); - } - - public function hasBigQueryKey() - { - return $this->hasOneof(3); - } - - /** - * Datastore key - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; - * @param \Google\Cloud\Dlp\V2\BigQueryKey $var - * @return $this - */ - public function setBigQueryKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryKey::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Values of identifying columns in the given row. Order of values matches - * the order of `identifying_fields` specified in the scanning request. - * - * Generated from protobuf field repeated string id_values = 5; - * @return RepeatedField - */ - public function getIdValues() - { - return $this->id_values; - } - - /** - * Values of identifying columns in the given row. Order of values matches - * the order of `identifying_fields` specified in the scanning request. - * - * Generated from protobuf field repeated string id_values = 5; - * @param string[] $var - * @return $this - */ - public function setIdValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->id_values = $arr; - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordLocation.php deleted file mode 100644 index 5f886759b5d0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordLocation.php +++ /dev/null @@ -1,165 +0,0 @@ -google.privacy.dlp.v2.RecordLocation - */ -class RecordLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Key of the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordKey record_key = 1; - */ - protected $record_key = null; - /** - * Field id of the field containing the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 2; - */ - protected $field_id = null; - /** - * Location within a `ContentItem.Table`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableLocation table_location = 3; - */ - protected $table_location = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\RecordKey $record_key - * Key of the finding. - * @type \Google\Cloud\Dlp\V2\FieldId $field_id - * Field id of the field containing the finding. - * @type \Google\Cloud\Dlp\V2\TableLocation $table_location - * Location within a `ContentItem.Table`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Key of the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordKey record_key = 1; - * @return \Google\Cloud\Dlp\V2\RecordKey|null - */ - public function getRecordKey() - { - return $this->record_key; - } - - public function hasRecordKey() - { - return isset($this->record_key); - } - - public function clearRecordKey() - { - unset($this->record_key); - } - - /** - * Key of the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordKey record_key = 1; - * @param \Google\Cloud\Dlp\V2\RecordKey $var - * @return $this - */ - public function setRecordKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordKey::class); - $this->record_key = $var; - - return $this; - } - - /** - * Field id of the field containing the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 2; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getFieldId() - { - return $this->field_id; - } - - public function hasFieldId() - { - return isset($this->field_id); - } - - public function clearFieldId() - { - unset($this->field_id); - } - - /** - * Field id of the field containing the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 2; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setFieldId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field_id = $var; - - return $this; - } - - /** - * Location within a `ContentItem.Table`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableLocation table_location = 3; - * @return \Google\Cloud\Dlp\V2\TableLocation|null - */ - public function getTableLocation() - { - return $this->table_location; - } - - public function hasTableLocation() - { - return isset($this->table_location); - } - - public function clearTableLocation() - { - unset($this->table_location); - } - - /** - * Location within a `ContentItem.Table`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableLocation table_location = 3; - * @param \Google\Cloud\Dlp\V2\TableLocation $var - * @return $this - */ - public function setTableLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableLocation::class); - $this->table_location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordSuppression.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordSuppression.php deleted file mode 100644 index 9d81a933412a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordSuppression.php +++ /dev/null @@ -1,82 +0,0 @@ -google.privacy.dlp.v2.RecordSuppression - */ -class RecordSuppression extends \Google\Protobuf\Internal\Message -{ - /** - * A condition that when it evaluates to true will result in the record being - * evaluated to be suppressed from the transformed content. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 1; - */ - protected $condition = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\RecordCondition $condition - * A condition that when it evaluates to true will result in the record being - * evaluated to be suppressed from the transformed content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A condition that when it evaluates to true will result in the record being - * evaluated to be suppressed from the transformed content. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 1; - * @return \Google\Cloud\Dlp\V2\RecordCondition|null - */ - public function getCondition() - { - return $this->condition; - } - - public function hasCondition() - { - return isset($this->condition); - } - - public function clearCondition() - { - unset($this->condition); - } - - /** - * A condition that when it evaluates to true will result in the record being - * evaluated to be suppressed from the transformed content. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 1; - * @param \Google\Cloud\Dlp\V2\RecordCondition $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordCondition::class); - $this->condition = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformation.php deleted file mode 100644 index cc8c7c49a02f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformation.php +++ /dev/null @@ -1,155 +0,0 @@ -google.privacy.dlp.v2.RecordTransformation - */ -class RecordTransformation extends \Google\Protobuf\Internal\Message -{ - /** - * For record transformations, provide a field. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 1; - */ - protected $field_id = null; - /** - * Findings container modification timestamp, if applicable. - * - * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 2; - */ - protected $container_timestamp = null; - /** - * Container version, if available ("generation" for Cloud Storage). - * - * Generated from protobuf field string container_version = 3; - */ - protected $container_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field_id - * For record transformations, provide a field. - * @type \Google\Protobuf\Timestamp $container_timestamp - * Findings container modification timestamp, if applicable. - * @type string $container_version - * Container version, if available ("generation" for Cloud Storage). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * For record transformations, provide a field. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 1; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getFieldId() - { - return $this->field_id; - } - - public function hasFieldId() - { - return isset($this->field_id); - } - - public function clearFieldId() - { - unset($this->field_id); - } - - /** - * For record transformations, provide a field. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 1; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setFieldId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field_id = $var; - - return $this; - } - - /** - * Findings container modification timestamp, if applicable. - * - * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getContainerTimestamp() - { - return $this->container_timestamp; - } - - public function hasContainerTimestamp() - { - return isset($this->container_timestamp); - } - - public function clearContainerTimestamp() - { - unset($this->container_timestamp); - } - - /** - * Findings container modification timestamp, if applicable. - * - * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setContainerTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->container_timestamp = $var; - - return $this; - } - - /** - * Container version, if available ("generation" for Cloud Storage). - * - * Generated from protobuf field string container_version = 3; - * @return string - */ - public function getContainerVersion() - { - return $this->container_version; - } - - /** - * Container version, if available ("generation" for Cloud Storage). - * - * Generated from protobuf field string container_version = 3; - * @param string $var - * @return $this - */ - public function setContainerVersion($var) - { - GPBUtil::checkString($var, True); - $this->container_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformations.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformations.php deleted file mode 100644 index da2e598373c4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformations.php +++ /dev/null @@ -1,106 +0,0 @@ -google.privacy.dlp.v2.RecordTransformations - */ -class RecordTransformations extends \Google\Protobuf\Internal\Message -{ - /** - * Transform the record by applying various field transformations. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 1; - */ - private $field_transformations; - /** - * Configuration defining which records get suppressed entirely. Records that - * match any suppression rule are omitted from the output. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordSuppression record_suppressions = 2; - */ - private $record_suppressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldTransformation[] $field_transformations - * Transform the record by applying various field transformations. - * @type \Google\Cloud\Dlp\V2\RecordSuppression[] $record_suppressions - * Configuration defining which records get suppressed entirely. Records that - * match any suppression rule are omitted from the output. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Transform the record by applying various field transformations. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldTransformation> - */ - public function getFieldTransformations() - { - return $this->field_transformations; - } - - /** - * Transform the record by applying various field transformations. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 1; - * @param \Google\Cloud\Dlp\V2\FieldTransformation[] $var - * @return $this - */ - public function setFieldTransformations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldTransformation::class); - $this->field_transformations = $arr; - - return $this; - } - - /** - * Configuration defining which records get suppressed entirely. Records that - * match any suppression rule are omitted from the output. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordSuppression record_suppressions = 2; - * @return RepeatedField<\Google\Cloud\Dlp\V2\RecordSuppression> - */ - public function getRecordSuppressions() - { - return $this->record_suppressions; - } - - /** - * Configuration defining which records get suppressed entirely. Records that - * match any suppression rule are omitted from the output. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordSuppression record_suppressions = 2; - * @param \Google\Cloud\Dlp\V2\RecordSuppression[] $var - * @return $this - */ - public function setRecordSuppressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\RecordSuppression::class); - $this->record_suppressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactConfig.php deleted file mode 100644 index b1728ecfad9c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactConfig.php +++ /dev/null @@ -1,35 +0,0 @@ -google.privacy.dlp.v2.RedactConfig - */ -class RedactConfig extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest.php deleted file mode 100644 index f4e5eab91866..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest.php +++ /dev/null @@ -1,418 +0,0 @@ -google.privacy.dlp.v2.RedactImageRequest - */ -class RedactImageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 8; - */ - protected $location_id = ''; - /** - * Configuration for the inspector. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - */ - protected $inspect_config = null; - /** - * The configuration for specifying what content to redact from images. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5; - */ - private $image_redaction_configs; - /** - * Whether the response should include findings along with the redacted - * image. - * - * Generated from protobuf field bool include_findings = 6; - */ - protected $include_findings = false; - /** - * The content must be PNG, JPEG, SVG or BMP. - * - * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem byte_item = 7; - */ - protected $byte_item = null; - /** - * The full resource name of the inspection template to use. Settings in the - * main `inspect_config` field override the corresponding settings in this - * inspection template. - * The merge behavior is as follows: - * - Singular field: The main field's value replaces the value of the - * corresponding field in the template. - * - Repeated fields: The field values are appended to the list defined in - * the template. - * - Sub-messages and groups: The fields are recursively merged. - * - * Generated from protobuf field string inspect_template = 9; - */ - protected $inspect_template = ''; - /** - * The full resource name of the de-identification template to use. Settings - * in the main `image_redaction_configs` field override the corresponding - * settings in this de-identification template. The request fails if the - * type of the template's deidentify_config is not image_transformations. - * - * Generated from protobuf field string deidentify_template = 10; - */ - protected $deidentify_template = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type string $location_id - * Deprecated. This field has no effect. - * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config - * Configuration for the inspector. - * @type \Google\Cloud\Dlp\V2\RedactImageRequest\ImageRedactionConfig[] $image_redaction_configs - * The configuration for specifying what content to redact from images. - * @type bool $include_findings - * Whether the response should include findings along with the redacted - * image. - * @type \Google\Cloud\Dlp\V2\ByteContentItem $byte_item - * The content must be PNG, JPEG, SVG or BMP. - * @type string $inspect_template - * The full resource name of the inspection template to use. Settings in the - * main `inspect_config` field override the corresponding settings in this - * inspection template. - * The merge behavior is as follows: - * - Singular field: The main field's value replaces the value of the - * corresponding field in the template. - * - Repeated fields: The field values are appended to the list defined in - * the template. - * - Sub-messages and groups: The fields are recursively merged. - * @type string $deidentify_template - * The full resource name of the de-identification template to use. Settings - * in the main `image_redaction_configs` field override the corresponding - * settings in this de-identification template. The request fails if the - * type of the template's deidentify_config is not image_transformations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 8; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 8; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - - /** - * Configuration for the inspector. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - * @return \Google\Cloud\Dlp\V2\InspectConfig|null - */ - public function getInspectConfig() - { - return $this->inspect_config; - } - - public function hasInspectConfig() - { - return isset($this->inspect_config); - } - - public function clearInspectConfig() - { - unset($this->inspect_config); - } - - /** - * Configuration for the inspector. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - * @param \Google\Cloud\Dlp\V2\InspectConfig $var - * @return $this - */ - public function setInspectConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); - $this->inspect_config = $var; - - return $this; - } - - /** - * The configuration for specifying what content to redact from images. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5; - * @return RepeatedField<\Google\Cloud\Dlp\V2\RedactImageRequest\ImageRedactionConfig> - */ - public function getImageRedactionConfigs() - { - return $this->image_redaction_configs; - } - - /** - * The configuration for specifying what content to redact from images. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5; - * @param \Google\Cloud\Dlp\V2\RedactImageRequest\ImageRedactionConfig[] $var - * @return $this - */ - public function setImageRedactionConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\RedactImageRequest\ImageRedactionConfig::class); - $this->image_redaction_configs = $arr; - - return $this; - } - - /** - * Whether the response should include findings along with the redacted - * image. - * - * Generated from protobuf field bool include_findings = 6; - * @return bool - */ - public function getIncludeFindings() - { - return $this->include_findings; - } - - /** - * Whether the response should include findings along with the redacted - * image. - * - * Generated from protobuf field bool include_findings = 6; - * @param bool $var - * @return $this - */ - public function setIncludeFindings($var) - { - GPBUtil::checkBool($var); - $this->include_findings = $var; - - return $this; - } - - /** - * The content must be PNG, JPEG, SVG or BMP. - * - * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem byte_item = 7; - * @return \Google\Cloud\Dlp\V2\ByteContentItem|null - */ - public function getByteItem() - { - return $this->byte_item; - } - - public function hasByteItem() - { - return isset($this->byte_item); - } - - public function clearByteItem() - { - unset($this->byte_item); - } - - /** - * The content must be PNG, JPEG, SVG or BMP. - * - * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem byte_item = 7; - * @param \Google\Cloud\Dlp\V2\ByteContentItem $var - * @return $this - */ - public function setByteItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ByteContentItem::class); - $this->byte_item = $var; - - return $this; - } - - /** - * The full resource name of the inspection template to use. Settings in the - * main `inspect_config` field override the corresponding settings in this - * inspection template. - * The merge behavior is as follows: - * - Singular field: The main field's value replaces the value of the - * corresponding field in the template. - * - Repeated fields: The field values are appended to the list defined in - * the template. - * - Sub-messages and groups: The fields are recursively merged. - * - * Generated from protobuf field string inspect_template = 9; - * @return string - */ - public function getInspectTemplate() - { - return $this->inspect_template; - } - - /** - * The full resource name of the inspection template to use. Settings in the - * main `inspect_config` field override the corresponding settings in this - * inspection template. - * The merge behavior is as follows: - * - Singular field: The main field's value replaces the value of the - * corresponding field in the template. - * - Repeated fields: The field values are appended to the list defined in - * the template. - * - Sub-messages and groups: The fields are recursively merged. - * - * Generated from protobuf field string inspect_template = 9; - * @param string $var - * @return $this - */ - public function setInspectTemplate($var) - { - GPBUtil::checkString($var, True); - $this->inspect_template = $var; - - return $this; - } - - /** - * The full resource name of the de-identification template to use. Settings - * in the main `image_redaction_configs` field override the corresponding - * settings in this de-identification template. The request fails if the - * type of the template's deidentify_config is not image_transformations. - * - * Generated from protobuf field string deidentify_template = 10; - * @return string - */ - public function getDeidentifyTemplate() - { - return $this->deidentify_template; - } - - /** - * The full resource name of the de-identification template to use. Settings - * in the main `image_redaction_configs` field override the corresponding - * settings in this de-identification template. The request fails if the - * type of the template's deidentify_config is not image_transformations. - * - * Generated from protobuf field string deidentify_template = 10; - * @param string $var - * @return $this - */ - public function setDeidentifyTemplate($var) - { - GPBUtil::checkString($var, True); - $this->deidentify_template = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest/ImageRedactionConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest/ImageRedactionConfig.php deleted file mode 100644 index 06427390ec46..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest/ImageRedactionConfig.php +++ /dev/null @@ -1,168 +0,0 @@ -google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig - */ -class ImageRedactionConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The color to use when redacting content from an image. If not specified, - * the default is black. - * - * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; - */ - protected $redaction_color = null; - protected $target; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * Only one per info_type should be provided per request. If not - * specified, and redact_all_text is false, the DLP API will redact all - * text that it matches against all info_types that are found, but not - * specified in another ImageRedactionConfig. - * @type bool $redact_all_text - * If true, all text found in the image, regardless whether it matches an - * info_type, is redacted. Only one should be provided. - * @type \Google\Cloud\Dlp\V2\Color $redaction_color - * The color to use when redacting content from an image. If not specified, - * the default is black. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Only one per info_type should be provided per request. If not - * specified, and redact_all_text is false, the DLP API will redact all - * text that it matches against all info_types that are found, but not - * specified in another ImageRedactionConfig. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->readOneof(1); - } - - public function hasInfoType() - { - return $this->hasOneof(1); - } - - /** - * Only one per info_type should be provided per request. If not - * specified, and redact_all_text is false, the DLP API will redact all - * text that it matches against all info_types that are found, but not - * specified in another ImageRedactionConfig. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * If true, all text found in the image, regardless whether it matches an - * info_type, is redacted. Only one should be provided. - * - * Generated from protobuf field bool redact_all_text = 2; - * @return bool - */ - public function getRedactAllText() - { - return $this->readOneof(2); - } - - public function hasRedactAllText() - { - return $this->hasOneof(2); - } - - /** - * If true, all text found in the image, regardless whether it matches an - * info_type, is redacted. Only one should be provided. - * - * Generated from protobuf field bool redact_all_text = 2; - * @param bool $var - * @return $this - */ - public function setRedactAllText($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The color to use when redacting content from an image. If not specified, - * the default is black. - * - * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; - * @return \Google\Cloud\Dlp\V2\Color|null - */ - public function getRedactionColor() - { - return $this->redaction_color; - } - - public function hasRedactionColor() - { - return isset($this->redaction_color); - } - - public function clearRedactionColor() - { - unset($this->redaction_color); - } - - /** - * The color to use when redacting content from an image. If not specified, - * the default is black. - * - * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; - * @param \Google\Cloud\Dlp\V2\Color $var - * @return $this - */ - public function setRedactionColor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Color::class); - $this->redaction_color = $var; - - return $this; - } - - /** - * @return string - */ - public function getTarget() - { - return $this->whichOneof("target"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageResponse.php deleted file mode 100644 index e0af8a6a5c10..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageResponse.php +++ /dev/null @@ -1,153 +0,0 @@ -google.privacy.dlp.v2.RedactImageResponse - */ -class RedactImageResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The redacted image. The type will be the same as the original image. - * - * Generated from protobuf field bytes redacted_image = 1; - */ - protected $redacted_image = ''; - /** - * If an image was being inspected and the InspectConfig's include_quote was - * set to true, then this field will include all text, if any, that was found - * in the image. - * - * Generated from protobuf field string extracted_text = 2; - */ - protected $extracted_text = ''; - /** - * The findings. Populated when include_findings in the request is true. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectResult inspect_result = 3; - */ - protected $inspect_result = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $redacted_image - * The redacted image. The type will be the same as the original image. - * @type string $extracted_text - * If an image was being inspected and the InspectConfig's include_quote was - * set to true, then this field will include all text, if any, that was found - * in the image. - * @type \Google\Cloud\Dlp\V2\InspectResult $inspect_result - * The findings. Populated when include_findings in the request is true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The redacted image. The type will be the same as the original image. - * - * Generated from protobuf field bytes redacted_image = 1; - * @return string - */ - public function getRedactedImage() - { - return $this->redacted_image; - } - - /** - * The redacted image. The type will be the same as the original image. - * - * Generated from protobuf field bytes redacted_image = 1; - * @param string $var - * @return $this - */ - public function setRedactedImage($var) - { - GPBUtil::checkString($var, False); - $this->redacted_image = $var; - - return $this; - } - - /** - * If an image was being inspected and the InspectConfig's include_quote was - * set to true, then this field will include all text, if any, that was found - * in the image. - * - * Generated from protobuf field string extracted_text = 2; - * @return string - */ - public function getExtractedText() - { - return $this->extracted_text; - } - - /** - * If an image was being inspected and the InspectConfig's include_quote was - * set to true, then this field will include all text, if any, that was found - * in the image. - * - * Generated from protobuf field string extracted_text = 2; - * @param string $var - * @return $this - */ - public function setExtractedText($var) - { - GPBUtil::checkString($var, True); - $this->extracted_text = $var; - - return $this; - } - - /** - * The findings. Populated when include_findings in the request is true. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectResult inspect_result = 3; - * @return \Google\Cloud\Dlp\V2\InspectResult|null - */ - public function getInspectResult() - { - return $this->inspect_result; - } - - public function hasInspectResult() - { - return isset($this->inspect_result); - } - - public function clearInspectResult() - { - unset($this->inspect_result); - } - - /** - * The findings. Populated when include_findings in the request is true. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectResult inspect_result = 3; - * @param \Google\Cloud\Dlp\V2\InspectResult $var - * @return $this - */ - public function setInspectResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectResult::class); - $this->inspect_result = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentRequest.php deleted file mode 100644 index 25ba1bf00915..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentRequest.php +++ /dev/null @@ -1,417 +0,0 @@ -google.privacy.dlp.v2.ReidentifyContentRequest - */ -class ReidentifyContentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Configuration for the re-identification of the content item. - * This field shares the same proto message type that is used for - * de-identification, however its usage here is for the reversal of the - * previous de-identification. Re-identification is performed by examining - * the transformations used to de-identify the items and executing the - * reverse. This requires that only reversible transformations - * be provided here. The reversible transformations are: - * - `CryptoDeterministicConfig` - * - `CryptoReplaceFfxFpeConfig` - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig reidentify_config = 2; - */ - protected $reidentify_config = null; - /** - * Configuration for the inspector. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; - */ - protected $inspect_config = null; - /** - * The item to re-identify. Will be treated as text. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; - */ - protected $item = null; - /** - * Template to use. Any configuration directly specified in - * `inspect_config` will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 5; - */ - protected $inspect_template_name = ''; - /** - * Template to use. References an instance of `DeidentifyTemplate`. - * Any configuration directly specified in `reidentify_config` or - * `inspect_config` will override those set in the template. The - * `DeidentifyTemplate` used must include only reversible transformations. - * Singular fields that are set in this request will replace their - * corresponding fields in the template. Repeated fields are appended. - * Singular sub-messages and groups are recursively merged. - * - * Generated from protobuf field string reidentify_template_name = 6; - */ - protected $reidentify_template_name = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - */ - protected $location_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\DeidentifyConfig $reidentify_config - * Configuration for the re-identification of the content item. - * This field shares the same proto message type that is used for - * de-identification, however its usage here is for the reversal of the - * previous de-identification. Re-identification is performed by examining - * the transformations used to de-identify the items and executing the - * reverse. This requires that only reversible transformations - * be provided here. The reversible transformations are: - * - `CryptoDeterministicConfig` - * - `CryptoReplaceFfxFpeConfig` - * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config - * Configuration for the inspector. - * @type \Google\Cloud\Dlp\V2\ContentItem $item - * The item to re-identify. Will be treated as text. - * @type string $inspect_template_name - * Template to use. Any configuration directly specified in - * `inspect_config` will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * @type string $reidentify_template_name - * Template to use. References an instance of `DeidentifyTemplate`. - * Any configuration directly specified in `reidentify_config` or - * `inspect_config` will override those set in the template. The - * `DeidentifyTemplate` used must include only reversible transformations. - * Singular fields that are set in this request will replace their - * corresponding fields in the template. Repeated fields are appended. - * Singular sub-messages and groups are recursively merged. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Configuration for the re-identification of the content item. - * This field shares the same proto message type that is used for - * de-identification, however its usage here is for the reversal of the - * previous de-identification. Re-identification is performed by examining - * the transformations used to de-identify the items and executing the - * reverse. This requires that only reversible transformations - * be provided here. The reversible transformations are: - * - `CryptoDeterministicConfig` - * - `CryptoReplaceFfxFpeConfig` - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig reidentify_config = 2; - * @return \Google\Cloud\Dlp\V2\DeidentifyConfig|null - */ - public function getReidentifyConfig() - { - return $this->reidentify_config; - } - - public function hasReidentifyConfig() - { - return isset($this->reidentify_config); - } - - public function clearReidentifyConfig() - { - unset($this->reidentify_config); - } - - /** - * Configuration for the re-identification of the content item. - * This field shares the same proto message type that is used for - * de-identification, however its usage here is for the reversal of the - * previous de-identification. Re-identification is performed by examining - * the transformations used to de-identify the items and executing the - * reverse. This requires that only reversible transformations - * be provided here. The reversible transformations are: - * - `CryptoDeterministicConfig` - * - `CryptoReplaceFfxFpeConfig` - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig reidentify_config = 2; - * @param \Google\Cloud\Dlp\V2\DeidentifyConfig $var - * @return $this - */ - public function setReidentifyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyConfig::class); - $this->reidentify_config = $var; - - return $this; - } - - /** - * Configuration for the inspector. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; - * @return \Google\Cloud\Dlp\V2\InspectConfig|null - */ - public function getInspectConfig() - { - return $this->inspect_config; - } - - public function hasInspectConfig() - { - return isset($this->inspect_config); - } - - public function clearInspectConfig() - { - unset($this->inspect_config); - } - - /** - * Configuration for the inspector. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; - * @param \Google\Cloud\Dlp\V2\InspectConfig $var - * @return $this - */ - public function setInspectConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); - $this->inspect_config = $var; - - return $this; - } - - /** - * The item to re-identify. Will be treated as text. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; - * @return \Google\Cloud\Dlp\V2\ContentItem|null - */ - public function getItem() - { - return $this->item; - } - - public function hasItem() - { - return isset($this->item); - } - - public function clearItem() - { - unset($this->item); - } - - /** - * The item to re-identify. Will be treated as text. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; - * @param \Google\Cloud\Dlp\V2\ContentItem $var - * @return $this - */ - public function setItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); - $this->item = $var; - - return $this; - } - - /** - * Template to use. Any configuration directly specified in - * `inspect_config` will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 5; - * @return string - */ - public function getInspectTemplateName() - { - return $this->inspect_template_name; - } - - /** - * Template to use. Any configuration directly specified in - * `inspect_config` will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 5; - * @param string $var - * @return $this - */ - public function setInspectTemplateName($var) - { - GPBUtil::checkString($var, True); - $this->inspect_template_name = $var; - - return $this; - } - - /** - * Template to use. References an instance of `DeidentifyTemplate`. - * Any configuration directly specified in `reidentify_config` or - * `inspect_config` will override those set in the template. The - * `DeidentifyTemplate` used must include only reversible transformations. - * Singular fields that are set in this request will replace their - * corresponding fields in the template. Repeated fields are appended. - * Singular sub-messages and groups are recursively merged. - * - * Generated from protobuf field string reidentify_template_name = 6; - * @return string - */ - public function getReidentifyTemplateName() - { - return $this->reidentify_template_name; - } - - /** - * Template to use. References an instance of `DeidentifyTemplate`. - * Any configuration directly specified in `reidentify_config` or - * `inspect_config` will override those set in the template. The - * `DeidentifyTemplate` used must include only reversible transformations. - * Singular fields that are set in this request will replace their - * corresponding fields in the template. Repeated fields are appended. - * Singular sub-messages and groups are recursively merged. - * - * Generated from protobuf field string reidentify_template_name = 6; - * @param string $var - * @return $this - */ - public function setReidentifyTemplateName($var) - { - GPBUtil::checkString($var, True); - $this->reidentify_template_name = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentResponse.php deleted file mode 100644 index dd6e31f8b72b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentResponse.php +++ /dev/null @@ -1,121 +0,0 @@ -google.privacy.dlp.v2.ReidentifyContentResponse - */ -class ReidentifyContentResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The re-identified item. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - */ - protected $item = null; - /** - * An overview of the changes that were made to the `item`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; - */ - protected $overview = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\ContentItem $item - * The re-identified item. - * @type \Google\Cloud\Dlp\V2\TransformationOverview $overview - * An overview of the changes that were made to the `item`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The re-identified item. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - * @return \Google\Cloud\Dlp\V2\ContentItem|null - */ - public function getItem() - { - return $this->item; - } - - public function hasItem() - { - return isset($this->item); - } - - public function clearItem() - { - unset($this->item); - } - - /** - * The re-identified item. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - * @param \Google\Cloud\Dlp\V2\ContentItem $var - * @return $this - */ - public function setItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); - $this->item = $var; - - return $this; - } - - /** - * An overview of the changes that were made to the `item`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; - * @return \Google\Cloud\Dlp\V2\TransformationOverview|null - */ - public function getOverview() - { - return $this->overview; - } - - public function hasOverview() - { - return isset($this->overview); - } - - public function clearOverview() - { - unset($this->overview); - } - - /** - * An overview of the changes that were made to the `item`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; - * @param \Google\Cloud\Dlp\V2\TransformationOverview $var - * @return $this - */ - public function setOverview($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationOverview::class); - $this->overview = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelatedResource.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelatedResource.php deleted file mode 100644 index abd778f96970..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelatedResource.php +++ /dev/null @@ -1,70 +0,0 @@ -google.privacy.dlp.v2.RelatedResource - */ -class RelatedResource extends \Google\Protobuf\Internal\Message -{ - /** - * The full resource name of the related resource. - * - * Generated from protobuf field string full_resource = 1; - */ - protected $full_resource = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $full_resource - * The full resource name of the related resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The full resource name of the related resource. - * - * Generated from protobuf field string full_resource = 1; - * @return string - */ - public function getFullResource() - { - return $this->full_resource; - } - - /** - * The full resource name of the related resource. - * - * Generated from protobuf field string full_resource = 1; - * @param string $var - * @return $this - */ - public function setFullResource($var) - { - GPBUtil::checkString($var, True); - $this->full_resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelationalOperator.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelationalOperator.php deleted file mode 100644 index 6ed71c1ce458..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelationalOperator.php +++ /dev/null @@ -1,96 +0,0 @@ -google.privacy.dlp.v2.RelationalOperator - */ -class RelationalOperator -{ - /** - * Unused - * - * Generated from protobuf enum RELATIONAL_OPERATOR_UNSPECIFIED = 0; - */ - const RELATIONAL_OPERATOR_UNSPECIFIED = 0; - /** - * Equal. Attempts to match even with incompatible types. - * - * Generated from protobuf enum EQUAL_TO = 1; - */ - const EQUAL_TO = 1; - /** - * Not equal to. Attempts to match even with incompatible types. - * - * Generated from protobuf enum NOT_EQUAL_TO = 2; - */ - const NOT_EQUAL_TO = 2; - /** - * Greater than. - * - * Generated from protobuf enum GREATER_THAN = 3; - */ - const GREATER_THAN = 3; - /** - * Less than. - * - * Generated from protobuf enum LESS_THAN = 4; - */ - const LESS_THAN = 4; - /** - * Greater than or equals. - * - * Generated from protobuf enum GREATER_THAN_OR_EQUALS = 5; - */ - const GREATER_THAN_OR_EQUALS = 5; - /** - * Less than or equals. - * - * Generated from protobuf enum LESS_THAN_OR_EQUALS = 6; - */ - const LESS_THAN_OR_EQUALS = 6; - /** - * Exists - * - * Generated from protobuf enum EXISTS = 7; - */ - const EXISTS = 7; - - private static $valueToName = [ - self::RELATIONAL_OPERATOR_UNSPECIFIED => 'RELATIONAL_OPERATOR_UNSPECIFIED', - self::EQUAL_TO => 'EQUAL_TO', - self::NOT_EQUAL_TO => 'NOT_EQUAL_TO', - self::GREATER_THAN => 'GREATER_THAN', - self::LESS_THAN => 'LESS_THAN', - self::GREATER_THAN_OR_EQUALS => 'GREATER_THAN_OR_EQUALS', - self::LESS_THAN_OR_EQUALS => 'LESS_THAN_OR_EQUALS', - self::EXISTS => 'EXISTS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceDictionaryConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceDictionaryConfig.php deleted file mode 100644 index c5e13ffc80c0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceDictionaryConfig.php +++ /dev/null @@ -1,81 +0,0 @@ -google.privacy.dlp.v2.ReplaceDictionaryConfig - */ -class ReplaceDictionaryConfig extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList $word_list - * A list of words to select from for random replacement. The - * [limits](https://cloud.google.com/sensitive-data-protection/limits) page - * contains details about the size limits of dictionaries. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A list of words to select from for random replacement. The - * [limits](https://cloud.google.com/sensitive-data-protection/limits) page - * contains details about the size limits of dictionaries. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList|null - */ - public function getWordList() - { - return $this->readOneof(1); - } - - public function hasWordList() - { - return $this->hasOneof(1); - } - - /** - * A list of words to select from for random replacement. The - * [limits](https://cloud.google.com/sensitive-data-protection/limits) page - * contains details about the size limits of dictionaries. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList $var - * @return $this - */ - public function setWordList($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceValueConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceValueConfig.php deleted file mode 100644 index 12324fc7e0c8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceValueConfig.php +++ /dev/null @@ -1,77 +0,0 @@ -google.privacy.dlp.v2.ReplaceValueConfig - */ -class ReplaceValueConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Value to replace it with. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value new_value = 1; - */ - protected $new_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Value $new_value - * Value to replace it with. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Value to replace it with. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value new_value = 1; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getNewValue() - { - return $this->new_value; - } - - public function hasNewValue() - { - return isset($this->new_value); - } - - public function clearNewValue() - { - unset($this->new_value); - } - - /** - * Value to replace it with. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value new_value = 1; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setNewValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->new_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceWithInfoTypeConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceWithInfoTypeConfig.php deleted file mode 100644 index 3318bae37d6b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceWithInfoTypeConfig.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.ReplaceWithInfoTypeConfig - */ -class ReplaceWithInfoTypeConfig extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ResourceVisibility.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ResourceVisibility.php deleted file mode 100644 index 0a6ef82cebaa..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ResourceVisibility.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.ResourceVisibility - */ -class ResourceVisibility -{ - /** - * Unused. - * - * Generated from protobuf enum RESOURCE_VISIBILITY_UNSPECIFIED = 0; - */ - const RESOURCE_VISIBILITY_UNSPECIFIED = 0; - /** - * Visible to any user. - * - * Generated from protobuf enum RESOURCE_VISIBILITY_PUBLIC = 10; - */ - const RESOURCE_VISIBILITY_PUBLIC = 10; - /** - * May contain public items. - * For example, if a Cloud Storage bucket has uniform bucket level access - * disabled, some objects inside it may be public, but none are known yet. - * - * Generated from protobuf enum RESOURCE_VISIBILITY_INCONCLUSIVE = 15; - */ - const RESOURCE_VISIBILITY_INCONCLUSIVE = 15; - /** - * Visible only to specific users. - * - * Generated from protobuf enum RESOURCE_VISIBILITY_RESTRICTED = 20; - */ - const RESOURCE_VISIBILITY_RESTRICTED = 20; - - private static $valueToName = [ - self::RESOURCE_VISIBILITY_UNSPECIFIED => 'RESOURCE_VISIBILITY_UNSPECIFIED', - self::RESOURCE_VISIBILITY_PUBLIC => 'RESOURCE_VISIBILITY_PUBLIC', - self::RESOURCE_VISIBILITY_INCONCLUSIVE => 'RESOURCE_VISIBILITY_INCONCLUSIVE', - self::RESOURCE_VISIBILITY_RESTRICTED => 'RESOURCE_VISIBILITY_RESTRICTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RiskAnalysisJobConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RiskAnalysisJobConfig.php deleted file mode 100644 index 4746a18d6e76..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RiskAnalysisJobConfig.php +++ /dev/null @@ -1,161 +0,0 @@ -google.privacy.dlp.v2.RiskAnalysisJobConfig - */ -class RiskAnalysisJobConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Privacy metric to compute. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric privacy_metric = 1; - */ - protected $privacy_metric = null; - /** - * Input dataset to compute metrics over. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable source_table = 2; - */ - protected $source_table = null; - /** - * Actions to execute at the completion of the job. Are executed in the order - * provided. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 3; - */ - private $actions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\PrivacyMetric $privacy_metric - * Privacy metric to compute. - * @type \Google\Cloud\Dlp\V2\BigQueryTable $source_table - * Input dataset to compute metrics over. - * @type \Google\Cloud\Dlp\V2\Action[] $actions - * Actions to execute at the completion of the job. Are executed in the order - * provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Privacy metric to compute. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric privacy_metric = 1; - * @return \Google\Cloud\Dlp\V2\PrivacyMetric|null - */ - public function getPrivacyMetric() - { - return $this->privacy_metric; - } - - public function hasPrivacyMetric() - { - return isset($this->privacy_metric); - } - - public function clearPrivacyMetric() - { - unset($this->privacy_metric); - } - - /** - * Privacy metric to compute. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric privacy_metric = 1; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric $var - * @return $this - */ - public function setPrivacyMetric($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric::class); - $this->privacy_metric = $var; - - return $this; - } - - /** - * Input dataset to compute metrics over. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable source_table = 2; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getSourceTable() - { - return $this->source_table; - } - - public function hasSourceTable() - { - return isset($this->source_table); - } - - public function clearSourceTable() - { - unset($this->source_table); - } - - /** - * Input dataset to compute metrics over. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable source_table = 2; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setSourceTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->source_table = $var; - - return $this; - } - - /** - * Actions to execute at the completion of the job. Are executed in the order - * provided. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 3; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Action> - */ - public function getActions() - { - return $this->actions; - } - - /** - * Actions to execute at the completion of the job. Are executed in the order - * provided. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 3; - * @param \Google\Cloud\Dlp\V2\Action[] $var - * @return $this - */ - public function setActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Action::class); - $this->actions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SaveToGcsFindingsOutput.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SaveToGcsFindingsOutput.php deleted file mode 100644 index 3028ff76468c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SaveToGcsFindingsOutput.php +++ /dev/null @@ -1,69 +0,0 @@ -google.privacy.dlp.v2.SaveToGcsFindingsOutput - */ -class SaveToGcsFindingsOutput extends \Google\Protobuf\Internal\Message -{ - /** - * List of findings. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Finding findings = 1; - */ - private $findings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Finding[] $findings - * List of findings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of findings. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Finding findings = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Finding> - */ - public function getFindings() - { - return $this->findings; - } - - /** - * List of findings. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Finding findings = 1; - * @param \Google\Cloud\Dlp\V2\Finding[] $var - * @return $this - */ - public function setFindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Finding::class); - $this->findings = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Schedule.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Schedule.php deleted file mode 100644 index 2b80dfc75371..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Schedule.php +++ /dev/null @@ -1,90 +0,0 @@ -google.privacy.dlp.v2.Schedule - */ -class Schedule extends \Google\Protobuf\Internal\Message -{ - protected $option; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $recurrence_period_duration - * With this option a job is started on a regular periodic basis. For - * example: every day (86400 seconds). - * A scheduled start time will be skipped if the previous - * execution has not ended when its scheduled time occurs. - * This value must be set to a time duration greater than or equal - * to 1 day and can be no longer than 60 days. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * With this option a job is started on a regular periodic basis. For - * example: every day (86400 seconds). - * A scheduled start time will be skipped if the previous - * execution has not ended when its scheduled time occurs. - * This value must be set to a time duration greater than or equal - * to 1 day and can be no longer than 60 days. - * - * Generated from protobuf field .google.protobuf.Duration recurrence_period_duration = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getRecurrencePeriodDuration() - { - return $this->readOneof(1); - } - - public function hasRecurrencePeriodDuration() - { - return $this->hasOneof(1); - } - - /** - * With this option a job is started on a regular periodic basis. For - * example: every day (86400 seconds). - * A scheduled start time will be skipped if the previous - * execution has not ended when its scheduled time occurs. - * This value must be set to a time duration greater than or equal - * to 1 day and can be no longer than 60 days. - * - * Generated from protobuf field .google.protobuf.Duration recurrence_period_duration = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setRecurrencePeriodDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getOption() - { - return $this->whichOneof("option"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsRequest.php deleted file mode 100644 index 8a228725ccee..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -google.privacy.dlp.v2.SearchConnectionsRequest - */ -class SearchConnectionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization or project with a wildcard - * location, for example, `organizations/433245324/locations/-` or - * `projects/project-id/locations/-`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Number of results per page, max 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token from a previous page to return the next set of - * results. If set, all other request fields must match the original request. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR - * The syntax is based on https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Resource name of the organization or project with a wildcard - * location, for example, `organizations/433245324/locations/-` or - * `projects/project-id/locations/-`. Please see - * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\SearchConnectionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the organization or project with a wildcard - * location, for example, `organizations/433245324/locations/-` or - * `projects/project-id/locations/-`. - * @type int $page_size - * Optional. Number of results per page, max 1000. - * @type string $page_token - * Optional. Page token from a previous page to return the next set of - * results. If set, all other request fields must match the original request. - * @type string $filter - * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR - * The syntax is based on https://google.aip.dev/160. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization or project with a wildcard - * location, for example, `organizations/433245324/locations/-` or - * `projects/project-id/locations/-`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Resource name of the organization or project with a wildcard - * location, for example, `organizations/433245324/locations/-` or - * `projects/project-id/locations/-`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. Number of results per page, max 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Number of results per page, max 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. Page token from a previous page to return the next set of - * results. If set, all other request fields must match the original request. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Page token from a previous page to return the next set of - * results. If set, all other request fields must match the original request. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR - * The syntax is based on https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR - * The syntax is based on https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsResponse.php deleted file mode 100644 index 9a3ea4392006..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsResponse.php +++ /dev/null @@ -1,113 +0,0 @@ -google.privacy.dlp.v2.SearchConnectionsResponse - */ -class SearchConnectionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of connections that match the search query. Note that only a subset - * of the fields will be populated, and only "name" is guaranteed to be set. - * For full details of a Connection, call GetConnection with the name. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; - */ - private $connections; - /** - * Token to retrieve the next page of results. An empty value means there are - * no more results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Connection[] $connections - * List of connections that match the search query. Note that only a subset - * of the fields will be populated, and only "name" is guaranteed to be set. - * For full details of a Connection, call GetConnection with the name. - * @type string $next_page_token - * Token to retrieve the next page of results. An empty value means there are - * no more results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of connections that match the search query. Note that only a subset - * of the fields will be populated, and only "name" is guaranteed to be set. - * For full details of a Connection, call GetConnection with the name. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Connection> - */ - public function getConnections() - { - return $this->connections; - } - - /** - * List of connections that match the search query. Note that only a subset - * of the fields will be populated, and only "name" is guaranteed to be set. - * For full details of a Connection, call GetConnection with the name. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; - * @param \Google\Cloud\Dlp\V2\Connection[] $var - * @return $this - */ - public function setConnections($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Connection::class); - $this->connections = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results. An empty value means there are - * no more results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results. An empty value means there are - * no more results. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretManagerCredential.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretManagerCredential.php deleted file mode 100644 index 8608b56efa4d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretManagerCredential.php +++ /dev/null @@ -1,108 +0,0 @@ -google.privacy.dlp.v2.SecretManagerCredential - */ -class SecretManagerCredential extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The username. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $username = ''; - /** - * Required. The name of the Secret Manager resource that stores the password, - * in the form `projects/project-id/secrets/secret-name/versions/version`. - * - * Generated from protobuf field string password_secret_version_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $password_secret_version_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $username - * Required. The username. - * @type string $password_secret_version_name - * Required. The name of the Secret Manager resource that stores the password, - * in the form `projects/project-id/secrets/secret-name/versions/version`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The username. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUsername() - { - return $this->username; - } - - /** - * Required. The username. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUsername($var) - { - GPBUtil::checkString($var, True); - $this->username = $var; - - return $this; - } - - /** - * Required. The name of the Secret Manager resource that stores the password, - * in the form `projects/project-id/secrets/secret-name/versions/version`. - * - * Generated from protobuf field string password_secret_version_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPasswordSecretVersionName() - { - return $this->password_secret_version_name; - } - - /** - * Required. The name of the Secret Manager resource that stores the password, - * in the form `projects/project-id/secrets/secret-name/versions/version`. - * - * Generated from protobuf field string password_secret_version_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPasswordSecretVersionName($var) - { - GPBUtil::checkString($var, True); - $this->password_secret_version_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretsDiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretsDiscoveryTarget.php deleted file mode 100644 index a0b04b9cb5be..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretsDiscoveryTarget.php +++ /dev/null @@ -1,41 +0,0 @@ -google.privacy.dlp.v2.SecretsDiscoveryTarget - */ -class SecretsDiscoveryTarget extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore.php deleted file mode 100644 index 4ad270c188ea..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.SensitivityScore - */ -class SensitivityScore extends \Google\Protobuf\Internal\Message -{ - /** - * The sensitivity score applied to the resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1; - */ - protected $score = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $score - * The sensitivity score applied to the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The sensitivity score applied to the resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1; - * @return int - */ - public function getScore() - { - return $this->score; - } - - /** - * The sensitivity score applied to the resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1; - * @param int $var - * @return $this - */ - public function setScore($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\SensitivityScore\SensitivityScoreLevel::class); - $this->score = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore/SensitivityScoreLevel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore/SensitivityScoreLevel.php deleted file mode 100644 index d083a3f822cd..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore/SensitivityScoreLevel.php +++ /dev/null @@ -1,82 +0,0 @@ -google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel - */ -class SensitivityScoreLevel -{ - /** - * Unused. - * - * Generated from protobuf enum SENSITIVITY_SCORE_UNSPECIFIED = 0; - */ - const SENSITIVITY_SCORE_UNSPECIFIED = 0; - /** - * No sensitive information detected. The resource isn't publicly - * accessible. - * - * Generated from protobuf enum SENSITIVITY_LOW = 10; - */ - const SENSITIVITY_LOW = 10; - /** - * Unable to determine sensitivity. - * - * Generated from protobuf enum SENSITIVITY_UNKNOWN = 12; - */ - const SENSITIVITY_UNKNOWN = 12; - /** - * Medium risk. Contains personally identifiable information (PII), - * potentially sensitive data, or fields with free-text data that are at a - * higher risk of having intermittent sensitive data. Consider limiting - * access. - * - * Generated from protobuf enum SENSITIVITY_MODERATE = 20; - */ - const SENSITIVITY_MODERATE = 20; - /** - * High risk. Sensitive personally identifiable information (SPII) can be - * present. Exfiltration of data can lead to user data loss. - * Re-identification of users might be possible. Consider limiting usage and - * or removing SPII. - * - * Generated from protobuf enum SENSITIVITY_HIGH = 30; - */ - const SENSITIVITY_HIGH = 30; - - private static $valueToName = [ - self::SENSITIVITY_SCORE_UNSPECIFIED => 'SENSITIVITY_SCORE_UNSPECIFIED', - self::SENSITIVITY_LOW => 'SENSITIVITY_LOW', - self::SENSITIVITY_UNKNOWN => 'SENSITIVITY_UNKNOWN', - self::SENSITIVITY_MODERATE => 'SENSITIVITY_MODERATE', - self::SENSITIVITY_HIGH => 'SENSITIVITY_HIGH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable.php deleted file mode 100644 index 28400dcc1ebc..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable.php +++ /dev/null @@ -1,165 +0,0 @@ -google.privacy.dlp.v2.StatisticalTable - */ -class StatisticalTable extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Auxiliary table location. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table = null; - /** - * Required. Quasi-identifier columns. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $quasi_ids; - /** - * Required. The relative frequency column must contain a floating-point - * number between 0 and 1 (inclusive). Null values are assumed to be zero. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $relative_frequency = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTable $table - * Required. Auxiliary table location. - * @type \Google\Cloud\Dlp\V2\StatisticalTable\QuasiIdentifierField[] $quasi_ids - * Required. Quasi-identifier columns. - * @type \Google\Cloud\Dlp\V2\FieldId $relative_frequency - * Required. The relative frequency column must contain a floating-point - * number between 0 and 1 (inclusive). Null values are assumed to be zero. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Auxiliary table location. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getTable() - { - return $this->table; - } - - public function hasTable() - { - return isset($this->table); - } - - public function clearTable() - { - unset($this->table); - } - - /** - * Required. Auxiliary table location. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->table = $var; - - return $this; - } - - /** - * Required. Quasi-identifier columns. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Dlp\V2\StatisticalTable\QuasiIdentifierField> - */ - public function getQuasiIds() - { - return $this->quasi_ids; - } - - /** - * Required. Quasi-identifier columns. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\StatisticalTable\QuasiIdentifierField[] $var - * @return $this - */ - public function setQuasiIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\StatisticalTable\QuasiIdentifierField::class); - $this->quasi_ids = $arr; - - return $this; - } - - /** - * Required. The relative frequency column must contain a floating-point - * number between 0 and 1 (inclusive). Null values are assumed to be zero. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getRelativeFrequency() - { - return $this->relative_frequency; - } - - public function hasRelativeFrequency() - { - return isset($this->relative_frequency); - } - - public function clearRelativeFrequency() - { - unset($this->relative_frequency); - } - - /** - * Required. The relative frequency column must contain a floating-point - * number between 0 and 1 (inclusive). Null values are assumed to be zero. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setRelativeFrequency($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->relative_frequency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable/QuasiIdentifierField.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable/QuasiIdentifierField.php deleted file mode 100644 index ba6fc14985bc..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable/QuasiIdentifierField.php +++ /dev/null @@ -1,120 +0,0 @@ -google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField - */ -class QuasiIdentifierField extends \Google\Protobuf\Internal\Message -{ - /** - * Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - */ - protected $field = null; - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column. - * - * Generated from protobuf field string custom_tag = 2; - */ - protected $custom_tag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Identifies the column. - * @type string $custom_tag - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column. - * - * Generated from protobuf field string custom_tag = 2; - * @return string - */ - public function getCustomTag() - { - return $this->custom_tag; - } - - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column. - * - * Generated from protobuf field string custom_tag = 2; - * @param string $var - * @return $this - */ - public function setCustomTag($var) - { - GPBUtil::checkString($var, True); - $this->custom_tag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig.php deleted file mode 100644 index 77bd19469027..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig.php +++ /dev/null @@ -1,218 +0,0 @@ -google.privacy.dlp.v2.StorageConfig - */ -class StorageConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Configuration of the timespan of the items to include in scanning. - * - * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; - */ - protected $timespan_config = null; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DatastoreOptions $datastore_options - * Google Cloud Datastore options. - * @type \Google\Cloud\Dlp\V2\CloudStorageOptions $cloud_storage_options - * Cloud Storage options. - * @type \Google\Cloud\Dlp\V2\BigQueryOptions $big_query_options - * BigQuery options. - * @type \Google\Cloud\Dlp\V2\HybridOptions $hybrid_options - * Hybrid inspection options. - * @type \Google\Cloud\Dlp\V2\StorageConfig\TimespanConfig $timespan_config - * Configuration of the timespan of the items to include in scanning. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Google Cloud Datastore options. - * - * Generated from protobuf field .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; - * @return \Google\Cloud\Dlp\V2\DatastoreOptions|null - */ - public function getDatastoreOptions() - { - return $this->readOneof(2); - } - - public function hasDatastoreOptions() - { - return $this->hasOneof(2); - } - - /** - * Google Cloud Datastore options. - * - * Generated from protobuf field .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; - * @param \Google\Cloud\Dlp\V2\DatastoreOptions $var - * @return $this - */ - public function setDatastoreOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DatastoreOptions::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Cloud Storage options. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; - * @return \Google\Cloud\Dlp\V2\CloudStorageOptions|null - */ - public function getCloudStorageOptions() - { - return $this->readOneof(3); - } - - public function hasCloudStorageOptions() - { - return $this->hasOneof(3); - } - - /** - * Cloud Storage options. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; - * @param \Google\Cloud\Dlp\V2\CloudStorageOptions $var - * @return $this - */ - public function setCloudStorageOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageOptions::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * BigQuery options. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; - * @return \Google\Cloud\Dlp\V2\BigQueryOptions|null - */ - public function getBigQueryOptions() - { - return $this->readOneof(4); - } - - public function hasBigQueryOptions() - { - return $this->hasOneof(4); - } - - /** - * BigQuery options. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; - * @param \Google\Cloud\Dlp\V2\BigQueryOptions $var - * @return $this - */ - public function setBigQueryOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryOptions::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Hybrid inspection options. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; - * @return \Google\Cloud\Dlp\V2\HybridOptions|null - */ - public function getHybridOptions() - { - return $this->readOneof(9); - } - - public function hasHybridOptions() - { - return $this->hasOneof(9); - } - - /** - * Hybrid inspection options. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; - * @param \Google\Cloud\Dlp\V2\HybridOptions $var - * @return $this - */ - public function setHybridOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\HybridOptions::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Configuration of the timespan of the items to include in scanning. - * - * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; - * @return \Google\Cloud\Dlp\V2\StorageConfig\TimespanConfig|null - */ - public function getTimespanConfig() - { - return $this->timespan_config; - } - - public function hasTimespanConfig() - { - return isset($this->timespan_config); - } - - public function clearTimespanConfig() - { - unset($this->timespan_config); - } - - /** - * Configuration of the timespan of the items to include in scanning. - * - * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; - * @param \Google\Cloud\Dlp\V2\StorageConfig\TimespanConfig $var - * @return $this - */ - public function setTimespanConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StorageConfig\TimespanConfig::class); - $this->timespan_config = $var; - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig/TimespanConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig/TimespanConfig.php deleted file mode 100644 index f7ad5dbec8e8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig/TimespanConfig.php +++ /dev/null @@ -1,356 +0,0 @@ -google.privacy.dlp.v2.StorageConfig.TimespanConfig - */ -class TimespanConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Exclude files, tables, or rows older than this value. - * If not set, no lower time limit is applied. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - */ - protected $start_time = null; - /** - * Exclude files, tables, or rows newer than this value. - * If not set, no upper time limit is applied. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - */ - protected $end_time = null; - /** - * Specification of the field containing the timestamp of scanned items. - * Used for data sources like Datastore and BigQuery. - * **For BigQuery** - * If this value is not specified and the table was modified between the - * given start and end times, the entire table will be scanned. If this - * value is specified, then rows are filtered based on the given start and - * end times. Rows with a `NULL` value in the provided BigQuery column are - * skipped. - * Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`, - * `TIMESTAMP`, and `DATETIME`. - * If your BigQuery table is [partitioned at ingestion - * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time), - * you can use any of the following pseudo-columns as your timestamp field. - * When used with Cloud DLP, these pseudo-column names are case sensitive. - * - `_PARTITIONTIME` - * - `_PARTITIONDATE` - * - `_PARTITION_LOAD_TIME` - * **For Datastore** - * If this value is specified, then entities are filtered based on the given - * start and end times. If an entity does not contain the provided timestamp - * property or contains empty or invalid values, then it is included. - * Valid data types of the provided timestamp property are: `TIMESTAMP`. - * See the - * [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) - * related to this operation. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId timestamp_field = 3; - */ - protected $timestamp_field = null; - /** - * When the job is started by a JobTrigger we will automatically figure out - * a valid start_time to avoid scanning files that have not been modified - * since the last time the JobTrigger executed. This will be based on the - * time of the execution of the last run of the JobTrigger or the timespan - * end_time used in the last run of the JobTrigger. - * **For BigQuery** - * Inspect jobs triggered by automatic population will scan data that is at - * least three hours old when the job starts. This is because streaming - * buffer rows are not read during inspection and reading up to the current - * timestamp will result in skipped rows. - * See the [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data) - * related to this operation. - * - * Generated from protobuf field bool enable_auto_population_of_timespan_config = 4; - */ - protected $enable_auto_population_of_timespan_config = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $start_time - * Exclude files, tables, or rows older than this value. - * If not set, no lower time limit is applied. - * @type \Google\Protobuf\Timestamp $end_time - * Exclude files, tables, or rows newer than this value. - * If not set, no upper time limit is applied. - * @type \Google\Cloud\Dlp\V2\FieldId $timestamp_field - * Specification of the field containing the timestamp of scanned items. - * Used for data sources like Datastore and BigQuery. - * **For BigQuery** - * If this value is not specified and the table was modified between the - * given start and end times, the entire table will be scanned. If this - * value is specified, then rows are filtered based on the given start and - * end times. Rows with a `NULL` value in the provided BigQuery column are - * skipped. - * Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`, - * `TIMESTAMP`, and `DATETIME`. - * If your BigQuery table is [partitioned at ingestion - * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time), - * you can use any of the following pseudo-columns as your timestamp field. - * When used with Cloud DLP, these pseudo-column names are case sensitive. - * - `_PARTITIONTIME` - * - `_PARTITIONDATE` - * - `_PARTITION_LOAD_TIME` - * **For Datastore** - * If this value is specified, then entities are filtered based on the given - * start and end times. If an entity does not contain the provided timestamp - * property or contains empty or invalid values, then it is included. - * Valid data types of the provided timestamp property are: `TIMESTAMP`. - * See the - * [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) - * related to this operation. - * @type bool $enable_auto_population_of_timespan_config - * When the job is started by a JobTrigger we will automatically figure out - * a valid start_time to avoid scanning files that have not been modified - * since the last time the JobTrigger executed. This will be based on the - * time of the execution of the last run of the JobTrigger or the timespan - * end_time used in the last run of the JobTrigger. - * **For BigQuery** - * Inspect jobs triggered by automatic population will scan data that is at - * least three hours old when the job starts. This is because streaming - * buffer rows are not read during inspection and reading up to the current - * timestamp will result in skipped rows. - * See the [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data) - * related to this operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Exclude files, tables, or rows older than this value. - * If not set, no lower time limit is applied. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Exclude files, tables, or rows older than this value. - * If not set, no lower time limit is applied. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Exclude files, tables, or rows newer than this value. - * If not set, no upper time limit is applied. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Exclude files, tables, or rows newer than this value. - * If not set, no upper time limit is applied. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Specification of the field containing the timestamp of scanned items. - * Used for data sources like Datastore and BigQuery. - * **For BigQuery** - * If this value is not specified and the table was modified between the - * given start and end times, the entire table will be scanned. If this - * value is specified, then rows are filtered based on the given start and - * end times. Rows with a `NULL` value in the provided BigQuery column are - * skipped. - * Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`, - * `TIMESTAMP`, and `DATETIME`. - * If your BigQuery table is [partitioned at ingestion - * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time), - * you can use any of the following pseudo-columns as your timestamp field. - * When used with Cloud DLP, these pseudo-column names are case sensitive. - * - `_PARTITIONTIME` - * - `_PARTITIONDATE` - * - `_PARTITION_LOAD_TIME` - * **For Datastore** - * If this value is specified, then entities are filtered based on the given - * start and end times. If an entity does not contain the provided timestamp - * property or contains empty or invalid values, then it is included. - * Valid data types of the provided timestamp property are: `TIMESTAMP`. - * See the - * [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) - * related to this operation. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId timestamp_field = 3; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getTimestampField() - { - return $this->timestamp_field; - } - - public function hasTimestampField() - { - return isset($this->timestamp_field); - } - - public function clearTimestampField() - { - unset($this->timestamp_field); - } - - /** - * Specification of the field containing the timestamp of scanned items. - * Used for data sources like Datastore and BigQuery. - * **For BigQuery** - * If this value is not specified and the table was modified between the - * given start and end times, the entire table will be scanned. If this - * value is specified, then rows are filtered based on the given start and - * end times. Rows with a `NULL` value in the provided BigQuery column are - * skipped. - * Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`, - * `TIMESTAMP`, and `DATETIME`. - * If your BigQuery table is [partitioned at ingestion - * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time), - * you can use any of the following pseudo-columns as your timestamp field. - * When used with Cloud DLP, these pseudo-column names are case sensitive. - * - `_PARTITIONTIME` - * - `_PARTITIONDATE` - * - `_PARTITION_LOAD_TIME` - * **For Datastore** - * If this value is specified, then entities are filtered based on the given - * start and end times. If an entity does not contain the provided timestamp - * property or contains empty or invalid values, then it is included. - * Valid data types of the provided timestamp property are: `TIMESTAMP`. - * See the - * [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) - * related to this operation. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId timestamp_field = 3; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setTimestampField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->timestamp_field = $var; - - return $this; - } - - /** - * When the job is started by a JobTrigger we will automatically figure out - * a valid start_time to avoid scanning files that have not been modified - * since the last time the JobTrigger executed. This will be based on the - * time of the execution of the last run of the JobTrigger or the timespan - * end_time used in the last run of the JobTrigger. - * **For BigQuery** - * Inspect jobs triggered by automatic population will scan data that is at - * least three hours old when the job starts. This is because streaming - * buffer rows are not read during inspection and reading up to the current - * timestamp will result in skipped rows. - * See the [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data) - * related to this operation. - * - * Generated from protobuf field bool enable_auto_population_of_timespan_config = 4; - * @return bool - */ - public function getEnableAutoPopulationOfTimespanConfig() - { - return $this->enable_auto_population_of_timespan_config; - } - - /** - * When the job is started by a JobTrigger we will automatically figure out - * a valid start_time to avoid scanning files that have not been modified - * since the last time the JobTrigger executed. This will be based on the - * time of the execution of the last run of the JobTrigger or the timespan - * end_time used in the last run of the JobTrigger. - * **For BigQuery** - * Inspect jobs triggered by automatic population will scan data that is at - * least three hours old when the job starts. This is because streaming - * buffer rows are not read during inspection and reading up to the current - * timestamp will result in skipped rows. - * See the [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data) - * related to this operation. - * - * Generated from protobuf field bool enable_auto_population_of_timespan_config = 4; - * @param bool $var - * @return $this - */ - public function setEnableAutoPopulationOfTimespanConfig($var) - { - GPBUtil::checkBool($var); - $this->enable_auto_population_of_timespan_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageMetadataLabel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageMetadataLabel.php deleted file mode 100644 index 9452bb91c0e1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageMetadataLabel.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.StorageMetadataLabel - */ -class StorageMetadataLabel extends \Google\Protobuf\Internal\Message -{ - /** - * Label name. - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * Label name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Label name. - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Label name. - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoType.php deleted file mode 100644 index 345ce57dc641..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoType.php +++ /dev/null @@ -1,150 +0,0 @@ -google.privacy.dlp.v2.StoredInfoType - */ -class StoredInfoType extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Current version of the stored info type. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeVersion current_version = 2; - */ - protected $current_version = null; - /** - * Pending versions of the stored info type. Empty if no versions are - * pending. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3; - */ - private $pending_versions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name. - * @type \Google\Cloud\Dlp\V2\StoredInfoTypeVersion $current_version - * Current version of the stored info type. - * @type \Google\Cloud\Dlp\V2\StoredInfoTypeVersion[] $pending_versions - * Pending versions of the stored info type. Empty if no versions are - * pending. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Resource name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Current version of the stored info type. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeVersion current_version = 2; - * @return \Google\Cloud\Dlp\V2\StoredInfoTypeVersion|null - */ - public function getCurrentVersion() - { - return $this->current_version; - } - - public function hasCurrentVersion() - { - return isset($this->current_version); - } - - public function clearCurrentVersion() - { - unset($this->current_version); - } - - /** - * Current version of the stored info type. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeVersion current_version = 2; - * @param \Google\Cloud\Dlp\V2\StoredInfoTypeVersion $var - * @return $this - */ - public function setCurrentVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredInfoTypeVersion::class); - $this->current_version = $var; - - return $this; - } - - /** - * Pending versions of the stored info type. Empty if no versions are - * pending. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3; - * @return RepeatedField<\Google\Cloud\Dlp\V2\StoredInfoTypeVersion> - */ - public function getPendingVersions() - { - return $this->pending_versions; - } - - /** - * Pending versions of the stored info type. Empty if no versions are - * pending. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3; - * @param \Google\Cloud\Dlp\V2\StoredInfoTypeVersion[] $var - * @return $this - */ - public function setPendingVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\StoredInfoTypeVersion::class); - $this->pending_versions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeConfig.php deleted file mode 100644 index 8a0b7ce62852..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeConfig.php +++ /dev/null @@ -1,211 +0,0 @@ -google.privacy.dlp.v2.StoredInfoTypeConfig - */ -class StoredInfoTypeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Display name of the StoredInfoType (max 256 characters). - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * Description of the StoredInfoType (max 256 characters). - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Display name of the StoredInfoType (max 256 characters). - * @type string $description - * Description of the StoredInfoType (max 256 characters). - * @type \Google\Cloud\Dlp\V2\LargeCustomDictionaryConfig $large_custom_dictionary - * StoredInfoType where findings are defined by a dictionary of phrases. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $dictionary - * Store dictionary-based CustomInfoType. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Regex $regex - * Store regular expression-based StoredInfoType. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Display name of the StoredInfoType (max 256 characters). - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name of the StoredInfoType (max 256 characters). - * - * Generated from protobuf field string display_name = 1; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Description of the StoredInfoType (max 256 characters). - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of the StoredInfoType (max 256 characters). - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * StoredInfoType where findings are defined by a dictionary of phrases. - * - * Generated from protobuf field .google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3; - * @return \Google\Cloud\Dlp\V2\LargeCustomDictionaryConfig|null - */ - public function getLargeCustomDictionary() - { - return $this->readOneof(3); - } - - public function hasLargeCustomDictionary() - { - return $this->hasOneof(3); - } - - /** - * StoredInfoType where findings are defined by a dictionary of phrases. - * - * Generated from protobuf field .google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3; - * @param \Google\Cloud\Dlp\V2\LargeCustomDictionaryConfig $var - * @return $this - */ - public function setLargeCustomDictionary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\LargeCustomDictionaryConfig::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Store dictionary-based CustomInfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary|null - */ - public function getDictionary() - { - return $this->readOneof(4); - } - - public function hasDictionary() - { - return $this->hasOneof(4); - } - - /** - * Store dictionary-based CustomInfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $var - * @return $this - */ - public function setDictionary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Store regular expression-based StoredInfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Regex|null - */ - public function getRegex() - { - return $this->readOneof(5); - } - - public function hasRegex() - { - return $this->hasOneof(5); - } - - /** - * Store regular expression-based StoredInfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Regex $var - * @return $this - */ - public function setRegex($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Regex::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeState.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeState.php deleted file mode 100644 index 8b2ebfc111d0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeState.php +++ /dev/null @@ -1,78 +0,0 @@ -google.privacy.dlp.v2.StoredInfoTypeState - */ -class StoredInfoTypeState -{ - /** - * Unused - * - * Generated from protobuf enum STORED_INFO_TYPE_STATE_UNSPECIFIED = 0; - */ - const STORED_INFO_TYPE_STATE_UNSPECIFIED = 0; - /** - * StoredInfoType version is being created. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * StoredInfoType version is ready for use. - * - * Generated from protobuf enum READY = 2; - */ - const READY = 2; - /** - * StoredInfoType creation failed. All relevant error messages are returned in - * the `StoredInfoTypeVersion` message. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - /** - * StoredInfoType is no longer valid because artifacts stored in - * user-controlled storage were modified. To fix an invalid StoredInfoType, - * use the `UpdateStoredInfoType` method to create a new version. - * - * Generated from protobuf enum INVALID = 4; - */ - const INVALID = 4; - - private static $valueToName = [ - self::STORED_INFO_TYPE_STATE_UNSPECIFIED => 'STORED_INFO_TYPE_STATE_UNSPECIFIED', - self::PENDING => 'PENDING', - self::READY => 'READY', - self::FAILED => 'FAILED', - self::INVALID => 'INVALID', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeStats.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeStats.php deleted file mode 100644 index 042b470e56a1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeStats.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.StoredInfoTypeStats - */ -class StoredInfoTypeStats extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\LargeCustomDictionaryStats $large_custom_dictionary - * StoredInfoType where findings are defined by a dictionary of phrases. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * StoredInfoType where findings are defined by a dictionary of phrases. - * - * Generated from protobuf field .google.privacy.dlp.v2.LargeCustomDictionaryStats large_custom_dictionary = 1; - * @return \Google\Cloud\Dlp\V2\LargeCustomDictionaryStats|null - */ - public function getLargeCustomDictionary() - { - return $this->readOneof(1); - } - - public function hasLargeCustomDictionary() - { - return $this->hasOneof(1); - } - - /** - * StoredInfoType where findings are defined by a dictionary of phrases. - * - * Generated from protobuf field .google.privacy.dlp.v2.LargeCustomDictionaryStats large_custom_dictionary = 1; - * @param \Google\Cloud\Dlp\V2\LargeCustomDictionaryStats $var - * @return $this - */ - public function setLargeCustomDictionary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\LargeCustomDictionaryStats::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeVersion.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeVersion.php deleted file mode 100644 index 16ab591e8a43..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeVersion.php +++ /dev/null @@ -1,282 +0,0 @@ -google.privacy.dlp.v2.StoredInfoTypeVersion - */ -class StoredInfoTypeVersion extends \Google\Protobuf\Internal\Message -{ - /** - * StoredInfoType configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1; - */ - protected $config = null; - /** - * Create timestamp of the version. Read-only, determined by the system - * when the version is created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; - */ - protected $create_time = null; - /** - * Stored info type version state. Read-only, updated by the system - * during dictionary creation. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeState state = 3; - */ - protected $state = 0; - /** - * Errors that occurred when creating this storedInfoType version, or - * anomalies detected in the storedInfoType data that render it unusable. Only - * the five most recent errors will be displayed, with the most recent error - * appearing first. - * For example, some of the data for stored custom dictionaries is put in - * the user's Cloud Storage bucket, and if this data is modified or - * deleted by the user or another system, the dictionary becomes invalid. - * If any errors occur, fix the problem indicated by the error message and - * use the UpdateStoredInfoType API method to create another version of the - * storedInfoType to continue using it, reusing the same `config` if it was - * not the source of the error. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 4; - */ - private $errors; - /** - * Statistics about this storedInfoType version. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeStats stats = 5; - */ - protected $stats = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config - * StoredInfoType configuration. - * @type \Google\Protobuf\Timestamp $create_time - * Create timestamp of the version. Read-only, determined by the system - * when the version is created. - * @type int $state - * Stored info type version state. Read-only, updated by the system - * during dictionary creation. - * @type \Google\Cloud\Dlp\V2\Error[] $errors - * Errors that occurred when creating this storedInfoType version, or - * anomalies detected in the storedInfoType data that render it unusable. Only - * the five most recent errors will be displayed, with the most recent error - * appearing first. - * For example, some of the data for stored custom dictionaries is put in - * the user's Cloud Storage bucket, and if this data is modified or - * deleted by the user or another system, the dictionary becomes invalid. - * If any errors occur, fix the problem indicated by the error message and - * use the UpdateStoredInfoType API method to create another version of the - * storedInfoType to continue using it, reusing the same `config` if it was - * not the source of the error. - * @type \Google\Cloud\Dlp\V2\StoredInfoTypeStats $stats - * Statistics about this storedInfoType version. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * StoredInfoType configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1; - * @return \Google\Cloud\Dlp\V2\StoredInfoTypeConfig|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * StoredInfoType configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1; - * @param \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredInfoTypeConfig::class); - $this->config = $var; - - return $this; - } - - /** - * Create timestamp of the version. Read-only, determined by the system - * when the version is created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Create timestamp of the version. Read-only, determined by the system - * when the version is created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Stored info type version state. Read-only, updated by the system - * during dictionary creation. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeState state = 3; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Stored info type version state. Read-only, updated by the system - * during dictionary creation. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeState state = 3; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\StoredInfoTypeState::class); - $this->state = $var; - - return $this; - } - - /** - * Errors that occurred when creating this storedInfoType version, or - * anomalies detected in the storedInfoType data that render it unusable. Only - * the five most recent errors will be displayed, with the most recent error - * appearing first. - * For example, some of the data for stored custom dictionaries is put in - * the user's Cloud Storage bucket, and if this data is modified or - * deleted by the user or another system, the dictionary becomes invalid. - * If any errors occur, fix the problem indicated by the error message and - * use the UpdateStoredInfoType API method to create another version of the - * storedInfoType to continue using it, reusing the same `config` if it was - * not the source of the error. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 4; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Error> - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Errors that occurred when creating this storedInfoType version, or - * anomalies detected in the storedInfoType data that render it unusable. Only - * the five most recent errors will be displayed, with the most recent error - * appearing first. - * For example, some of the data for stored custom dictionaries is put in - * the user's Cloud Storage bucket, and if this data is modified or - * deleted by the user or another system, the dictionary becomes invalid. - * If any errors occur, fix the problem indicated by the error message and - * use the UpdateStoredInfoType API method to create another version of the - * storedInfoType to continue using it, reusing the same `config` if it was - * not the source of the error. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 4; - * @param \Google\Cloud\Dlp\V2\Error[] $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); - $this->errors = $arr; - - return $this; - } - - /** - * Statistics about this storedInfoType version. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeStats stats = 5; - * @return \Google\Cloud\Dlp\V2\StoredInfoTypeStats|null - */ - public function getStats() - { - return $this->stats; - } - - public function hasStats() - { - return isset($this->stats); - } - - public function clearStats() - { - unset($this->stats); - } - - /** - * Statistics about this storedInfoType version. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeStats stats = 5; - * @param \Google\Cloud\Dlp\V2\StoredInfoTypeStats $var - * @return $this - */ - public function setStats($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredInfoTypeStats::class); - $this->stats = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredType.php deleted file mode 100644 index 9d39458f9e1e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredType.php +++ /dev/null @@ -1,123 +0,0 @@ -google.privacy.dlp.v2.StoredType - */ -class StoredType extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the requested `StoredInfoType`, for example - * `organizations/433245324/storedInfoTypes/432452342` or - * `projects/project-id/storedInfoTypes/432452342`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Timestamp indicating when the version of the `StoredInfoType` used for - * inspection was created. Output-only field, populated by the system. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; - */ - protected $create_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name of the requested `StoredInfoType`, for example - * `organizations/433245324/storedInfoTypes/432452342` or - * `projects/project-id/storedInfoTypes/432452342`. - * @type \Google\Protobuf\Timestamp $create_time - * Timestamp indicating when the version of the `StoredInfoType` used for - * inspection was created. Output-only field, populated by the system. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the requested `StoredInfoType`, for example - * `organizations/433245324/storedInfoTypes/432452342` or - * `projects/project-id/storedInfoTypes/432452342`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name of the requested `StoredInfoType`, for example - * `organizations/433245324/storedInfoTypes/432452342` or - * `projects/project-id/storedInfoTypes/432452342`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Timestamp indicating when the version of the `StoredInfoType` used for - * inspection was created. Output-only field, populated by the system. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Timestamp indicating when the version of the `StoredInfoType` used for - * inspection was created. Output-only field, populated by the system. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table.php deleted file mode 100644 index 5e614f34e5a5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table.php +++ /dev/null @@ -1,103 +0,0 @@ -google.privacy.dlp.v2.Table - */ -class Table extends \Google\Protobuf\Internal\Message -{ - /** - * Headers of the table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId headers = 1; - */ - private $headers; - /** - * Rows of the table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Table.Row rows = 2; - */ - private $rows; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId[] $headers - * Headers of the table. - * @type \Google\Cloud\Dlp\V2\Table\Row[] $rows - * Rows of the table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Headers of the table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId headers = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldId> - */ - public function getHeaders() - { - return $this->headers; - } - - /** - * Headers of the table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId headers = 1; - * @param \Google\Cloud\Dlp\V2\FieldId[] $var - * @return $this - */ - public function setHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); - $this->headers = $arr; - - return $this; - } - - /** - * Rows of the table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Table.Row rows = 2; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Table\Row> - */ - public function getRows() - { - return $this->rows; - } - - /** - * Rows of the table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Table.Row rows = 2; - * @param \Google\Cloud\Dlp\V2\Table\Row[] $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Table\Row::class); - $this->rows = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table/Row.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table/Row.php deleted file mode 100644 index bca93c1b016f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table/Row.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.Table.Row - */ -class Row extends \Google\Protobuf\Internal\Message -{ - /** - * Individual cells. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value values = 1; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Value[] $values - * Individual cells. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Individual cells. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value values = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Value> - */ - public function getValues() - { - return $this->values; - } - - /** - * Individual cells. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value values = 1; - * @param \Google\Cloud\Dlp\V2\Value[] $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); - $this->values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile.php deleted file mode 100644 index 80ee291fcd14..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile.php +++ /dev/null @@ -1,1189 +0,0 @@ -google.privacy.dlp.v2.TableDataProfile - */ -class TableDataProfile extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the profile. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The resource type that was profiled. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 36; - */ - protected $data_source_type = null; - /** - * The resource name of the project data profile for this table. - * - * Generated from protobuf field string project_data_profile = 2; - */ - protected $project_data_profile = ''; - /** - * The Google Cloud project ID that owns the resource. - * - * Generated from protobuf field string dataset_project_id = 24; - */ - protected $dataset_project_id = ''; - /** - * If supported, the location where the dataset's data is stored. - * See https://cloud.google.com/bigquery/docs/locations for supported - * locations. - * - * Generated from protobuf field string dataset_location = 29; - */ - protected $dataset_location = ''; - /** - * If the resource is BigQuery, the dataset ID. - * - * Generated from protobuf field string dataset_id = 25; - */ - protected $dataset_id = ''; - /** - * The table ID. - * - * Generated from protobuf field string table_id = 26; - */ - protected $table_id = ''; - /** - * The Cloud Asset Inventory resource that was profiled in order to generate - * this TableDataProfile. - * https://cloud.google.com/apis/design/resource_names#full_resource_name - * - * Generated from protobuf field string full_resource = 3; - */ - protected $full_resource = ''; - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 21; - */ - protected $profile_status = null; - /** - * State of a profile. This will always be set to DONE when the table data - * profile is written to another service like BigQuery or Pub/Sub. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile.State state = 22; - */ - protected $state = 0; - /** - * The sensitivity score of this table. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5; - */ - protected $sensitivity_score = null; - /** - * The data risk level of this table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6; - */ - protected $data_risk_level = null; - /** - * The infoTypes predicted from this table's data. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27; - */ - private $predicted_info_types; - /** - * Other infoTypes found in this table's data. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28; - */ - private $other_info_types; - /** - * The snapshot of the configurations used to generate the profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; - */ - protected $config_snapshot = null; - /** - * The time when this table was last modified - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 8; - */ - protected $last_modified_time = null; - /** - * Optional. The time when this table expires. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 9; - */ - protected $expiration_time = null; - /** - * The number of columns profiled in the table. - * - * Generated from protobuf field int64 scanned_column_count = 10; - */ - protected $scanned_column_count = 0; - /** - * The number of columns skipped in the table because of an error. - * - * Generated from protobuf field int64 failed_column_count = 11; - */ - protected $failed_column_count = 0; - /** - * The size of the table when the profile was generated. - * - * Generated from protobuf field int64 table_size_bytes = 12; - */ - protected $table_size_bytes = 0; - /** - * Number of rows in the table when the profile was generated. - * This will not be populated for BigLake tables. - * - * Generated from protobuf field int64 row_count = 13; - */ - protected $row_count = 0; - /** - * How the table is encrypted. - * - * Generated from protobuf field .google.privacy.dlp.v2.EncryptionStatus encryption_status = 14; - */ - protected $encryption_status = 0; - /** - * How broadly a resource has been shared. - * - * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15; - */ - protected $resource_visibility = 0; - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 16; - */ - protected $profile_last_generated = null; - /** - * The labels applied to the resource at the time the profile was generated. - * - * Generated from protobuf field map resource_labels = 17; - */ - private $resource_labels; - /** - * The time at which the table was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 23; - */ - protected $create_time = null; - /** - * The BigQuery table to which the sample findings are written. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 37; - */ - protected $sample_findings_table = null; - /** - * The tags attached to the table, including any tags attached during - * profiling. Because tags are attached to Cloud SQL instances rather than - * Cloud SQL tables, this field is empty for Cloud SQL table profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Tag tags = 39; - */ - private $tags; - /** - * Resources related to this profile. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RelatedResource related_resources = 41; - */ - private $related_resources; - /** - * Domains associated with the profile. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain domains = 47; - */ - private $domains; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the profile. - * @type \Google\Cloud\Dlp\V2\DataSourceType $data_source_type - * The resource type that was profiled. - * @type string $project_data_profile - * The resource name of the project data profile for this table. - * @type string $dataset_project_id - * The Google Cloud project ID that owns the resource. - * @type string $dataset_location - * If supported, the location where the dataset's data is stored. - * See https://cloud.google.com/bigquery/docs/locations for supported - * locations. - * @type string $dataset_id - * If the resource is BigQuery, the dataset ID. - * @type string $table_id - * The table ID. - * @type string $full_resource - * The Cloud Asset Inventory resource that was profiled in order to generate - * this TableDataProfile. - * https://cloud.google.com/apis/design/resource_names#full_resource_name - * @type \Google\Cloud\Dlp\V2\ProfileStatus $profile_status - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * @type int $state - * State of a profile. This will always be set to DONE when the table data - * profile is written to another service like BigQuery or Pub/Sub. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * The sensitivity score of this table. - * @type \Google\Cloud\Dlp\V2\DataRiskLevel $data_risk_level - * The data risk level of this table. - * @type \Google\Cloud\Dlp\V2\InfoTypeSummary[] $predicted_info_types - * The infoTypes predicted from this table's data. - * @type \Google\Cloud\Dlp\V2\OtherInfoTypeSummary[] $other_info_types - * Other infoTypes found in this table's data. - * @type \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot $config_snapshot - * The snapshot of the configurations used to generate the profile. - * @type \Google\Protobuf\Timestamp $last_modified_time - * The time when this table was last modified - * @type \Google\Protobuf\Timestamp $expiration_time - * Optional. The time when this table expires. - * @type int|string $scanned_column_count - * The number of columns profiled in the table. - * @type int|string $failed_column_count - * The number of columns skipped in the table because of an error. - * @type int|string $table_size_bytes - * The size of the table when the profile was generated. - * @type int|string $row_count - * Number of rows in the table when the profile was generated. - * This will not be populated for BigLake tables. - * @type int $encryption_status - * How the table is encrypted. - * @type int $resource_visibility - * How broadly a resource has been shared. - * @type \Google\Protobuf\Timestamp $profile_last_generated - * The last time the profile was generated. - * @type array|\Google\Protobuf\Internal\MapField $resource_labels - * The labels applied to the resource at the time the profile was generated. - * @type \Google\Protobuf\Timestamp $create_time - * The time at which the table was created. - * @type \Google\Cloud\Dlp\V2\BigQueryTable $sample_findings_table - * The BigQuery table to which the sample findings are written. - * @type \Google\Cloud\Dlp\V2\Tag[] $tags - * The tags attached to the table, including any tags attached during - * profiling. Because tags are attached to Cloud SQL instances rather than - * Cloud SQL tables, this field is empty for Cloud SQL table profiles. - * @type \Google\Cloud\Dlp\V2\RelatedResource[] $related_resources - * Resources related to this profile. - * @type \Google\Cloud\Dlp\V2\Domain[] $domains - * Domains associated with the profile. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The name of the profile. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the profile. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The resource type that was profiled. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 36; - * @return \Google\Cloud\Dlp\V2\DataSourceType|null - */ - public function getDataSourceType() - { - return $this->data_source_type; - } - - public function hasDataSourceType() - { - return isset($this->data_source_type); - } - - public function clearDataSourceType() - { - unset($this->data_source_type); - } - - /** - * The resource type that was profiled. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 36; - * @param \Google\Cloud\Dlp\V2\DataSourceType $var - * @return $this - */ - public function setDataSourceType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataSourceType::class); - $this->data_source_type = $var; - - return $this; - } - - /** - * The resource name of the project data profile for this table. - * - * Generated from protobuf field string project_data_profile = 2; - * @return string - */ - public function getProjectDataProfile() - { - return $this->project_data_profile; - } - - /** - * The resource name of the project data profile for this table. - * - * Generated from protobuf field string project_data_profile = 2; - * @param string $var - * @return $this - */ - public function setProjectDataProfile($var) - { - GPBUtil::checkString($var, True); - $this->project_data_profile = $var; - - return $this; - } - - /** - * The Google Cloud project ID that owns the resource. - * - * Generated from protobuf field string dataset_project_id = 24; - * @return string - */ - public function getDatasetProjectId() - { - return $this->dataset_project_id; - } - - /** - * The Google Cloud project ID that owns the resource. - * - * Generated from protobuf field string dataset_project_id = 24; - * @param string $var - * @return $this - */ - public function setDatasetProjectId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_project_id = $var; - - return $this; - } - - /** - * If supported, the location where the dataset's data is stored. - * See https://cloud.google.com/bigquery/docs/locations for supported - * locations. - * - * Generated from protobuf field string dataset_location = 29; - * @return string - */ - public function getDatasetLocation() - { - return $this->dataset_location; - } - - /** - * If supported, the location where the dataset's data is stored. - * See https://cloud.google.com/bigquery/docs/locations for supported - * locations. - * - * Generated from protobuf field string dataset_location = 29; - * @param string $var - * @return $this - */ - public function setDatasetLocation($var) - { - GPBUtil::checkString($var, True); - $this->dataset_location = $var; - - return $this; - } - - /** - * If the resource is BigQuery, the dataset ID. - * - * Generated from protobuf field string dataset_id = 25; - * @return string - */ - public function getDatasetId() - { - return $this->dataset_id; - } - - /** - * If the resource is BigQuery, the dataset ID. - * - * Generated from protobuf field string dataset_id = 25; - * @param string $var - * @return $this - */ - public function setDatasetId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id = $var; - - return $this; - } - - /** - * The table ID. - * - * Generated from protobuf field string table_id = 26; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * The table ID. - * - * Generated from protobuf field string table_id = 26; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - - /** - * The Cloud Asset Inventory resource that was profiled in order to generate - * this TableDataProfile. - * https://cloud.google.com/apis/design/resource_names#full_resource_name - * - * Generated from protobuf field string full_resource = 3; - * @return string - */ - public function getFullResource() - { - return $this->full_resource; - } - - /** - * The Cloud Asset Inventory resource that was profiled in order to generate - * this TableDataProfile. - * https://cloud.google.com/apis/design/resource_names#full_resource_name - * - * Generated from protobuf field string full_resource = 3; - * @param string $var - * @return $this - */ - public function setFullResource($var) - { - GPBUtil::checkString($var, True); - $this->full_resource = $var; - - return $this; - } - - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 21; - * @return \Google\Cloud\Dlp\V2\ProfileStatus|null - */ - public function getProfileStatus() - { - return $this->profile_status; - } - - public function hasProfileStatus() - { - return isset($this->profile_status); - } - - public function clearProfileStatus() - { - unset($this->profile_status); - } - - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 21; - * @param \Google\Cloud\Dlp\V2\ProfileStatus $var - * @return $this - */ - public function setProfileStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProfileStatus::class); - $this->profile_status = $var; - - return $this; - } - - /** - * State of a profile. This will always be set to DONE when the table data - * profile is written to another service like BigQuery or Pub/Sub. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile.State state = 22; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * State of a profile. This will always be set to DONE when the table data - * profile is written to another service like BigQuery or Pub/Sub. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile.State state = 22; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TableDataProfile\State::class); - $this->state = $var; - - return $this; - } - - /** - * The sensitivity score of this table. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->sensitivity_score; - } - - public function hasSensitivityScore() - { - return isset($this->sensitivity_score); - } - - public function clearSensitivityScore() - { - unset($this->sensitivity_score); - } - - /** - * The sensitivity score of this table. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->sensitivity_score = $var; - - return $this; - } - - /** - * The data risk level of this table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6; - * @return \Google\Cloud\Dlp\V2\DataRiskLevel|null - */ - public function getDataRiskLevel() - { - return $this->data_risk_level; - } - - public function hasDataRiskLevel() - { - return isset($this->data_risk_level); - } - - public function clearDataRiskLevel() - { - unset($this->data_risk_level); - } - - /** - * The data risk level of this table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6; - * @param \Google\Cloud\Dlp\V2\DataRiskLevel $var - * @return $this - */ - public function setDataRiskLevel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataRiskLevel::class); - $this->data_risk_level = $var; - - return $this; - } - - /** - * The infoTypes predicted from this table's data. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27; - * @return RepeatedField<\Google\Cloud\Dlp\V2\InfoTypeSummary> - */ - public function getPredictedInfoTypes() - { - return $this->predicted_info_types; - } - - /** - * The infoTypes predicted from this table's data. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27; - * @param \Google\Cloud\Dlp\V2\InfoTypeSummary[] $var - * @return $this - */ - public function setPredictedInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoTypeSummary::class); - $this->predicted_info_types = $arr; - - return $this; - } - - /** - * Other infoTypes found in this table's data. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28; - * @return RepeatedField<\Google\Cloud\Dlp\V2\OtherInfoTypeSummary> - */ - public function getOtherInfoTypes() - { - return $this->other_info_types; - } - - /** - * Other infoTypes found in this table's data. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28; - * @param \Google\Cloud\Dlp\V2\OtherInfoTypeSummary[] $var - * @return $this - */ - public function setOtherInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\OtherInfoTypeSummary::class); - $this->other_info_types = $arr; - - return $this; - } - - /** - * The snapshot of the configurations used to generate the profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; - * @return \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot|null - */ - public function getConfigSnapshot() - { - return $this->config_snapshot; - } - - public function hasConfigSnapshot() - { - return isset($this->config_snapshot); - } - - public function clearConfigSnapshot() - { - unset($this->config_snapshot); - } - - /** - * The snapshot of the configurations used to generate the profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; - * @param \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot $var - * @return $this - */ - public function setConfigSnapshot($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot::class); - $this->config_snapshot = $var; - - return $this; - } - - /** - * The time when this table was last modified - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 8; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastModifiedTime() - { - return $this->last_modified_time; - } - - public function hasLastModifiedTime() - { - return isset($this->last_modified_time); - } - - public function clearLastModifiedTime() - { - unset($this->last_modified_time); - } - - /** - * The time when this table was last modified - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 8; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastModifiedTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_modified_time = $var; - - return $this; - } - - /** - * Optional. The time when this table expires. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 9; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpirationTime() - { - return $this->expiration_time; - } - - public function hasExpirationTime() - { - return isset($this->expiration_time); - } - - public function clearExpirationTime() - { - unset($this->expiration_time); - } - - /** - * Optional. The time when this table expires. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 9; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpirationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expiration_time = $var; - - return $this; - } - - /** - * The number of columns profiled in the table. - * - * Generated from protobuf field int64 scanned_column_count = 10; - * @return int|string - */ - public function getScannedColumnCount() - { - return $this->scanned_column_count; - } - - /** - * The number of columns profiled in the table. - * - * Generated from protobuf field int64 scanned_column_count = 10; - * @param int|string $var - * @return $this - */ - public function setScannedColumnCount($var) - { - GPBUtil::checkInt64($var); - $this->scanned_column_count = $var; - - return $this; - } - - /** - * The number of columns skipped in the table because of an error. - * - * Generated from protobuf field int64 failed_column_count = 11; - * @return int|string - */ - public function getFailedColumnCount() - { - return $this->failed_column_count; - } - - /** - * The number of columns skipped in the table because of an error. - * - * Generated from protobuf field int64 failed_column_count = 11; - * @param int|string $var - * @return $this - */ - public function setFailedColumnCount($var) - { - GPBUtil::checkInt64($var); - $this->failed_column_count = $var; - - return $this; - } - - /** - * The size of the table when the profile was generated. - * - * Generated from protobuf field int64 table_size_bytes = 12; - * @return int|string - */ - public function getTableSizeBytes() - { - return $this->table_size_bytes; - } - - /** - * The size of the table when the profile was generated. - * - * Generated from protobuf field int64 table_size_bytes = 12; - * @param int|string $var - * @return $this - */ - public function setTableSizeBytes($var) - { - GPBUtil::checkInt64($var); - $this->table_size_bytes = $var; - - return $this; - } - - /** - * Number of rows in the table when the profile was generated. - * This will not be populated for BigLake tables. - * - * Generated from protobuf field int64 row_count = 13; - * @return int|string - */ - public function getRowCount() - { - return $this->row_count; - } - - /** - * Number of rows in the table when the profile was generated. - * This will not be populated for BigLake tables. - * - * Generated from protobuf field int64 row_count = 13; - * @param int|string $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt64($var); - $this->row_count = $var; - - return $this; - } - - /** - * How the table is encrypted. - * - * Generated from protobuf field .google.privacy.dlp.v2.EncryptionStatus encryption_status = 14; - * @return int - */ - public function getEncryptionStatus() - { - return $this->encryption_status; - } - - /** - * How the table is encrypted. - * - * Generated from protobuf field .google.privacy.dlp.v2.EncryptionStatus encryption_status = 14; - * @param int $var - * @return $this - */ - public function setEncryptionStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\EncryptionStatus::class); - $this->encryption_status = $var; - - return $this; - } - - /** - * How broadly a resource has been shared. - * - * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15; - * @return int - */ - public function getResourceVisibility() - { - return $this->resource_visibility; - } - - /** - * How broadly a resource has been shared. - * - * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15; - * @param int $var - * @return $this - */ - public function setResourceVisibility($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ResourceVisibility::class); - $this->resource_visibility = $var; - - return $this; - } - - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 16; - * @return \Google\Protobuf\Timestamp|null - */ - public function getProfileLastGenerated() - { - return $this->profile_last_generated; - } - - public function hasProfileLastGenerated() - { - return isset($this->profile_last_generated); - } - - public function clearProfileLastGenerated() - { - unset($this->profile_last_generated); - } - - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 16; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setProfileLastGenerated($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->profile_last_generated = $var; - - return $this; - } - - /** - * The labels applied to the resource at the time the profile was generated. - * - * Generated from protobuf field map resource_labels = 17; - * @return \Google\Protobuf\Internal\MapField - */ - public function getResourceLabels() - { - return $this->resource_labels; - } - - /** - * The labels applied to the resource at the time the profile was generated. - * - * Generated from protobuf field map resource_labels = 17; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setResourceLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_labels = $arr; - - return $this; - } - - /** - * The time at which the table was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 23; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * The time at which the table was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 23; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The BigQuery table to which the sample findings are written. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 37; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getSampleFindingsTable() - { - return $this->sample_findings_table; - } - - public function hasSampleFindingsTable() - { - return isset($this->sample_findings_table); - } - - public function clearSampleFindingsTable() - { - unset($this->sample_findings_table); - } - - /** - * The BigQuery table to which the sample findings are written. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable sample_findings_table = 37; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setSampleFindingsTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->sample_findings_table = $var; - - return $this; - } - - /** - * The tags attached to the table, including any tags attached during - * profiling. Because tags are attached to Cloud SQL instances rather than - * Cloud SQL tables, this field is empty for Cloud SQL table profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Tag tags = 39; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Tag> - */ - public function getTags() - { - return $this->tags; - } - - /** - * The tags attached to the table, including any tags attached during - * profiling. Because tags are attached to Cloud SQL instances rather than - * Cloud SQL tables, this field is empty for Cloud SQL table profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Tag tags = 39; - * @param \Google\Cloud\Dlp\V2\Tag[] $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Tag::class); - $this->tags = $arr; - - return $this; - } - - /** - * Resources related to this profile. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RelatedResource related_resources = 41; - * @return RepeatedField<\Google\Cloud\Dlp\V2\RelatedResource> - */ - public function getRelatedResources() - { - return $this->related_resources; - } - - /** - * Resources related to this profile. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RelatedResource related_resources = 41; - * @param \Google\Cloud\Dlp\V2\RelatedResource[] $var - * @return $this - */ - public function setRelatedResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\RelatedResource::class); - $this->related_resources = $arr; - - return $this; - } - - /** - * Domains associated with the profile. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain domains = 47; - * @return RepeatedField<\Google\Cloud\Dlp\V2\Domain> - */ - public function getDomains() - { - return $this->domains; - } - - /** - * Domains associated with the profile. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Domain domains = 47; - * @param \Google\Cloud\Dlp\V2\Domain[] $var - * @return $this - */ - public function setDomains($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Domain::class); - $this->domains = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile/State.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile/State.php deleted file mode 100644 index d47c01ccea78..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile/State.php +++ /dev/null @@ -1,64 +0,0 @@ -google.privacy.dlp.v2.TableDataProfile.State - */ -class State -{ - /** - * Unused. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The profile is currently running. Once a profile has finished it will - * transition to DONE. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The profile is no longer generating. - * If profile_status.status.code is 0, the profile succeeded, otherwise, it - * failed. - * - * Generated from protobuf enum DONE = 2; - */ - const DONE = 2; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::DONE => 'DONE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableLocation.php deleted file mode 100644 index ed538853a8bf..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableLocation.php +++ /dev/null @@ -1,87 +0,0 @@ -google.privacy.dlp.v2.TableLocation - */ -class TableLocation extends \Google\Protobuf\Internal\Message -{ - /** - * The zero-based index of the row where the finding is located. Only - * populated for resources that have a natural ordering, not BigQuery. In - * BigQuery, to identify the row a finding came from, populate - * BigQueryOptions.identifying_fields with your primary key column names and - * when you store the findings the value of those columns will be stored - * inside of Finding. - * - * Generated from protobuf field int64 row_index = 1; - */ - protected $row_index = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $row_index - * The zero-based index of the row where the finding is located. Only - * populated for resources that have a natural ordering, not BigQuery. In - * BigQuery, to identify the row a finding came from, populate - * BigQueryOptions.identifying_fields with your primary key column names and - * when you store the findings the value of those columns will be stored - * inside of Finding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The zero-based index of the row where the finding is located. Only - * populated for resources that have a natural ordering, not BigQuery. In - * BigQuery, to identify the row a finding came from, populate - * BigQueryOptions.identifying_fields with your primary key column names and - * when you store the findings the value of those columns will be stored - * inside of Finding. - * - * Generated from protobuf field int64 row_index = 1; - * @return int|string - */ - public function getRowIndex() - { - return $this->row_index; - } - - /** - * The zero-based index of the row where the finding is located. Only - * populated for resources that have a natural ordering, not BigQuery. In - * BigQuery, to identify the row a finding came from, populate - * BigQueryOptions.identifying_fields with your primary key column names and - * when you store the findings the value of those columns will be stored - * inside of Finding. - * - * Generated from protobuf field int64 row_index = 1; - * @param int|string $var - * @return $this - */ - public function setRowIndex($var) - { - GPBUtil::checkInt64($var); - $this->row_index = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableOptions.php deleted file mode 100644 index 1ee57fdc04f2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableOptions.php +++ /dev/null @@ -1,79 +0,0 @@ -google.privacy.dlp.v2.TableOptions - */ -class TableOptions extends \Google\Protobuf\Internal\Message -{ - /** - * The columns that are the primary keys for table objects included in - * ContentItem. A copy of this cell's value will stored alongside alongside - * each finding so that the finding can be traced to the specific row it came - * from. No more than 3 may be provided. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; - */ - private $identifying_fields; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId[] $identifying_fields - * The columns that are the primary keys for table objects included in - * ContentItem. A copy of this cell's value will stored alongside alongside - * each finding so that the finding can be traced to the specific row it came - * from. No more than 3 may be provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The columns that are the primary keys for table objects included in - * ContentItem. A copy of this cell's value will stored alongside alongside - * each finding so that the finding can be traced to the specific row it came - * from. No more than 3 may be provided. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; - * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldId> - */ - public function getIdentifyingFields() - { - return $this->identifying_fields; - } - - /** - * The columns that are the primary keys for table objects included in - * ContentItem. A copy of this cell's value will stored alongside alongside - * each finding so that the finding can be traced to the specific row it came - * from. No more than 3 may be provided. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; - * @param \Google\Cloud\Dlp\V2\FieldId[] $var - * @return $this - */ - public function setIdentifyingFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); - $this->identifying_fields = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableReference.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableReference.php deleted file mode 100644 index 4f34329456b7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableReference.php +++ /dev/null @@ -1,144 +0,0 @@ -google.privacy.dlp.v2.TableReference - */ -class TableReference extends \Google\Protobuf\Internal\Message -{ - /** - * Dataset ID of the table. - * - * Generated from protobuf field string dataset_id = 1; - */ - protected $dataset_id = ''; - /** - * Name of the table. - * - * Generated from protobuf field string table_id = 2; - */ - protected $table_id = ''; - /** - * The Google Cloud project ID of the project containing the table. - * If omitted, the project ID is inferred from the parent project. This field - * is required if the parent resource is an organization. - * - * Generated from protobuf field string project_id = 3; - */ - protected $project_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dataset_id - * Dataset ID of the table. - * @type string $table_id - * Name of the table. - * @type string $project_id - * The Google Cloud project ID of the project containing the table. - * If omitted, the project ID is inferred from the parent project. This field - * is required if the parent resource is an organization. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Dataset ID of the table. - * - * Generated from protobuf field string dataset_id = 1; - * @return string - */ - public function getDatasetId() - { - return $this->dataset_id; - } - - /** - * Dataset ID of the table. - * - * Generated from protobuf field string dataset_id = 1; - * @param string $var - * @return $this - */ - public function setDatasetId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id = $var; - - return $this; - } - - /** - * Name of the table. - * - * Generated from protobuf field string table_id = 2; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * Name of the table. - * - * Generated from protobuf field string table_id = 2; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - - /** - * The Google Cloud project ID of the project containing the table. - * If omitted, the project ID is inferred from the parent project. This field - * is required if the parent resource is an organization. - * - * Generated from protobuf field string project_id = 3; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The Google Cloud project ID of the project containing the table. - * If omitted, the project ID is inferred from the parent project. This field - * is required if the parent resource is an organization. - * - * Generated from protobuf field string project_id = 3; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Tag.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Tag.php deleted file mode 100644 index 6e393ad44917..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Tag.php +++ /dev/null @@ -1,159 +0,0 @@ -google.privacy.dlp.v2.Tag - */ -class Tag extends \Google\Protobuf\Internal\Message -{ - /** - * The namespaced name for the tag value to attach to Google Cloud resources. - * Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for - * example, "123456/environment/prod" for an organization parent, or - * "my-project/environment/prod" for a project parent. This is only set for - * Google Cloud resources. - * - * Generated from protobuf field string namespaced_tag_value = 1; - */ - protected $namespaced_tag_value = ''; - /** - * The key of a tag key-value pair. For Google Cloud resources, this is the - * resource name of the key, for example, "tagKeys/123456". - * - * Generated from protobuf field string key = 2; - */ - protected $key = ''; - /** - * The value of a tag key-value pair. For Google Cloud resources, this is the - * resource name of the value, for example, "tagValues/123456". - * - * Generated from protobuf field string value = 3; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $namespaced_tag_value - * The namespaced name for the tag value to attach to Google Cloud resources. - * Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for - * example, "123456/environment/prod" for an organization parent, or - * "my-project/environment/prod" for a project parent. This is only set for - * Google Cloud resources. - * @type string $key - * The key of a tag key-value pair. For Google Cloud resources, this is the - * resource name of the key, for example, "tagKeys/123456". - * @type string $value - * The value of a tag key-value pair. For Google Cloud resources, this is the - * resource name of the value, for example, "tagValues/123456". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The namespaced name for the tag value to attach to Google Cloud resources. - * Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for - * example, "123456/environment/prod" for an organization parent, or - * "my-project/environment/prod" for a project parent. This is only set for - * Google Cloud resources. - * - * Generated from protobuf field string namespaced_tag_value = 1; - * @return string - */ - public function getNamespacedTagValue() - { - return $this->namespaced_tag_value; - } - - /** - * The namespaced name for the tag value to attach to Google Cloud resources. - * Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for - * example, "123456/environment/prod" for an organization parent, or - * "my-project/environment/prod" for a project parent. This is only set for - * Google Cloud resources. - * - * Generated from protobuf field string namespaced_tag_value = 1; - * @param string $var - * @return $this - */ - public function setNamespacedTagValue($var) - { - GPBUtil::checkString($var, True); - $this->namespaced_tag_value = $var; - - return $this; - } - - /** - * The key of a tag key-value pair. For Google Cloud resources, this is the - * resource name of the key, for example, "tagKeys/123456". - * - * Generated from protobuf field string key = 2; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * The key of a tag key-value pair. For Google Cloud resources, this is the - * resource name of the key, for example, "tagKeys/123456". - * - * Generated from protobuf field string key = 2; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * The value of a tag key-value pair. For Google Cloud resources, this is the - * resource name of the value, for example, "tagValues/123456". - * - * Generated from protobuf field string value = 3; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The value of a tag key-value pair. For Google Cloud resources, this is the - * resource name of the value, for example, "tagValues/123456". - * - * Generated from protobuf field string value = 3; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TagFilter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TagFilter.php deleted file mode 100644 index b52d8c85932d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TagFilter.php +++ /dev/null @@ -1,123 +0,0 @@ -google.privacy.dlp.v2.TagFilter - */ -class TagFilter extends \Google\Protobuf\Internal\Message -{ - protected $format; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $namespaced_tag_value - * The namespaced name for the tag value. Must be in the format - * `{parent_id}/{tag_key_short_name}/{short_name}`, for example, - * "123456/environment/prod" for an organization parent, or - * "my-project/environment/prod" for a project parent. - * @type string $namespaced_tag_key - * The namespaced name for the tag key. Must be in the format - * `{parent_id}/{tag_key_short_name}`, for example, "123456/sensitive" for - * an organization parent, or "my-project/sensitive" for a project parent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The namespaced name for the tag value. Must be in the format - * `{parent_id}/{tag_key_short_name}/{short_name}`, for example, - * "123456/environment/prod" for an organization parent, or - * "my-project/environment/prod" for a project parent. - * - * Generated from protobuf field string namespaced_tag_value = 1; - * @return string - */ - public function getNamespacedTagValue() - { - return $this->readOneof(1); - } - - public function hasNamespacedTagValue() - { - return $this->hasOneof(1); - } - - /** - * The namespaced name for the tag value. Must be in the format - * `{parent_id}/{tag_key_short_name}/{short_name}`, for example, - * "123456/environment/prod" for an organization parent, or - * "my-project/environment/prod" for a project parent. - * - * Generated from protobuf field string namespaced_tag_value = 1; - * @param string $var - * @return $this - */ - public function setNamespacedTagValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The namespaced name for the tag key. Must be in the format - * `{parent_id}/{tag_key_short_name}`, for example, "123456/sensitive" for - * an organization parent, or "my-project/sensitive" for a project parent. - * - * Generated from protobuf field string namespaced_tag_key = 2; - * @return string - */ - public function getNamespacedTagKey() - { - return $this->readOneof(2); - } - - public function hasNamespacedTagKey() - { - return $this->hasOneof(2); - } - - /** - * The namespaced name for the tag key. Must be in the format - * `{parent_id}/{tag_key_short_name}`, for example, "123456/sensitive" for - * an organization parent, or "my-project/sensitive" for a project parent. - * - * Generated from protobuf field string namespaced_tag_key = 2; - * @param string $var - * @return $this - */ - public function setNamespacedTagKey($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getFormat() - { - return $this->whichOneof("format"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TagFilters.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TagFilters.php deleted file mode 100644 index 1210f6ef6d99..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TagFilters.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.TagFilters - */ -class TagFilters extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A resource must match ALL of the specified tag filters to be - * included in the collection. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TagFilter tag_filters = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $tag_filters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\TagFilter[] $tag_filters - * Required. A resource must match ALL of the specified tag filters to be - * included in the collection. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. A resource must match ALL of the specified tag filters to be - * included in the collection. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TagFilter tag_filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Dlp\V2\TagFilter> - */ - public function getTagFilters() - { - return $this->tag_filters; - } - - /** - * Required. A resource must match ALL of the specified tag filters to be - * included in the collection. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TagFilter tag_filters = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\TagFilter[] $var - * @return $this - */ - public function setTagFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\TagFilter::class); - $this->tag_filters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig.php deleted file mode 100644 index 5d036fbccce8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.TimePartConfig - */ -class TimePartConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The part of the time to keep. - * - * Generated from protobuf field .google.privacy.dlp.v2.TimePartConfig.TimePart part_to_extract = 1; - */ - protected $part_to_extract = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $part_to_extract - * The part of the time to keep. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The part of the time to keep. - * - * Generated from protobuf field .google.privacy.dlp.v2.TimePartConfig.TimePart part_to_extract = 1; - * @return int - */ - public function getPartToExtract() - { - return $this->part_to_extract; - } - - /** - * The part of the time to keep. - * - * Generated from protobuf field .google.privacy.dlp.v2.TimePartConfig.TimePart part_to_extract = 1; - * @param int $var - * @return $this - */ - public function setPartToExtract($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TimePartConfig\TimePart::class); - $this->part_to_extract = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig/TimePart.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig/TimePart.php deleted file mode 100644 index d8fdd5150ae8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig/TimePart.php +++ /dev/null @@ -1,89 +0,0 @@ -google.privacy.dlp.v2.TimePartConfig.TimePart - */ -class TimePart -{ - /** - * Unused - * - * Generated from protobuf enum TIME_PART_UNSPECIFIED = 0; - */ - const TIME_PART_UNSPECIFIED = 0; - /** - * [0-9999] - * - * Generated from protobuf enum YEAR = 1; - */ - const YEAR = 1; - /** - * [1-12] - * - * Generated from protobuf enum MONTH = 2; - */ - const MONTH = 2; - /** - * [1-31] - * - * Generated from protobuf enum DAY_OF_MONTH = 3; - */ - const DAY_OF_MONTH = 3; - /** - * [1-7] - * - * Generated from protobuf enum DAY_OF_WEEK = 4; - */ - const DAY_OF_WEEK = 4; - /** - * [1-53] - * - * Generated from protobuf enum WEEK_OF_YEAR = 5; - */ - const WEEK_OF_YEAR = 5; - /** - * [0-23] - * - * Generated from protobuf enum HOUR_OF_DAY = 6; - */ - const HOUR_OF_DAY = 6; - - private static $valueToName = [ - self::TIME_PART_UNSPECIFIED => 'TIME_PART_UNSPECIFIED', - self::YEAR => 'YEAR', - self::MONTH => 'MONTH', - self::DAY_OF_MONTH => 'DAY_OF_MONTH', - self::DAY_OF_WEEK => 'DAY_OF_WEEK', - self::WEEK_OF_YEAR => 'WEEK_OF_YEAR', - self::HOUR_OF_DAY => 'HOUR_OF_DAY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationConfig.php deleted file mode 100644 index c7238f4595ae..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationConfig.php +++ /dev/null @@ -1,193 +0,0 @@ -google.privacy.dlp.v2.TransformationConfig - */ -class TransformationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * De-identify template. - * If this template is specified, it will serve as the default de-identify - * template. This template cannot contain `record_transformations` since it - * can be used for unstructured content such as free-form text files. If this - * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to - * de-identify unstructured content. - * - * Generated from protobuf field string deidentify_template = 1; - */ - protected $deidentify_template = ''; - /** - * Structured de-identify template. - * If this template is specified, it will serve as the de-identify template - * for structured content such as delimited files and tables. If this template - * is not set but the `deidentify_template` is set, then `deidentify_template` - * will also apply to the structured content. If neither template is set, a - * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured - * content. - * - * Generated from protobuf field string structured_deidentify_template = 2; - */ - protected $structured_deidentify_template = ''; - /** - * Image redact template. - * If this template is specified, it will serve as the de-identify template - * for images. If this template is not set, all findings in the image will be - * redacted with a black box. - * - * Generated from protobuf field string image_redact_template = 4; - */ - protected $image_redact_template = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $deidentify_template - * De-identify template. - * If this template is specified, it will serve as the default de-identify - * template. This template cannot contain `record_transformations` since it - * can be used for unstructured content such as free-form text files. If this - * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to - * de-identify unstructured content. - * @type string $structured_deidentify_template - * Structured de-identify template. - * If this template is specified, it will serve as the de-identify template - * for structured content such as delimited files and tables. If this template - * is not set but the `deidentify_template` is set, then `deidentify_template` - * will also apply to the structured content. If neither template is set, a - * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured - * content. - * @type string $image_redact_template - * Image redact template. - * If this template is specified, it will serve as the de-identify template - * for images. If this template is not set, all findings in the image will be - * redacted with a black box. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * De-identify template. - * If this template is specified, it will serve as the default de-identify - * template. This template cannot contain `record_transformations` since it - * can be used for unstructured content such as free-form text files. If this - * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to - * de-identify unstructured content. - * - * Generated from protobuf field string deidentify_template = 1; - * @return string - */ - public function getDeidentifyTemplate() - { - return $this->deidentify_template; - } - - /** - * De-identify template. - * If this template is specified, it will serve as the default de-identify - * template. This template cannot contain `record_transformations` since it - * can be used for unstructured content such as free-form text files. If this - * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to - * de-identify unstructured content. - * - * Generated from protobuf field string deidentify_template = 1; - * @param string $var - * @return $this - */ - public function setDeidentifyTemplate($var) - { - GPBUtil::checkString($var, True); - $this->deidentify_template = $var; - - return $this; - } - - /** - * Structured de-identify template. - * If this template is specified, it will serve as the de-identify template - * for structured content such as delimited files and tables. If this template - * is not set but the `deidentify_template` is set, then `deidentify_template` - * will also apply to the structured content. If neither template is set, a - * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured - * content. - * - * Generated from protobuf field string structured_deidentify_template = 2; - * @return string - */ - public function getStructuredDeidentifyTemplate() - { - return $this->structured_deidentify_template; - } - - /** - * Structured de-identify template. - * If this template is specified, it will serve as the de-identify template - * for structured content such as delimited files and tables. If this template - * is not set but the `deidentify_template` is set, then `deidentify_template` - * will also apply to the structured content. If neither template is set, a - * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured - * content. - * - * Generated from protobuf field string structured_deidentify_template = 2; - * @param string $var - * @return $this - */ - public function setStructuredDeidentifyTemplate($var) - { - GPBUtil::checkString($var, True); - $this->structured_deidentify_template = $var; - - return $this; - } - - /** - * Image redact template. - * If this template is specified, it will serve as the de-identify template - * for images. If this template is not set, all findings in the image will be - * redacted with a black box. - * - * Generated from protobuf field string image_redact_template = 4; - * @return string - */ - public function getImageRedactTemplate() - { - return $this->image_redact_template; - } - - /** - * Image redact template. - * If this template is specified, it will serve as the de-identify template - * for images. If this template is not set, all findings in the image will be - * redacted with a black box. - * - * Generated from protobuf field string image_redact_template = 4; - * @param string $var - * @return $this - */ - public function setImageRedactTemplate($var) - { - GPBUtil::checkString($var, True); - $this->image_redact_template = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationContainerType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationContainerType.php deleted file mode 100644 index 2030c3527e9f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationContainerType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.TransformationContainerType - */ -class TransformationContainerType -{ - /** - * Unused. - * - * Generated from protobuf enum TRANSFORM_UNKNOWN_CONTAINER = 0; - */ - const TRANSFORM_UNKNOWN_CONTAINER = 0; - /** - * Body of a file. - * - * Generated from protobuf enum TRANSFORM_BODY = 1; - */ - const TRANSFORM_BODY = 1; - /** - * Metadata for a file. - * - * Generated from protobuf enum TRANSFORM_METADATA = 2; - */ - const TRANSFORM_METADATA = 2; - /** - * A table. - * - * Generated from protobuf enum TRANSFORM_TABLE = 3; - */ - const TRANSFORM_TABLE = 3; - - private static $valueToName = [ - self::TRANSFORM_UNKNOWN_CONTAINER => 'TRANSFORM_UNKNOWN_CONTAINER', - self::TRANSFORM_BODY => 'TRANSFORM_BODY', - self::TRANSFORM_METADATA => 'TRANSFORM_METADATA', - self::TRANSFORM_TABLE => 'TRANSFORM_TABLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDescription.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDescription.php deleted file mode 100644 index df91b2cf66ba..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDescription.php +++ /dev/null @@ -1,224 +0,0 @@ -google.privacy.dlp.v2.TransformationDescription - */ -class TransformationDescription extends \Google\Protobuf\Internal\Message -{ - /** - * The transformation type. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationType type = 1; - */ - protected $type = 0; - /** - * A description of the transformation. This is empty for a - * RECORD_SUPPRESSION, or is the output of calling toString() on the - * `PrimitiveTransformation` protocol buffer message for any other type of - * transformation. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * A human-readable string representation of the `RecordCondition` - * corresponding to this transformation. Set if a `RecordCondition` was used - * to determine whether or not to apply this transformation. - * Examples: - * * (age_field > 85) - * * (age_field <= 18) - * * (zip_field exists) - * * (zip_field == 01234) && (city_field != "Springville") - * * (zip_field == 01234) && (age_field <= 18) && (city_field exists) - * - * Generated from protobuf field string condition = 3; - */ - protected $condition = ''; - /** - * Set if the transformation was limited to a specific `InfoType`. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 4; - */ - protected $info_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The transformation type. - * @type string $description - * A description of the transformation. This is empty for a - * RECORD_SUPPRESSION, or is the output of calling toString() on the - * `PrimitiveTransformation` protocol buffer message for any other type of - * transformation. - * @type string $condition - * A human-readable string representation of the `RecordCondition` - * corresponding to this transformation. Set if a `RecordCondition` was used - * to determine whether or not to apply this transformation. - * Examples: - * * (age_field > 85) - * * (age_field <= 18) - * * (zip_field exists) - * * (zip_field == 01234) && (city_field != "Springville") - * * (zip_field == 01234) && (age_field <= 18) && (city_field exists) - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * Set if the transformation was limited to a specific `InfoType`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The transformation type. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationType type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The transformation type. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationType type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TransformationType::class); - $this->type = $var; - - return $this; - } - - /** - * A description of the transformation. This is empty for a - * RECORD_SUPPRESSION, or is the output of calling toString() on the - * `PrimitiveTransformation` protocol buffer message for any other type of - * transformation. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A description of the transformation. This is empty for a - * RECORD_SUPPRESSION, or is the output of calling toString() on the - * `PrimitiveTransformation` protocol buffer message for any other type of - * transformation. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * A human-readable string representation of the `RecordCondition` - * corresponding to this transformation. Set if a `RecordCondition` was used - * to determine whether or not to apply this transformation. - * Examples: - * * (age_field > 85) - * * (age_field <= 18) - * * (zip_field exists) - * * (zip_field == 01234) && (city_field != "Springville") - * * (zip_field == 01234) && (age_field <= 18) && (city_field exists) - * - * Generated from protobuf field string condition = 3; - * @return string - */ - public function getCondition() - { - return $this->condition; - } - - /** - * A human-readable string representation of the `RecordCondition` - * corresponding to this transformation. Set if a `RecordCondition` was used - * to determine whether or not to apply this transformation. - * Examples: - * * (age_field > 85) - * * (age_field <= 18) - * * (zip_field exists) - * * (zip_field == 01234) && (city_field != "Springville") - * * (zip_field == 01234) && (age_field <= 18) && (city_field exists) - * - * Generated from protobuf field string condition = 3; - * @param string $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkString($var, True); - $this->condition = $var; - - return $this; - } - - /** - * Set if the transformation was limited to a specific `InfoType`. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 4; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * Set if the transformation was limited to a specific `InfoType`. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 4; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetails.php deleted file mode 100644 index fca4faf82d7b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetails.php +++ /dev/null @@ -1,296 +0,0 @@ -google.privacy.dlp.v2.TransformationDetails - */ -class TransformationDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the job that completed the transformation. - * - * Generated from protobuf field string resource_name = 1; - */ - protected $resource_name = ''; - /** - * The top level name of the container where the transformation is located - * (this will be the source file name or table name). - * - * Generated from protobuf field string container_name = 2; - */ - protected $container_name = ''; - /** - * Description of transformation. This would only contain more than one - * element if there were multiple matching transformations and which one to - * apply was ambiguous. Not set for states that contain no transformation, - * currently only state that contains no transformation is - * TransformationResultStateType.METADATA_UNRETRIEVABLE. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3; - */ - private $transformation; - /** - * Status of the transformation, if transformation was not successful, this - * will specify what caused it to fail, otherwise it will show that the - * transformation was successful. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatus status_details = 4; - */ - protected $status_details = null; - /** - * The number of bytes that were transformed. If transformation was - * unsuccessful or did not take place because there was no content to - * transform, this will be zero. - * - * Generated from protobuf field int64 transformed_bytes = 5; - */ - protected $transformed_bytes = 0; - /** - * The precise location of the transformed content in the original container. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationLocation transformation_location = 6; - */ - protected $transformation_location = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_name - * The name of the job that completed the transformation. - * @type string $container_name - * The top level name of the container where the transformation is located - * (this will be the source file name or table name). - * @type \Google\Cloud\Dlp\V2\TransformationDescription[] $transformation - * Description of transformation. This would only contain more than one - * element if there were multiple matching transformations and which one to - * apply was ambiguous. Not set for states that contain no transformation, - * currently only state that contains no transformation is - * TransformationResultStateType.METADATA_UNRETRIEVABLE. - * @type \Google\Cloud\Dlp\V2\TransformationResultStatus $status_details - * Status of the transformation, if transformation was not successful, this - * will specify what caused it to fail, otherwise it will show that the - * transformation was successful. - * @type int|string $transformed_bytes - * The number of bytes that were transformed. If transformation was - * unsuccessful or did not take place because there was no content to - * transform, this will be zero. - * @type \Google\Cloud\Dlp\V2\TransformationLocation $transformation_location - * The precise location of the transformed content in the original container. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The name of the job that completed the transformation. - * - * Generated from protobuf field string resource_name = 1; - * @return string - */ - public function getResourceName() - { - return $this->resource_name; - } - - /** - * The name of the job that completed the transformation. - * - * Generated from protobuf field string resource_name = 1; - * @param string $var - * @return $this - */ - public function setResourceName($var) - { - GPBUtil::checkString($var, True); - $this->resource_name = $var; - - return $this; - } - - /** - * The top level name of the container where the transformation is located - * (this will be the source file name or table name). - * - * Generated from protobuf field string container_name = 2; - * @return string - */ - public function getContainerName() - { - return $this->container_name; - } - - /** - * The top level name of the container where the transformation is located - * (this will be the source file name or table name). - * - * Generated from protobuf field string container_name = 2; - * @param string $var - * @return $this - */ - public function setContainerName($var) - { - GPBUtil::checkString($var, True); - $this->container_name = $var; - - return $this; - } - - /** - * Description of transformation. This would only contain more than one - * element if there were multiple matching transformations and which one to - * apply was ambiguous. Not set for states that contain no transformation, - * currently only state that contains no transformation is - * TransformationResultStateType.METADATA_UNRETRIEVABLE. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3; - * @return RepeatedField<\Google\Cloud\Dlp\V2\TransformationDescription> - */ - public function getTransformation() - { - return $this->transformation; - } - - /** - * Description of transformation. This would only contain more than one - * element if there were multiple matching transformations and which one to - * apply was ambiguous. Not set for states that contain no transformation, - * currently only state that contains no transformation is - * TransformationResultStateType.METADATA_UNRETRIEVABLE. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3; - * @param \Google\Cloud\Dlp\V2\TransformationDescription[] $var - * @return $this - */ - public function setTransformation($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\TransformationDescription::class); - $this->transformation = $arr; - - return $this; - } - - /** - * Status of the transformation, if transformation was not successful, this - * will specify what caused it to fail, otherwise it will show that the - * transformation was successful. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatus status_details = 4; - * @return \Google\Cloud\Dlp\V2\TransformationResultStatus|null - */ - public function getStatusDetails() - { - return $this->status_details; - } - - public function hasStatusDetails() - { - return isset($this->status_details); - } - - public function clearStatusDetails() - { - unset($this->status_details); - } - - /** - * Status of the transformation, if transformation was not successful, this - * will specify what caused it to fail, otherwise it will show that the - * transformation was successful. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatus status_details = 4; - * @param \Google\Cloud\Dlp\V2\TransformationResultStatus $var - * @return $this - */ - public function setStatusDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationResultStatus::class); - $this->status_details = $var; - - return $this; - } - - /** - * The number of bytes that were transformed. If transformation was - * unsuccessful or did not take place because there was no content to - * transform, this will be zero. - * - * Generated from protobuf field int64 transformed_bytes = 5; - * @return int|string - */ - public function getTransformedBytes() - { - return $this->transformed_bytes; - } - - /** - * The number of bytes that were transformed. If transformation was - * unsuccessful or did not take place because there was no content to - * transform, this will be zero. - * - * Generated from protobuf field int64 transformed_bytes = 5; - * @param int|string $var - * @return $this - */ - public function setTransformedBytes($var) - { - GPBUtil::checkInt64($var); - $this->transformed_bytes = $var; - - return $this; - } - - /** - * The precise location of the transformed content in the original container. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationLocation transformation_location = 6; - * @return \Google\Cloud\Dlp\V2\TransformationLocation|null - */ - public function getTransformationLocation() - { - return $this->transformation_location; - } - - public function hasTransformationLocation() - { - return isset($this->transformation_location); - } - - public function clearTransformationLocation() - { - unset($this->transformation_location); - } - - /** - * The precise location of the transformed content in the original container. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationLocation transformation_location = 6; - * @param \Google\Cloud\Dlp\V2\TransformationLocation $var - * @return $this - */ - public function setTransformationLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationLocation::class); - $this->transformation_location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetailsStorageConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetailsStorageConfig.php deleted file mode 100644 index a21742d00fe7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetailsStorageConfig.php +++ /dev/null @@ -1,90 +0,0 @@ -google.privacy.dlp.v2.TransformationDetailsStorageConfig - */ -class TransformationDetailsStorageConfig extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTable $table - * The BigQuery table in which to store the output. This may be an existing - * table or in a new table in an existing dataset. - * If table_id is not set a new one will be generated for you with the - * following format: - * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific - * time zone will be used for generating the date details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The BigQuery table in which to store the output. This may be an existing - * table or in a new table in an existing dataset. - * If table_id is not set a new one will be generated for you with the - * following format: - * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific - * time zone will be used for generating the date details. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getTable() - { - return $this->readOneof(1); - } - - public function hasTable() - { - return $this->hasOneof(1); - } - - /** - * The BigQuery table in which to store the output. This may be an existing - * table or in a new table in an existing dataset. - * If table_id is not set a new one will be generated for you with the - * following format: - * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific - * time zone will be used for generating the date details. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling.php deleted file mode 100644 index 86a8d47b692b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling.php +++ /dev/null @@ -1,115 +0,0 @@ -google.privacy.dlp.v2.TransformationErrorHandling - */ -class TransformationErrorHandling extends \Google\Protobuf\Internal\Message -{ - protected $mode; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\TransformationErrorHandling\ThrowError $throw_error - * Throw an error - * @type \Google\Cloud\Dlp\V2\TransformationErrorHandling\LeaveUntransformed $leave_untransformed - * Ignore errors - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Throw an error - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; - * @return \Google\Cloud\Dlp\V2\TransformationErrorHandling\ThrowError|null - */ - public function getThrowError() - { - return $this->readOneof(1); - } - - public function hasThrowError() - { - return $this->hasOneof(1); - } - - /** - * Throw an error - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; - * @param \Google\Cloud\Dlp\V2\TransformationErrorHandling\ThrowError $var - * @return $this - */ - public function setThrowError($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationErrorHandling\ThrowError::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Ignore errors - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; - * @return \Google\Cloud\Dlp\V2\TransformationErrorHandling\LeaveUntransformed|null - */ - public function getLeaveUntransformed() - { - return $this->readOneof(2); - } - - public function hasLeaveUntransformed() - { - return $this->hasOneof(2); - } - - /** - * Ignore errors - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; - * @param \Google\Cloud\Dlp\V2\TransformationErrorHandling\LeaveUntransformed $var - * @return $this - */ - public function setLeaveUntransformed($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationErrorHandling\LeaveUntransformed::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getMode() - { - return $this->whichOneof("mode"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/LeaveUntransformed.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/LeaveUntransformed.php deleted file mode 100644 index dad2acd72683..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/LeaveUntransformed.php +++ /dev/null @@ -1,36 +0,0 @@ -google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed - */ -class LeaveUntransformed extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/ThrowError.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/ThrowError.php deleted file mode 100644 index f54bcafe0bab..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/ThrowError.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.TransformationErrorHandling.ThrowError - */ -class ThrowError extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationLocation.php deleted file mode 100644 index 39c8168f3431..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationLocation.php +++ /dev/null @@ -1,158 +0,0 @@ -google.privacy.dlp.v2.TransformationLocation - */ -class TransformationLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Information about the functionality of the container where this finding - * occurred, if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationContainerType container_type = 3; - */ - protected $container_type = 0; - protected $location_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $finding_id - * For infotype transformations, link to the corresponding findings ID so - * that location information does not need to be duplicated. Each findings - * ID correlates to an entry in the findings output table, this table only - * gets created when users specify to save findings (add the save findings - * action to the request). - * @type \Google\Cloud\Dlp\V2\RecordTransformation $record_transformation - * For record transformations, provide a field and container information. - * @type int $container_type - * Information about the functionality of the container where this finding - * occurred, if available. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * For infotype transformations, link to the corresponding findings ID so - * that location information does not need to be duplicated. Each findings - * ID correlates to an entry in the findings output table, this table only - * gets created when users specify to save findings (add the save findings - * action to the request). - * - * Generated from protobuf field string finding_id = 1; - * @return string - */ - public function getFindingId() - { - return $this->readOneof(1); - } - - public function hasFindingId() - { - return $this->hasOneof(1); - } - - /** - * For infotype transformations, link to the corresponding findings ID so - * that location information does not need to be duplicated. Each findings - * ID correlates to an entry in the findings output table, this table only - * gets created when users specify to save findings (add the save findings - * action to the request). - * - * Generated from protobuf field string finding_id = 1; - * @param string $var - * @return $this - */ - public function setFindingId($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * For record transformations, provide a field and container information. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordTransformation record_transformation = 2; - * @return \Google\Cloud\Dlp\V2\RecordTransformation|null - */ - public function getRecordTransformation() - { - return $this->readOneof(2); - } - - public function hasRecordTransformation() - { - return $this->hasOneof(2); - } - - /** - * For record transformations, provide a field and container information. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordTransformation record_transformation = 2; - * @param \Google\Cloud\Dlp\V2\RecordTransformation $var - * @return $this - */ - public function setRecordTransformation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordTransformation::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Information about the functionality of the container where this finding - * occurred, if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationContainerType container_type = 3; - * @return int - */ - public function getContainerType() - { - return $this->container_type; - } - - /** - * Information about the functionality of the container where this finding - * occurred, if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationContainerType container_type = 3; - * @param int $var - * @return $this - */ - public function setContainerType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TransformationContainerType::class); - $this->container_type = $var; - - return $this; - } - - /** - * @return string - */ - public function getLocationType() - { - return $this->whichOneof("location_type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationOverview.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationOverview.php deleted file mode 100644 index d5d296fb51fe..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationOverview.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.TransformationOverview - */ -class TransformationOverview extends \Google\Protobuf\Internal\Message -{ - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 2; - */ - protected $transformed_bytes = 0; - /** - * Transformations applied to the dataset. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; - */ - private $transformation_summaries; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $transformed_bytes - * Total size in bytes that were transformed in some way. - * @type \Google\Cloud\Dlp\V2\TransformationSummary[] $transformation_summaries - * Transformations applied to the dataset. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 2; - * @return int|string - */ - public function getTransformedBytes() - { - return $this->transformed_bytes; - } - - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 2; - * @param int|string $var - * @return $this - */ - public function setTransformedBytes($var) - { - GPBUtil::checkInt64($var); - $this->transformed_bytes = $var; - - return $this; - } - - /** - * Transformations applied to the dataset. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; - * @return RepeatedField<\Google\Cloud\Dlp\V2\TransformationSummary> - */ - public function getTransformationSummaries() - { - return $this->transformation_summaries; - } - - /** - * Transformations applied to the dataset. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; - * @param \Google\Cloud\Dlp\V2\TransformationSummary[] $var - * @return $this - */ - public function setTransformationSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\TransformationSummary::class); - $this->transformation_summaries = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatus.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatus.php deleted file mode 100644 index 3f11d37edf5f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatus.php +++ /dev/null @@ -1,115 +0,0 @@ -google.privacy.dlp.v2.TransformationResultStatus - */ -class TransformationResultStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Transformation result status type, this will be either SUCCESS, or it will - * be the reason for why the transformation was not completely successful. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1; - */ - protected $result_status_type = 0; - /** - * Detailed error codes and messages - * - * Generated from protobuf field .google.rpc.Status details = 2; - */ - protected $details = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $result_status_type - * Transformation result status type, this will be either SUCCESS, or it will - * be the reason for why the transformation was not completely successful. - * @type \Google\Rpc\Status $details - * Detailed error codes and messages - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Transformation result status type, this will be either SUCCESS, or it will - * be the reason for why the transformation was not completely successful. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1; - * @return int - */ - public function getResultStatusType() - { - return $this->result_status_type; - } - - /** - * Transformation result status type, this will be either SUCCESS, or it will - * be the reason for why the transformation was not completely successful. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1; - * @param int $var - * @return $this - */ - public function setResultStatusType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TransformationResultStatusType::class); - $this->result_status_type = $var; - - return $this; - } - - /** - * Detailed error codes and messages - * - * Generated from protobuf field .google.rpc.Status details = 2; - * @return \Google\Rpc\Status|null - */ - public function getDetails() - { - return $this->details; - } - - public function hasDetails() - { - return isset($this->details); - } - - public function clearDetails() - { - unset($this->details); - } - - /** - * Detailed error codes and messages - * - * Generated from protobuf field .google.rpc.Status details = 2; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setDetails($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->details = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatusType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatusType.php deleted file mode 100644 index a308e60c8154..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatusType.php +++ /dev/null @@ -1,82 +0,0 @@ -google.privacy.dlp.v2.TransformationResultStatusType - */ -class TransformationResultStatusType -{ - /** - * Unused. - * - * Generated from protobuf enum STATE_TYPE_UNSPECIFIED = 0; - */ - const STATE_TYPE_UNSPECIFIED = 0; - /** - * This will be set when a finding could not be transformed (i.e. outside user - * set bucket range). - * - * Generated from protobuf enum INVALID_TRANSFORM = 1; - */ - const INVALID_TRANSFORM = 1; - /** - * This will be set when a BigQuery transformation was successful but could - * not be stored back in BigQuery because the transformed row exceeds - * BigQuery's max row size. - * - * Generated from protobuf enum BIGQUERY_MAX_ROW_SIZE_EXCEEDED = 2; - */ - const BIGQUERY_MAX_ROW_SIZE_EXCEEDED = 2; - /** - * This will be set when there is a finding in the custom metadata of a file, - * but at the write time of the transformed file, this key / value pair is - * unretrievable. - * - * Generated from protobuf enum METADATA_UNRETRIEVABLE = 3; - */ - const METADATA_UNRETRIEVABLE = 3; - /** - * This will be set when the transformation and storing of it is successful. - * - * Generated from protobuf enum SUCCESS = 4; - */ - const SUCCESS = 4; - - private static $valueToName = [ - self::STATE_TYPE_UNSPECIFIED => 'STATE_TYPE_UNSPECIFIED', - self::INVALID_TRANSFORM => 'INVALID_TRANSFORM', - self::BIGQUERY_MAX_ROW_SIZE_EXCEEDED => 'BIGQUERY_MAX_ROW_SIZE_EXCEEDED', - self::METADATA_UNRETRIEVABLE => 'METADATA_UNRETRIEVABLE', - self::SUCCESS => 'SUCCESS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary.php deleted file mode 100644 index d936981eb41d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary.php +++ /dev/null @@ -1,321 +0,0 @@ -google.privacy.dlp.v2.TransformationSummary - */ -class TransformationSummary extends \Google\Protobuf\Internal\Message -{ - /** - * Set if the transformation was limited to a specific InfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - */ - protected $info_type = null; - /** - * Set if the transformation was limited to a specific FieldId. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; - */ - protected $field = null; - /** - * The specific transformation these stats apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation transformation = 3; - */ - protected $transformation = null; - /** - * The field transformation that was applied. - * If multiple field transformations are requested for a single field, - * this list will contain all of them; otherwise, only one is supplied. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5; - */ - private $field_transformations; - /** - * The specific suppression option these stats apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordSuppression record_suppress = 6; - */ - protected $record_suppress = null; - /** - * Collection of all transformations that took place or had an error. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4; - */ - private $results; - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 7; - */ - protected $transformed_bytes = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * Set if the transformation was limited to a specific InfoType. - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Set if the transformation was limited to a specific FieldId. - * @type \Google\Cloud\Dlp\V2\PrimitiveTransformation $transformation - * The specific transformation these stats apply to. - * @type \Google\Cloud\Dlp\V2\FieldTransformation[] $field_transformations - * The field transformation that was applied. - * If multiple field transformations are requested for a single field, - * this list will contain all of them; otherwise, only one is supplied. - * @type \Google\Cloud\Dlp\V2\RecordSuppression $record_suppress - * The specific suppression option these stats apply to. - * @type \Google\Cloud\Dlp\V2\TransformationSummary\SummaryResult[] $results - * Collection of all transformations that took place or had an error. - * @type int|string $transformed_bytes - * Total size in bytes that were transformed in some way. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Set if the transformation was limited to a specific InfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * Set if the transformation was limited to a specific InfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - - /** - * Set if the transformation was limited to a specific FieldId. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Set if the transformation was limited to a specific FieldId. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - - /** - * The specific transformation these stats apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation transformation = 3; - * @return \Google\Cloud\Dlp\V2\PrimitiveTransformation|null - */ - public function getTransformation() - { - return $this->transformation; - } - - public function hasTransformation() - { - return isset($this->transformation); - } - - public function clearTransformation() - { - unset($this->transformation); - } - - /** - * The specific transformation these stats apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation transformation = 3; - * @param \Google\Cloud\Dlp\V2\PrimitiveTransformation $var - * @return $this - */ - public function setTransformation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrimitiveTransformation::class); - $this->transformation = $var; - - return $this; - } - - /** - * The field transformation that was applied. - * If multiple field transformations are requested for a single field, - * this list will contain all of them; otherwise, only one is supplied. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5; - * @return RepeatedField<\Google\Cloud\Dlp\V2\FieldTransformation> - */ - public function getFieldTransformations() - { - return $this->field_transformations; - } - - /** - * The field transformation that was applied. - * If multiple field transformations are requested for a single field, - * this list will contain all of them; otherwise, only one is supplied. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5; - * @param \Google\Cloud\Dlp\V2\FieldTransformation[] $var - * @return $this - */ - public function setFieldTransformations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldTransformation::class); - $this->field_transformations = $arr; - - return $this; - } - - /** - * The specific suppression option these stats apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordSuppression record_suppress = 6; - * @return \Google\Cloud\Dlp\V2\RecordSuppression|null - */ - public function getRecordSuppress() - { - return $this->record_suppress; - } - - public function hasRecordSuppress() - { - return isset($this->record_suppress); - } - - public function clearRecordSuppress() - { - unset($this->record_suppress); - } - - /** - * The specific suppression option these stats apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordSuppression record_suppress = 6; - * @param \Google\Cloud\Dlp\V2\RecordSuppression $var - * @return $this - */ - public function setRecordSuppress($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordSuppression::class); - $this->record_suppress = $var; - - return $this; - } - - /** - * Collection of all transformations that took place or had an error. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4; - * @return RepeatedField<\Google\Cloud\Dlp\V2\TransformationSummary\SummaryResult> - */ - public function getResults() - { - return $this->results; - } - - /** - * Collection of all transformations that took place or had an error. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4; - * @param \Google\Cloud\Dlp\V2\TransformationSummary\SummaryResult[] $var - * @return $this - */ - public function setResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\TransformationSummary\SummaryResult::class); - $this->results = $arr; - - return $this; - } - - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 7; - * @return int|string - */ - public function getTransformedBytes() - { - return $this->transformed_bytes; - } - - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 7; - * @param int|string $var - * @return $this - */ - public function setTransformedBytes($var) - { - GPBUtil::checkInt64($var); - $this->transformed_bytes = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/SummaryResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/SummaryResult.php deleted file mode 100644 index 05ac48f17192..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/SummaryResult.php +++ /dev/null @@ -1,140 +0,0 @@ -google.privacy.dlp.v2.TransformationSummary.SummaryResult - */ -class SummaryResult extends \Google\Protobuf\Internal\Message -{ - /** - * Number of transformations counted by this result. - * - * Generated from protobuf field int64 count = 1; - */ - protected $count = 0; - /** - * Outcome of the transformation. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2; - */ - protected $code = 0; - /** - * A place for warnings or errors to show up if a transformation didn't - * work as expected. - * - * Generated from protobuf field string details = 3; - */ - protected $details = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $count - * Number of transformations counted by this result. - * @type int $code - * Outcome of the transformation. - * @type string $details - * A place for warnings or errors to show up if a transformation didn't - * work as expected. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Number of transformations counted by this result. - * - * Generated from protobuf field int64 count = 1; - * @return int|string - */ - public function getCount() - { - return $this->count; - } - - /** - * Number of transformations counted by this result. - * - * Generated from protobuf field int64 count = 1; - * @param int|string $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkInt64($var); - $this->count = $var; - - return $this; - } - - /** - * Outcome of the transformation. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2; - * @return int - */ - public function getCode() - { - return $this->code; - } - - /** - * Outcome of the transformation. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2; - * @param int $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TransformationSummary\TransformationResultCode::class); - $this->code = $var; - - return $this; - } - - /** - * A place for warnings or errors to show up if a transformation didn't - * work as expected. - * - * Generated from protobuf field string details = 3; - * @return string - */ - public function getDetails() - { - return $this->details; - } - - /** - * A place for warnings or errors to show up if a transformation didn't - * work as expected. - * - * Generated from protobuf field string details = 3; - * @param string $var - * @return $this - */ - public function setDetails($var) - { - GPBUtil::checkString($var, True); - $this->details = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/TransformationResultCode.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/TransformationResultCode.php deleted file mode 100644 index 854a4ad49a38..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/TransformationResultCode.php +++ /dev/null @@ -1,61 +0,0 @@ -google.privacy.dlp.v2.TransformationSummary.TransformationResultCode - */ -class TransformationResultCode -{ - /** - * Unused - * - * Generated from protobuf enum TRANSFORMATION_RESULT_CODE_UNSPECIFIED = 0; - */ - const TRANSFORMATION_RESULT_CODE_UNSPECIFIED = 0; - /** - * Transformation completed without an error. - * - * Generated from protobuf enum SUCCESS = 1; - */ - const SUCCESS = 1; - /** - * Transformation had an error. - * - * Generated from protobuf enum ERROR = 2; - */ - const ERROR = 2; - - private static $valueToName = [ - self::TRANSFORMATION_RESULT_CODE_UNSPECIFIED => 'TRANSFORMATION_RESULT_CODE_UNSPECIFIED', - self::SUCCESS => 'SUCCESS', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationType.php deleted file mode 100644 index 0bff43bdcf5e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationType.php +++ /dev/null @@ -1,147 +0,0 @@ -google.privacy.dlp.v2.TransformationType - */ -class TransformationType -{ - /** - * Unused - * - * Generated from protobuf enum TRANSFORMATION_TYPE_UNSPECIFIED = 0; - */ - const TRANSFORMATION_TYPE_UNSPECIFIED = 0; - /** - * Record suppression - * - * Generated from protobuf enum RECORD_SUPPRESSION = 1; - */ - const RECORD_SUPPRESSION = 1; - /** - * Replace value - * - * Generated from protobuf enum REPLACE_VALUE = 2; - */ - const REPLACE_VALUE = 2; - /** - * Replace value using a dictionary. - * - * Generated from protobuf enum REPLACE_DICTIONARY = 15; - */ - const REPLACE_DICTIONARY = 15; - /** - * Redact - * - * Generated from protobuf enum REDACT = 3; - */ - const REDACT = 3; - /** - * Character mask - * - * Generated from protobuf enum CHARACTER_MASK = 4; - */ - const CHARACTER_MASK = 4; - /** - * FFX-FPE - * - * Generated from protobuf enum CRYPTO_REPLACE_FFX_FPE = 5; - */ - const CRYPTO_REPLACE_FFX_FPE = 5; - /** - * Fixed size bucketing - * - * Generated from protobuf enum FIXED_SIZE_BUCKETING = 6; - */ - const FIXED_SIZE_BUCKETING = 6; - /** - * Bucketing - * - * Generated from protobuf enum BUCKETING = 7; - */ - const BUCKETING = 7; - /** - * Replace with info type - * - * Generated from protobuf enum REPLACE_WITH_INFO_TYPE = 8; - */ - const REPLACE_WITH_INFO_TYPE = 8; - /** - * Time part - * - * Generated from protobuf enum TIME_PART = 9; - */ - const TIME_PART = 9; - /** - * Crypto hash - * - * Generated from protobuf enum CRYPTO_HASH = 10; - */ - const CRYPTO_HASH = 10; - /** - * Date shift - * - * Generated from protobuf enum DATE_SHIFT = 12; - */ - const DATE_SHIFT = 12; - /** - * Deterministic crypto - * - * Generated from protobuf enum CRYPTO_DETERMINISTIC_CONFIG = 13; - */ - const CRYPTO_DETERMINISTIC_CONFIG = 13; - /** - * Redact image - * - * Generated from protobuf enum REDACT_IMAGE = 14; - */ - const REDACT_IMAGE = 14; - - private static $valueToName = [ - self::TRANSFORMATION_TYPE_UNSPECIFIED => 'TRANSFORMATION_TYPE_UNSPECIFIED', - self::RECORD_SUPPRESSION => 'RECORD_SUPPRESSION', - self::REPLACE_VALUE => 'REPLACE_VALUE', - self::REPLACE_DICTIONARY => 'REPLACE_DICTIONARY', - self::REDACT => 'REDACT', - self::CHARACTER_MASK => 'CHARACTER_MASK', - self::CRYPTO_REPLACE_FFX_FPE => 'CRYPTO_REPLACE_FFX_FPE', - self::FIXED_SIZE_BUCKETING => 'FIXED_SIZE_BUCKETING', - self::BUCKETING => 'BUCKETING', - self::REPLACE_WITH_INFO_TYPE => 'REPLACE_WITH_INFO_TYPE', - self::TIME_PART => 'TIME_PART', - self::CRYPTO_HASH => 'CRYPTO_HASH', - self::DATE_SHIFT => 'DATE_SHIFT', - self::CRYPTO_DETERMINISTIC_CONFIG => 'CRYPTO_DETERMINISTIC_CONFIG', - self::REDACT_IMAGE => 'REDACT_IMAGE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransientCryptoKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransientCryptoKey.php deleted file mode 100644 index 6a508d57129c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransientCryptoKey.php +++ /dev/null @@ -1,88 +0,0 @@ -google.privacy.dlp.v2.TransientCryptoKey - */ -class TransientCryptoKey extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the key. - * This is an arbitrary string used to differentiate different keys. - * A unique key is generated per name: two separate `TransientCryptoKey` - * protos share the same generated key if their names are the same. - * When the data crypto key is generated, this name is not used in any way - * (repeating the api call will result in a different key being generated). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the key. - * This is an arbitrary string used to differentiate different keys. - * A unique key is generated per name: two separate `TransientCryptoKey` - * protos share the same generated key if their names are the same. - * When the data crypto key is generated, this name is not used in any way - * (repeating the api call will result in a different key being generated). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the key. - * This is an arbitrary string used to differentiate different keys. - * A unique key is generated per name: two separate `TransientCryptoKey` - * protos share the same generated key if their names are the same. - * When the data crypto key is generated, this name is not used in any way - * (repeating the api call will result in a different key being generated). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the key. - * This is an arbitrary string used to differentiate different keys. - * A unique key is generated per name: two separate `TransientCryptoKey` - * protos share the same generated key if their names are the same. - * When the data crypto key is generated, this name is not used in any way - * (repeating the api call will result in a different key being generated). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UniquenessScoreLevel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UniquenessScoreLevel.php deleted file mode 100644 index 32a233f41645..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UniquenessScoreLevel.php +++ /dev/null @@ -1,72 +0,0 @@ -google.privacy.dlp.v2.UniquenessScoreLevel - */ -class UniquenessScoreLevel -{ - /** - * Some columns do not have estimated uniqueness. Possible reasons include - * having too few values. - * - * Generated from protobuf enum UNIQUENESS_SCORE_LEVEL_UNSPECIFIED = 0; - */ - const UNIQUENESS_SCORE_LEVEL_UNSPECIFIED = 0; - /** - * Low uniqueness, possibly a boolean, enum or similiarly typed column. - * - * Generated from protobuf enum UNIQUENESS_SCORE_LOW = 1; - */ - const UNIQUENESS_SCORE_LOW = 1; - /** - * Medium uniqueness. - * - * Generated from protobuf enum UNIQUENESS_SCORE_MEDIUM = 2; - */ - const UNIQUENESS_SCORE_MEDIUM = 2; - /** - * High uniqueness, possibly a column of free text or unique identifiers. - * - * Generated from protobuf enum UNIQUENESS_SCORE_HIGH = 3; - */ - const UNIQUENESS_SCORE_HIGH = 3; - - private static $valueToName = [ - self::UNIQUENESS_SCORE_LEVEL_UNSPECIFIED => 'UNIQUENESS_SCORE_LEVEL_UNSPECIFIED', - self::UNIQUENESS_SCORE_LOW => 'UNIQUENESS_SCORE_LOW', - self::UNIQUENESS_SCORE_MEDIUM => 'UNIQUENESS_SCORE_MEDIUM', - self::UNIQUENESS_SCORE_HIGH => 'UNIQUENESS_SCORE_HIGH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UnwrappedCryptoKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UnwrappedCryptoKey.php deleted file mode 100644 index 29f528b8ab3b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UnwrappedCryptoKey.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.UnwrappedCryptoKey - */ -class UnwrappedCryptoKey extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A 128/192/256 bit key. - * - * Generated from protobuf field bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * Required. A 128/192/256 bit key. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. A 128/192/256 bit key. - * - * Generated from protobuf field bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Required. A 128/192/256 bit key. - * - * Generated from protobuf field bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, False); - $this->key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateConnectionRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateConnectionRequest.php deleted file mode 100644 index 47e5822d9ed0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateConnectionRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.privacy.dlp.v2.UpdateConnectionRequest - */ -class UpdateConnectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The connection with new values for the relevant fields. - * - * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $connection = null; - /** - * Optional. Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param string $name Required. Resource name in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. Please see - * {@see DlpServiceClient::connectionName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\UpdateConnectionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * @type \Google\Cloud\Dlp\V2\Connection $connection - * Required. The connection with new values for the relevant fields. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Mask to control which fields get updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The connection with new values for the relevant fields. - * - * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\Connection|null - */ - public function getConnection() - { - return $this->connection; - } - - public function hasConnection() - { - return isset($this->connection); - } - - public function clearConnection() - { - unset($this->connection); - } - - /** - * Required. The connection with new values for the relevant fields. - * - * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\Connection $var - * @return $this - */ - public function setConnection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Connection::class); - $this->connection = $var; - - return $this; - } - - /** - * Optional. Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDeidentifyTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDeidentifyTemplateRequest.php deleted file mode 100644 index 3214f002f473..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDeidentifyTemplateRequest.php +++ /dev/null @@ -1,188 +0,0 @@ -google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest - */ -class UpdateDeidentifyTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of organization and deidentify template to be - * updated, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * New DeidentifyTemplate value. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2; - */ - protected $deidentify_template = null; - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * @param string $name Required. Resource name of organization and deidentify template to be - * updated, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. Please see - * {@see DlpServiceClient::deidentifyTemplateName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentifyTemplate New DeidentifyTemplate value. - * @param \Google\Protobuf\FieldMask $updateMask Mask to control which fields get updated. - * - * @return \Google\Cloud\Dlp\V2\UpdateDeidentifyTemplateRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentifyTemplate, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setName($name) - ->setDeidentifyTemplate($deidentifyTemplate) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of organization and deidentify template to be - * updated, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. - * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentify_template - * New DeidentifyTemplate value. - * @type \Google\Protobuf\FieldMask $update_mask - * Mask to control which fields get updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of organization and deidentify template to be - * updated, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of organization and deidentify template to be - * updated, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * New DeidentifyTemplate value. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2; - * @return \Google\Cloud\Dlp\V2\DeidentifyTemplate|null - */ - public function getDeidentifyTemplate() - { - return $this->deidentify_template; - } - - public function hasDeidentifyTemplate() - { - return isset($this->deidentify_template); - } - - public function clearDeidentifyTemplate() - { - unset($this->deidentify_template); - } - - /** - * New DeidentifyTemplate value. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2; - * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $var - * @return $this - */ - public function setDeidentifyTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); - $this->deidentify_template = $var; - - return $this; - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDiscoveryConfigRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDiscoveryConfigRequest.php deleted file mode 100644 index b76f2c16ca48..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDiscoveryConfigRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.privacy.dlp.v2.UpdateDiscoveryConfigRequest - */ -class UpdateDiscoveryConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. New DiscoveryConfig value. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $discovery_config = null; - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * @param string $name Required. Resource name of the project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. Please see - * {@see DlpServiceClient::discoveryConfigName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\DiscoveryConfig $discoveryConfig Required. New DiscoveryConfig value. - * @param \Google\Protobuf\FieldMask $updateMask Mask to control which fields get updated. - * - * @return \Google\Cloud\Dlp\V2\UpdateDiscoveryConfigRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\Dlp\V2\DiscoveryConfig $discoveryConfig, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setName($name) - ->setDiscoveryConfig($discoveryConfig) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * @type \Google\Cloud\Dlp\V2\DiscoveryConfig $discovery_config - * Required. New DiscoveryConfig value. - * @type \Google\Protobuf\FieldMask $update_mask - * Mask to control which fields get updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. New DiscoveryConfig value. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\DiscoveryConfig|null - */ - public function getDiscoveryConfig() - { - return $this->discovery_config; - } - - public function hasDiscoveryConfig() - { - return isset($this->discovery_config); - } - - public function clearDiscoveryConfig() - { - unset($this->discovery_config); - } - - /** - * Required. New DiscoveryConfig value. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\DiscoveryConfig $var - * @return $this - */ - public function setDiscoveryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryConfig::class); - $this->discovery_config = $var; - - return $this; - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateInspectTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateInspectTemplateRequest.php deleted file mode 100644 index ff8577e4ca2a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateInspectTemplateRequest.php +++ /dev/null @@ -1,183 +0,0 @@ -google.privacy.dlp.v2.UpdateInspectTemplateRequest - */ -class UpdateInspectTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of organization and inspectTemplate to be updated, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * New InspectTemplate value. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2; - */ - protected $inspect_template = null; - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * @param string $name Required. Resource name of organization and inspectTemplate to be updated, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. Please see - * {@see DlpServiceClient::inspectTemplateName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\InspectTemplate $inspectTemplate New InspectTemplate value. - * @param \Google\Protobuf\FieldMask $updateMask Mask to control which fields get updated. - * - * @return \Google\Cloud\Dlp\V2\UpdateInspectTemplateRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\Dlp\V2\InspectTemplate $inspectTemplate, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setName($name) - ->setInspectTemplate($inspectTemplate) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of organization and inspectTemplate to be updated, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. - * @type \Google\Cloud\Dlp\V2\InspectTemplate $inspect_template - * New InspectTemplate value. - * @type \Google\Protobuf\FieldMask $update_mask - * Mask to control which fields get updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of organization and inspectTemplate to be updated, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of organization and inspectTemplate to be updated, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * New InspectTemplate value. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2; - * @return \Google\Cloud\Dlp\V2\InspectTemplate|null - */ - public function getInspectTemplate() - { - return $this->inspect_template; - } - - public function hasInspectTemplate() - { - return isset($this->inspect_template); - } - - public function clearInspectTemplate() - { - unset($this->inspect_template); - } - - /** - * New InspectTemplate value. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2; - * @param \Google\Cloud\Dlp\V2\InspectTemplate $var - * @return $this - */ - public function setInspectTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectTemplate::class); - $this->inspect_template = $var; - - return $this; - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateJobTriggerRequest.php deleted file mode 100644 index 575f4bb02f70..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateJobTriggerRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.privacy.dlp.v2.UpdateJobTriggerRequest - */ -class UpdateJobTriggerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * New JobTrigger value. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2; - */ - protected $job_trigger = null; - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * @param string $name Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. Please see - * {@see DlpServiceClient::jobTriggerName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\JobTrigger $jobTrigger New JobTrigger value. - * @param \Google\Protobuf\FieldMask $updateMask Mask to control which fields get updated. - * - * @return \Google\Cloud\Dlp\V2\UpdateJobTriggerRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\Dlp\V2\JobTrigger $jobTrigger, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setName($name) - ->setJobTrigger($jobTrigger) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * @type \Google\Cloud\Dlp\V2\JobTrigger $job_trigger - * New JobTrigger value. - * @type \Google\Protobuf\FieldMask $update_mask - * Mask to control which fields get updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * New JobTrigger value. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2; - * @return \Google\Cloud\Dlp\V2\JobTrigger|null - */ - public function getJobTrigger() - { - return $this->job_trigger; - } - - public function hasJobTrigger() - { - return isset($this->job_trigger); - } - - public function clearJobTrigger() - { - unset($this->job_trigger); - } - - /** - * New JobTrigger value. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2; - * @param \Google\Cloud\Dlp\V2\JobTrigger $var - * @return $this - */ - public function setJobTrigger($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\JobTrigger::class); - $this->job_trigger = $var; - - return $this; - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateStoredInfoTypeRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateStoredInfoTypeRequest.php deleted file mode 100644 index 8ff747aade1a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateStoredInfoTypeRequest.php +++ /dev/null @@ -1,193 +0,0 @@ -google.privacy.dlp.v2.UpdateStoredInfoTypeRequest - */ -class UpdateStoredInfoTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of organization and storedInfoType to be updated, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Updated configuration for the storedInfoType. If not provided, a new - * version of the storedInfoType will be created with the existing - * configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2; - */ - protected $config = null; - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * @param string $name Required. Resource name of organization and storedInfoType to be updated, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. Please see - * {@see DlpServiceClient::storedInfoTypeName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config Updated configuration for the storedInfoType. If not provided, a new - * version of the storedInfoType will be created with the existing - * configuration. - * @param \Google\Protobuf\FieldMask $updateMask Mask to control which fields get updated. - * - * @return \Google\Cloud\Dlp\V2\UpdateStoredInfoTypeRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setName($name) - ->setConfig($config) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of organization and storedInfoType to be updated, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * @type \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config - * Updated configuration for the storedInfoType. If not provided, a new - * version of the storedInfoType will be created with the existing - * configuration. - * @type \Google\Protobuf\FieldMask $update_mask - * Mask to control which fields get updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of organization and storedInfoType to be updated, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name of organization and storedInfoType to be updated, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Updated configuration for the storedInfoType. If not provided, a new - * version of the storedInfoType will be created with the existing - * configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2; - * @return \Google\Cloud\Dlp\V2\StoredInfoTypeConfig|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * Updated configuration for the storedInfoType. If not provided, a new - * version of the storedInfoType will be created with the existing - * configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2; - * @param \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredInfoTypeConfig::class); - $this->config = $var; - - return $this; - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Value.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Value.php deleted file mode 100644 index 1218c67d098c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Value.php +++ /dev/null @@ -1,311 +0,0 @@ -google.privacy.dlp.v2.Value - */ -class Value extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $integer_value - * integer - * @type float $float_value - * float - * @type string $string_value - * string - * @type bool $boolean_value - * boolean - * @type \Google\Protobuf\Timestamp $timestamp_value - * timestamp - * @type \Google\Type\TimeOfDay $time_value - * time of day - * @type \Google\Type\Date $date_value - * date - * @type int $day_of_week_value - * day of week - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * integer - * - * Generated from protobuf field int64 integer_value = 1; - * @return int|string - */ - public function getIntegerValue() - { - return $this->readOneof(1); - } - - public function hasIntegerValue() - { - return $this->hasOneof(1); - } - - /** - * integer - * - * Generated from protobuf field int64 integer_value = 1; - * @param int|string $var - * @return $this - */ - public function setIntegerValue($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * float - * - * Generated from protobuf field double float_value = 2; - * @return float - */ - public function getFloatValue() - { - return $this->readOneof(2); - } - - public function hasFloatValue() - { - return $this->hasOneof(2); - } - - /** - * float - * - * Generated from protobuf field double float_value = 2; - * @param float $var - * @return $this - */ - public function setFloatValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * string - * - * Generated from protobuf field string string_value = 3; - * @return string - */ - public function getStringValue() - { - return $this->readOneof(3); - } - - public function hasStringValue() - { - return $this->hasOneof(3); - } - - /** - * string - * - * Generated from protobuf field string string_value = 3; - * @param string $var - * @return $this - */ - public function setStringValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * boolean - * - * Generated from protobuf field bool boolean_value = 4; - * @return bool - */ - public function getBooleanValue() - { - return $this->readOneof(4); - } - - public function hasBooleanValue() - { - return $this->hasOneof(4); - } - - /** - * boolean - * - * Generated from protobuf field bool boolean_value = 4; - * @param bool $var - * @return $this - */ - public function setBooleanValue($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * timestamp - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestampValue() - { - return $this->readOneof(5); - } - - public function hasTimestampValue() - { - return $this->hasOneof(5); - } - - /** - * timestamp - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestampValue($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * time of day - * - * Generated from protobuf field .google.type.TimeOfDay time_value = 6; - * @return \Google\Type\TimeOfDay|null - */ - public function getTimeValue() - { - return $this->readOneof(6); - } - - public function hasTimeValue() - { - return $this->hasOneof(6); - } - - /** - * time of day - * - * Generated from protobuf field .google.type.TimeOfDay time_value = 6; - * @param \Google\Type\TimeOfDay $var - * @return $this - */ - public function setTimeValue($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * date - * - * Generated from protobuf field .google.type.Date date_value = 7; - * @return \Google\Type\Date|null - */ - public function getDateValue() - { - return $this->readOneof(7); - } - - public function hasDateValue() - { - return $this->hasOneof(7); - } - - /** - * date - * - * Generated from protobuf field .google.type.Date date_value = 7; - * @param \Google\Type\Date $var - * @return $this - */ - public function setDateValue($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * day of week - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week_value = 8; - * @return int - */ - public function getDayOfWeekValue() - { - return $this->readOneof(8); - } - - public function hasDayOfWeekValue() - { - return $this->hasOneof(8); - } - - /** - * day of week - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week_value = 8; - * @param int $var - * @return $this - */ - public function setDayOfWeekValue($var) - { - GPBUtil::checkEnum($var, \Google\Type\DayOfWeek::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ValueFrequency.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ValueFrequency.php deleted file mode 100644 index 4afe4711c700..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ValueFrequency.php +++ /dev/null @@ -1,111 +0,0 @@ -google.privacy.dlp.v2.ValueFrequency - */ -class ValueFrequency extends \Google\Protobuf\Internal\Message -{ - /** - * A value contained in the field in question. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value value = 1; - */ - protected $value = null; - /** - * How many times the value is contained in the field. - * - * Generated from protobuf field int64 count = 2; - */ - protected $count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Value $value - * A value contained in the field in question. - * @type int|string $count - * How many times the value is contained in the field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A value contained in the field in question. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value value = 1; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * A value contained in the field in question. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value value = 1; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->value = $var; - - return $this; - } - - /** - * How many times the value is contained in the field. - * - * Generated from protobuf field int64 count = 2; - * @return int|string - */ - public function getCount() - { - return $this->count; - } - - /** - * How many times the value is contained in the field. - * - * Generated from protobuf field int64 count = 2; - * @param int|string $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkInt64($var); - $this->count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VersionDescription.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VersionDescription.php deleted file mode 100644 index 5e6528eae58a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VersionDescription.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.VersionDescription - */ -class VersionDescription extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the version - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * Description of the version. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * Name of the version - * @type string $description - * Description of the version. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Name of the version - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Name of the version - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Description of the version. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of the version. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetCollection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetCollection.php deleted file mode 100644 index ff5915cb14b1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetCollection.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.VertexDatasetCollection - */ -class VertexDatasetCollection extends \Google\Protobuf\Internal\Message -{ - protected $pattern; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\VertexDatasetRegexes $vertex_dataset_regexes - * The regex used to filter dataset resources. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The regex used to filter dataset resources. - * - * Generated from protobuf field .google.privacy.dlp.v2.VertexDatasetRegexes vertex_dataset_regexes = 1; - * @return \Google\Cloud\Dlp\V2\VertexDatasetRegexes|null - */ - public function getVertexDatasetRegexes() - { - return $this->readOneof(1); - } - - public function hasVertexDatasetRegexes() - { - return $this->hasOneof(1); - } - - /** - * The regex used to filter dataset resources. - * - * Generated from protobuf field .google.privacy.dlp.v2.VertexDatasetRegexes vertex_dataset_regexes = 1; - * @param \Google\Cloud\Dlp\V2\VertexDatasetRegexes $var - * @return $this - */ - public function setVertexDatasetRegexes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\VertexDatasetRegexes::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getPattern() - { - return $this->whichOneof("pattern"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetDiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetDiscoveryTarget.php deleted file mode 100644 index bf7a2ef37114..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetDiscoveryTarget.php +++ /dev/null @@ -1,210 +0,0 @@ -google.privacy.dlp.v2.VertexDatasetDiscoveryTarget - */ -class VertexDatasetDiscoveryTarget extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The datasets the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a dataset. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryVertexDatasetFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = null; - /** - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryVertexDatasetConditions conditions = 2; - */ - protected $conditions = null; - protected $cadence; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetFilter $filter - * Required. The datasets the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a dataset. - * @type \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetConditions $conditions - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * @type \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetGenerationCadence $generation_cadence - * How often and when to update profiles. New datasets that match both the - * filter and conditions are scanned as quickly as possible depending on - * system capacity. - * @type \Google\Cloud\Dlp\V2\Disabled $disabled - * Disable profiling for datasets that match this filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The datasets the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a dataset. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryVertexDatasetFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetFilter|null - */ - public function getFilter() - { - return $this->filter; - } - - public function hasFilter() - { - return isset($this->filter); - } - - public function clearFilter() - { - unset($this->filter); - } - - /** - * Required. The datasets the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a dataset. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryVertexDatasetFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetFilter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetFilter::class); - $this->filter = $var; - - return $this; - } - - /** - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryVertexDatasetConditions conditions = 2; - * @return \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetConditions|null - */ - public function getConditions() - { - return $this->conditions; - } - - public function hasConditions() - { - return isset($this->conditions); - } - - public function clearConditions() - { - unset($this->conditions); - } - - /** - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryVertexDatasetConditions conditions = 2; - * @param \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetConditions $var - * @return $this - */ - public function setConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetConditions::class); - $this->conditions = $var; - - return $this; - } - - /** - * How often and when to update profiles. New datasets that match both the - * filter and conditions are scanned as quickly as possible depending on - * system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryVertexDatasetGenerationCadence generation_cadence = 3; - * @return \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetGenerationCadence|null - */ - public function getGenerationCadence() - { - return $this->readOneof(3); - } - - public function hasGenerationCadence() - { - return $this->hasOneof(3); - } - - /** - * How often and when to update profiles. New datasets that match both the - * filter and conditions are scanned as quickly as possible depending on - * system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryVertexDatasetGenerationCadence generation_cadence = 3; - * @param \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetGenerationCadence $var - * @return $this - */ - public function setGenerationCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryVertexDatasetGenerationCadence::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Disable profiling for datasets that match this filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 4; - * @return \Google\Cloud\Dlp\V2\Disabled|null - */ - public function getDisabled() - { - return $this->readOneof(4); - } - - public function hasDisabled() - { - return $this->hasOneof(4); - } - - /** - * Disable profiling for datasets that match this filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 4; - * @param \Google\Cloud\Dlp\V2\Disabled $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Disabled::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getCadence() - { - return $this->whichOneof("cadence"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetRegex.php deleted file mode 100644 index 1d12b2278af2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetRegex.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.VertexDatasetRegex - */ -class VertexDatasetRegex extends \Google\Protobuf\Internal\Message -{ - /** - * For organizations, if unset, will match all projects. Has no effect - * for configurations created within a project. - * - * Generated from protobuf field string project_id_regex = 1; - */ - protected $project_id_regex = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id_regex - * For organizations, if unset, will match all projects. Has no effect - * for configurations created within a project. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * For organizations, if unset, will match all projects. Has no effect - * for configurations created within a project. - * - * Generated from protobuf field string project_id_regex = 1; - * @return string - */ - public function getProjectIdRegex() - { - return $this->project_id_regex; - } - - /** - * For organizations, if unset, will match all projects. Has no effect - * for configurations created within a project. - * - * Generated from protobuf field string project_id_regex = 1; - * @param string $var - * @return $this - */ - public function setProjectIdRegex($var) - { - GPBUtil::checkString($var, True); - $this->project_id_regex = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetRegexes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetRegexes.php deleted file mode 100644 index 9e7f476e858b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetRegexes.php +++ /dev/null @@ -1,76 +0,0 @@ -google.privacy.dlp.v2.VertexDatasetRegexes - */ -class VertexDatasetRegexes extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The group of regular expression patterns to match against one or - * more datasets. Maximum of 100 entries. The sum of the lengths of all - * regular expressions can't exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.VertexDatasetRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $patterns; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\VertexDatasetRegex[] $patterns - * Required. The group of regular expression patterns to match against one or - * more datasets. Maximum of 100 entries. The sum of the lengths of all - * regular expressions can't exceed 10 KiB. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The group of regular expression patterns to match against one or - * more datasets. Maximum of 100 entries. The sum of the lengths of all - * regular expressions can't exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.VertexDatasetRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Dlp\V2\VertexDatasetRegex> - */ - public function getPatterns() - { - return $this->patterns; - } - - /** - * Required. The group of regular expression patterns to match against one or - * more datasets. Maximum of 100 entries. The sum of the lengths of all - * regular expressions can't exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.VertexDatasetRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\VertexDatasetRegex[] $var - * @return $this - */ - public function setPatterns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\VertexDatasetRegex::class); - $this->patterns = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetResourceReference.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetResourceReference.php deleted file mode 100644 index 6d831f52ab71..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VertexDatasetResourceReference.php +++ /dev/null @@ -1,80 +0,0 @@ -google.privacy.dlp.v2.VertexDatasetResourceReference - */ -class VertexDatasetResourceReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Vertex AI resource. If set within a project-level - * configuration, the specified resource must be within the project. - * Examples: - * * `projects/{project}/locations/{location}/datasets/{dataset}` - * - * Generated from protobuf field string dataset_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $dataset_resource_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dataset_resource_name - * Required. The name of the Vertex AI resource. If set within a project-level - * configuration, the specified resource must be within the project. - * Examples: - * * `projects/{project}/locations/{location}/datasets/{dataset}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Vertex AI resource. If set within a project-level - * configuration, the specified resource must be within the project. - * Examples: - * * `projects/{project}/locations/{location}/datasets/{dataset}` - * - * Generated from protobuf field string dataset_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatasetResourceName() - { - return $this->dataset_resource_name; - } - - /** - * Required. The name of the Vertex AI resource. If set within a project-level - * configuration, the specified resource must be within the project. - * Examples: - * * `projects/{project}/locations/{location}/datasets/{dataset}` - * - * Generated from protobuf field string dataset_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatasetResourceName($var) - { - GPBUtil::checkString($var, True); - $this->dataset_resource_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/activate_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/activate_job_trigger.php deleted file mode 100644 index 04e27caeaf00..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/activate_job_trigger.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DlpJob $response */ - $response = $dlpServiceClient->activateJobTrigger($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - - activate_job_trigger_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_ActivateJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/cancel_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/cancel_dlp_job.php deleted file mode 100644 index 9a1f8b4eb980..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/cancel_dlp_job.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->cancelDlpJob($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::dlpJobName('[PROJECT]', '[DLP_JOB]'); - - cancel_dlp_job_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_CancelDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_connection.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_connection.php deleted file mode 100644 index 62e692cf0323..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_connection.php +++ /dev/null @@ -1,85 +0,0 @@ -setState($connectionState); - $request = (new CreateConnectionRequest()) - ->setParent($formattedParent) - ->setConnection($connection); - - // Call the API and handle any network failures. - try { - /** @var Connection $response */ - $response = $dlpServiceClient->createConnection($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; - - create_connection_sample($formattedParent, $connectionState); -} -// [END dlp_v2_generated_DlpService_CreateConnection_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_deidentify_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_deidentify_template.php deleted file mode 100644 index 52b3c26a1ebd..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_deidentify_template.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setDeidentifyTemplate($deidentifyTemplate); - - // Call the API and handle any network failures. - try { - /** @var DeidentifyTemplate $response */ - $response = $dlpServiceClient->createDeidentifyTemplate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - create_deidentify_template_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_CreateDeidentifyTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_discovery_config.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_discovery_config.php deleted file mode 100644 index d07530cb21ad..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_discovery_config.php +++ /dev/null @@ -1,91 +0,0 @@ -setStatus($discoveryConfigStatus); - $request = (new CreateDiscoveryConfigRequest()) - ->setParent($formattedParent) - ->setDiscoveryConfig($discoveryConfig); - - // Call the API and handle any network failures. - try { - /** @var DiscoveryConfig $response */ - $response = $dlpServiceClient->createDiscoveryConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; - - create_discovery_config_sample($formattedParent, $discoveryConfigStatus); -} -// [END dlp_v2_generated_DlpService_CreateDiscoveryConfig_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_dlp_job.php deleted file mode 100644 index 166bb38f5aed..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_dlp_job.php +++ /dev/null @@ -1,95 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var DlpJob $response */ - $response = $dlpServiceClient->createDlpJob($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::projectName('[PROJECT]'); - - create_dlp_job_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_CreateDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_inspect_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_inspect_template.php deleted file mode 100644 index 8c5218b22cf7..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_inspect_template.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setInspectTemplate($inspectTemplate); - - // Call the API and handle any network failures. - try { - /** @var InspectTemplate $response */ - $response = $dlpServiceClient->createInspectTemplate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - create_inspect_template_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_CreateInspectTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_job_trigger.php deleted file mode 100644 index a33817b07767..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_job_trigger.php +++ /dev/null @@ -1,96 +0,0 @@ -setStatus($jobTriggerStatus); - $request = (new CreateJobTriggerRequest()) - ->setParent($formattedParent) - ->setJobTrigger($jobTrigger); - - // Call the API and handle any network failures. - try { - /** @var JobTrigger $response */ - $response = $dlpServiceClient->createJobTrigger($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::projectName('[PROJECT]'); - $jobTriggerStatus = Status::STATUS_UNSPECIFIED; - - create_job_trigger_sample($formattedParent, $jobTriggerStatus); -} -// [END dlp_v2_generated_DlpService_CreateJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_stored_info_type.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_stored_info_type.php deleted file mode 100644 index 0b8e9e1458cb..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_stored_info_type.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setConfig($config); - - // Call the API and handle any network failures. - try { - /** @var StoredInfoType $response */ - $response = $dlpServiceClient->createStoredInfoType($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - create_stored_info_type_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_CreateStoredInfoType_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/deidentify_content.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/deidentify_content.php deleted file mode 100644 index 9769fca9f1f1..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/deidentify_content.php +++ /dev/null @@ -1,65 +0,0 @@ -deidentifyContent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dlp_v2_generated_DlpService_DeidentifyContent_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_connection.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_connection.php deleted file mode 100644 index b19aa97345cc..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_connection.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteConnection($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - - delete_connection_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteConnection_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_deidentify_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_deidentify_template.php deleted file mode 100644 index 43b18b8d5b16..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_deidentify_template.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteDeidentifyTemplate($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::deidentifyTemplateName( - '[ORGANIZATION]', - '[DEIDENTIFY_TEMPLATE]' - ); - - delete_deidentify_template_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteDeidentifyTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_discovery_config.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_discovery_config.php deleted file mode 100644 index c7758fe1f97a..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_discovery_config.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteDiscoveryConfig($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::discoveryConfigName( - '[PROJECT]', - '[LOCATION]', - '[DISCOVERY_CONFIG]' - ); - - delete_discovery_config_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteDiscoveryConfig_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_dlp_job.php deleted file mode 100644 index 4e06417ccb84..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_dlp_job.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteDlpJob($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::dlpJobName('[PROJECT]', '[DLP_JOB]'); - - delete_dlp_job_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_file_store_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_file_store_data_profile.php deleted file mode 100644 index 637982767c4d..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_file_store_data_profile.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteFileStoreDataProfile($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::fileStoreDataProfileName( - '[ORGANIZATION]', - '[LOCATION]', - '[FILE_STORE_DATA_PROFILE]' - ); - - delete_file_store_data_profile_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteFileStoreDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_inspect_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_inspect_template.php deleted file mode 100644 index dff7db078153..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_inspect_template.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteInspectTemplate($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - - delete_inspect_template_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteInspectTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_job_trigger.php deleted file mode 100644 index 80ecaf514058..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_job_trigger.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteJobTrigger($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - - delete_job_trigger_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_stored_info_type.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_stored_info_type.php deleted file mode 100644 index a8250641e3e8..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_stored_info_type.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteStoredInfoType($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - - delete_stored_info_type_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteStoredInfoType_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_table_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_table_data_profile.php deleted file mode 100644 index face86fef936..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_table_data_profile.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteTableDataProfile($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::tableDataProfileName( - '[ORGANIZATION]', - '[LOCATION]', - '[TABLE_DATA_PROFILE]' - ); - - delete_table_data_profile_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteTableDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/finish_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/finish_dlp_job.php deleted file mode 100644 index c0250e81f894..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/finish_dlp_job.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->finishDlpJob($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::dlpJobName('[PROJECT]', '[DLP_JOB]'); - - finish_dlp_job_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_FinishDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_column_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_column_data_profile.php deleted file mode 100644 index a9ed68704837..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_column_data_profile.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ColumnDataProfile $response */ - $response = $dlpServiceClient->getColumnDataProfile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::columnDataProfileName( - '[ORGANIZATION]', - '[LOCATION]', - '[COLUMN_DATA_PROFILE]' - ); - - get_column_data_profile_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetColumnDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_connection.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_connection.php deleted file mode 100644 index f6244aa1fc15..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_connection.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Connection $response */ - $response = $dlpServiceClient->getConnection($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - - get_connection_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetConnection_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_deidentify_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_deidentify_template.php deleted file mode 100644 index 97a41367b293..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_deidentify_template.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DeidentifyTemplate $response */ - $response = $dlpServiceClient->getDeidentifyTemplate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::deidentifyTemplateName( - '[ORGANIZATION]', - '[DEIDENTIFY_TEMPLATE]' - ); - - get_deidentify_template_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetDeidentifyTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_discovery_config.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_discovery_config.php deleted file mode 100644 index a72a1625e61d..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_discovery_config.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DiscoveryConfig $response */ - $response = $dlpServiceClient->getDiscoveryConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::discoveryConfigName( - '[PROJECT]', - '[LOCATION]', - '[DISCOVERY_CONFIG]' - ); - - get_discovery_config_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetDiscoveryConfig_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_dlp_job.php deleted file mode 100644 index c54c5fbe1e49..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_dlp_job.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DlpJob $response */ - $response = $dlpServiceClient->getDlpJob($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::dlpJobName('[PROJECT]', '[DLP_JOB]'); - - get_dlp_job_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_file_store_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_file_store_data_profile.php deleted file mode 100644 index 5aec92cc0163..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_file_store_data_profile.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var FileStoreDataProfile $response */ - $response = $dlpServiceClient->getFileStoreDataProfile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::projectDataProfileName( - '[ORGANIZATION]', - '[LOCATION]', - '[PROJECT_DATA_PROFILE]' - ); - - get_file_store_data_profile_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetFileStoreDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_inspect_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_inspect_template.php deleted file mode 100644 index 6eaa0007bc5f..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_inspect_template.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var InspectTemplate $response */ - $response = $dlpServiceClient->getInspectTemplate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - - get_inspect_template_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetInspectTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_job_trigger.php deleted file mode 100644 index 487e14f692bc..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_job_trigger.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var JobTrigger $response */ - $response = $dlpServiceClient->getJobTrigger($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - - get_job_trigger_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_project_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_project_data_profile.php deleted file mode 100644 index c501e8239fff..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_project_data_profile.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ProjectDataProfile $response */ - $response = $dlpServiceClient->getProjectDataProfile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::projectDataProfileName( - '[ORGANIZATION]', - '[LOCATION]', - '[PROJECT_DATA_PROFILE]' - ); - - get_project_data_profile_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetProjectDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_stored_info_type.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_stored_info_type.php deleted file mode 100644 index 7fe0a67cfea2..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_stored_info_type.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var StoredInfoType $response */ - $response = $dlpServiceClient->getStoredInfoType($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - - get_stored_info_type_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetStoredInfoType_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_table_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_table_data_profile.php deleted file mode 100644 index 6178fe33034e..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_table_data_profile.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var TableDataProfile $response */ - $response = $dlpServiceClient->getTableDataProfile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::tableDataProfileName( - '[ORGANIZATION]', - '[LOCATION]', - '[TABLE_DATA_PROFILE]' - ); - - get_table_data_profile_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetTableDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_dlp_job.php deleted file mode 100644 index 620569221957..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_dlp_job.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var HybridInspectResponse $response */ - $response = $dlpServiceClient->hybridInspectDlpJob($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::dlpJobName('[PROJECT]', '[DLP_JOB]'); - - hybrid_inspect_dlp_job_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_HybridInspectDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_job_trigger.php deleted file mode 100644 index 0447df0254c3..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_job_trigger.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var HybridInspectResponse $response */ - $response = $dlpServiceClient->hybridInspectJobTrigger($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - - hybrid_inspect_job_trigger_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_HybridInspectJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/inspect_content.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/inspect_content.php deleted file mode 100644 index 97ea2a7b272a..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/inspect_content.php +++ /dev/null @@ -1,67 +0,0 @@ -inspectContent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dlp_v2_generated_DlpService_InspectContent_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_column_data_profiles.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_column_data_profiles.php deleted file mode 100644 index 9e6a8f7f1c28..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_column_data_profiles.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listColumnDataProfiles($request); - - /** @var ColumnDataProfile $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_column_data_profiles_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListColumnDataProfiles_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_connections.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_connections.php deleted file mode 100644 index a24a6a1fea6d..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_connections.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listConnections($request); - - /** @var Connection $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_connections_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListConnections_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_deidentify_templates.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_deidentify_templates.php deleted file mode 100644 index 47a5dba018bb..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_deidentify_templates.php +++ /dev/null @@ -1,98 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listDeidentifyTemplates($request); - - /** @var DeidentifyTemplate $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_deidentify_templates_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListDeidentifyTemplates_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_discovery_configs.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_discovery_configs.php deleted file mode 100644 index dd938c826d57..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_discovery_configs.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listDiscoveryConfigs($request); - - /** @var DiscoveryConfig $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_discovery_configs_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListDiscoveryConfigs_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_dlp_jobs.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_dlp_jobs.php deleted file mode 100644 index 7f7149582666..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_dlp_jobs.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listDlpJobs($request); - - /** @var DlpJob $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::projectName('[PROJECT]'); - - list_dlp_jobs_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListDlpJobs_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_file_store_data_profiles.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_file_store_data_profiles.php deleted file mode 100644 index d29d17bf1e1c..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_file_store_data_profiles.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listFileStoreDataProfiles($request); - - /** @var FileStoreDataProfile $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_file_store_data_profiles_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListFileStoreDataProfiles_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_info_types.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_info_types.php deleted file mode 100644 index 756c1e705c5a..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_info_types.php +++ /dev/null @@ -1,60 +0,0 @@ -listInfoTypes($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dlp_v2_generated_DlpService_ListInfoTypes_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_inspect_templates.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_inspect_templates.php deleted file mode 100644 index e1c64c529c4a..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_inspect_templates.php +++ /dev/null @@ -1,98 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listInspectTemplates($request); - - /** @var InspectTemplate $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_inspect_templates_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListInspectTemplates_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_job_triggers.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_job_triggers.php deleted file mode 100644 index d48c46d43278..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_job_triggers.php +++ /dev/null @@ -1,94 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listJobTriggers($request); - - /** @var JobTrigger $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::projectName('[PROJECT]'); - - list_job_triggers_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListJobTriggers_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_project_data_profiles.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_project_data_profiles.php deleted file mode 100644 index e84bd84b02f7..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_project_data_profiles.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listProjectDataProfiles($request); - - /** @var ProjectDataProfile $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_project_data_profiles_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListProjectDataProfiles_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_stored_info_types.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_stored_info_types.php deleted file mode 100644 index 5a80b688afea..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_stored_info_types.php +++ /dev/null @@ -1,94 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listStoredInfoTypes($request); - - /** @var StoredInfoType $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_stored_info_types_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListStoredInfoTypes_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_table_data_profiles.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_table_data_profiles.php deleted file mode 100644 index bd4af1359983..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_table_data_profiles.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listTableDataProfiles($request); - - /** @var TableDataProfile $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_table_data_profiles_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListTableDataProfiles_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/redact_image.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/redact_image.php deleted file mode 100644 index b5192e2fe978..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/redact_image.php +++ /dev/null @@ -1,68 +0,0 @@ -redactImage($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dlp_v2_generated_DlpService_RedactImage_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/reidentify_content.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/reidentify_content.php deleted file mode 100644 index 0b589f897c6b..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/reidentify_content.php +++ /dev/null @@ -1,89 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var ReidentifyContentResponse $response */ - $response = $dlpServiceClient->reidentifyContent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::projectName('[PROJECT]'); - - reidentify_content_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ReidentifyContent_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/search_connections.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/search_connections.php deleted file mode 100644 index 58a0136a74fb..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/search_connections.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->searchConnections($request); - - /** @var Connection $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - search_connections_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_SearchConnections_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_connection.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_connection.php deleted file mode 100644 index f74f9c6cfa4e..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_connection.php +++ /dev/null @@ -1,78 +0,0 @@ -setState($connectionState); - $request = (new UpdateConnectionRequest()) - ->setName($formattedName) - ->setConnection($connection); - - // Call the API and handle any network failures. - try { - /** @var Connection $response */ - $response = $dlpServiceClient->updateConnection($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; - - update_connection_sample($formattedName, $connectionState); -} -// [END dlp_v2_generated_DlpService_UpdateConnection_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_deidentify_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_deidentify_template.php deleted file mode 100644 index 886de778c76f..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_deidentify_template.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DeidentifyTemplate $response */ - $response = $dlpServiceClient->updateDeidentifyTemplate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::deidentifyTemplateName( - '[ORGANIZATION]', - '[DEIDENTIFY_TEMPLATE]' - ); - - update_deidentify_template_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_UpdateDeidentifyTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_discovery_config.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_discovery_config.php deleted file mode 100644 index 9827c957154a..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_discovery_config.php +++ /dev/null @@ -1,82 +0,0 @@ -setStatus($discoveryConfigStatus); - $request = (new UpdateDiscoveryConfigRequest()) - ->setName($formattedName) - ->setDiscoveryConfig($discoveryConfig); - - // Call the API and handle any network failures. - try { - /** @var DiscoveryConfig $response */ - $response = $dlpServiceClient->updateDiscoveryConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::discoveryConfigName( - '[PROJECT]', - '[LOCATION]', - '[DISCOVERY_CONFIG]' - ); - $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; - - update_discovery_config_sample($formattedName, $discoveryConfigStatus); -} -// [END dlp_v2_generated_DlpService_UpdateDiscoveryConfig_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_inspect_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_inspect_template.php deleted file mode 100644 index d1728a2ba2da..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_inspect_template.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var InspectTemplate $response */ - $response = $dlpServiceClient->updateInspectTemplate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - - update_inspect_template_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_UpdateInspectTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_job_trigger.php deleted file mode 100644 index cfded42f3aaa..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_job_trigger.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var JobTrigger $response */ - $response = $dlpServiceClient->updateJobTrigger($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - - update_job_trigger_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_UpdateJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_stored_info_type.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_stored_info_type.php deleted file mode 100644 index 476ff3f23735..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_stored_info_type.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var StoredInfoType $response */ - $response = $dlpServiceClient->updateStoredInfoType($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - - update_stored_info_type_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_UpdateStoredInfoType_sync] diff --git a/owl-bot-staging/Dlp/v2/src/V2/Client/DlpServiceClient.php b/owl-bot-staging/Dlp/v2/src/V2/Client/DlpServiceClient.php deleted file mode 100644 index 4f561f8c4d52..000000000000 --- a/owl-bot-staging/Dlp/v2/src/V2/Client/DlpServiceClient.php +++ /dev/null @@ -1,2670 +0,0 @@ - activateJobTriggerAsync(ActivateJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface cancelDlpJobAsync(CancelDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface createConnectionAsync(CreateConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDeidentifyTemplateAsync(CreateDeidentifyTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDiscoveryConfigAsync(CreateDiscoveryConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDlpJobAsync(CreateDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface createInspectTemplateAsync(CreateInspectTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface createJobTriggerAsync(CreateJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface createStoredInfoTypeAsync(CreateStoredInfoTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface deidentifyContentAsync(DeidentifyContentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteConnectionAsync(DeleteConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDeidentifyTemplateAsync(DeleteDeidentifyTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDiscoveryConfigAsync(DeleteDiscoveryConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDlpJobAsync(DeleteDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFileStoreDataProfileAsync(DeleteFileStoreDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteInspectTemplateAsync(DeleteInspectTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteJobTriggerAsync(DeleteJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteStoredInfoTypeAsync(DeleteStoredInfoTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteTableDataProfileAsync(DeleteTableDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface finishDlpJobAsync(FinishDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface getColumnDataProfileAsync(GetColumnDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConnectionAsync(GetConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDeidentifyTemplateAsync(GetDeidentifyTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDiscoveryConfigAsync(GetDiscoveryConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDlpJobAsync(GetDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFileStoreDataProfileAsync(GetFileStoreDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface getInspectTemplateAsync(GetInspectTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface getJobTriggerAsync(GetJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface getProjectDataProfileAsync(GetProjectDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface getStoredInfoTypeAsync(GetStoredInfoTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTableDataProfileAsync(GetTableDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface hybridInspectDlpJobAsync(HybridInspectDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface hybridInspectJobTriggerAsync(HybridInspectJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface inspectContentAsync(InspectContentRequest $request, array $optionalArgs = []) - * @method PromiseInterface listColumnDataProfilesAsync(ListColumnDataProfilesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConnectionsAsync(ListConnectionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDeidentifyTemplatesAsync(ListDeidentifyTemplatesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDiscoveryConfigsAsync(ListDiscoveryConfigsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDlpJobsAsync(ListDlpJobsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFileStoreDataProfilesAsync(ListFileStoreDataProfilesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listInfoTypesAsync(ListInfoTypesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listInspectTemplatesAsync(ListInspectTemplatesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listJobTriggersAsync(ListJobTriggersRequest $request, array $optionalArgs = []) - * @method PromiseInterface listProjectDataProfilesAsync(ListProjectDataProfilesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listStoredInfoTypesAsync(ListStoredInfoTypesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTableDataProfilesAsync(ListTableDataProfilesRequest $request, array $optionalArgs = []) - * @method PromiseInterface redactImageAsync(RedactImageRequest $request, array $optionalArgs = []) - * @method PromiseInterface reidentifyContentAsync(ReidentifyContentRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchConnectionsAsync(SearchConnectionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateConnectionAsync(UpdateConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDeidentifyTemplateAsync(UpdateDeidentifyTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDiscoveryConfigAsync(UpdateDiscoveryConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateInspectTemplateAsync(UpdateInspectTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateJobTriggerAsync(UpdateJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateStoredInfoTypeAsync(UpdateStoredInfoTypeRequest $request, array $optionalArgs = []) - */ -final class DlpServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.privacy.dlp.v2.DlpService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dlp.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dlp.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/dlp_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/dlp_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/dlp_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/dlp_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * column_data_profile resource. - * - * @param string $organization - * @param string $location - * @param string $columnDataProfile - * - * @return string The formatted column_data_profile resource. - */ - public static function columnDataProfileName(string $organization, string $location, string $columnDataProfile): string - { - return self::getPathTemplate('columnDataProfile')->render([ - 'organization' => $organization, - 'location' => $location, - 'column_data_profile' => $columnDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a connection - * resource. - * - * @param string $project - * @param string $location - * @param string $connection - * - * @return string The formatted connection resource. - */ - public static function connectionName(string $project, string $location, string $connection): string - { - return self::getPathTemplate('connection')->render([ - 'project' => $project, - 'location' => $location, - 'connection' => $connection, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * deidentify_template resource. - * - * @param string $organization - * @param string $deidentifyTemplate - * - * @return string The formatted deidentify_template resource. - */ - public static function deidentifyTemplateName(string $organization, string $deidentifyTemplate): string - { - return self::getPathTemplate('deidentifyTemplate')->render([ - 'organization' => $organization, - 'deidentify_template' => $deidentifyTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * discovery_config resource. - * - * @param string $project - * @param string $location - * @param string $discoveryConfig - * - * @return string The formatted discovery_config resource. - */ - public static function discoveryConfigName(string $project, string $location, string $discoveryConfig): string - { - return self::getPathTemplate('discoveryConfig')->render([ - 'project' => $project, - 'location' => $location, - 'discovery_config' => $discoveryConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a dlp_job - * resource. - * - * @param string $project - * @param string $dlpJob - * - * @return string The formatted dlp_job resource. - */ - public static function dlpJobName(string $project, string $dlpJob): string - { - return self::getPathTemplate('dlpJob')->render([ - 'project' => $project, - 'dlp_job' => $dlpJob, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * file_store_data_profile resource. - * - * @param string $organization - * @param string $location - * @param string $fileStoreDataProfile - * - * @return string The formatted file_store_data_profile resource. - */ - public static function fileStoreDataProfileName(string $organization, string $location, string $fileStoreDataProfile): string - { - return self::getPathTemplate('fileStoreDataProfile')->render([ - 'organization' => $organization, - 'location' => $location, - 'file_store_data_profile' => $fileStoreDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * inspect_template resource. - * - * @param string $organization - * @param string $inspectTemplate - * - * @return string The formatted inspect_template resource. - */ - public static function inspectTemplateName(string $organization, string $inspectTemplate): string - { - return self::getPathTemplate('inspectTemplate')->render([ - 'organization' => $organization, - 'inspect_template' => $inspectTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a job_trigger - * resource. - * - * @param string $project - * @param string $jobTrigger - * - * @return string The formatted job_trigger resource. - */ - public static function jobTriggerName(string $project, string $jobTrigger): string - { - return self::getPathTemplate('jobTrigger')->render([ - 'project' => $project, - 'job_trigger' => $jobTrigger, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a organization - * resource. - * - * @param string $organization - * - * @return string The formatted organization resource. - */ - public static function organizationName(string $organization): string - { - return self::getPathTemplate('organization')->render([ - 'organization' => $organization, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_deidentify_template resource. - * - * @param string $organization - * @param string $deidentifyTemplate - * - * @return string The formatted organization_deidentify_template resource. - */ - public static function organizationDeidentifyTemplateName(string $organization, string $deidentifyTemplate): string - { - return self::getPathTemplate('organizationDeidentifyTemplate')->render([ - 'organization' => $organization, - 'deidentify_template' => $deidentifyTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_inspect_template resource. - * - * @param string $organization - * @param string $inspectTemplate - * - * @return string The formatted organization_inspect_template resource. - */ - public static function organizationInspectTemplateName(string $organization, string $inspectTemplate): string - { - return self::getPathTemplate('organizationInspectTemplate')->render([ - 'organization' => $organization, - 'inspect_template' => $inspectTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location resource. - * - * @param string $organization - * @param string $location - * - * @return string The formatted organization_location resource. - */ - public static function organizationLocationName(string $organization, string $location): string - { - return self::getPathTemplate('organizationLocation')->render([ - 'organization' => $organization, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_column_data_profile resource. - * - * @param string $organization - * @param string $location - * @param string $columnDataProfile - * - * @return string The formatted organization_location_column_data_profile resource. - */ - public static function organizationLocationColumnDataProfileName(string $organization, string $location, string $columnDataProfile): string - { - return self::getPathTemplate('organizationLocationColumnDataProfile')->render([ - 'organization' => $organization, - 'location' => $location, - 'column_data_profile' => $columnDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_connection resource. - * - * @param string $organization - * @param string $location - * @param string $connection - * - * @return string The formatted organization_location_connection resource. - */ - public static function organizationLocationConnectionName(string $organization, string $location, string $connection): string - { - return self::getPathTemplate('organizationLocationConnection')->render([ - 'organization' => $organization, - 'location' => $location, - 'connection' => $connection, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_deidentify_template resource. - * - * @param string $organization - * @param string $location - * @param string $deidentifyTemplate - * - * @return string The formatted organization_location_deidentify_template resource. - */ - public static function organizationLocationDeidentifyTemplateName(string $organization, string $location, string $deidentifyTemplate): string - { - return self::getPathTemplate('organizationLocationDeidentifyTemplate')->render([ - 'organization' => $organization, - 'location' => $location, - 'deidentify_template' => $deidentifyTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_file_store_data_profile resource. - * - * @param string $organization - * @param string $location - * @param string $fileStoreDataProfile - * - * @return string The formatted organization_location_file_store_data_profile resource. - */ - public static function organizationLocationFileStoreDataProfileName(string $organization, string $location, string $fileStoreDataProfile): string - { - return self::getPathTemplate('organizationLocationFileStoreDataProfile')->render([ - 'organization' => $organization, - 'location' => $location, - 'file_store_data_profile' => $fileStoreDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_inspect_template resource. - * - * @param string $organization - * @param string $location - * @param string $inspectTemplate - * - * @return string The formatted organization_location_inspect_template resource. - */ - public static function organizationLocationInspectTemplateName(string $organization, string $location, string $inspectTemplate): string - { - return self::getPathTemplate('organizationLocationInspectTemplate')->render([ - 'organization' => $organization, - 'location' => $location, - 'inspect_template' => $inspectTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_project_data_profile resource. - * - * @param string $organization - * @param string $location - * @param string $projectDataProfile - * - * @return string The formatted organization_location_project_data_profile resource. - */ - public static function organizationLocationProjectDataProfileName(string $organization, string $location, string $projectDataProfile): string - { - return self::getPathTemplate('organizationLocationProjectDataProfile')->render([ - 'organization' => $organization, - 'location' => $location, - 'project_data_profile' => $projectDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_stored_info_type resource. - * - * @param string $organization - * @param string $location - * @param string $storedInfoType - * - * @return string The formatted organization_location_stored_info_type resource. - */ - public static function organizationLocationStoredInfoTypeName(string $organization, string $location, string $storedInfoType): string - { - return self::getPathTemplate('organizationLocationStoredInfoType')->render([ - 'organization' => $organization, - 'location' => $location, - 'stored_info_type' => $storedInfoType, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_table_data_profile resource. - * - * @param string $organization - * @param string $location - * @param string $tableDataProfile - * - * @return string The formatted organization_location_table_data_profile resource. - */ - public static function organizationLocationTableDataProfileName(string $organization, string $location, string $tableDataProfile): string - { - return self::getPathTemplate('organizationLocationTableDataProfile')->render([ - 'organization' => $organization, - 'location' => $location, - 'table_data_profile' => $tableDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_stored_info_type resource. - * - * @param string $organization - * @param string $storedInfoType - * - * @return string The formatted organization_stored_info_type resource. - */ - public static function organizationStoredInfoTypeName(string $organization, string $storedInfoType): string - { - return self::getPathTemplate('organizationStoredInfoType')->render([ - 'organization' => $organization, - 'stored_info_type' => $storedInfoType, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_data_profile resource. - * - * @param string $organization - * @param string $location - * @param string $projectDataProfile - * - * @return string The formatted project_data_profile resource. - */ - public static function projectDataProfileName(string $organization, string $location, string $projectDataProfile): string - { - return self::getPathTemplate('projectDataProfile')->render([ - 'organization' => $organization, - 'location' => $location, - 'project_data_profile' => $projectDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_deidentify_template resource. - * - * @param string $project - * @param string $deidentifyTemplate - * - * @return string The formatted project_deidentify_template resource. - */ - public static function projectDeidentifyTemplateName(string $project, string $deidentifyTemplate): string - { - return self::getPathTemplate('projectDeidentifyTemplate')->render([ - 'project' => $project, - 'deidentify_template' => $deidentifyTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_dlp_job resource. - * - * @param string $project - * @param string $dlpJob - * - * @return string The formatted project_dlp_job resource. - */ - public static function projectDlpJobName(string $project, string $dlpJob): string - { - return self::getPathTemplate('projectDlpJob')->render([ - 'project' => $project, - 'dlp_job' => $dlpJob, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_inspect_template resource. - * - * @param string $project - * @param string $inspectTemplate - * - * @return string The formatted project_inspect_template resource. - */ - public static function projectInspectTemplateName(string $project, string $inspectTemplate): string - { - return self::getPathTemplate('projectInspectTemplate')->render([ - 'project' => $project, - 'inspect_template' => $inspectTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_job_trigger resource. - * - * @param string $project - * @param string $jobTrigger - * - * @return string The formatted project_job_trigger resource. - */ - public static function projectJobTriggerName(string $project, string $jobTrigger): string - { - return self::getPathTemplate('projectJobTrigger')->render([ - 'project' => $project, - 'job_trigger' => $jobTrigger, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_column_data_profile resource. - * - * @param string $project - * @param string $location - * @param string $columnDataProfile - * - * @return string The formatted project_location_column_data_profile resource. - */ - public static function projectLocationColumnDataProfileName(string $project, string $location, string $columnDataProfile): string - { - return self::getPathTemplate('projectLocationColumnDataProfile')->render([ - 'project' => $project, - 'location' => $location, - 'column_data_profile' => $columnDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_connection resource. - * - * @param string $project - * @param string $location - * @param string $connection - * - * @return string The formatted project_location_connection resource. - */ - public static function projectLocationConnectionName(string $project, string $location, string $connection): string - { - return self::getPathTemplate('projectLocationConnection')->render([ - 'project' => $project, - 'location' => $location, - 'connection' => $connection, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_deidentify_template resource. - * - * @param string $project - * @param string $location - * @param string $deidentifyTemplate - * - * @return string The formatted project_location_deidentify_template resource. - */ - public static function projectLocationDeidentifyTemplateName(string $project, string $location, string $deidentifyTemplate): string - { - return self::getPathTemplate('projectLocationDeidentifyTemplate')->render([ - 'project' => $project, - 'location' => $location, - 'deidentify_template' => $deidentifyTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_dlp_job resource. - * - * @param string $project - * @param string $location - * @param string $dlpJob - * - * @return string The formatted project_location_dlp_job resource. - */ - public static function projectLocationDlpJobName(string $project, string $location, string $dlpJob): string - { - return self::getPathTemplate('projectLocationDlpJob')->render([ - 'project' => $project, - 'location' => $location, - 'dlp_job' => $dlpJob, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_file_store_data_profile resource. - * - * @param string $project - * @param string $location - * @param string $fileStoreDataProfile - * - * @return string The formatted project_location_file_store_data_profile resource. - */ - public static function projectLocationFileStoreDataProfileName(string $project, string $location, string $fileStoreDataProfile): string - { - return self::getPathTemplate('projectLocationFileStoreDataProfile')->render([ - 'project' => $project, - 'location' => $location, - 'file_store_data_profile' => $fileStoreDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_inspect_template resource. - * - * @param string $project - * @param string $location - * @param string $inspectTemplate - * - * @return string The formatted project_location_inspect_template resource. - */ - public static function projectLocationInspectTemplateName(string $project, string $location, string $inspectTemplate): string - { - return self::getPathTemplate('projectLocationInspectTemplate')->render([ - 'project' => $project, - 'location' => $location, - 'inspect_template' => $inspectTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_job_trigger resource. - * - * @param string $project - * @param string $location - * @param string $jobTrigger - * - * @return string The formatted project_location_job_trigger resource. - */ - public static function projectLocationJobTriggerName(string $project, string $location, string $jobTrigger): string - { - return self::getPathTemplate('projectLocationJobTrigger')->render([ - 'project' => $project, - 'location' => $location, - 'job_trigger' => $jobTrigger, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_project_data_profile resource. - * - * @param string $project - * @param string $location - * @param string $projectDataProfile - * - * @return string The formatted project_location_project_data_profile resource. - */ - public static function projectLocationProjectDataProfileName(string $project, string $location, string $projectDataProfile): string - { - return self::getPathTemplate('projectLocationProjectDataProfile')->render([ - 'project' => $project, - 'location' => $location, - 'project_data_profile' => $projectDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_stored_info_type resource. - * - * @param string $project - * @param string $location - * @param string $storedInfoType - * - * @return string The formatted project_location_stored_info_type resource. - */ - public static function projectLocationStoredInfoTypeName(string $project, string $location, string $storedInfoType): string - { - return self::getPathTemplate('projectLocationStoredInfoType')->render([ - 'project' => $project, - 'location' => $location, - 'stored_info_type' => $storedInfoType, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_table_data_profile resource. - * - * @param string $project - * @param string $location - * @param string $tableDataProfile - * - * @return string The formatted project_location_table_data_profile resource. - */ - public static function projectLocationTableDataProfileName(string $project, string $location, string $tableDataProfile): string - { - return self::getPathTemplate('projectLocationTableDataProfile')->render([ - 'project' => $project, - 'location' => $location, - 'table_data_profile' => $tableDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_stored_info_type resource. - * - * @param string $project - * @param string $storedInfoType - * - * @return string The formatted project_stored_info_type resource. - */ - public static function projectStoredInfoTypeName(string $project, string $storedInfoType): string - { - return self::getPathTemplate('projectStoredInfoType')->render([ - 'project' => $project, - 'stored_info_type' => $storedInfoType, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * stored_info_type resource. - * - * @param string $organization - * @param string $storedInfoType - * - * @return string The formatted stored_info_type resource. - */ - public static function storedInfoTypeName(string $organization, string $storedInfoType): string - { - return self::getPathTemplate('storedInfoType')->render([ - 'organization' => $organization, - 'stored_info_type' => $storedInfoType, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * table_data_profile resource. - * - * @param string $organization - * @param string $location - * @param string $tableDataProfile - * - * @return string The formatted table_data_profile resource. - */ - public static function tableDataProfileName(string $organization, string $location, string $tableDataProfile): string - { - return self::getPathTemplate('tableDataProfile')->render([ - 'organization' => $organization, - 'location' => $location, - 'table_data_profile' => $tableDataProfile, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - columnDataProfile: organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile} - * - connection: projects/{project}/locations/{location}/connections/{connection} - * - deidentifyTemplate: organizations/{organization}/deidentifyTemplates/{deidentify_template} - * - discoveryConfig: projects/{project}/locations/{location}/discoveryConfigs/{discovery_config} - * - dlpJob: projects/{project}/dlpJobs/{dlp_job} - * - fileStoreDataProfile: organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile} - * - inspectTemplate: organizations/{organization}/inspectTemplates/{inspect_template} - * - jobTrigger: projects/{project}/jobTriggers/{job_trigger} - * - location: projects/{project}/locations/{location} - * - organization: organizations/{organization} - * - organizationDeidentifyTemplate: organizations/{organization}/deidentifyTemplates/{deidentify_template} - * - organizationInspectTemplate: organizations/{organization}/inspectTemplates/{inspect_template} - * - organizationLocation: organizations/{organization}/locations/{location} - * - organizationLocationColumnDataProfile: organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile} - * - organizationLocationConnection: organizations/{organization}/locations/{location}/connections/{connection} - * - organizationLocationDeidentifyTemplate: organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template} - * - organizationLocationFileStoreDataProfile: organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile} - * - organizationLocationInspectTemplate: organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template} - * - organizationLocationProjectDataProfile: organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile} - * - organizationLocationStoredInfoType: organizations/{organization}/locations/{location}/storedInfoTypes/{stored_info_type} - * - organizationLocationTableDataProfile: organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile} - * - organizationStoredInfoType: organizations/{organization}/storedInfoTypes/{stored_info_type} - * - project: projects/{project} - * - projectDataProfile: organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile} - * - projectDeidentifyTemplate: projects/{project}/deidentifyTemplates/{deidentify_template} - * - projectDlpJob: projects/{project}/dlpJobs/{dlp_job} - * - projectInspectTemplate: projects/{project}/inspectTemplates/{inspect_template} - * - projectJobTrigger: projects/{project}/jobTriggers/{job_trigger} - * - projectLocationColumnDataProfile: projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile} - * - projectLocationConnection: projects/{project}/locations/{location}/connections/{connection} - * - projectLocationDeidentifyTemplate: projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template} - * - projectLocationDlpJob: projects/{project}/locations/{location}/dlpJobs/{dlp_job} - * - projectLocationFileStoreDataProfile: projects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile} - * - projectLocationInspectTemplate: projects/{project}/locations/{location}/inspectTemplates/{inspect_template} - * - projectLocationJobTrigger: projects/{project}/locations/{location}/jobTriggers/{job_trigger} - * - projectLocationProjectDataProfile: projects/{project}/locations/{location}/projectDataProfiles/{project_data_profile} - * - projectLocationStoredInfoType: projects/{project}/locations/{location}/storedInfoTypes/{stored_info_type} - * - projectLocationTableDataProfile: projects/{project}/locations/{location}/tableDataProfiles/{table_data_profile} - * - projectStoredInfoType: projects/{project}/storedInfoTypes/{stored_info_type} - * - storedInfoType: organizations/{organization}/storedInfoTypes/{stored_info_type} - * - tableDataProfile: organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'dlp.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Dlp\V2\DlpServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DlpServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Activate a job trigger. Causes the immediate execute of a trigger - * instead of waiting on the trigger event to occur. - * - * The async variant is {@see DlpServiceClient::activateJobTriggerAsync()} . - * - * @example samples/V2/DlpServiceClient/activate_job_trigger.php - * - * @param ActivateJobTriggerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DlpJob - * - * @throws ApiException Thrown if the API call fails. - */ - public function activateJobTrigger(ActivateJobTriggerRequest $request, array $callOptions = []): DlpJob - { - return $this->startApiCall('ActivateJobTrigger', $request, $callOptions)->wait(); - } - - /** - * Starts asynchronous cancellation on a long-running DlpJob. The server - * makes a best effort to cancel the DlpJob, but success is not - * guaranteed. - * See - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage - * and - * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis - * to learn more. - * - * The async variant is {@see DlpServiceClient::cancelDlpJobAsync()} . - * - * @example samples/V2/DlpServiceClient/cancel_dlp_job.php - * - * @param CancelDlpJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function cancelDlpJob(CancelDlpJobRequest $request, array $callOptions = []): void - { - $this->startApiCall('CancelDlpJob', $request, $callOptions)->wait(); - } - - /** - * Create a Connection to an external data source. - * - * The async variant is {@see DlpServiceClient::createConnectionAsync()} . - * - * @example samples/V2/DlpServiceClient/create_connection.php - * - * @param CreateConnectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Connection - * - * @throws ApiException Thrown if the API call fails. - */ - public function createConnection(CreateConnectionRequest $request, array $callOptions = []): Connection - { - return $this->startApiCall('CreateConnection', $request, $callOptions)->wait(); - } - - /** - * Creates a DeidentifyTemplate for reusing frequently used configuration - * for de-identifying content, images, and storage. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid - * to learn more. - * - * The async variant is {@see DlpServiceClient::createDeidentifyTemplateAsync()} . - * - * @example samples/V2/DlpServiceClient/create_deidentify_template.php - * - * @param CreateDeidentifyTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DeidentifyTemplate - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDeidentifyTemplate(CreateDeidentifyTemplateRequest $request, array $callOptions = []): DeidentifyTemplate - { - return $this->startApiCall('CreateDeidentifyTemplate', $request, $callOptions)->wait(); - } - - /** - * Creates a config for discovery to scan and profile storage. - * - * The async variant is {@see DlpServiceClient::createDiscoveryConfigAsync()} . - * - * @example samples/V2/DlpServiceClient/create_discovery_config.php - * - * @param CreateDiscoveryConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DiscoveryConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDiscoveryConfig(CreateDiscoveryConfigRequest $request, array $callOptions = []): DiscoveryConfig - { - return $this->startApiCall('CreateDiscoveryConfig', $request, $callOptions)->wait(); - } - - /** - * Creates a new job to inspect storage or calculate risk metrics. - * See - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage - * and - * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis - * to learn more. - * - * When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - * - * The async variant is {@see DlpServiceClient::createDlpJobAsync()} . - * - * @example samples/V2/DlpServiceClient/create_dlp_job.php - * - * @param CreateDlpJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DlpJob - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDlpJob(CreateDlpJobRequest $request, array $callOptions = []): DlpJob - { - return $this->startApiCall('CreateDlpJob', $request, $callOptions)->wait(); - } - - /** - * Creates an InspectTemplate for reusing frequently used configuration - * for inspecting content, images, and storage. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates - * to learn more. - * - * The async variant is {@see DlpServiceClient::createInspectTemplateAsync()} . - * - * @example samples/V2/DlpServiceClient/create_inspect_template.php - * - * @param CreateInspectTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return InspectTemplate - * - * @throws ApiException Thrown if the API call fails. - */ - public function createInspectTemplate(CreateInspectTemplateRequest $request, array $callOptions = []): InspectTemplate - { - return $this->startApiCall('CreateInspectTemplate', $request, $callOptions)->wait(); - } - - /** - * Creates a job trigger to run DLP actions such as scanning storage for - * sensitive information on a set schedule. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers - * to learn more. - * - * The async variant is {@see DlpServiceClient::createJobTriggerAsync()} . - * - * @example samples/V2/DlpServiceClient/create_job_trigger.php - * - * @param CreateJobTriggerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return JobTrigger - * - * @throws ApiException Thrown if the API call fails. - */ - public function createJobTrigger(CreateJobTriggerRequest $request, array $callOptions = []): JobTrigger - { - return $this->startApiCall('CreateJobTrigger', $request, $callOptions)->wait(); - } - - /** - * Creates a pre-built stored infoType to be used for inspection. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes - * to learn more. - * - * The async variant is {@see DlpServiceClient::createStoredInfoTypeAsync()} . - * - * @example samples/V2/DlpServiceClient/create_stored_info_type.php - * - * @param CreateStoredInfoTypeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return StoredInfoType - * - * @throws ApiException Thrown if the API call fails. - */ - public function createStoredInfoType(CreateStoredInfoTypeRequest $request, array $callOptions = []): StoredInfoType - { - return $this->startApiCall('CreateStoredInfoType', $request, $callOptions)->wait(); - } - - /** - * De-identifies potentially sensitive info from a ContentItem. - * This method has limits on input size and output size. - * See - * https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data - * to learn more. - * - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - * - * The async variant is {@see DlpServiceClient::deidentifyContentAsync()} . - * - * @example samples/V2/DlpServiceClient/deidentify_content.php - * - * @param DeidentifyContentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DeidentifyContentResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deidentifyContent(DeidentifyContentRequest $request, array $callOptions = []): DeidentifyContentResponse - { - return $this->startApiCall('DeidentifyContent', $request, $callOptions)->wait(); - } - - /** - * Delete a Connection. - * - * The async variant is {@see DlpServiceClient::deleteConnectionAsync()} . - * - * @example samples/V2/DlpServiceClient/delete_connection.php - * - * @param DeleteConnectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteConnection(DeleteConnectionRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteConnection', $request, $callOptions)->wait(); - } - - /** - * Deletes a DeidentifyTemplate. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid - * to learn more. - * - * The async variant is {@see DlpServiceClient::deleteDeidentifyTemplateAsync()} . - * - * @example samples/V2/DlpServiceClient/delete_deidentify_template.php - * - * @param DeleteDeidentifyTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDeidentifyTemplate', $request, $callOptions)->wait(); - } - - /** - * Deletes a discovery configuration. - * - * The async variant is {@see DlpServiceClient::deleteDiscoveryConfigAsync()} . - * - * @example samples/V2/DlpServiceClient/delete_discovery_config.php - * - * @param DeleteDiscoveryConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteDiscoveryConfig(DeleteDiscoveryConfigRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDiscoveryConfig', $request, $callOptions)->wait(); - } - - /** - * Deletes a long-running DlpJob. This method indicates that the client is - * no longer interested in the DlpJob result. The job will be canceled if - * possible. - * See - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage - * and - * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis - * to learn more. - * - * The async variant is {@see DlpServiceClient::deleteDlpJobAsync()} . - * - * @example samples/V2/DlpServiceClient/delete_dlp_job.php - * - * @param DeleteDlpJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteDlpJob(DeleteDlpJobRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDlpJob', $request, $callOptions)->wait(); - } - - /** - * Delete a FileStoreDataProfile. Will not prevent the profile from being - * regenerated if the resource is still included in a discovery configuration. - * - * The async variant is {@see DlpServiceClient::deleteFileStoreDataProfileAsync()} - * . - * - * @example samples/V2/DlpServiceClient/delete_file_store_data_profile.php - * - * @param DeleteFileStoreDataProfileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteFileStoreDataProfile(DeleteFileStoreDataProfileRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteFileStoreDataProfile', $request, $callOptions)->wait(); - } - - /** - * Deletes an InspectTemplate. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates - * to learn more. - * - * The async variant is {@see DlpServiceClient::deleteInspectTemplateAsync()} . - * - * @example samples/V2/DlpServiceClient/delete_inspect_template.php - * - * @param DeleteInspectTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteInspectTemplate(DeleteInspectTemplateRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteInspectTemplate', $request, $callOptions)->wait(); - } - - /** - * Deletes a job trigger. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers - * to learn more. - * - * The async variant is {@see DlpServiceClient::deleteJobTriggerAsync()} . - * - * @example samples/V2/DlpServiceClient/delete_job_trigger.php - * - * @param DeleteJobTriggerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteJobTrigger(DeleteJobTriggerRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteJobTrigger', $request, $callOptions)->wait(); - } - - /** - * Deletes a stored infoType. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes - * to learn more. - * - * The async variant is {@see DlpServiceClient::deleteStoredInfoTypeAsync()} . - * - * @example samples/V2/DlpServiceClient/delete_stored_info_type.php - * - * @param DeleteStoredInfoTypeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteStoredInfoType(DeleteStoredInfoTypeRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteStoredInfoType', $request, $callOptions)->wait(); - } - - /** - * Delete a TableDataProfile. Will not prevent the profile from being - * regenerated if the table is still included in a discovery configuration. - * - * The async variant is {@see DlpServiceClient::deleteTableDataProfileAsync()} . - * - * @example samples/V2/DlpServiceClient/delete_table_data_profile.php - * - * @param DeleteTableDataProfileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteTableDataProfile(DeleteTableDataProfileRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteTableDataProfile', $request, $callOptions)->wait(); - } - - /** - * Finish a running hybrid DlpJob. Triggers the finalization steps and running - * of any enabled actions that have not yet run. - * - * The async variant is {@see DlpServiceClient::finishDlpJobAsync()} . - * - * @example samples/V2/DlpServiceClient/finish_dlp_job.php - * - * @param FinishDlpJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function finishDlpJob(FinishDlpJobRequest $request, array $callOptions = []): void - { - $this->startApiCall('FinishDlpJob', $request, $callOptions)->wait(); - } - - /** - * Gets a column data profile. - * - * The async variant is {@see DlpServiceClient::getColumnDataProfileAsync()} . - * - * @example samples/V2/DlpServiceClient/get_column_data_profile.php - * - * @param GetColumnDataProfileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ColumnDataProfile - * - * @throws ApiException Thrown if the API call fails. - */ - public function getColumnDataProfile(GetColumnDataProfileRequest $request, array $callOptions = []): ColumnDataProfile - { - return $this->startApiCall('GetColumnDataProfile', $request, $callOptions)->wait(); - } - - /** - * Get a Connection by name. - * - * The async variant is {@see DlpServiceClient::getConnectionAsync()} . - * - * @example samples/V2/DlpServiceClient/get_connection.php - * - * @param GetConnectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Connection - * - * @throws ApiException Thrown if the API call fails. - */ - public function getConnection(GetConnectionRequest $request, array $callOptions = []): Connection - { - return $this->startApiCall('GetConnection', $request, $callOptions)->wait(); - } - - /** - * Gets a DeidentifyTemplate. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid - * to learn more. - * - * The async variant is {@see DlpServiceClient::getDeidentifyTemplateAsync()} . - * - * @example samples/V2/DlpServiceClient/get_deidentify_template.php - * - * @param GetDeidentifyTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DeidentifyTemplate - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDeidentifyTemplate(GetDeidentifyTemplateRequest $request, array $callOptions = []): DeidentifyTemplate - { - return $this->startApiCall('GetDeidentifyTemplate', $request, $callOptions)->wait(); - } - - /** - * Gets a discovery configuration. - * - * The async variant is {@see DlpServiceClient::getDiscoveryConfigAsync()} . - * - * @example samples/V2/DlpServiceClient/get_discovery_config.php - * - * @param GetDiscoveryConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DiscoveryConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDiscoveryConfig(GetDiscoveryConfigRequest $request, array $callOptions = []): DiscoveryConfig - { - return $this->startApiCall('GetDiscoveryConfig', $request, $callOptions)->wait(); - } - - /** - * Gets the latest state of a long-running DlpJob. - * See - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage - * and - * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis - * to learn more. - * - * The async variant is {@see DlpServiceClient::getDlpJobAsync()} . - * - * @example samples/V2/DlpServiceClient/get_dlp_job.php - * - * @param GetDlpJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DlpJob - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDlpJob(GetDlpJobRequest $request, array $callOptions = []): DlpJob - { - return $this->startApiCall('GetDlpJob', $request, $callOptions)->wait(); - } - - /** - * Gets a file store data profile. - * - * The async variant is {@see DlpServiceClient::getFileStoreDataProfileAsync()} . - * - * @example samples/V2/DlpServiceClient/get_file_store_data_profile.php - * - * @param GetFileStoreDataProfileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FileStoreDataProfile - * - * @throws ApiException Thrown if the API call fails. - */ - public function getFileStoreDataProfile(GetFileStoreDataProfileRequest $request, array $callOptions = []): FileStoreDataProfile - { - return $this->startApiCall('GetFileStoreDataProfile', $request, $callOptions)->wait(); - } - - /** - * Gets an InspectTemplate. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates - * to learn more. - * - * The async variant is {@see DlpServiceClient::getInspectTemplateAsync()} . - * - * @example samples/V2/DlpServiceClient/get_inspect_template.php - * - * @param GetInspectTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return InspectTemplate - * - * @throws ApiException Thrown if the API call fails. - */ - public function getInspectTemplate(GetInspectTemplateRequest $request, array $callOptions = []): InspectTemplate - { - return $this->startApiCall('GetInspectTemplate', $request, $callOptions)->wait(); - } - - /** - * Gets a job trigger. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers - * to learn more. - * - * The async variant is {@see DlpServiceClient::getJobTriggerAsync()} . - * - * @example samples/V2/DlpServiceClient/get_job_trigger.php - * - * @param GetJobTriggerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return JobTrigger - * - * @throws ApiException Thrown if the API call fails. - */ - public function getJobTrigger(GetJobTriggerRequest $request, array $callOptions = []): JobTrigger - { - return $this->startApiCall('GetJobTrigger', $request, $callOptions)->wait(); - } - - /** - * Gets a project data profile. - * - * The async variant is {@see DlpServiceClient::getProjectDataProfileAsync()} . - * - * @example samples/V2/DlpServiceClient/get_project_data_profile.php - * - * @param GetProjectDataProfileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ProjectDataProfile - * - * @throws ApiException Thrown if the API call fails. - */ - public function getProjectDataProfile(GetProjectDataProfileRequest $request, array $callOptions = []): ProjectDataProfile - { - return $this->startApiCall('GetProjectDataProfile', $request, $callOptions)->wait(); - } - - /** - * Gets a stored infoType. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes - * to learn more. - * - * The async variant is {@see DlpServiceClient::getStoredInfoTypeAsync()} . - * - * @example samples/V2/DlpServiceClient/get_stored_info_type.php - * - * @param GetStoredInfoTypeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return StoredInfoType - * - * @throws ApiException Thrown if the API call fails. - */ - public function getStoredInfoType(GetStoredInfoTypeRequest $request, array $callOptions = []): StoredInfoType - { - return $this->startApiCall('GetStoredInfoType', $request, $callOptions)->wait(); - } - - /** - * Gets a table data profile. - * - * The async variant is {@see DlpServiceClient::getTableDataProfileAsync()} . - * - * @example samples/V2/DlpServiceClient/get_table_data_profile.php - * - * @param GetTableDataProfileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TableDataProfile - * - * @throws ApiException Thrown if the API call fails. - */ - public function getTableDataProfile(GetTableDataProfileRequest $request, array $callOptions = []): TableDataProfile - { - return $this->startApiCall('GetTableDataProfile', $request, $callOptions)->wait(); - } - - /** - * Inspect hybrid content and store findings to a job. - * To review the findings, inspect the job. Inspection will occur - * asynchronously. - * - * The async variant is {@see DlpServiceClient::hybridInspectDlpJobAsync()} . - * - * @example samples/V2/DlpServiceClient/hybrid_inspect_dlp_job.php - * - * @param HybridInspectDlpJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return HybridInspectResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function hybridInspectDlpJob(HybridInspectDlpJobRequest $request, array $callOptions = []): HybridInspectResponse - { - return $this->startApiCall('HybridInspectDlpJob', $request, $callOptions)->wait(); - } - - /** - * Inspect hybrid content and store findings to a trigger. The inspection - * will be processed asynchronously. To review the findings monitor the - * jobs within the trigger. - * - * The async variant is {@see DlpServiceClient::hybridInspectJobTriggerAsync()} . - * - * @example samples/V2/DlpServiceClient/hybrid_inspect_job_trigger.php - * - * @param HybridInspectJobTriggerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return HybridInspectResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function hybridInspectJobTrigger(HybridInspectJobTriggerRequest $request, array $callOptions = []): HybridInspectResponse - { - return $this->startApiCall('HybridInspectJobTrigger', $request, $callOptions)->wait(); - } - - /** - * Finds potentially sensitive info in content. - * This method has limits on input size, processing time, and output size. - * - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - * - * For how to guides, see - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-images - * and - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text, - * - * The async variant is {@see DlpServiceClient::inspectContentAsync()} . - * - * @example samples/V2/DlpServiceClient/inspect_content.php - * - * @param InspectContentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return InspectContentResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function inspectContent(InspectContentRequest $request, array $callOptions = []): InspectContentResponse - { - return $this->startApiCall('InspectContent', $request, $callOptions)->wait(); - } - - /** - * Lists column data profiles for an organization. - * - * The async variant is {@see DlpServiceClient::listColumnDataProfilesAsync()} . - * - * @example samples/V2/DlpServiceClient/list_column_data_profiles.php - * - * @param ListColumnDataProfilesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listColumnDataProfiles(ListColumnDataProfilesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListColumnDataProfiles', $request, $callOptions); - } - - /** - * Lists Connections in a parent. Use SearchConnections to see all connections - * within an organization. - * - * The async variant is {@see DlpServiceClient::listConnectionsAsync()} . - * - * @example samples/V2/DlpServiceClient/list_connections.php - * - * @param ListConnectionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listConnections(ListConnectionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListConnections', $request, $callOptions); - } - - /** - * Lists DeidentifyTemplates. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid - * to learn more. - * - * The async variant is {@see DlpServiceClient::listDeidentifyTemplatesAsync()} . - * - * @example samples/V2/DlpServiceClient/list_deidentify_templates.php - * - * @param ListDeidentifyTemplatesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDeidentifyTemplates(ListDeidentifyTemplatesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDeidentifyTemplates', $request, $callOptions); - } - - /** - * Lists discovery configurations. - * - * The async variant is {@see DlpServiceClient::listDiscoveryConfigsAsync()} . - * - * @example samples/V2/DlpServiceClient/list_discovery_configs.php - * - * @param ListDiscoveryConfigsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDiscoveryConfigs(ListDiscoveryConfigsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDiscoveryConfigs', $request, $callOptions); - } - - /** - * Lists DlpJobs that match the specified filter in the request. - * See - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage - * and - * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis - * to learn more. - * - * The async variant is {@see DlpServiceClient::listDlpJobsAsync()} . - * - * @example samples/V2/DlpServiceClient/list_dlp_jobs.php - * - * @param ListDlpJobsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDlpJobs(ListDlpJobsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDlpJobs', $request, $callOptions); - } - - /** - * Lists file store data profiles for an organization. - * - * The async variant is {@see DlpServiceClient::listFileStoreDataProfilesAsync()} . - * - * @example samples/V2/DlpServiceClient/list_file_store_data_profiles.php - * - * @param ListFileStoreDataProfilesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listFileStoreDataProfiles(ListFileStoreDataProfilesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListFileStoreDataProfiles', $request, $callOptions); - } - - /** - * Returns a list of the sensitive information types that the DLP API - * supports. See - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference - * to learn more. - * - * The async variant is {@see DlpServiceClient::listInfoTypesAsync()} . - * - * @example samples/V2/DlpServiceClient/list_info_types.php - * - * @param ListInfoTypesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ListInfoTypesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listInfoTypes(ListInfoTypesRequest $request, array $callOptions = []): ListInfoTypesResponse - { - return $this->startApiCall('ListInfoTypes', $request, $callOptions)->wait(); - } - - /** - * Lists InspectTemplates. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates - * to learn more. - * - * The async variant is {@see DlpServiceClient::listInspectTemplatesAsync()} . - * - * @example samples/V2/DlpServiceClient/list_inspect_templates.php - * - * @param ListInspectTemplatesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listInspectTemplates(ListInspectTemplatesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListInspectTemplates', $request, $callOptions); - } - - /** - * Lists job triggers. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers - * to learn more. - * - * The async variant is {@see DlpServiceClient::listJobTriggersAsync()} . - * - * @example samples/V2/DlpServiceClient/list_job_triggers.php - * - * @param ListJobTriggersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listJobTriggers(ListJobTriggersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListJobTriggers', $request, $callOptions); - } - - /** - * Lists project data profiles for an organization. - * - * The async variant is {@see DlpServiceClient::listProjectDataProfilesAsync()} . - * - * @example samples/V2/DlpServiceClient/list_project_data_profiles.php - * - * @param ListProjectDataProfilesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listProjectDataProfiles(ListProjectDataProfilesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListProjectDataProfiles', $request, $callOptions); - } - - /** - * Lists stored infoTypes. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes - * to learn more. - * - * The async variant is {@see DlpServiceClient::listStoredInfoTypesAsync()} . - * - * @example samples/V2/DlpServiceClient/list_stored_info_types.php - * - * @param ListStoredInfoTypesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listStoredInfoTypes(ListStoredInfoTypesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListStoredInfoTypes', $request, $callOptions); - } - - /** - * Lists table data profiles for an organization. - * - * The async variant is {@see DlpServiceClient::listTableDataProfilesAsync()} . - * - * @example samples/V2/DlpServiceClient/list_table_data_profiles.php - * - * @param ListTableDataProfilesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listTableDataProfiles(ListTableDataProfilesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListTableDataProfiles', $request, $callOptions); - } - - /** - * Redacts potentially sensitive info from an image. - * This method has limits on input size, processing time, and output size. - * See - * https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images - * to learn more. - * - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - * - * Only the first frame of each multiframe image is redacted. Metadata and - * other frames are omitted in the response. - * - * The async variant is {@see DlpServiceClient::redactImageAsync()} . - * - * @example samples/V2/DlpServiceClient/redact_image.php - * - * @param RedactImageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RedactImageResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function redactImage(RedactImageRequest $request, array $callOptions = []): RedactImageResponse - { - return $this->startApiCall('RedactImage', $request, $callOptions)->wait(); - } - - /** - * Re-identifies content that has been de-identified. - * See - * https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example - * to learn more. - * - * The async variant is {@see DlpServiceClient::reidentifyContentAsync()} . - * - * @example samples/V2/DlpServiceClient/reidentify_content.php - * - * @param ReidentifyContentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReidentifyContentResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function reidentifyContent(ReidentifyContentRequest $request, array $callOptions = []): ReidentifyContentResponse - { - return $this->startApiCall('ReidentifyContent', $request, $callOptions)->wait(); - } - - /** - * Searches for Connections in a parent. - * - * The async variant is {@see DlpServiceClient::searchConnectionsAsync()} . - * - * @example samples/V2/DlpServiceClient/search_connections.php - * - * @param SearchConnectionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function searchConnections(SearchConnectionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchConnections', $request, $callOptions); - } - - /** - * Update a Connection. - * - * The async variant is {@see DlpServiceClient::updateConnectionAsync()} . - * - * @example samples/V2/DlpServiceClient/update_connection.php - * - * @param UpdateConnectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Connection - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateConnection(UpdateConnectionRequest $request, array $callOptions = []): Connection - { - return $this->startApiCall('UpdateConnection', $request, $callOptions)->wait(); - } - - /** - * Updates the DeidentifyTemplate. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid - * to learn more. - * - * The async variant is {@see DlpServiceClient::updateDeidentifyTemplateAsync()} . - * - * @example samples/V2/DlpServiceClient/update_deidentify_template.php - * - * @param UpdateDeidentifyTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DeidentifyTemplate - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDeidentifyTemplate(UpdateDeidentifyTemplateRequest $request, array $callOptions = []): DeidentifyTemplate - { - return $this->startApiCall('UpdateDeidentifyTemplate', $request, $callOptions)->wait(); - } - - /** - * Updates a discovery configuration. - * - * The async variant is {@see DlpServiceClient::updateDiscoveryConfigAsync()} . - * - * @example samples/V2/DlpServiceClient/update_discovery_config.php - * - * @param UpdateDiscoveryConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DiscoveryConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDiscoveryConfig(UpdateDiscoveryConfigRequest $request, array $callOptions = []): DiscoveryConfig - { - return $this->startApiCall('UpdateDiscoveryConfig', $request, $callOptions)->wait(); - } - - /** - * Updates the InspectTemplate. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates - * to learn more. - * - * The async variant is {@see DlpServiceClient::updateInspectTemplateAsync()} . - * - * @example samples/V2/DlpServiceClient/update_inspect_template.php - * - * @param UpdateInspectTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return InspectTemplate - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateInspectTemplate(UpdateInspectTemplateRequest $request, array $callOptions = []): InspectTemplate - { - return $this->startApiCall('UpdateInspectTemplate', $request, $callOptions)->wait(); - } - - /** - * Updates a job trigger. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers - * to learn more. - * - * The async variant is {@see DlpServiceClient::updateJobTriggerAsync()} . - * - * @example samples/V2/DlpServiceClient/update_job_trigger.php - * - * @param UpdateJobTriggerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return JobTrigger - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateJobTrigger(UpdateJobTriggerRequest $request, array $callOptions = []): JobTrigger - { - return $this->startApiCall('UpdateJobTrigger', $request, $callOptions)->wait(); - } - - /** - * Updates the stored infoType by creating a new version. The existing version - * will continue to be used until the new version is ready. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes - * to learn more. - * - * The async variant is {@see DlpServiceClient::updateStoredInfoTypeAsync()} . - * - * @example samples/V2/DlpServiceClient/update_stored_info_type.php - * - * @param UpdateStoredInfoTypeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return StoredInfoType - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateStoredInfoType(UpdateStoredInfoTypeRequest $request, array $callOptions = []): StoredInfoType - { - return $this->startApiCall('UpdateStoredInfoType', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Dlp/v2/src/V2/gapic_metadata.json b/owl-bot-staging/Dlp/v2/src/V2/gapic_metadata.json deleted file mode 100644 index d3726bb9688e..000000000000 --- a/owl-bot-staging/Dlp/v2/src/V2/gapic_metadata.json +++ /dev/null @@ -1,293 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.privacy.dlp.v2", - "libraryPackage": "Google\\Cloud\\Dlp\\V2", - "services": { - "DlpService": { - "clients": { - "grpc": { - "libraryClient": "DlpServiceGapicClient", - "rpcs": { - "ActivateJobTrigger": { - "methods": [ - "activateJobTrigger" - ] - }, - "CancelDlpJob": { - "methods": [ - "cancelDlpJob" - ] - }, - "CreateConnection": { - "methods": [ - "createConnection" - ] - }, - "CreateDeidentifyTemplate": { - "methods": [ - "createDeidentifyTemplate" - ] - }, - "CreateDiscoveryConfig": { - "methods": [ - "createDiscoveryConfig" - ] - }, - "CreateDlpJob": { - "methods": [ - "createDlpJob" - ] - }, - "CreateInspectTemplate": { - "methods": [ - "createInspectTemplate" - ] - }, - "CreateJobTrigger": { - "methods": [ - "createJobTrigger" - ] - }, - "CreateStoredInfoType": { - "methods": [ - "createStoredInfoType" - ] - }, - "DeidentifyContent": { - "methods": [ - "deidentifyContent" - ] - }, - "DeleteConnection": { - "methods": [ - "deleteConnection" - ] - }, - "DeleteDeidentifyTemplate": { - "methods": [ - "deleteDeidentifyTemplate" - ] - }, - "DeleteDiscoveryConfig": { - "methods": [ - "deleteDiscoveryConfig" - ] - }, - "DeleteDlpJob": { - "methods": [ - "deleteDlpJob" - ] - }, - "DeleteFileStoreDataProfile": { - "methods": [ - "deleteFileStoreDataProfile" - ] - }, - "DeleteInspectTemplate": { - "methods": [ - "deleteInspectTemplate" - ] - }, - "DeleteJobTrigger": { - "methods": [ - "deleteJobTrigger" - ] - }, - "DeleteStoredInfoType": { - "methods": [ - "deleteStoredInfoType" - ] - }, - "DeleteTableDataProfile": { - "methods": [ - "deleteTableDataProfile" - ] - }, - "FinishDlpJob": { - "methods": [ - "finishDlpJob" - ] - }, - "GetColumnDataProfile": { - "methods": [ - "getColumnDataProfile" - ] - }, - "GetConnection": { - "methods": [ - "getConnection" - ] - }, - "GetDeidentifyTemplate": { - "methods": [ - "getDeidentifyTemplate" - ] - }, - "GetDiscoveryConfig": { - "methods": [ - "getDiscoveryConfig" - ] - }, - "GetDlpJob": { - "methods": [ - "getDlpJob" - ] - }, - "GetFileStoreDataProfile": { - "methods": [ - "getFileStoreDataProfile" - ] - }, - "GetInspectTemplate": { - "methods": [ - "getInspectTemplate" - ] - }, - "GetJobTrigger": { - "methods": [ - "getJobTrigger" - ] - }, - "GetProjectDataProfile": { - "methods": [ - "getProjectDataProfile" - ] - }, - "GetStoredInfoType": { - "methods": [ - "getStoredInfoType" - ] - }, - "GetTableDataProfile": { - "methods": [ - "getTableDataProfile" - ] - }, - "HybridInspectDlpJob": { - "methods": [ - "hybridInspectDlpJob" - ] - }, - "HybridInspectJobTrigger": { - "methods": [ - "hybridInspectJobTrigger" - ] - }, - "InspectContent": { - "methods": [ - "inspectContent" - ] - }, - "ListColumnDataProfiles": { - "methods": [ - "listColumnDataProfiles" - ] - }, - "ListConnections": { - "methods": [ - "listConnections" - ] - }, - "ListDeidentifyTemplates": { - "methods": [ - "listDeidentifyTemplates" - ] - }, - "ListDiscoveryConfigs": { - "methods": [ - "listDiscoveryConfigs" - ] - }, - "ListDlpJobs": { - "methods": [ - "listDlpJobs" - ] - }, - "ListFileStoreDataProfiles": { - "methods": [ - "listFileStoreDataProfiles" - ] - }, - "ListInfoTypes": { - "methods": [ - "listInfoTypes" - ] - }, - "ListInspectTemplates": { - "methods": [ - "listInspectTemplates" - ] - }, - "ListJobTriggers": { - "methods": [ - "listJobTriggers" - ] - }, - "ListProjectDataProfiles": { - "methods": [ - "listProjectDataProfiles" - ] - }, - "ListStoredInfoTypes": { - "methods": [ - "listStoredInfoTypes" - ] - }, - "ListTableDataProfiles": { - "methods": [ - "listTableDataProfiles" - ] - }, - "RedactImage": { - "methods": [ - "redactImage" - ] - }, - "ReidentifyContent": { - "methods": [ - "reidentifyContent" - ] - }, - "SearchConnections": { - "methods": [ - "searchConnections" - ] - }, - "UpdateConnection": { - "methods": [ - "updateConnection" - ] - }, - "UpdateDeidentifyTemplate": { - "methods": [ - "updateDeidentifyTemplate" - ] - }, - "UpdateDiscoveryConfig": { - "methods": [ - "updateDiscoveryConfig" - ] - }, - "UpdateInspectTemplate": { - "methods": [ - "updateInspectTemplate" - ] - }, - "UpdateJobTrigger": { - "methods": [ - "updateJobTrigger" - ] - }, - "UpdateStoredInfoType": { - "methods": [ - "updateStoredInfoType" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_client_config.json b/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_client_config.json deleted file mode 100644 index 5850bca2a2e0..000000000000 --- a/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_client_config.json +++ /dev/null @@ -1,320 +0,0 @@ -{ - "interfaces": { - "google.privacy.dlp.v2.DlpService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE", - "DEADLINE_EXCEEDED" - ], - "no_retry_1_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 300000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 300000, - "total_timeout_millis": 300000 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 300000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 300000, - "total_timeout_millis": 300000 - } - }, - "methods": { - "ActivateJobTrigger": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CancelDlpJob": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateConnection": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateDeidentifyTemplate": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateDiscoveryConfig": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateDlpJob": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateInspectTemplate": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateJobTrigger": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateStoredInfoType": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeidentifyContent": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteConnection": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteDeidentifyTemplate": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteDiscoveryConfig": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteDlpJob": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteFileStoreDataProfile": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteInspectTemplate": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteJobTrigger": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteStoredInfoType": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteTableDataProfile": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "FinishDlpJob": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetColumnDataProfile": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetConnection": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetDeidentifyTemplate": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDiscoveryConfig": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDlpJob": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetFileStoreDataProfile": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetInspectTemplate": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetJobTrigger": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetProjectDataProfile": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetStoredInfoType": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetTableDataProfile": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "HybridInspectDlpJob": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "HybridInspectJobTrigger": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "InspectContent": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListColumnDataProfiles": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListConnections": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListDeidentifyTemplates": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDiscoveryConfigs": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDlpJobs": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListFileStoreDataProfiles": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListInfoTypes": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListInspectTemplates": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListJobTriggers": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListProjectDataProfiles": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListStoredInfoTypes": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListTableDataProfiles": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RedactImage": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ReidentifyContent": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SearchConnections": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateConnection": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateDeidentifyTemplate": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateDiscoveryConfig": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateInspectTemplate": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateJobTrigger": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateStoredInfoType": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_descriptor_config.php b/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_descriptor_config.php deleted file mode 100644 index 83e6179cf330..000000000000 --- a/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_descriptor_config.php +++ /dev/null @@ -1,827 +0,0 @@ - [ - 'google.privacy.dlp.v2.DlpService' => [ - 'ActivateJobTrigger' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DlpJob', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CancelDlpJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateConnection' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\Connection', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDeidentifyTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DeidentifyTemplate', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDiscoveryConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DiscoveryConfig', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDlpJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DlpJob', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateInspectTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\InspectTemplate', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateJobTrigger' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\JobTrigger', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateStoredInfoType' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\StoredInfoType', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeidentifyContent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DeidentifyContentResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteConnection' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDeidentifyTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDiscoveryConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDlpJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteFileStoreDataProfile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteInspectTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteJobTrigger' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteStoredInfoType' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTableDataProfile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'FinishDlpJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetColumnDataProfile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ColumnDataProfile', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetConnection' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\Connection', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDeidentifyTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DeidentifyTemplate', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDiscoveryConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DiscoveryConfig', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDlpJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DlpJob', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetFileStoreDataProfile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\FileStoreDataProfile', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetInspectTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\InspectTemplate', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetJobTrigger' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\JobTrigger', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetProjectDataProfile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ProjectDataProfile', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetStoredInfoType' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\StoredInfoType', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetTableDataProfile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\TableDataProfile', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'HybridInspectDlpJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\HybridInspectResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'HybridInspectJobTrigger' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\HybridInspectResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'InspectContent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\InspectContentResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListColumnDataProfiles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getColumnDataProfiles', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListColumnDataProfilesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListConnections' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getConnections', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListConnectionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDeidentifyTemplates' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDeidentifyTemplates', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListDeidentifyTemplatesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDiscoveryConfigs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDiscoveryConfigs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListDiscoveryConfigsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDlpJobs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getJobs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListDlpJobsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListFileStoreDataProfiles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFileStoreDataProfiles', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListFileStoreDataProfilesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListInfoTypes' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListInfoTypesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListInspectTemplates' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getInspectTemplates', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListInspectTemplatesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListJobTriggers' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getJobTriggers', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListJobTriggersResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListProjectDataProfiles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getProjectDataProfiles', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListProjectDataProfilesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListStoredInfoTypes' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getStoredInfoTypes', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListStoredInfoTypesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListTableDataProfiles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTableDataProfiles', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListTableDataProfilesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'RedactImage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\RedactImageResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ReidentifyContent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ReidentifyContentResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'SearchConnections' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getConnections', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\SearchConnectionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateConnection' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\Connection', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateDeidentifyTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DeidentifyTemplate', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateDiscoveryConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DiscoveryConfig', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateInspectTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\InspectTemplate', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateJobTrigger' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\JobTrigger', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateStoredInfoType' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\StoredInfoType', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'columnDataProfile' => 'organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}', - 'connection' => 'projects/{project}/locations/{location}/connections/{connection}', - 'deidentifyTemplate' => 'organizations/{organization}/deidentifyTemplates/{deidentify_template}', - 'discoveryConfig' => 'projects/{project}/locations/{location}/discoveryConfigs/{discovery_config}', - 'dlpJob' => 'projects/{project}/dlpJobs/{dlp_job}', - 'fileStoreDataProfile' => 'organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}', - 'inspectTemplate' => 'organizations/{organization}/inspectTemplates/{inspect_template}', - 'jobTrigger' => 'projects/{project}/jobTriggers/{job_trigger}', - 'location' => 'projects/{project}/locations/{location}', - 'organization' => 'organizations/{organization}', - 'organizationDeidentifyTemplate' => 'organizations/{organization}/deidentifyTemplates/{deidentify_template}', - 'organizationInspectTemplate' => 'organizations/{organization}/inspectTemplates/{inspect_template}', - 'organizationLocation' => 'organizations/{organization}/locations/{location}', - 'organizationLocationColumnDataProfile' => 'organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}', - 'organizationLocationConnection' => 'organizations/{organization}/locations/{location}/connections/{connection}', - 'organizationLocationDeidentifyTemplate' => 'organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}', - 'organizationLocationFileStoreDataProfile' => 'organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}', - 'organizationLocationInspectTemplate' => 'organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}', - 'organizationLocationProjectDataProfile' => 'organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}', - 'organizationLocationStoredInfoType' => 'organizations/{organization}/locations/{location}/storedInfoTypes/{stored_info_type}', - 'organizationLocationTableDataProfile' => 'organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}', - 'organizationStoredInfoType' => 'organizations/{organization}/storedInfoTypes/{stored_info_type}', - 'project' => 'projects/{project}', - 'projectDataProfile' => 'organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}', - 'projectDeidentifyTemplate' => 'projects/{project}/deidentifyTemplates/{deidentify_template}', - 'projectDlpJob' => 'projects/{project}/dlpJobs/{dlp_job}', - 'projectInspectTemplate' => 'projects/{project}/inspectTemplates/{inspect_template}', - 'projectJobTrigger' => 'projects/{project}/jobTriggers/{job_trigger}', - 'projectLocationColumnDataProfile' => 'projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}', - 'projectLocationConnection' => 'projects/{project}/locations/{location}/connections/{connection}', - 'projectLocationDeidentifyTemplate' => 'projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}', - 'projectLocationDlpJob' => 'projects/{project}/locations/{location}/dlpJobs/{dlp_job}', - 'projectLocationFileStoreDataProfile' => 'projects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}', - 'projectLocationInspectTemplate' => 'projects/{project}/locations/{location}/inspectTemplates/{inspect_template}', - 'projectLocationJobTrigger' => 'projects/{project}/locations/{location}/jobTriggers/{job_trigger}', - 'projectLocationProjectDataProfile' => 'projects/{project}/locations/{location}/projectDataProfiles/{project_data_profile}', - 'projectLocationStoredInfoType' => 'projects/{project}/locations/{location}/storedInfoTypes/{stored_info_type}', - 'projectLocationTableDataProfile' => 'projects/{project}/locations/{location}/tableDataProfiles/{table_data_profile}', - 'projectStoredInfoType' => 'projects/{project}/storedInfoTypes/{stored_info_type}', - 'storedInfoType' => 'organizations/{organization}/storedInfoTypes/{stored_info_type}', - 'tableDataProfile' => 'organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_rest_client_config.php b/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_rest_client_config.php deleted file mode 100644 index c97d35f12a10..000000000000 --- a/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_rest_client_config.php +++ /dev/null @@ -1,1153 +0,0 @@ - [ - 'google.privacy.dlp.v2.DlpService' => [ - 'ActivateJobTrigger' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/jobTriggers/*}:activate', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/jobTriggers/*}:activate', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CancelDlpJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/dlpJobs/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/dlpJobs/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateConnection' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/connections', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/connections', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDeidentifyTemplate' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*}/deidentifyTemplates', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/deidentifyTemplates', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/deidentifyTemplates', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/deidentifyTemplates', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDiscoveryConfig' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/discoveryConfigs', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/discoveryConfigs', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDlpJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/dlpJobs', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/dlpJobs', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateInspectTemplate' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/inspectTemplates', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/inspectTemplates', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/inspectTemplates', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*}/inspectTemplates', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateJobTrigger' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/jobTriggers', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/jobTriggers', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/jobTriggers', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateStoredInfoType' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*}/storedInfoTypes', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/storedInfoTypes', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/storedInfoTypes', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/storedInfoTypes', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeidentifyContent' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/content:deidentify', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/content:deidentify', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteConnection' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/connections/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/connections/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDeidentifyTemplate' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/deidentifyTemplates/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/deidentifyTemplates/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/deidentifyTemplates/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/deidentifyTemplates/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDiscoveryConfig' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/discoveryConfigs/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/discoveryConfigs/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDlpJob' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/dlpJobs/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/dlpJobs/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteFileStoreDataProfile' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteInspectTemplate' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/inspectTemplates/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/inspectTemplates/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/inspectTemplates/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/inspectTemplates/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteJobTrigger' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/jobTriggers/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/jobTriggers/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/jobTriggers/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteStoredInfoType' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/storedInfoTypes/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/storedInfoTypes/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/storedInfoTypes/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/storedInfoTypes/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTableDataProfile' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/tableDataProfiles/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/tableDataProfiles/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'FinishDlpJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/dlpJobs/*}:finish', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetColumnDataProfile' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/columnDataProfiles/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/columnDataProfiles/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetConnection' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/connections/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/connections/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDeidentifyTemplate' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/deidentifyTemplates/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/deidentifyTemplates/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/deidentifyTemplates/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/deidentifyTemplates/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDiscoveryConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/discoveryConfigs/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/discoveryConfigs/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDlpJob' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/dlpJobs/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/dlpJobs/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetFileStoreDataProfile' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetInspectTemplate' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/inspectTemplates/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/inspectTemplates/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/inspectTemplates/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/inspectTemplates/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetJobTrigger' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/jobTriggers/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/jobTriggers/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/jobTriggers/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetProjectDataProfile' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/projectDataProfiles/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/projectDataProfiles/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetStoredInfoType' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/storedInfoTypes/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/storedInfoTypes/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/storedInfoTypes/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/storedInfoTypes/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetTableDataProfile' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/tableDataProfiles/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/tableDataProfiles/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'HybridInspectDlpJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/dlpJobs/*}:hybridInspect', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'HybridInspectJobTrigger' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/jobTriggers/*}:hybridInspect', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'InspectContent' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/content:inspect', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/content:inspect', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListColumnDataProfiles' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/columnDataProfiles', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/columnDataProfiles', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListConnections' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/connections', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/connections', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDeidentifyTemplates' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*}/deidentifyTemplates', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/deidentifyTemplates', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*}/deidentifyTemplates', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/deidentifyTemplates', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDiscoveryConfigs' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/discoveryConfigs', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/discoveryConfigs', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDlpJobs' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*}/dlpJobs', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/dlpJobs', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/dlpJobs', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListFileStoreDataProfiles' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/fileStoreDataProfiles', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/fileStoreDataProfiles', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListInfoTypes' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/infoTypes', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=locations/*}/infoTypes', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/infoTypes', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/infoTypes', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListInspectTemplates' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/inspectTemplates', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/inspectTemplates', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*}/inspectTemplates', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*}/inspectTemplates', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListJobTriggers' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*}/jobTriggers', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/jobTriggers', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/jobTriggers', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListProjectDataProfiles' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/projectDataProfiles', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/projectDataProfiles', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListStoredInfoTypes' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*}/storedInfoTypes', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/storedInfoTypes', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*}/storedInfoTypes', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/storedInfoTypes', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListTableDataProfiles' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/tableDataProfiles', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/tableDataProfiles', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RedactImage' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/image:redact', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/image:redact', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ReidentifyContent' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/content:reidentify', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/content:reidentify', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'SearchConnections' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/connections:search', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/connections:search', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateConnection' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/connections/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/connections/*}', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateDeidentifyTemplate' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/deidentifyTemplates/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/deidentifyTemplates/*}', - 'body' => '*', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/deidentifyTemplates/*}', - 'body' => '*', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/deidentifyTemplates/*}', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateDiscoveryConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/discoveryConfigs/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/discoveryConfigs/*}', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateInspectTemplate' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/inspectTemplates/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/inspectTemplates/*}', - 'body' => '*', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/inspectTemplates/*}', - 'body' => '*', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/inspectTemplates/*}', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateJobTrigger' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/jobTriggers/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/jobTriggers/*}', - 'body' => '*', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/jobTriggers/*}', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateStoredInfoType' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/storedInfoTypes/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/storedInfoTypes/*}', - 'body' => '*', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/storedInfoTypes/*}', - 'body' => '*', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/storedInfoTypes/*}', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dlp/v2/tests/Unit/V2/Client/DlpServiceClientTest.php b/owl-bot-staging/Dlp/v2/tests/Unit/V2/Client/DlpServiceClientTest.php deleted file mode 100644 index 4f8f576bb625..000000000000 --- a/owl-bot-staging/Dlp/v2/tests/Unit/V2/Client/DlpServiceClientTest.php +++ /dev/null @@ -1,3892 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DlpServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DlpServiceClient($options); - } - - /** @test */ - public function activateJobTriggerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $jobTriggerName = 'jobTriggerName1819490804'; - $expectedResponse = new DlpJob(); - $expectedResponse->setName($name2); - $expectedResponse->setJobTriggerName($jobTriggerName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new ActivateJobTriggerRequest()) - ->setName($formattedName); - $response = $gapicClient->activateJobTrigger($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ActivateJobTrigger', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function activateJobTriggerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new ActivateJobTriggerRequest()) - ->setName($formattedName); - try { - $gapicClient->activateJobTrigger($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelDlpJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new CancelDlpJobRequest()) - ->setName($formattedName); - $gapicClient->cancelDlpJob($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/CancelDlpJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelDlpJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new CancelDlpJobRequest()) - ->setName($formattedName); - try { - $gapicClient->cancelDlpJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConnectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new Connection(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $connection = new Connection(); - $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; - $connection->setState($connectionState); - $request = (new CreateConnectionRequest()) - ->setParent($formattedParent) - ->setConnection($connection); - $response = $gapicClient->createConnection($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateConnection', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getConnection(); - $this->assertProtobufEquals($connection, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConnectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $connection = new Connection(); - $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; - $connection->setState($connectionState); - $request = (new CreateConnectionRequest()) - ->setParent($formattedParent) - ->setConnection($connection); - try { - $gapicClient->createConnection($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDeidentifyTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new DeidentifyTemplate(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $deidentifyTemplate = new DeidentifyTemplate(); - $request = (new CreateDeidentifyTemplateRequest()) - ->setParent($formattedParent) - ->setDeidentifyTemplate($deidentifyTemplate); - $response = $gapicClient->createDeidentifyTemplate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateDeidentifyTemplate', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDeidentifyTemplate(); - $this->assertProtobufEquals($deidentifyTemplate, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDeidentifyTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $deidentifyTemplate = new DeidentifyTemplate(); - $request = (new CreateDeidentifyTemplateRequest()) - ->setParent($formattedParent) - ->setDeidentifyTemplate($deidentifyTemplate); - try { - $gapicClient->createDeidentifyTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDiscoveryConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DiscoveryConfig(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $discoveryConfig = new DiscoveryConfig(); - $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; - $discoveryConfig->setStatus($discoveryConfigStatus); - $request = (new CreateDiscoveryConfigRequest()) - ->setParent($formattedParent) - ->setDiscoveryConfig($discoveryConfig); - $response = $gapicClient->createDiscoveryConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateDiscoveryConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDiscoveryConfig(); - $this->assertProtobufEquals($discoveryConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDiscoveryConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $discoveryConfig = new DiscoveryConfig(); - $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; - $discoveryConfig->setStatus($discoveryConfigStatus); - $request = (new CreateDiscoveryConfigRequest()) - ->setParent($formattedParent) - ->setDiscoveryConfig($discoveryConfig); - try { - $gapicClient->createDiscoveryConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDlpJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $jobTriggerName = 'jobTriggerName1819490804'; - $expectedResponse = new DlpJob(); - $expectedResponse->setName($name); - $expectedResponse->setJobTriggerName($jobTriggerName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new CreateDlpJobRequest()) - ->setParent($formattedParent); - $response = $gapicClient->createDlpJob($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateDlpJob', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDlpJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new CreateDlpJobRequest()) - ->setParent($formattedParent); - try { - $gapicClient->createDlpJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createInspectTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new InspectTemplate(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $inspectTemplate = new InspectTemplate(); - $request = (new CreateInspectTemplateRequest()) - ->setParent($formattedParent) - ->setInspectTemplate($inspectTemplate); - $response = $gapicClient->createInspectTemplate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateInspectTemplate', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getInspectTemplate(); - $this->assertProtobufEquals($inspectTemplate, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createInspectTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $inspectTemplate = new InspectTemplate(); - $request = (new CreateInspectTemplateRequest()) - ->setParent($formattedParent) - ->setInspectTemplate($inspectTemplate); - try { - $gapicClient->createInspectTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createJobTriggerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new JobTrigger(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $jobTrigger = new JobTrigger(); - $jobTriggerStatus = \Google\Cloud\Dlp\V2\JobTrigger\Status::STATUS_UNSPECIFIED; - $jobTrigger->setStatus($jobTriggerStatus); - $request = (new CreateJobTriggerRequest()) - ->setParent($formattedParent) - ->setJobTrigger($jobTrigger); - $response = $gapicClient->createJobTrigger($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateJobTrigger', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getJobTrigger(); - $this->assertProtobufEquals($jobTrigger, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createJobTriggerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $jobTrigger = new JobTrigger(); - $jobTriggerStatus = \Google\Cloud\Dlp\V2\JobTrigger\Status::STATUS_UNSPECIFIED; - $jobTrigger->setStatus($jobTriggerStatus); - $request = (new CreateJobTriggerRequest()) - ->setParent($formattedParent) - ->setJobTrigger($jobTrigger); - try { - $gapicClient->createJobTrigger($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createStoredInfoTypeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new StoredInfoType(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $config = new StoredInfoTypeConfig(); - $request = (new CreateStoredInfoTypeRequest()) - ->setParent($formattedParent) - ->setConfig($config); - $response = $gapicClient->createStoredInfoType($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateStoredInfoType', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getConfig(); - $this->assertProtobufEquals($config, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createStoredInfoTypeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $config = new StoredInfoTypeConfig(); - $request = (new CreateStoredInfoTypeRequest()) - ->setParent($formattedParent) - ->setConfig($config); - try { - $gapicClient->createStoredInfoType($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deidentifyContentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new DeidentifyContentResponse(); - $transport->addResponse($expectedResponse); - $request = new DeidentifyContentRequest(); - $response = $gapicClient->deidentifyContent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeidentifyContent', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deidentifyContentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new DeidentifyContentRequest(); - try { - $gapicClient->deidentifyContent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConnectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $request = (new DeleteConnectionRequest()) - ->setName($formattedName); - $gapicClient->deleteConnection($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteConnection', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConnectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $request = (new DeleteConnectionRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteConnection($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDeidentifyTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); - $request = (new DeleteDeidentifyTemplateRequest()) - ->setName($formattedName); - $gapicClient->deleteDeidentifyTemplate($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteDeidentifyTemplate', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDeidentifyTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); - $request = (new DeleteDeidentifyTemplateRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDeidentifyTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDiscoveryConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); - $request = (new DeleteDiscoveryConfigRequest()) - ->setName($formattedName); - $gapicClient->deleteDiscoveryConfig($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteDiscoveryConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDiscoveryConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); - $request = (new DeleteDiscoveryConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDiscoveryConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDlpJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new DeleteDlpJobRequest()) - ->setName($formattedName); - $gapicClient->deleteDlpJob($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteDlpJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDlpJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new DeleteDlpJobRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDlpJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFileStoreDataProfileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->fileStoreDataProfileName('[ORGANIZATION]', '[LOCATION]', '[FILE_STORE_DATA_PROFILE]'); - $request = (new DeleteFileStoreDataProfileRequest()) - ->setName($formattedName); - $gapicClient->deleteFileStoreDataProfile($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteFileStoreDataProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFileStoreDataProfileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->fileStoreDataProfileName('[ORGANIZATION]', '[LOCATION]', '[FILE_STORE_DATA_PROFILE]'); - $request = (new DeleteFileStoreDataProfileRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteFileStoreDataProfile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteInspectTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - $request = (new DeleteInspectTemplateRequest()) - ->setName($formattedName); - $gapicClient->deleteInspectTemplate($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteInspectTemplate', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteInspectTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - $request = (new DeleteInspectTemplateRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteInspectTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteJobTriggerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new DeleteJobTriggerRequest()) - ->setName($formattedName); - $gapicClient->deleteJobTrigger($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteJobTrigger', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteJobTriggerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new DeleteJobTriggerRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteJobTrigger($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteStoredInfoTypeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - $request = (new DeleteStoredInfoTypeRequest()) - ->setName($formattedName); - $gapicClient->deleteStoredInfoType($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteStoredInfoType', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteStoredInfoTypeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - $request = (new DeleteStoredInfoTypeRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteStoredInfoType($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteTableDataProfileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->tableDataProfileName('[ORGANIZATION]', '[LOCATION]', '[TABLE_DATA_PROFILE]'); - $request = (new DeleteTableDataProfileRequest()) - ->setName($formattedName); - $gapicClient->deleteTableDataProfile($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteTableDataProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteTableDataProfileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->tableDataProfileName('[ORGANIZATION]', '[LOCATION]', '[TABLE_DATA_PROFILE]'); - $request = (new DeleteTableDataProfileRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteTableDataProfile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function finishDlpJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new FinishDlpJobRequest()) - ->setName($formattedName); - $gapicClient->finishDlpJob($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/FinishDlpJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function finishDlpJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new FinishDlpJobRequest()) - ->setName($formattedName); - try { - $gapicClient->finishDlpJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getColumnDataProfileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $tableDataProfile = 'tableDataProfile1230971621'; - $tableFullResource = 'tableFullResource1490522381'; - $datasetProjectId = 'datasetProjectId1943685672'; - $datasetLocation = 'datasetLocation1011262364'; - $datasetId = 'datasetId-2115646910'; - $tableId = 'tableId-895419604'; - $column = 'column-1354837162'; - $freeTextScore = 1.21823761E8; - $expectedResponse = new ColumnDataProfile(); - $expectedResponse->setName($name2); - $expectedResponse->setTableDataProfile($tableDataProfile); - $expectedResponse->setTableFullResource($tableFullResource); - $expectedResponse->setDatasetProjectId($datasetProjectId); - $expectedResponse->setDatasetLocation($datasetLocation); - $expectedResponse->setDatasetId($datasetId); - $expectedResponse->setTableId($tableId); - $expectedResponse->setColumn($column); - $expectedResponse->setFreeTextScore($freeTextScore); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->columnDataProfileName('[ORGANIZATION]', '[LOCATION]', '[COLUMN_DATA_PROFILE]'); - $request = (new GetColumnDataProfileRequest()) - ->setName($formattedName); - $response = $gapicClient->getColumnDataProfile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetColumnDataProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getColumnDataProfileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->columnDataProfileName('[ORGANIZATION]', '[LOCATION]', '[COLUMN_DATA_PROFILE]'); - $request = (new GetColumnDataProfileRequest()) - ->setName($formattedName); - try { - $gapicClient->getColumnDataProfile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConnectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Connection(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $request = (new GetConnectionRequest()) - ->setName($formattedName); - $response = $gapicClient->getConnection($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetConnection', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConnectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $request = (new GetConnectionRequest()) - ->setName($formattedName); - try { - $gapicClient->getConnection($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDeidentifyTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new DeidentifyTemplate(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); - $request = (new GetDeidentifyTemplateRequest()) - ->setName($formattedName); - $response = $gapicClient->getDeidentifyTemplate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetDeidentifyTemplate', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDeidentifyTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); - $request = (new GetDeidentifyTemplateRequest()) - ->setName($formattedName); - try { - $gapicClient->getDeidentifyTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDiscoveryConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DiscoveryConfig(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); - $request = (new GetDiscoveryConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getDiscoveryConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetDiscoveryConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDiscoveryConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); - $request = (new GetDiscoveryConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getDiscoveryConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDlpJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $jobTriggerName = 'jobTriggerName1819490804'; - $expectedResponse = new DlpJob(); - $expectedResponse->setName($name2); - $expectedResponse->setJobTriggerName($jobTriggerName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new GetDlpJobRequest()) - ->setName($formattedName); - $response = $gapicClient->getDlpJob($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetDlpJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDlpJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new GetDlpJobRequest()) - ->setName($formattedName); - try { - $gapicClient->getDlpJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFileStoreDataProfileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $projectDataProfile = 'projectDataProfile-316045958'; - $projectId = 'projectId-1969970175'; - $fileStoreLocation = 'fileStoreLocation-169306506'; - $locationType = 'locationType-1796591228'; - $fileStorePath = 'fileStorePath-1852775578'; - $fullResource = 'fullResource1559053246'; - $fileStoreIsEmpty = false; - $expectedResponse = new FileStoreDataProfile(); - $expectedResponse->setName($name2); - $expectedResponse->setProjectDataProfile($projectDataProfile); - $expectedResponse->setProjectId($projectId); - $expectedResponse->setFileStoreLocation($fileStoreLocation); - $expectedResponse->setLocationType($locationType); - $expectedResponse->setFileStorePath($fileStorePath); - $expectedResponse->setFullResource($fullResource); - $expectedResponse->setFileStoreIsEmpty($fileStoreIsEmpty); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->projectDataProfileName('[ORGANIZATION]', '[LOCATION]', '[PROJECT_DATA_PROFILE]'); - $request = (new GetFileStoreDataProfileRequest()) - ->setName($formattedName); - $response = $gapicClient->getFileStoreDataProfile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetFileStoreDataProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFileStoreDataProfileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->projectDataProfileName('[ORGANIZATION]', '[LOCATION]', '[PROJECT_DATA_PROFILE]'); - $request = (new GetFileStoreDataProfileRequest()) - ->setName($formattedName); - try { - $gapicClient->getFileStoreDataProfile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getInspectTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new InspectTemplate(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - $request = (new GetInspectTemplateRequest()) - ->setName($formattedName); - $response = $gapicClient->getInspectTemplate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetInspectTemplate', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getInspectTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - $request = (new GetInspectTemplateRequest()) - ->setName($formattedName); - try { - $gapicClient->getInspectTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobTriggerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new JobTrigger(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new GetJobTriggerRequest()) - ->setName($formattedName); - $response = $gapicClient->getJobTrigger($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetJobTrigger', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobTriggerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new GetJobTriggerRequest()) - ->setName($formattedName); - try { - $gapicClient->getJobTrigger($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProjectDataProfileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $projectId = 'projectId-1969970175'; - $tableDataProfileCount = 330585909; - $fileStoreDataProfileCount = 332405595; - $expectedResponse = new ProjectDataProfile(); - $expectedResponse->setName($name2); - $expectedResponse->setProjectId($projectId); - $expectedResponse->setTableDataProfileCount($tableDataProfileCount); - $expectedResponse->setFileStoreDataProfileCount($fileStoreDataProfileCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->projectDataProfileName('[ORGANIZATION]', '[LOCATION]', '[PROJECT_DATA_PROFILE]'); - $request = (new GetProjectDataProfileRequest()) - ->setName($formattedName); - $response = $gapicClient->getProjectDataProfile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetProjectDataProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProjectDataProfileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->projectDataProfileName('[ORGANIZATION]', '[LOCATION]', '[PROJECT_DATA_PROFILE]'); - $request = (new GetProjectDataProfileRequest()) - ->setName($formattedName); - try { - $gapicClient->getProjectDataProfile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getStoredInfoTypeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new StoredInfoType(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - $request = (new GetStoredInfoTypeRequest()) - ->setName($formattedName); - $response = $gapicClient->getStoredInfoType($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetStoredInfoType', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getStoredInfoTypeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - $request = (new GetStoredInfoTypeRequest()) - ->setName($formattedName); - try { - $gapicClient->getStoredInfoType($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTableDataProfileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $projectDataProfile = 'projectDataProfile-316045958'; - $datasetProjectId = 'datasetProjectId1943685672'; - $datasetLocation = 'datasetLocation1011262364'; - $datasetId = 'datasetId-2115646910'; - $tableId = 'tableId-895419604'; - $fullResource = 'fullResource1559053246'; - $scannedColumnCount = 787756843; - $failedColumnCount = 706572376; - $tableSizeBytes = 927763390; - $rowCount = 1340416618; - $expectedResponse = new TableDataProfile(); - $expectedResponse->setName($name2); - $expectedResponse->setProjectDataProfile($projectDataProfile); - $expectedResponse->setDatasetProjectId($datasetProjectId); - $expectedResponse->setDatasetLocation($datasetLocation); - $expectedResponse->setDatasetId($datasetId); - $expectedResponse->setTableId($tableId); - $expectedResponse->setFullResource($fullResource); - $expectedResponse->setScannedColumnCount($scannedColumnCount); - $expectedResponse->setFailedColumnCount($failedColumnCount); - $expectedResponse->setTableSizeBytes($tableSizeBytes); - $expectedResponse->setRowCount($rowCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->tableDataProfileName('[ORGANIZATION]', '[LOCATION]', '[TABLE_DATA_PROFILE]'); - $request = (new GetTableDataProfileRequest()) - ->setName($formattedName); - $response = $gapicClient->getTableDataProfile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetTableDataProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTableDataProfileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->tableDataProfileName('[ORGANIZATION]', '[LOCATION]', '[TABLE_DATA_PROFILE]'); - $request = (new GetTableDataProfileRequest()) - ->setName($formattedName); - try { - $gapicClient->getTableDataProfile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function hybridInspectDlpJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new HybridInspectResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new HybridInspectDlpJobRequest()) - ->setName($formattedName); - $response = $gapicClient->hybridInspectDlpJob($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/HybridInspectDlpJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function hybridInspectDlpJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new HybridInspectDlpJobRequest()) - ->setName($formattedName); - try { - $gapicClient->hybridInspectDlpJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function hybridInspectJobTriggerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new HybridInspectResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new HybridInspectJobTriggerRequest()) - ->setName($formattedName); - $response = $gapicClient->hybridInspectJobTrigger($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/HybridInspectJobTrigger', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function hybridInspectJobTriggerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new HybridInspectJobTriggerRequest()) - ->setName($formattedName); - try { - $gapicClient->hybridInspectJobTrigger($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function inspectContentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new InspectContentResponse(); - $transport->addResponse($expectedResponse); - $request = new InspectContentRequest(); - $response = $gapicClient->inspectContent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/InspectContent', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function inspectContentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new InspectContentRequest(); - try { - $gapicClient->inspectContent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listColumnDataProfilesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $columnDataProfilesElement = new ColumnDataProfile(); - $columnDataProfiles = [ - $columnDataProfilesElement, - ]; - $expectedResponse = new ListColumnDataProfilesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setColumnDataProfiles($columnDataProfiles); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListColumnDataProfilesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listColumnDataProfiles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getColumnDataProfiles()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListColumnDataProfiles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listColumnDataProfilesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListColumnDataProfilesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listColumnDataProfiles($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConnectionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $connectionsElement = new Connection(); - $connections = [ - $connectionsElement, - ]; - $expectedResponse = new ListConnectionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConnections($connections); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListConnectionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listConnections($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConnections()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListConnections', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConnectionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListConnectionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listConnections($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDeidentifyTemplatesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $deidentifyTemplatesElement = new DeidentifyTemplate(); - $deidentifyTemplates = [ - $deidentifyTemplatesElement, - ]; - $expectedResponse = new ListDeidentifyTemplatesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDeidentifyTemplates($deidentifyTemplates); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListDeidentifyTemplatesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDeidentifyTemplates($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDeidentifyTemplates()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListDeidentifyTemplates', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDeidentifyTemplatesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListDeidentifyTemplatesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDeidentifyTemplates($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDiscoveryConfigsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $discoveryConfigsElement = new DiscoveryConfig(); - $discoveryConfigs = [ - $discoveryConfigsElement, - ]; - $expectedResponse = new ListDiscoveryConfigsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDiscoveryConfigs($discoveryConfigs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDiscoveryConfigsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDiscoveryConfigs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDiscoveryConfigs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListDiscoveryConfigs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDiscoveryConfigsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDiscoveryConfigsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDiscoveryConfigs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDlpJobsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $jobsElement = new DlpJob(); - $jobs = [ - $jobsElement, - ]; - $expectedResponse = new ListDlpJobsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setJobs($jobs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListDlpJobsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDlpJobs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getJobs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListDlpJobs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDlpJobsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListDlpJobsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDlpJobs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFileStoreDataProfilesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $fileStoreDataProfilesElement = new FileStoreDataProfile(); - $fileStoreDataProfiles = [ - $fileStoreDataProfilesElement, - ]; - $expectedResponse = new ListFileStoreDataProfilesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFileStoreDataProfiles($fileStoreDataProfiles); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListFileStoreDataProfilesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listFileStoreDataProfiles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFileStoreDataProfiles()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListFileStoreDataProfiles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFileStoreDataProfilesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListFileStoreDataProfilesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listFileStoreDataProfiles($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listInfoTypesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListInfoTypesResponse(); - $transport->addResponse($expectedResponse); - $request = new ListInfoTypesRequest(); - $response = $gapicClient->listInfoTypes($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListInfoTypes', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listInfoTypesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListInfoTypesRequest(); - try { - $gapicClient->listInfoTypes($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listInspectTemplatesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $inspectTemplatesElement = new InspectTemplate(); - $inspectTemplates = [ - $inspectTemplatesElement, - ]; - $expectedResponse = new ListInspectTemplatesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setInspectTemplates($inspectTemplates); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListInspectTemplatesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listInspectTemplates($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getInspectTemplates()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListInspectTemplates', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listInspectTemplatesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListInspectTemplatesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listInspectTemplates($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listJobTriggersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $jobTriggersElement = new JobTrigger(); - $jobTriggers = [ - $jobTriggersElement, - ]; - $expectedResponse = new ListJobTriggersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setJobTriggers($jobTriggers); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListJobTriggersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listJobTriggers($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getJobTriggers()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListJobTriggers', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listJobTriggersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListJobTriggersRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listJobTriggers($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listProjectDataProfilesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $projectDataProfilesElement = new ProjectDataProfile(); - $projectDataProfiles = [ - $projectDataProfilesElement, - ]; - $expectedResponse = new ListProjectDataProfilesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setProjectDataProfiles($projectDataProfiles); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListProjectDataProfilesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listProjectDataProfiles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProjectDataProfiles()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListProjectDataProfiles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listProjectDataProfilesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListProjectDataProfilesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listProjectDataProfiles($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listStoredInfoTypesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $storedInfoTypesElement = new StoredInfoType(); - $storedInfoTypes = [ - $storedInfoTypesElement, - ]; - $expectedResponse = new ListStoredInfoTypesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setStoredInfoTypes($storedInfoTypes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListStoredInfoTypesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listStoredInfoTypes($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getStoredInfoTypes()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListStoredInfoTypes', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listStoredInfoTypesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListStoredInfoTypesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listStoredInfoTypes($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTableDataProfilesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $tableDataProfilesElement = new TableDataProfile(); - $tableDataProfiles = [ - $tableDataProfilesElement, - ]; - $expectedResponse = new ListTableDataProfilesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTableDataProfiles($tableDataProfiles); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListTableDataProfilesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listTableDataProfiles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTableDataProfiles()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListTableDataProfiles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTableDataProfilesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListTableDataProfilesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listTableDataProfiles($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function redactImageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $redactedImage = '28'; - $extractedText = 'extractedText998260012'; - $expectedResponse = new RedactImageResponse(); - $expectedResponse->setRedactedImage($redactedImage); - $expectedResponse->setExtractedText($extractedText); - $transport->addResponse($expectedResponse); - $request = new RedactImageRequest(); - $response = $gapicClient->redactImage($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/RedactImage', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function redactImageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new RedactImageRequest(); - try { - $gapicClient->redactImage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reidentifyContentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ReidentifyContentResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ReidentifyContentRequest()) - ->setParent($formattedParent); - $response = $gapicClient->reidentifyContent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ReidentifyContent', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reidentifyContentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ReidentifyContentRequest()) - ->setParent($formattedParent); - try { - $gapicClient->reidentifyContent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchConnectionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $connectionsElement = new Connection(); - $connections = [ - $connectionsElement, - ]; - $expectedResponse = new SearchConnectionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConnections($connections); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new SearchConnectionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->searchConnections($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConnections()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/SearchConnections', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchConnectionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new SearchConnectionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->searchConnections($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConnectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Connection(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $connection = new Connection(); - $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; - $connection->setState($connectionState); - $request = (new UpdateConnectionRequest()) - ->setName($formattedName) - ->setConnection($connection); - $response = $gapicClient->updateConnection($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateConnection', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getConnection(); - $this->assertProtobufEquals($connection, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConnectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $connection = new Connection(); - $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; - $connection->setState($connectionState); - $request = (new UpdateConnectionRequest()) - ->setName($formattedName) - ->setConnection($connection); - try { - $gapicClient->updateConnection($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDeidentifyTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new DeidentifyTemplate(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); - $request = (new UpdateDeidentifyTemplateRequest()) - ->setName($formattedName); - $response = $gapicClient->updateDeidentifyTemplate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateDeidentifyTemplate', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDeidentifyTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); - $request = (new UpdateDeidentifyTemplateRequest()) - ->setName($formattedName); - try { - $gapicClient->updateDeidentifyTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDiscoveryConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DiscoveryConfig(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); - $discoveryConfig = new DiscoveryConfig(); - $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; - $discoveryConfig->setStatus($discoveryConfigStatus); - $request = (new UpdateDiscoveryConfigRequest()) - ->setName($formattedName) - ->setDiscoveryConfig($discoveryConfig); - $response = $gapicClient->updateDiscoveryConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateDiscoveryConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getDiscoveryConfig(); - $this->assertProtobufEquals($discoveryConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDiscoveryConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); - $discoveryConfig = new DiscoveryConfig(); - $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; - $discoveryConfig->setStatus($discoveryConfigStatus); - $request = (new UpdateDiscoveryConfigRequest()) - ->setName($formattedName) - ->setDiscoveryConfig($discoveryConfig); - try { - $gapicClient->updateDiscoveryConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateInspectTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new InspectTemplate(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - $request = (new UpdateInspectTemplateRequest()) - ->setName($formattedName); - $response = $gapicClient->updateInspectTemplate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateInspectTemplate', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateInspectTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - $request = (new UpdateInspectTemplateRequest()) - ->setName($formattedName); - try { - $gapicClient->updateInspectTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateJobTriggerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new JobTrigger(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new UpdateJobTriggerRequest()) - ->setName($formattedName); - $response = $gapicClient->updateJobTrigger($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateJobTrigger', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateJobTriggerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new UpdateJobTriggerRequest()) - ->setName($formattedName); - try { - $gapicClient->updateJobTrigger($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateStoredInfoTypeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new StoredInfoType(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - $request = (new UpdateStoredInfoTypeRequest()) - ->setName($formattedName); - $response = $gapicClient->updateStoredInfoType($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateStoredInfoType', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateStoredInfoTypeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - $request = (new UpdateStoredInfoTypeRequest()) - ->setName($formattedName); - try { - $gapicClient->updateStoredInfoType($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function activateJobTriggerAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $jobTriggerName = 'jobTriggerName1819490804'; - $expectedResponse = new DlpJob(); - $expectedResponse->setName($name2); - $expectedResponse->setJobTriggerName($jobTriggerName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new ActivateJobTriggerRequest()) - ->setName($formattedName); - $response = $gapicClient->activateJobTriggerAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ActivateJobTrigger', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}